Question: solve using python3 Question-1 Write a Python program that will read a sequence of alphabets in lowercase separated by spaces in a single line according
solve using python3
Question-1 Write a Python program that will read a sequence of alphabets in lowercase separated by spaces in a single line according to the ASCII Table. Your program should print a list of missing alphabets within the range of the given first alphabet and last alphabet. However, if there are no missing alphabets in between the range, then your program should print the given alphabets as a list. Sample Input 1: a befikmnp Sample Output 1 ['c','d','g', '', '', T, '0'] Explanation 1: Here, in the given sequence the first alphabet is "a", last alphabet is "p" and 'c','d', 'g', 'h', 'I, T, 'o' are missing alphabets in between the range. So, the output will be ['c','d','g', 'h', ], T, '0']. Sample Input 2: abcdefgh Sample Output 2 ['a', 'b', 'c','d', 'e','f','g', 'h'] Explanation 2: Here, in the given sequence the first alphabet is "a", last alphabet is "h" and there are no missing alphabets in between the range. So, the output will be ['a', 'b', 'c','d', 'e', 'f, '', 'h']
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
