0

Can anybody help please?

#how to add "is my favourite" to 1st word words = ["Ducati" , "BMW" , "Yamaha"] for word in words : print(word + " bike")

1st Aug 2021, 1:46 PM
Amrit Sahni
Amrit Sahni - avatar
3 ответов
+ 6
words = ["Ducati" , "BMW" , "Yamaha"] for word in words : print(words[0]+" is my favourite "+ "bike") break
1st Aug 2021, 1:51 PM
Simba
Simba - avatar
+ 4
not_a_programmer u can also use Words.insert (0,"is my favorite " ) for example : https://code.sololearn.com/c9C645vedPXB/?ref=app
1st Aug 2021, 1:57 PM
Pariket Thakur
Pariket Thakur - avatar
+ 1
Thank you It worked
1st Aug 2021, 1:55 PM
Amrit Sahni
Amrit Sahni - avatar