logo-MindMajix
PostPythonPython
A
Anthony A

Posted on 23rd July 2024|13 views

0
votes

Print Variable Python

How can I print multiple variables in python?

1 answers
Answers
P
victoria mamidi

Posted on 23rd July 2024| views

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
Name
Course *
Email *
Phone Number