str_1= input("Enter:")
for i in range(len(str_1)+1):
print(str_1[:i])
Asked
Active
Viewed 44 times
0

SuperStormer
- 4,997
- 5
- 25
- 35

David
- 1
1 Answers
0
It means get all the characters starting from the i'th position for every iteration

Mohammed Shahed
- 840
- 2
- 15