Question: Write scripts that accomplish the following tasks. Each script should be individually written and not combined with other questions. MAKE SURE YOUR SPACING IS CORRECT
Write scripts that accomplish the following tasks. Each script should be individually written and not combined with other questions. MAKE SURE YOUR SPACING IS CORRECT IF YOU COPY IT FROM THE COMPLIER. Uses Python.
- Write a script that will ask the user to input a number between 1 and 10. The script will return true if the number input is greater than or equal to 5 and false if it is smaller.
- Write a script that will ask the user to input their name. The script will then check if their name is "Bob". If the name entered is "Bob" then the program will print out saying "User correct", otherwise it will print out "User incorrect".
- Write a script which will ask you to enter 3 numbers (you can save them as separate variables). The script will the add these numbers together to see if they are greater than 21. If they are greater than 21, it must print out the amount it is over by. If it is less than or equal to, print out Good Job.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
