subject
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.

ansver
Answers: 3

Another question on Business

question
Business, 22.06.2019 14:30
Taking commercial paper means the holder acts honestly
Answers: 1
question
Business, 22.06.2019 16:40
An electronics store is running a promotion where for every video game purchased, the customer receives a coupon upon checkout to purchase a second game at a 50% discount. the coupons expire in one year. the store normally recognized a gross profit margin of 40% of the selling price on video games. how would the store account for a purchase using the discount coupon?
Answers: 3
question
Business, 22.06.2019 20:00
Experienced problem solvers always consider both the value and units of their answer to a problem. why?
Answers: 3
question
Business, 22.06.2019 20:10
Mikkelson corporation's stock had a required return of 12.50% last year, when the risk-free rate was 3% and the market risk premium was 4.75%. then an increase in investor risk aversion caused the market risk premium to rise by 2%. the risk-free rate and the firm's beta remain unchanged. what is the company's new required rate of return? (hint: first calculate the beta, then find the required return.) do not round your intermediate calculations.
Answers: 2
You know the right answer?
IF YOU CAN DO THIS CORRECTLY I WILL MARK Now, it’s time for you to begin coding your text-based adv...
Questions
question
Chemistry, 31.07.2019 23:50
question
Mathematics, 31.07.2019 23:50
Questions on the website: 13722360