Object-Oriented Programming Documents

Showing 1 to 10 of 10

=
Jan 28, 2016, 8:03:25 PM
~/Desktop/firstprog.py
-Hello! Our team consists of the following:
Emily Failla
Sarah Delfino
This is our joint question that we would like answered: how is Python used in
the workplace?
Thank you!

#asks the user for a number that is divisible by 2
#continues to ask until the user inputs a number divisible by 2
num = float(raw_input('Enter a number divisible by 2:')
while (num%2) !=0:
num = float(raw_input('Invalid:')
print 'Congratulations!'