Jan-01-2021, 06:25 PM
this stupid code is created on purpose, the interpreter reacts to the truth and executes it, but if the truth is in two directions, it chooses a short path despite the fact that somewhere there is a more precise argument
I write bad code on purpose, never do this !!!
''' if i enter 4 it shows Magellanic Clouds
but more accurate answer is Andromeda Galaxy
'''
I write bad code on purpose, never do this !!!
''' if i enter 4 it shows Magellanic Clouds
but more accurate answer is Andromeda Galaxy
'''
''' answer 4 does not equal 5, the program can have truth in the short or long direction ''' q1 = int(input("What number?: \n")) if q1 != 5 : # I specifically created conditions to see how the language reacts when two directions. i know programers not write like this. # first direction short way if q1==6: print("Canis Major Dwarf Galaxy") elif q1==7: print("Cygnus A") else : print("Magellanic Clouds") '''python's answer here he completely ignored other directions despite the fact that a more accurate answer == 4 in another direction''' # second direction long way elif q1==4: # direct answer here in the condition I will write 4 print("Andromeda Galaxy") else : print("Milky Way Galaxy")