Python [::] What do you call this?

Asked 2 weeks ago, Updated 2 weeks ago, 2 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


© 2022 pinfo. All rights reserved.