Write a Python function Def readFloat(userPrompt) That displays a prompt string (followed by a space), then reads a floating-point number in, and then returns that number. Here are some examples of typical usage: salary = readFloat(“Please enter your salary:”) percentageRaise = readFloat(“what percentage raise would you like?”)
Write a Python function Def readFloat(userPrompt)
That displays a prompt string (followed by a space), then reads a floating-point number in, and then returns that number.
Here are some examples of typical usage:
salary = readFloat(“Please enter your salary:”)
percentageRaise = readFloat(“what percentage raise would you like?”)
- Using the readFloat function that you wrote, write a Python
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images