Write a note on print() statement.

 

Answer:

  • Python uses the print() function to output data to the screen.
  • The function print() evaluates the expression before displaying it on the screen. 
  • The print() outputs a complete line and then moves to the next line for subsequent output. 
  • The syntax for print() is: 

print(value)

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.