Question
1. Write a program that has a loop to read in five strings and put them into a list. Write a second loop to
1. Write a program that has a loop to read in five strings and put them into a list. Write a second loop to print the strings in the reverse order. This is an exercise in indexing, so do not use the reverse() method of list. Print the index in the following format. The actual strings you read in are arbitrary. Example format when running q1.py: Enter string 1/5: the blue moon Enter string 2/5: the red guitar Enter string 3/5: go home Enter string 4/5: spill the beans Enter string 5/5: winter in Oklahoma String 5/5: winter in Oklahoma String 4/5: spill the beans String 3/5: go home String 2/5: the red guitar String 1/5: the blue moon
Step by Step Solution
3.48 Rating (155 Votes )
There are 3 Steps involved in it
Step: 1
Below is the Python 3 code to read in ten strings from the user store them in a list and then print ...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 StartedRecommended Textbook for
Smith and Roberson Business Law
Authors: Richard A. Mann, Barry S. Roberts
15th Edition
1285141903, 1285141903, 9781285141909, 978-0538473637
Students also viewed these Programming questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App