0

How do I use If and Else

I JUST WANNA LEARN

3rd Oct 2020, 2:22 PM
Kevin Xuli
Kevin Xuli - avatar
3 Answers
+ 4
If(somthing inside here is true){execute the content that's inside this body and ignore the else statement} else{ if the above if statement is false ignore and execute the content inside this body instead}
3rd Oct 2020, 2:26 PM
D_Stark
D_Stark - avatar
+ 1
if username == 'Admin': print('hello welcome back') else: print('who are you')
3rd Oct 2020, 3:38 PM
Karan
Karan - avatar