How can I print all the outputs of a "for" on the same line? Help me | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

How can I print all the outputs of a "for" on the same line? Help me

https://code.sololearn.com/c8uZBxdwTQN5/?ref=app

18th Mar 2020, 11:34 PM
Hugo Raúl López Enríquez
2 Antworten
+ 4
lista = [2, 3, 4, 5] for i in lista: suma = i + 3 print(f"{suma} ",end="")
18th Mar 2020, 11:38 PM
Cmurio
Cmurio - avatar
+ 1
Jesus Eduardo Canul Koyoc graciass, thank you so much
18th Mar 2020, 11:41 PM
Hugo Raúl López Enríquez