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.

  1. 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.
  2. 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".
  3. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!