[Solved] Python – If Statment Not Working Properly [closed]

[ad_1]

it should be the following for it to work correctly:

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

As said in the comments, print() is a function so to check if the “1” matches the condition, put it in a variable.

0

[ad_2]

solved Python – If Statment Not Working Properly [closed]