How can I print more than One variable value in a single Print Statement?


#1

How can I print more than One variable value in a single Print Statement?

Please Reply


#2

Like so,

a = 1
b = 2
c = 3
d = [a, b, c]
print(*d)
# or
print(a, b, c)

#3

Thank you 'Zeziba' for the Suggestion
but *d is not working but no problem maybe its a mistake .


#4

It's in python 3.* not 2.* in 2 you cannot use unpacking like this, forgot about that. I program in 3.* because eventually even google will drop 2.* and move on.