Bryce H.

asked • 02/15/23

How to use escape keys?

  1. Using escape characters, print out the phrase “Welcome to O’Neil’s Boat Rentals!”
  2. Initialize one string variable to the following sentence:

“Hello there! How are you? I'm doing fine."

Using the print() function and escape characters, make the output look exactly as below: (Be sure there’s a single quote in the word I’m.

Hello there!
How are you?
I'm doing fine.
  1. Initialize a string variable to “hello python” and print it out in all uppercase using a string function.
  2. Write a small program using a ‘while’ loop (while True).
  3. Prompt the user to enter their age.
  4. Using a string function, check if the input is a decimal value, if true then break from the loop.
  5. Continue prompting the user until a whole number (isdecimal) has been entered.
  6. Using a string function, print your first and last name with the * symbol on both sides of your name with a max of 25 characters.





1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.