# The students arrival records | |
students_arrived = ["John", "David", "Ashley"] | |
# The typical ways | |
for i in range(1, len(students_arrived)+1): | |
print(students_arrived[-i]) | |
for student in students_arrived[::-1]: | |
print(student) | |
# Use reversed() | |
for student in reversed(students_arrived): | |
print(student) |