Bryce H.

asked • 02/17/23

how to code this in python?

  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.


Juliet C.

tutor
There are many questions listed. Which one in particular are you asking about? For string function documentation, see this page: https://docs.python.org/3/library/stdtypes.html#string-methods
Report

02/18/23

1 Expert Answer

By:

Jonathan S. answered • 02/20/23

Tutor
5 (3)

Experienced Math Educator and Former Google Software Engineer

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.