I don't understand this topic | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

I don't understand this topic

2nd Jan 2019, 2:17 PM
Gaurav Patel
Gaurav Patel - avatar
2 Respuestas
+ 2
It's just a representation of some every day decision making You do something under some condition, do opposite otherwise. See this demo: https://code.sololearn.com/coF5UK11sutt/?ref=app Run, and see what happens. After that, change line 1 to isRaining = False and see what happens
2nd Jan 2019, 2:29 PM
Gordon
Gordon - avatar
0
Its just like if hungry: eat()
2nd Jan 2019, 2:45 PM
ShortCode