Question: Unix/Linux----- Python Scripting Questions. Solutions only. Thank you! 1.Write and run a Python program that prompts the user for a string input and display the

Unix/Linux-----

Python Scripting Questions. Solutions only. Thank you!

1.Write and run a Python program that prompts the user for a string input and display the string the user entered.

2. Create a list that holds three-letter abbreviations for the first six months of the year and display the list.

3. Use a for control structure to iterate through the elements of the list previous exercise-2 and display each abbreviated name followed by a period. (Hint: the period is a string.)

4. Put the elements of the list from Question 3 in alphabetical order.

5. Write a function that takes an integer val as an argument and asks user to enter a guess number.

-If the number is greater than val, the function displays Too high and prompt again for a number

-If the number is less than val, the function displays Too low and prompt again for a number

-If the number equals val, the function displays Got it! and ends.

-Call the function repeatedly until the user enters the right number.

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!