1. Write a program that has a loop to read in ten 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 are arbitrary. Example format when running q1.py: er string 0/10: the blue moon
1. Write a program that has a loop to read in ten 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 are arbitrary. Example format when running q1.py: er string 0/10: the blue moon
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
I need the answer

Transcribed Image Text:1. **Task Overview**: Write a program that collects ten strings from user input and stores them in a list. Create a secondary loop to display these strings in reverse order. This should be done without using the `reverse()` method; instead, practice indexing to achieve this. Print the strings with their respective indices as shown in the example output.
2. **Example Output**:
- **Input Strings**:
- Enter string 0/10: the blue moon
- Enter string 1/10: the red guitar
- Enter string 2/10: go home
- Enter string 3/10: spill the beans
- Enter string 4/10: winter in Oklahoma
- Enter string 5/10: Baltimore
- Enter string 6/10: very, very strange
- Enter string 7/10: Jerimiah
- Enter string 8/10: I believe it was July.
- Enter string 9/10: We opened our doors.
- **Output Strings (Reversed Order)**:
- String 9/10: We opened our doors.
- String 8/10: I believe it was July.
- String 7/10: Jerimiah
- String 6/10: very, very strange
- String 5/10: Baltimore
- String 4/10: winter in Oklahoma
- String 3/10: spill the beans
- String 2/10: go home
- String 1/10: the red guitar
- String 0/10: the blue moon
This exercise helps in understanding list indexing and manipulation in programmatic tasks, providing a foundational skill useful in many coding scenarios.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education