Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
how to print two variable values in same line separated by comma
2 Antworten
0
There are a few ways to accomplish this. Here's one:
print("{0}, {1}".format(var1, var2))
0
print("{}, {}".format(a, b))
or
print(a, ", ", b)