This is the code--
while True:
spam = 0
spam + 1
if spam == 1:
print('Hello')
elif spam == 2:
print('Howdy')
else:
print('Greetings!')
break
What i want it to do is output "Hello" first, then "Howdy" second and after the third time it output "Greetings" and breaks the code. However the code loops infinitely with "Hello" being the output Thanks in advance for the help!