+ 1
plz clear me wtt process behind it e.g.when i input "down" it output "alreaady down" and same for when i input "up" twice
4 Respostas
+ 1
I can't understand your question. Can you redescribe it?
+ 1
yaa ,i have been redescribe
+ 1
if y == 0:
Input up: bird is flying. y becomes 1
Input down: already down
if y == 1:
Input up: already up
Input down: bird is landing y becomes 0
0
Thx🙏 community members