Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
256 B
2
Indexable
Never
def display_lists(list1, list2):
    zipped_lists = zip(list1, list2[::-1])
    for item1, item2 in zipped_lists:
        print(f"{item1} {item2}")

list1 = ["apple", "banana", "cherry"]
list2 = ["red", "yellow", "green"]
display_lists(list1, list2)
Leave a Comment