DEV Community

saidaim0001
saidaim0001

Posted on

Print()funksiyasi haqida

Assalomu alaykum xurmatli dasturchi bugun siz bilan python dasturlash tilida print()- funksiyasikorib chiqamiz

#print()`` bu Pythondagi mahsus funksiya bo'lib, ifodalarini ekranga (konsolga) chiqarish vazifasi

misol uchun

...

print("Hello world")
print("assalomu alaikum")
print("salom dunto")
...

xozirgi yozgan kodimizni natijazi

...

hello world
assalomu alaikum
salom dunyo
...

print(hayer tong)

natija syntaxerror: invalid syntax

bu safar esa hayrli tong yozuvni orniga, syntax error(sinteksda xatolik) chiqdi.xatolik qayerda

avval aytkanimizdek, print()

Top comments (1)

Collapse
 
saidaim0001 profile image
saidaim0001

PYTHON_