Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
How can I print all the outputs of a "for" on the same line? Help me
2 Antworten
+ 4
lista = [2, 3, 4, 5]
for i in lista:
suma = i + 3
print(f"{suma} ",end="")
+ 1
Jesus Eduardo Canul Koyoc graciass, thank you so much