on-internet
← Community

Defining functions and then printing values

Stack Overflow ·

I want the 1000 to be the numerator in the below. However there is an issue with the code below. I want to print the actual result but cannot get it to appear for both tilde_1 and tilde_2. However the output doesn't appear. def pi_tilde(p,r): result = p / 1 + r pi_tilde_1 = pi_tilde(1000,0.02) print('pi_tilde_1=',result) pi_tilde_2 = pi_tilde(250,0.03) print('pi_tilde_2=',result) Thanks

Comments

Sign in or sign up to comment and upvote.

No comments yet.