Question: Coding by python please do your best including the comments s.Write the following function and provide a program to test it (main and function in
s.Write the following function and provide a program to test it (main and function in one .py) 5 pts def readFloat(prompt) that displays the prompt string, followed by a space, reads a floating-point number in, and returns it. Below is how you're going to call the function: salary = readFloat("Please enter your salary:") percentageRaise-readFloat("What percentage raise would you like?") print("The salary is", salary) print(The raise percentage is", percentageRaise) a) Your code with comments b)A screenshot of the execution
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
