Question: please type the code for the whole python program, letters are steps not individual questions. thank you!!! 5. Write a program stored in the file

please type the code for the whole python program, letters are steps not individual questions. thank you!!!  please type the code for the whole python program, letters are
steps not individual questions. thank you!!! 5. Write a program stored in

5. Write a program stored in the file L3q5.py that: A) Gets two inputs from the user. Stores the inputs in variables called string_one and string_two. Verifies whether the length is according to the constraints and prints the verification result. Certain constraints are imposed on the input pattern. The constraints are : For the first input : - The input starts with a letter. - Every letter is followed by exactly one number. - A letter cannot be next to another letter. - A number cannot be next to another number. - The length should be 5. - The input is made of only numbers and letters. This means that the input should not contain any symbols or special characters. For the second input: - The input starts with a number. - Every number is followed by exactly one letter. - A number cannot be next to another number. - A letter cannot be next to another letter. - The length should be 7. - The input is made of only numbers and letters. This means the input should not contain any symbols or special characters. B) Extracts only the numbers from the variable string_one and stores it in a variable called numbers_one and extracts only the letters from the variable string_one and stores it in a variable called letters_one. Prints numbers_one and letters_one. C) Extracts only the numbers from the variable string_ two and stores it in a variable called numbers_two, and extracts only the letters from the variable string_two and stores it in a variable called letters_two. Prints numbers_two and letters_two. D) Calculates the quotient and remainder when numbers_two is divided by numbers_one and stores it in a variable called quotient 1 and remainder 1 respectively. Print quotient 1 and remainder 1 . E) Concatenates letters_two with letters_one and stores it in a variable called result1. Print result1. Sample Output: 1. **************section A 2. Enter the first input: d4o2g 3. Enter the second input: 2e0w2e1 4. Is the length of string_one equal to 5 ? : True 5. Is the length of string two equal to 7? : True 7. letters_one is : dog 8. numbers_one is : 42 10. letters_two is : ewe 11. numbers_two is : 2021 12. Section D 3. The quotient is: 48 , and the remainder is: 5

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!