0

In following code is list array,this code is wrong ,any one can be tell me my mistake in this code

commands = ["Lights Off", "Lock the door", "Open the door", "Make Coffee", "Shut down"] #your code goes here commands =input(command()) print(command[3]) if commands = num[3] print(ok) else : print(0) https://www.sololearn.com/discuss/2722670/?ref=app

14th Mar 2021, 7:40 PM
Mathpati Manmath
Mathpati Manmath - avatar
1 Answer
+ 1
You need to revisit modules 21.1 and 22.1 from the "Python for Beginners" course. I can't link them here for some reason, so here are the links to the same topics from the "Python Core" course. Revisit these and you'll know the problem https://www.sololearn.com/learning/2276/ https://www.sololearn.com/learning/2277/
14th Mar 2021, 7:45 PM
XXX
XXX - avatar