For something to be a string in Python, it needs quotes around it. Right now Python thinks that O
etc. are variables.
Fixed:
x = input("Enter your blood type: ")
if x == 'O':
for y in range(6):
print("O O O O O O")
elif x == 'A':
for y in range(6):
print("A A A A A A")
elif x == 'B':
for y in range(6):
print("B B B B B B")
elif x == 'AB':
for y in range(3):
print("AB AB AB")
else:
print("N/A blood type! Are you alien?")
0
solved Have an issue with input command