Write a function that prompts the user for a message


Problem

I. Write a function that prompts the user for a message (like "what is your name?"). The function should collect the user's answer and return it back to the call (in the main program above the function). Print out the returned string from the function. Snap shot the code and output.

II. Write a function that keeps prompting for a filename until a valid file is entered by the user (print out "file found, thanks") or until five attempts have failed (print out "you did not enter a valid file name"). Call the function from the main part of your program. The function in this case does not return any value. Show the entire program (not just the function). Snap shot the code and output.

Request for Solution File

Ask an Expert for Answer!!
Python Programming: Write a function that prompts the user for a message
Reference No:- TGS03268333

Expected delivery within 24 Hours