Print function in python | print ( ) | Python Episode 05 | Sinhala Python | SL Android

Channel:
Subscribers:
18,100
Published on ● Video Link: https://www.youtube.com/watch?v=k18CYJPWm3E



Duration: 2:29
643 views
0


Python print() Function

Example

Print a message onto the screen:

 print("Hello World")

Definition and Usage

The print() function prints the specified message to the screen, or other standard output device.

The message can be a string, or any other object, the object will be converted into a string before written to the screen.

Syntax

print(object(s), separator=separator, end=end, file=file, flush=flush)

Parameter Values

ParameterDescriptionobject(s)Any object, and as many as you like. Will be converted to string before printedsep='separator'Optional. Specify how to separate the objects, if there is more than one. Default is ' 'end='end'Optional. Specify what to print at the end. Default is '\n' (line feed)fileOptional. An object with a write method. Default is sys.stdoutflushOptional. A Boolean, specifying if the output is flushed (True) or buffered (False). Default is False

More Examples

Example

Print more than one object:

print("Hello", "how are you?"

Example

Print a tuple:

x = ("apple", "banana", "cherry")
print(x)

Example

Print two messages, and specify the separator:

print("Hello", "how are you?", sep="---")


මෙතෙක් පලවූ සියලු වීඩියෝ මෙම post එක පහල දාලා තියෙනවා මුල ඉදලාම බලලා ඉගෙනගන්න.

Chanel එක subscribe කරලා සහයෝගය ලබාදෙන්න,අනිත් අයටත් බලන්න share කරන්න.

Episode 01 - python හැඳින්වීම
https://youtu.be/xwxauFsCYmk

Episode 02 - විචල්‍යන් (variables )
https://youtu.be/0OpPQ51v0hs

Episode 03 - විචල්‍ය නාමකරණය
https://youtu.be/5ESY5G6-NAU

Episode 04 - විචල්‍ය පැවරුම්
https://youtu.be/AZqpxVAjfvU

Episode 05 - print function
https://youtu.be/k18CYJPWm3E

Episode 06 - python Data types
https://youtu.be/9AjunP0EYy0

Episode 07 -input function in python
https://youtu.be/0xrIK1kbfok

Episode 08 - Python Comments
https://youtu.be/hh2eiYwON4o

Episode 09 -len Function in Python
https://youtu.be/vSkwUTjh97Y

Episode 10- sep & end in python
https://youtu.be/VUfBgzGYNkw

Episode 11 -index operator in python
https://youtu.be/7UyVUimLR04

Episode 12 -Slicing operator in python
https://youtu.be/a4Ss_7HJpyU

-~-~~-~~~-~~-~-
Please watch: "How to code a simple calculator ( Project 01) |C Programming සිංහල Tutorial Episode 25 |SL Android"
https://www.youtube.com/watch?v=A6nvSvDcsUA
-~-~~-~~~-~~-~-




Other Videos By SL Android


2020-04-04Dialog New OFFER | Get Free data , D2D SMS 250 & D2D min 250 | SL Android
2020-04-02How To Get Mobie Reload With 10% Discount ..Any Network Sinhala.| Using Pay master | SL Android
2020-04-01Get free Data | Get 1 GB Data For Free Using Mobitel Data mart App.
2020-03-19Slicing Operator in python programming | සිංහල පයිතන් Episode 12 | SL Android
2020-03-16Index operator In Python programming | සිංහල පයිතන් Episode 11 | SL Android
2020-03-14Separator & End in python(පයිතන් වල භාවිතාවන end සහ sep)| සිංහල පයිතන් Episode 10 | SL Android
2020-03-14Len Function in Python | Sinhala Python Episode 09 | SL Android
2020-03-12Python Comments |Sinhala python Episode 08 | SL Android
2020-03-08Input Function in Python programming | Python Episode 07 | Sinhala Python | SL Android
2020-03-07Data types | දත්ත වර්ග | python Data types |පයිතන් දත්ත වර්ග
2020-03-04Print function in python | print ( ) | Python Episode 05 | Sinhala Python | SL Android
2020-03-03Value replacement for a variable | Python Episode 04 | SL Android
2020-02-29Variable naming rules | Python Sinhala Tutorial Episode 03 | SL Android
2020-02-27Python Variables | Python Sinhala Tutorial Episode 02 | SL Android
2020-02-18Python Sinhala Tutorial | Introduction to Python | Episode 01 | SL Android #python
2018-12-24How to recover deleted photos/videos/mp3 any other things | SL Android



Tags:
python sinhala tutorial
sinhala
code
python3.3
lessons
print
variable
sinhalen
a/l
programing
AL
operators
string
tutorial
පයිතන්
ICT
python
chanux
sri lanka
Python in Sinhala #1
al
ol
school