+ 1
please check this code what is error
m=30 def(n): x=2 n=x+n print (n): def (m)
4 Réponses
+ 4
You are not defining anything. You have a parameter of n, but do not have a name for your function.
+ 3
if you want to define a function you have to give it a name, so
def myfunction(n): #this is right
def(n): #it doesn't work, the function hasn't a name
then when you call the function you have to write
myfunction(m)
0
thank you all of my friend