Plz help dose this code work on python 3.7.0 and can you make it better


#1
name = raw_input("What is your name?")
quest = raw_input("What is your quest?")
color = raw_input("What is your favorite color?")

print "Ah, so your name is %s, your quest is %s, " \
"and your favorite color is %." % (name, quest, color)
#and can you fix this one too
print  "What is your name?"
name = raw_input('> ')
if name == michael :
print "hoii michel welcome to the clube"

thx in advans


#2

raw_input no longer exist in python3, use input

here:

if name == michael : 

micheal is a undefined variable, what should it be? If just want to check that person is called micheal, micheal should be a string


#3

thank you it worked i lost hair over this


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.