DEV Community

Shoxjaxon2008
Shoxjaxon2008

Posted on

First lesson

payton bu - dasturlash tili bo'lib . U 1991-yilda guid van Rossum tomonidan yaratilgan.U eng kerakli dasturlash tillaridan biri . U eng onson va qulay tillardan biri. 'print' bu chop etish . masalan print ("shoxjaxon") shoxjaxon so'zini chop et . bu kod orqali masalalarni , turli shakllarni va shunga o'xshash narsalarni yaratsa bo'ladi. veriables - ya'ni o'zgaruvchi . masalan
a=15
b=10
c=a+b
print(c)

print("natija:",c)
bu - natijani chiqar
yan biz o'tgan darsda int va str tiplarini o'tgandik .

a=input('Birinchi sonni kiriting: ')
b=input('Ikkinchi sonni kiriting: ')
c=int(a)+int(b)
print('Natija:', c)

a=input('Ismizni kiriting: ')
b=input('yoshizni kiriting: ')
c=str(a)+str(b)
print('Natija:c')

int tipi butun sonlar uchun
str tipi esa matnlar uchun

Top comments (3)

Collapse
 
szabgab profile image
Gabor Szabo • Edited

Welcome to DEV!
As DEV does not yet have a special way to mark language of the post it would be a good idea to add a regular tag indicating the language. As it is done by the Spanish posts.

Collapse
 
sarvar12345 profile image
Sarvar12345

zo'r chiqibdi []~( ̄▽ ̄)~*

Collapse
 
shoxjaxon2008 profile image
Shoxjaxon2008

rahmat !