Back

Doubt in Python, Can we print the reverse element of string?

Created 1 year ago
54 Views
3 Comments
AkshayaOobnw
@AkshayaOobnw
AkshayaOobnw
@AkshayaOobnwProfile is locked. Login

Example:

g="Hello, World!"
print(g[-2:-5])

Thought of achieving output as "lro"

Comments (3)
Please login to comment.