PRINT function in python

print() function is a function that allows us to output to the screen

The print() function has three different uses;

Single quotes (‘ ‘)

Double quotes (” “)
Three quotes (“”” “””)———–for multi line

we can use anyone type quote, cannot use …


This content originally appeared on DEV Community and was authored by jothilingam

print() function is a function that allows us to output to the screen

The print() function has three different uses;

  1. Single quotes (' ')
  2. Double quotes (" ")
  3. Three quotes (“”” “””)-----------for multi line

we can use anyone type quote, cannot use different quote in same line

print()---------------------------#create empty line
print("jothilingam")--------------#string should print with""
print(5)------------------------#number can print without ""
print("jo""jo")--------------print without space
print("jo"+"jo")--------------print without space
print("jo","jo")--------------print with space

print with seperator


This content originally appeared on DEV Community and was authored by jothilingam


Print Share Comment Cite Upload Translate Updates
APA

jothilingam | Sciencx (2024-07-13T06:48:32+00:00) PRINT function in python. Retrieved from https://www.scien.cx/2024/07/13/print-function-in-python/

MLA
" » PRINT function in python." jothilingam | Sciencx - Saturday July 13, 2024, https://www.scien.cx/2024/07/13/print-function-in-python/
HARVARD
jothilingam | Sciencx Saturday July 13, 2024 » PRINT function in python., viewed ,<https://www.scien.cx/2024/07/13/print-function-in-python/>
VANCOUVER
jothilingam | Sciencx - » PRINT function in python. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/13/print-function-in-python/
CHICAGO
" » PRINT function in python." jothilingam | Sciencx - Accessed . https://www.scien.cx/2024/07/13/print-function-in-python/
IEEE
" » PRINT function in python." jothilingam | Sciencx [Online]. Available: https://www.scien.cx/2024/07/13/print-function-in-python/. [Accessed: ]
rf:citation
» PRINT function in python | jothilingam | Sciencx | https://www.scien.cx/2024/07/13/print-function-in-python/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.