how to slice a string using a loop without overlapping in python code example
Example 1: print list vertically in python with loop
# using * operator and sep = '\n'
scores = [11, 12, 13, 14, 15, 16]
print(*scores, sep = '\n')
Example 2: how to loop through string in python
for i in "Hello":
print(i)