counter = 1
while counter:
print(counter)
counter=counter + 1
if counter==True:
print("NOPE, False")
if counter == 0:
print("NOPE, 0")
if counter==False:
print("YES, True")
elif counter==(0 or False):
print("YES")
What am I doing wrong? For what reason do I have repetition 111111 at the output? I want it to alternately print the texts below depending on whether the number is zero or some other number?
Update: Thanks for the help, I tried to create a program that will change values (increase number) and print a message with a while-loop. After your help and clarification, it is clear that without more conditions and redirects I will not be able to get different outputs / text, so the task itself is not well set at the beginning. Now I look stupid to myself when I look at my idea and this attempt...