26th Dec 2019, 10:22 PM
leoclxou 33
9 odpowiedzi
+ 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.
27th Dec 2019, 11:09 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 3
You have to call the function. example: argent(200)
26th Dec 2019, 10:25 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
leoclxou 33 What error, seems ok?
27th Dec 2019, 10:52 AM
Mihai Apostol
Mihai Apostol - avatar
+ 2
Use the line recomended by lucifer last in your script.
27th Dec 2019, 11:04 AM
Mihai Apostol
Mihai Apostol - avatar
+ 2
When you call the function, mes_sous is replaced by the number between brackets.
27th Dec 2019, 11:10 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
27th Dec 2019, 10:58 AM
leoclxou 33
+ 1
Thanks you🙂
27th Dec 2019, 11:10 AM
leoclxou 33
0
I have à New error
27th Dec 2019, 9:21 AM
leoclxou 33
0
Ok
27th Dec 2019, 11:11 AM
leoclxou 33