- 1

It's a Sign solved by basic knowledge

x=0 t=0 for x in range(4): sign="" word=[] Rword="" sign = input() for i in sign: word.append(i) word.reverse() #print (word) for i in word: Rword+=i #print (Rword) if sign == Rword: print ("Open") t = 1 break else: pass if t!=1: print ("Trash")

7th Jan 2022, 3:30 AM
刘洋
1 Resposta
+ 4
And your question is❓
7th Jan 2022, 6:08 AM
Simba
Simba - avatar