Lab 9 Remember: You will need to include any file referenced by your program (other python files, sound or graphic files

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Lab 9 Remember: You will need to include any file referenced by your program (other python files, sound or graphic files

Post by answerhappygod »

Lab 9 Remember You Will Need To Include Any File Referenced By Your Program Other Python Files Sound Or Graphic Files 1
Lab 9 Remember You Will Need To Include Any File Referenced By Your Program Other Python Files Sound Or Graphic Files 1 (51.86 KiB) Viewed 15 times
Lab 9 Remember: You will need to include any file referenced by your program (other python files, sound or graphic files, etc. INSIDE the same folder with your programs. 1. Given the list fruit_list, use IDLE's editor to write a script that iterates through the list and prints each item on a separate line and save it as fruit.py: fruit_list=["apple", "banana", "cherry", "gooseberry", "kumquat", "orange", "pineapple"] 2. Starting with the defined fruit_list in the following code block, use IDLE's editor to write a program named updateFruit.py and update the script to perform the following tasks: • If the fruit is not in fruit_list, display an appropriate message to the user and prompt them to try again. • The script should repeat itself until the user enters a stop word at the prompt. fruit_list = ["apple", "banana", "cherry", "gooseberry", "kumquat", "orange", "pineapple"] 3. Using IDLE's editor, write a Python program named separate.py that asks the user for a string and displays the characters of the string to the user, with each character on a new line. For example, if the input is Hello, the output should be: H • Prompt the user to enter the name of a fruit. • If the fruit is in fruit_list, display an appropriate message to tell the user its index value in the list. 0110
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply