mardi 17 décembre 2019

Python - If Statment Not Working Properly [closed]

this may seem like a stupid question but for some reason, I can't get this working.

print("1")
if print=="1":
    print("DL")
else:
    print("DSU")

I just trying to get the code to print "DL"

Although it just prints

1
DSU

This is for a bigger project although I have made this simpler version so that it makes sense.

Aucun commentaire:

Enregistrer un commentaire