Jan-20-2022, 06:25 PM
(This post was last modified: Jan-20-2022, 07:13 PM by Yoriz.
Edit Reason: Added code tags
)
def area(x,y = 3.14): # formal parameters a = y*x*x print (a) return a a = area(10) print("area",a)* Here is what I am doing:
3.14 * 3.14 * 3.14 = 30.56476
30.56476 is a
then 30.56476 * 10
305.6476
but the actual answer is: 314.0 ( when you run the program)
buran write Jan-20-2022, 06:48 PM:
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.