+ 1
Why I have "no output"
9 Réponses
+ 2
def argent(mes_sous):
import random
print(random.randint(1, 2001))
if mes_sous > 1000:
print("je suis riche")
else:
print("Tu n'est pas riche mais ca viendra")
argent(200)
argent(1500)
argent(99999)
Like that.
+ 3
You have to call the function.
example:
argent(200)
+ 2
leoclxou 33 What error, seems ok?
+ 2
Use the line recomended by lucifer last in your script.
+ 2
When you call the function, mes_sous is replaced by the number between brackets.
+ 1
Thanks you🙂
0
I have à New error
0
Ok