Python Tutorial 8: Homework Solutions for Compound Conditionals in Python



You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

https://www.patreon.com/PaulMcWhorter

In this video we show step-by-step instructions on how solve the homework assignment from Lesson 7. I do not assume you are an expert, so these lessons are designed for complete beginners.
#Python
#Lessons
#Programming

source

3 thoughts on “Python Tutorial 8: Homework Solutions for Compound Conditionals in Python

  • April 14, 2021 at 6:52 pm
    Permalink

    myNumber = float(input("Please enter your Number: "))
    print("Your Number is ",end='')
    if (myNumber==0):
    print("zero",end='')
    elif (myNumber>0):
    print("positiv",end='')
    else:
    print("negativ",end='')
    print(" and ",end='')
    if (myNumber%2==0):
    print("even.",end='')
    else:
    print("odd.")

    Reply
  • April 14, 2021 at 6:52 pm
    Permalink

    Thanks for these lessons Professor McWhorter! I'll make it to Patreon one of these days. VSC had an update which was pretty bad, and my computer didn't like it, at all. I had to delete it, and I don't know if I want to re-install it. It was a great environment for writing code, but it really bogged down my computer. Will your lessons work from the Python IDLE?

    Reply
  • April 14, 2021 at 6:52 pm
    Permalink

    Hi Paul. Got the homework! 10 lines of code. Looking forward to #8! Very good videos!

    Reply

Leave a Reply

Your email address will not be published.