[Tutor] cant get it to run right
Sveum, Christian
csveum at my.devry.edu
Thu Mar 28 19:55:49 EDT 2019
I am new and I have tried everything I can think I of. I want it to run like a converstion.
print(" I am Bob")
name = input("What is your name")
print("Nice to meet you")
age = input("How old are you?")
print("I was not programed with a age")
city = input("Where do you live?")
temperature = float(input("What is the temperature?"))
if temperature>=75:
print("WOW it is hot")
elif temperature==75 or 74 or 73 or 72 or 71 or 70 or 69 or 68 or 67 or 66 or 65:
print(" That is nice")
else:
print(" You can't make me go outside")
color = input("What is your favorite color")
if color=="Red" or "red" or "yellow" or "Yellow" or "Blue" or "blue" or "orange" or "Orange" or "green" or "Green" or "purple" or "Purple":
print ("That is cool")
elif color=="white" or "White":
input(" That is a shade, Try agian")
elif color=="gray" or "Gray":
input(" That is a shade, Try agian")
elif color=="black" or "Black":
input("That is not a color,Try agian")
else:
print (" I dont know what to say")
print("My favorite color is Green")
maxNumber=int(input("Pick a number between 1 and 10"))
count=0
while count<maxNumber:
if count==10:
print( "10 is my favorite number!")
print(count)
count=count+1
input("Was one of these numbers your favorite number")
if question=="yes":
input("What was it")
elif question=="no":
print("No fun")
print (" It was fun talking with you,sleep mode active")
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
More information about the Tutor
mailing list