Question: Write a single Python program for solving following tasks: 1. Declare a variable called String_4 and ask the user to assign a value to it.

 Write a single Python program for solving following tasks: 1. Declare

Write a single Python program for solving following tasks: 1. Declare a variable called String_4 and ask the user to assign a value to it. Convert String_4 to lower case letters. Print the original String_4 value, and the updated one. ( example: THIS IS A String- this is a string ). [15 pts) 2. Ask the user to enter a number. Check if the number is odd and print the result (Example: 7 is odd). If the number is not odd, do not print anything. Continue asking until he/she enters 101. (20 pts) 3. Prompt the user to enter a string. Print the last 4 characters. (example: window - ndow). [10 pts] 4. Prompt the student to enter their 5 digit ID. Find the sum of the odd numbers in their ID. (15 pts) SUBMIT ONE PYTHON FILE WITH THE SOLUTION FOR QUESTIONS ABOVE. The python filename should be your student id: example 123456.py

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 Chemical Engineering Questions!