Question
From the Python Crash Course Book. Complete the following then , copy your code or screen shot it and paste it in below. In Spyder,
From the Python Crash Course Book. Complete the following then, copy your code or screen shot it and paste it in below.
In Spyder, use an if-else to choose a color for a video game alien:
If the aliens color is green, print a statement that the player just earned 5 points for shooting the alien.
If the aliens color isnt green, print a statement that the player just earned 10 points.
In Spyder, type the following input function:
UserInput = input("Please select an option: 1, 2, or 3 ")
Then write the selection statement needed to accomplish the following:
- If UserInput equals 1 then print You will now be directed to the product page
- If UserInput equals 2 then print You will now be directed to the customer page
- If UserInput equals 3 then print You will now be directed to the registration page
- If any other value is entered, print Please select 1, 2, or 3.
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