Help me please for Game machine problem ( in python )
Anyone please help me to solve the problem so that I can move further with my lessons
Read my reply here: https://www.sololearn.com/Discuss/3242472/?ref=app Quoting myself: "choice" is a number and this number is the index of an element in "games". so what you need to do is use "choice" as an index on the "games" list. And print that out!
Novahu Bora , #Don't repeat your own questions.. https://www.sololearn.com/Discuss/3243143/?ref=app #Use only relevant tags instead of `need`. read this about tags.. https://code.sololearn.com/W3uiji9X28C1/?ref=app #Note that,If you're having trouble in code, share your code and then describe what error message you're receiving. without watching no one can figure out what's going wrong.
show your updated code. you have "games" and "choice". these are the variables you need to work with.
Naryan Naik Do not give ready-made code. Rather, help the asking person to find the solution themselves and explain the approach.
installed games games = [ 'Soccer', 'Tic Tac Toe', 'Snake', 'Puzzle', 'Rally'] #taking player's choice as a number input choice = int(input()) #output the corresponding game
How can I solve it
Thank u lisa but I still can't get it 😥
I got it lisa, thank u for mentoring me
Because iam also doing too much effort for slove this task so i just want to help other people
If they can't get answer someone stop to learn coding also so if they know answer they will continue....