Post

PythonPython

A
Anthony A

Posted on 20th May 2024|13 views

0
votes

Print Variable Python

How can I print multiple variables in python?

Answers
P
victoria mamidi

Posted on 20th May 2024

We can print multiple variables in Python by using print(*objects) as multiple arguments to print each with a space separating them here is the example:

 

score = 10

name = "Athish"

print("score of", name, "is", score, "out of 15")

Output:

Score of Athish is 10 out of 15

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos