0

Can anyone tell me the python program for writing a name for example 'adore' in the way

a ad ado ador adore

5th Apr 2020, 8:55 AM
Ambika Insa
Ambika Insa - avatar
6 Answers
+ 4
[print("adore" [0:i]) for i in range(len("adore"))] maybe not completely correct
5th Apr 2020, 9:14 AM
Oma Falk
Oma Falk - avatar
+ 2
Thanks oma.. The correction needed was [0:i+1]
5th Apr 2020, 9:29 AM
Ambika Insa
Ambika Insa - avatar
+ 1
Oma Falk +1 for letting her think
5th Apr 2020, 9:23 AM
Daljeet Singh
Daljeet Singh - avatar
+ 1
yep
5th Apr 2020, 9:40 AM
Oma Falk
Oma Falk - avatar
+ 1
[print("adore" [0:i]) for i in range(len("adore"))]
5th Apr 2020, 10:07 AM
Ankit Singh
Ankit Singh - avatar
+ 1
you can take help of this code!!!!! https://code.sololearn.com/ccExacgOIMbl/?ref=app
5th Apr 2020, 11:23 AM
ANJALI SAHU