Introduction to: Programming



Download 3,98 Mb.
bet2/4
Sana14.09.2021
Hajmi3,98 Mb.
#174437
1   2   3   4
Bog'liq
Introduction to Programm

Statement

  • A statement does NOT return a value, but does something.
    • Every statement is one or more lines of code.
    • Every expression is always inside a statement.

Assignment statements

  • Assignment statements look like variable_name = some_expressionsome_expression is ALWAYS some kind of expression.
  • After this statement is run, variable_name now stores the value of some_expression.
  • For example, a_variable=4+6 assigns the value 10 to a_variable.
  • a_variable + 5 now yields 15, and print(a_variable) will print out ?.
  • A common type of assignment statement looks like var = var + 1.
  • This takes the current value of var, adds one to it, then assigns that value back to the variable var.
  • For example, if var was 5 before this line of code runs, then var will be ?

Download 3,98 Mb.

Do'stlaringiz bilan baham:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish