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 Answers
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