to reverse a list

Sai_kiran_rachakonda · October 30, 2022
num = [23, 34, 'hello', 32, 56]
print(num[ : : -1])
Output

Comments

Please sign up or log in to contribute to the discussion.