[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –
Python Programming Tutorial – 22 – Nesting Statements
by
Tags:
Comments
28 responses to “Python Programming Tutorial – 22 – Nesting Statements”
-
Nice vid on how to use indentation to nest if statements. Does it have to be tabs, or could you indent w/ merely spaces?
-
don't we have a switch case statement in Python?
-
ut i think your channel is not monetized
-
you r best
-
see this , It shows an error while executing! plz help
thing="animal"
animal="tiger"
if thing == "animal":
if animal == "tiger":
print "I am in sundarban!"
else:
print "I don't know where I am!"
else:
print " I dnt know what this is" -
could't just use elif statement?
New here, sorry but I didn't get the difference.
-
how does it automatically say 'this is a cat' when i havent entered any information? i dont get it, but its working lol.
-
cool 🙂 <3
-
nice
-
bucky ur awesome!
-
this version is to old 🙁
-
So, this has all changed, correcto?
-
There was like 500,000 at first now there;s onyl 80,000 loyal ratsmiths
-
Half way through Python. And my mates took a whole semester on this. Suck it!
-
we're more than halfway through!
-
Your forgetting to add the .py at the end of the filename when you save your program.
-
When i save my program ALL the text becomes all black and messed up*
-
When i save my program the ALL text becomes all black and messed up.
I wonder what it is and how i can fix it? -
I might be a bit late in answering your question.
if i were to use
if lol == 'hi' and lol2 == 'hihi'
then the block of code will never be executed if one of the test fails.
instead if i were to use
if lol == 'hi':
if lol2 == 'hihi':,
the block will be executed if the first condition is true. In this way i could add an else block in the first if block to do further processing. -
I don't know but i don't like long single lines of code.
-
why not test all the conditions at once?
ie. i -
…so I put an if statement in yo if statement so yo can test a condition while yo testin' another condition inside the condition yo testin'
-
One does not simply "declare ifception"
-
he was just teaching the concept of nested if statements in java i use nested if statements all the time in-fact i once wrote a program with 20 nested if statements.
-
your tutorial's are awesome !!!
-
Bucky, I'm impressed with your tutorials. Very well done. Not sure why there are so many tools that act like they know it all but yet continue to watch the tutorial. Why watch a tutorial if you know it already? Losers
-
Man i loled hard 😀
-
But that way, he does never forget to place the ending quitation mark. I do it when using code blocks {} on java or any other…
Leave a Reply