Doubt in Python, Can we print the reverse element of string?
Created 1 year ago
54
Views
3
Comments
Example:
g="Hello, World!"
print(g[-2:-5])
Thought of achieving output as "lro"
Example:
g="Hello, World!"
print(g[-2:-5])
Thought of achieving output as "lro"