mardi 30 mars 2021

multiple conditions if statement not working python [closed]

I have tried multiple ways to write the multiple if statement, and when I run the code it just seems like python skips over it. it gives me no errors and the code says it was completed successfully

print("1. Yes")
print("2. No")
more = input("would you like multiple words in your output? (1 or 2): ")

print("1. Yes")
print("2. No")
oi = int(input("would you like special characters? (1 or 2): "))

if ((more== 2) and (oi== 1)):
  f = (int(val)//100)
  d = (f - 2)
#dont mind the part at the bottom, the whole thing was to long to paste after the "if statement"

and it just seems to skip over the code

Aucun commentaire:

Enregistrer un commentaire