Question: (Python) Task: Create a program that will display the following menu to the user and read the users choice until user selects to exit the
(Python)
Task:
Create a program that will display the following menu to the user and read the users choice until user selects to exit the program. Also make sure that your program takes care about any invalid input if it is other than 0-4.
1 : Check Pangram String
2 : List of positions of even numbers
3 : Encrypt the String
4 : Intersection of lists
0 : Exit
Menu option 1 Check Pangram String
o You are to read a string from the user, check if the given string is pangram or not and display the message accordingly.
o The pangram strings are those that contain each letter of English language alphabet (a-z) at least once.
Menu option 2 List of positions of even numbers
o You are to consider a list of integer numbers.
o Find the positions of even numbers from the original list, store the positions in a new list and display it.
Menu option 3 Encrypt the String
o You are to read a string from the user. E.g. Python
o Reverse the string. i.e. nohtyP
o Generate and display a resultant string that will combine both the strings letter by letter. E.g. PnyothhtoynP
Menu option 4 Intersection of lists
o Consider the two lists of integer numbers.
o Find the numbers that are common to both the lists, store such numbers in a new list and display it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
