+ 1

How to cancel a statement in python.

I want to cancel "s" from showing. Not want to clear first without clearing first state. https://code.sololearn.com/c6Eh7fqT0nu7/?ref=app

18th Dec 2020, 12:53 PM
Sooraj K Sunu
Sooraj K Sunu - avatar
3 Answers
+ 4
Add # before the statement can comment the statement and thus stop it from executing.
18th Dec 2020, 12:58 PM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
+ 1
Or you assign a boolean variable. Then put "s" in an if statement that is executed only when the boolean is True
18th Dec 2020, 1:22 PM
Lisa
Lisa - avatar