Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
edited tags
Link
Karl Knechtel
Post Closed as "Duplicate" by coldspeed95 python
Numeri

What is the meaning of :int"int(a[::-1])" in Python?

I cannot understand this. I have seen this in people's code. But cannot figure out what it does. This is in Python.

str(int(a[::-1]))

What is the meaning of :int(a[::-1])" in Python?

I cannot understand this. I have seen this in people's code. But cannot figure out what it does. This is in Python.

str(int(a[::-1])

What is the meaning of "int(a[::-1])" in Python?

I cannot understand this. I have seen this in people's code. But cannot figure out what it does. This is in Python.

str(int(a[::-1]))
Source Link
sofa_maniac

What is the meaning of :int(a[::-1])" in Python?

I cannot understand this. I have seen this in people's code. But cannot figure out what it does. This is in Python.

str(int(a[::-1])
lang-py