Question: Please answer both parts. I am posting this again because it was not answered completely the first time. Let me know if there are any

 Please answer both parts. I am posting this again because it

Please answer both parts. I am posting this again because it was not answered completely the first time. Let me know if there are any questions.

c. Write a program that prompts the user to enter a string message of their choosing. The program should read this string and then output the source code for a program that will print the user's message when it is executed. So, if the user entered "Eat at Joe's" then your program would print out the source code for a program that prints out "Eat at Joe's". d. Write a program that opens and reads its own source code file and prints out the total number of lines. So, if your program's source code was in a file named prog4.py then it would open and read prog4.py and count the total number of lines which it then prints as output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!