Python [::] What do you call this?

Asked 2 years ago, Updated 2 years ago, 130 views

If you use a string or array in Python,

a = '123456789'
print(a[::])
#Output: 123456789

There are times when [::] calls are used as above. What do you call this function?

python string list array tuple

2022-09-20 15:41

1 Answers

Slicing


2022-09-20 15:41

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.