My code doesn't pass, but works in the practice space provided?


#1



The grader says it doesn't print what is asked for? I've tried different spacing, using else at the end of the code and had someone familiar with python check this and couldn't tell why it didn't pass. Looking for a better set of eyes to point out my silly mistake. Thank you.


user_name = input("What is your name?")
name = str(user_name)
special_one = 'Amar'
special_two = 'Brandy'
name_two = '<NAME>'

if name is special_one:
	print("Hello " + name + " :)\nI like your shoes")
if name is special_two:
	print("Hello " + name + " :)\nYou seem like a cool person")
if name is name_two:
 	print("Hello " + name)
if name != special_one and name != special_two and name != name_two:
 	print("Hello " + name + " :)")


#2


#3


#4

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