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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started