0
Python assinged value print
if I assign a value to a variable and another value to another variable can I print these variable simultaneously (side by side) if yes then how
3 Answers
+ 9
a = 5
b = 'abc'
print(a, b)
# outputs
5 abc
+ 4
two more ways:
a = 'he'
b = 'llo'
print(b+a)
together = '{0}{1}'.format(a, b)
0
yes