Question: Write a program that creates a dictionary whose key/value pairs are 'a'/1, 'b'/2, ..., 'z'/26. Then prompt for and read in a letter and displays

Write a program that creates a dictionary whose key/value pairs are 'a'/1, 'b'/2, ..., 'z'/26. Then prompt for and read in a letter and displays its corresponding number value obtained from your dictionary.

Write a program that executes a loop that prompts the user for a number, squares the entered number, and displays the square. Your loop should continue until the user enters 0.

Programming language: Python 3

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!