Kanishkha
Home
Tips & tricks
FUN FACTS
Blogs
Explore
Python
Around Me
Kanishkha
Home
Tips & tricks
FUN FACTS
Blogs
Explore
Python
Around Me
More
  • Home
  • Tips & tricks
  • FUN FACTS
  • Blogs
  • Explore
  • Python
  • Around Me

  • Home
  • Tips & tricks
  • FUN FACTS
  • Blogs
  • Explore
  • Python
  • Around Me

Print Function (PYTHON)

Print Function

The basic way to do output is the print statement. Print statement displays the output in the new line. The output is printed on the screen. The simplest directive in Python is the "print" directive.


Printing Text & Numbers

In python, string values are always enclosed by single quotation marks or double quotation marks and for numeric values quotation marks are not used. 


Examples : 


1) print ('Hello,Python!')

    Output: Hello,Python!

    To print more than one item on a single line, comma (,) may be used.


2) print ("Hello, This is my first Python program")

    Output: Hello,This is my first Python program

   

3) Program to print 100 as numeric value

    print (100)

    Output : 100


4) Program to display the product using variables

    number1=100

    number2=500

    product=number1*number2

    print (product)

    Output: 50000

Copyright © 2025 Kanishkha - All Rights Reserved.

Powered by

  • Tips & tricks
  • FUN FACTS
  • Around Me

Checkout the latest post !

learn More

This website uses cookies.

We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.

Accept