Discussions Events Study Material Jobs
Write a program to reverse a list using a loop using Python - Uniwaly

Explore Diverse Conversations

Write a program to reverse a list using a loop using Python

Posted By: UmairMehmood Published On: 13 June 2025 At: 11:55 AM

Reverse a List Without Using reverse()


# Original list
original_list = [1, 2, 3, 4, 5]

# Create an empty list for the reversed version
reversed_list = []

# Loop through each item in the original list
for item in original_list:
    # Add each item to the front of the new list
    reversed_list = [item] + reversed_list

# Print the reversed list
print("Reversed list:", reversed_list)


Tags:

python reverse list python python loop
Login to like

Posted By:

Author Profile

UmairMehmood

11 days ago

Join the conversation!

Login to Comment

Discover More Articles

Communication & Coordination Officer - The Urban Unit Jobs 2025

Voting Eligibility Checker Using Python

Input the user name and print a greeting message using Python

Discuss the different B.Ed programs currently being offered by AIOU and how are they contributing towards the vision of quality teacher education across the country ?

Input marks and print grade using conditions in Python

Global Scholarship Opportunities for 2025 – Fund Your Education Abroad

Personality development occurs in life but later years provides an opportunity for the modification of previously development trends. Discuss.

Syngenta Pakistan Apprenticeship Program 2025

Visiting / Teaching Faculty Jobs in University of Veterinary and Animal Sciences Lahore 2025

Jobs in Excise and Taxation