Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Analysis Synthesis And Design Of Chemical Processes

Authors: Richard Turton, Joseph Shaeiwitz, Debangsu Bhattacharyya, Wallace Whiting

5th Edition

0134177401, 978-0134177403

More Books

Students also viewed these Chemical Engineering questions

Question

The ratio of a diseases prevalence to its incidence is constant.

Answered: 1 week ago

Question

3. How can policymakers influence a nations saving rate?

Answered: 1 week ago

Question

4. What does growth in total factor productivity measure?

Answered: 1 week ago