0

A game machine has 5 games installed on it, represented in this list: games = ['Soccer', 'Tic Tac Toe', 'Snake', 'Puzzle', 'Ra

A game machine has 5 games installed on it, represented in this list: games = ['Soccer', 'Tic Tac Toe', 'Snake', 'Puzzle', 'Rally'] PY The code that you're about to see takes a number as input, which indicates the choice index. Task Complete the program to output the game from the list that corresponds to that index. img-component

17th Aug 2023, 4:23 PM
Bhargavi Guntakala
Bhargavi Guntakala - avatar
6 Respuestas
+ 4
Can you share your attempt?
17th Aug 2023, 5:47 PM
Sakshi [Offline 🙃]
Sakshi [Offline 🙃] - avatar
+ 1
# Juegos instalados games = [ 'Soccer', 'Tic Tac Toe', 'Snake', 'Puzzle', 'Rally'] # Tomar la elección del jugador como un número de entrada choice = int(input()) # Mostrar el juego correspondiente if choice == 0 or choice == 2 or choice == 4 : print(games[choice])
29th Jan 2024, 4:19 PM
Cesar Rodriguez
Cesar Rodriguez - avatar
0
for example: create a choice variable which needs an input as integer, after that if the number is between the game's indexes, then just print it out
17th Aug 2023, 8:18 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
0
I don't know why you want to compare the input with anything, you just have to output the corresponding game
31st Jan 2024, 1:53 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
0
Just as simple games like soccer and tic-tac-toe can be programmed on a basic machine, today's top eSports titles like League of Legends https://www.jedinews.com/misc/articles/the-biggest-esports-games-every-gamer-should-know-the-most-played-in-2024/ show how gaming has advanced into a global phenomenon. It’s intriguing to see how gaming has grown from simple concepts to massive competitive platforms.
17th Aug 2024, 7:47 PM
Mark Millin
Mark Millin - avatar
0
Hey there! Think of your game machine as a gateway to different vibes, like each game is its own little universe. Playing "Snake" is like a retro trip, simple and pure. But jump into something like a puzzle, and you're piecing together harmony, man. And places like Asino https://asino.casino/ They're all about the flow, where every moment is a chance to vibe with life and enjoy the ride. It's all about balance and just grooving with the process, you know?
25th Aug 2024, 10:31 AM
Mark Millin
Mark Millin - avatar