+ 1

Command to end python script in if condition?

Hi guys I'm doing some simple python coding rn and I want to end the execution of the script with an if condition tho k don't know how that works. It's python 3.7 please help meeeeeeee Thank you~

16th Jun 2019, 11:47 PM
Yoschicks
Yoschicks - avatar
1 Odpowiedź
+ 2
i = 5 if i < 10: exit()
17th Jun 2019, 5:17 AM
Anna
Anna - avatar