+ 1
Can anyone tell me what I'm doing wrong here please?
Coding help https://code.sololearn.com/cc0HTQd1Brno/?ref=app
6 Answers
+ 1
Emma Cooke
Indentation and list iteration
https://code.sololearn.com/cO8hViBJeRE4/?ref=app
0
If x=command here u assigning values
0
commands = ["Lights Off", "Lock the door", "Open the door", "Make Coffee", "Shut down"]
x = input()
if (x in commands):print("OK")
else:print("not supported")
0
commands = ["Lights Off", "Lock the door", "Open the door", "Make Coffee", "Shut down"]
x = input("Enter a command: ")
if x in commands:
print("OK")
else:
print("not supported")
I hope this was useful
0
Thank you
0
Oh, it's still not solving the 3rd and 4th test cases and it's still telling me to try again. What else could be wrong? Or is it a bug with the programme?