Business
Business, 24.02.2021 23:00, mahhvelousg97

IF YOU CAN DO THIS CORRECTLY I WILL MARK Now, it’s time for you to begin coding your text-based adventure game!

Starting at the top, convert each line of your pseudocode from your Coding Log into a line of Python code.
Make sure to use the correct syntax and indentation. If you decide to challenge yourself and use functions, be sure to include the correct function calls.
Your code should include at least two loops—one while loop and one for loop.
Run and test your code in parts as you go. Follow the iterative process of coding and revising. It may be helpful to apply this process to each part of your game (Intro, Part 1, Part 2, and Part 3).
Make the following improvements to your game:
If the user types in a slightly different word than you expect, you don’t want your game to crash! Use lists to gain a better understanding of the input that users give. Refer back to Unit 1 for more information on lists. Here is an example:
if choice in [“set a trap”, “set trap”, “trap”, “make a trap”, “make trap”]
Your list won’t work if the user capitalizes any letter because the Interpreter won’t recognize a match between the same lowercase and uppercase letter. To convert the user input to all lowercase, use the lower function:
if choice. lower() in [“set a trap”, “set trap”, “trap”, “make a trap”, “make trap”]

Go through and make sure all of your inputs are converted to lowercase.
Share the link to your Python code with your teacher in REPL. it by clicking on the share button and copying the link. Also, submit your pseudocode.

answer
Answers: 3

Other questions on the subject: Business

image
Business, 22.06.2019 14:30, rakanmadi87
If a product goes up in price, and the demand for it drops, that product's demand is a. elastic b. inelastic c. stable d. fixed select the best answer from the choices provided
Answers: 1
image
Business, 22.06.2019 18:00, 20jhuffman
Bond j has a coupon rate of 6 percent and bond k has a coupon rate of 12 percent. both bonds have 14 years to maturity, make semiannual payments, and have a ytm of 9 percent. a. if interest rates suddenly rise by 2 percent, what is the percentage price change of these bonds?
Answers: 2
image
Business, 22.06.2019 21:30, hiji0206
Providing a great shopping experience to customers is one of the important objectives of purple fashions inc., a clothing store. to achieve this objective, the company has a team of committed customer service professionals whose job is to ensure that customers get exactly what they want. this scenario illustrates that purple fashions is trying to achieve
Answers: 1
image
Business, 22.06.2019 23:00, keagank
You cannot make copies of media, even as a personal backup, without violating copyright. true
Answers: 3
Do you know the correct answer?
IF YOU CAN DO THIS CORRECTLY I WILL MARK Now, it’s time for you to begin coding your text-based adv...

Questions in other subjects:

Konu
Mathematics, 08.11.2020 23:50
Konu
History, 08.11.2020 23:50