- 1
How to make a loop in alphabet like this
name=aizen mot Output: a ai aiz aize aizen aizen m aizen mo aizen mot https://code.sololearn.com/cRlxT5X7FA9I/?ref=app
6 Antworten
+ 1
It is very easy with slicing:
for i in range(1, len(name)+1):
print(name[:i])
0
Show us your attempt?
0
It's not done yet bcuz i dont know what to do
0
print() is a function
Example of your question at bottom
https://code.sololearn.com/c3KBj6fpFg5c/?ref=app
0
Nice! Thank you guys!