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
Get step-by-step solutions from verified subject matter experts
