Question: Innovation in software development/ python language Q1.Write a Python program that prompts for two numbers. Add them together and print the result. Catch the ValueError

Innovation in software development/ python language

Q1.Write a Python program that prompts for two numbers. Add them together and print the result. Catch the ValueError if either input value is not a number, and print a friendly error message.

Q2. Write a python program to accept a string from the user then count the number of times each character appears in the given string and store it in the dictionary, using for loop display the output from the dictionary in order to display the below output:

Innovation in software development/ python language Q1.Write a Python program that prompts

GS C:WINDOWS\SYSTEM32\cmd.exe Enter string: Good Morning G : 1 : 3 0033 (program exited with code: 0) Press any key to continue

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!