Question: using python and for and while loop with if statements Write a program that extracts a substring from the alphabet string based on the starting

 using python and for and while loop with if statements Write

a program that extracts a substring from the alphabet string based on

using python and for and while loop with if statements

Write a program that extracts a substring from the alphabet string based on the starting letter and the step. The step cannot be zero. The starting letter can be entered as lowercase or upper case. You need to validate the input as shown in the sample runs. Hint: use find method to get the index of the entered letter. Sample run 1: Enter starting, letter: th You must enter one letter Sample run 2 : Enter starting letter: \$ You must enter one letter Sample run 3 : Enter starting letter: T Enter step: Step cannot be Sample run 4 : Enter starting letter: M Enter step: 3 Resulting substring is: mpsvy Sanmple run 5: Enter starting letter: t Enter step: -3 Resulting substring is: tqnkheb

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!