0
how comes we don't have to define "x". eg def print_tripple (x) print (3*x) print_tripple("5")
4 Respostas
+ 2
you dont have to define 'x' because 'x' is not a variable. its an argment.
x gets called where you have "print_tripple("5")
also, you missed a " : " at the end of your function.
hope this helps
0
def print_tripple (x):
print ("3*x")
0
answer in script is
3*5
15
0
Hassan gh.lominol that answer is wrong due to you having it in quotations. It will print 3*5. Not 15 because you made it a string.