String slicing (4)
String ='ASTRING'
# Using indexing sequence
print(String[:3])
print(String[1:5:2])
print(String[-1:-12:-2])
print(String[::-1])
Answers
Answered by
0
Answer:
AST
SR
GITA
GNIRTSA
Explanation:
Similar questions