Question
Please help Python, use example, thank you Arcade console, version 2 : Use a for loop to print Ready Player 1, Ready Player 2, Ready
Please help
Python, use example, thank you
Arcade console, version 2: Use a for loop to print "Ready Player 1", "Ready Player 2", "Ready Player ..." for every player. It is your choice how many players - if you choose to have six players, the loop should print six messages on six separate lines. (Hint: you can store the number of players you have in a variable. You can then use that variable to print the current player number as part of the message, each time the loop iterates.)
Note: The two scripts are independent of each other. You do not need to include in the Version 2 script what you did for the Version 1 script, or vice versa. For example, you do not need to count coins in Version 2; just list the "Ready Player ... " statements. Similarly, you do not need to list in Version 1 players beyond Player 1; just display the coin counts and display "Ready Player 1" once.
Example
numberOfCats = 4 catsFed = 0 print(catsFed, " cats are fed.") for i in range(numberOfCats): catsFed = catsFed + 1 print(catsFed, " cats are fed.")
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started