0

red = "box1" green="box2" black="box3" color = input() if color == 'red': print(box1) elif color == "green": print(bo

This code does not work ' please ' why ?

21st Jan 2022, 3:35 PM
حمزة عبد الباقي
حمزة عبد الباقي - avatar
3 Antworten
0
Add '' to print(box1) Like this: print ('box1')
21st Jan 2022, 3:46 PM
NEZ
NEZ - avatar
0
the code is not complete, can you share a link to the code. what it is supposed to do? I think you should swap the variable names and there values. box1 = "red" box2 = "green" ...
21st Jan 2022, 3:47 PM
Mafdi
Mafdi - avatar
0
Please link the code here.
21st Jan 2022, 3:54 PM
Œ ㅤ
Œ ㅤ - avatar