0

if/else problem

I started coding just a while ago and decided that experience is the best teacher but... apparently it's not. I was creating a small, basic...bot? and it was smooth sailing until i got a problem with the if/else. input("have you had any water? ") if "no" : print("thats bad! hidration is important") else: print("good!") I have tried everything I know but I started coding like a week ago, so I can't do much.

13th Feb 2019, 7:37 PM
Espe UrzĂșa
Espe UrzĂșa - avatar
1 Answer
+ 4
Don't worry, just go on studying and practicing! You are right, experience (study + practice) will get you forward, but you should rather think in months/years than in weeks. It's just not that easy. Go on with your tutorial, practice what you learn there, do a few challenges against weaker opponents and after a while you'll see it adds up.
13th Feb 2019, 7:48 PM
HonFu
HonFu - avatar