Week 5 Sample Program

Post date: Nov 5, 2016 4:00:37 AM

We learned from this book. http://www.openbookproject.net/books/bpp4awd/index.html

We used this little program to discuss integers and floats, conditions and control flows.

innum = float(input("Give me a number:"))

print(innum)

if (innum > 10):

print("The number is greater than 10")

elif (innum < 10):

print("The number is less than 10")

else:

print("The number is equal to 10")