I'm a beginner at Python.
1= Computer
2=Cellphone
If you press 1, 'computer' and if you press 2, 'cell phone' will be on the list. How do I make the code?
list [ ]
str(1)= Computer
str(2)=Cellphone
list.append( 1 )
That's all I can think of.
python
I think you can use the dictionary for the function you want.
© 2024 OneMinuteCode. All rights reserved.