Python Programming Tutorial – 22 – Nesting Statements

[ad_1]
Facebook –
GitHub –
Google+ –
LinkedIn –
reddit –
Support –
thenewboston –
Twitter –


Posted

in

by

Tags:

Comments

28 responses to “Python Programming Tutorial – 22 – Nesting Statements”

  1. wcdeich4 Avatar

    Nice vid on how to use indentation to nest if statements. Does it have to be tabs, or could you indent w/ merely spaces?

  2. Tarun Chand Avatar

    don't we have a switch case statement in Python?

  3. Technical Shuter Avatar

    ut i think your channel is not monetized

  4. Walter White Heisenberg Avatar

    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"

  5. daniela cerasela Avatar

    could't just use elif statement?

    New here, sorry but I didn't get the difference.

  6. justin jimenez Avatar

    how does it automatically say 'this is a cat' when i havent entered any information? i dont get it, but its working lol.

  7. ShveicaraS Sam Avatar

    this version is to old 🙁

  8. Gartch Avatar

    So, this has all changed, correcto?

  9. F22Acura Avatar

    There was like 500,000 at first now there;s onyl 80,000 loyal ratsmiths

  10. Rusa Phillip Avatar

    Half way through Python. And my mates took a whole semester on this. Suck it!

  11. Niraj Patel Avatar

    we're more than halfway through!

  12. dethbad Avatar

    Your forgetting to add the .py at the end of the filename when you save your program.

  13. lilljonken1 Avatar

    When i save my program ALL the text becomes all black and messed up*

  14. lilljonken1 Avatar

    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?

  15. Suriya Narayanan Avatar

    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.

  16. namesarehard Avatar

    I don't know but i don't like long single lines of code.

  17. Jorge Cabrera Avatar

    why not test all the conditions at once?
    ie. i

  18. RontoKing Avatar

    …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'

  19. Tristan Avatar

    One does not simply "declare ifception"

  20. namesarehard Avatar

    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.

  21. arti Avatar

    your tutorial's are awesome !!!

  22. Matt Sherman Avatar

    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

  23. Rafael Adel Avatar

    Man i loled hard 😀

  24. Marcos Longo Avatar

    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

Your email address will not be published. Required fields are marked *