Python in Education



Download 3,73 Mb.
Pdf ko'rish
bet21/37
Sana01.01.2022
Hajmi3,73 Mb.
#303345
1   ...   17   18   19   20   21   22   23   24   ...   37
Bog'liq
Python in Education (en)

Obvious Simplicity

The simple core concepts and knowledge required to write Python

code will get you quite far. That they are easy to learn, use and

remember is another characteristic in Python’s favor. Furthermore,

Python is an obvious programming language—it tries to do the

expected thing and will complain if you, the programmer, attempt to

do something clearly wrong. It’s also obvious in a second sense—it

names various concepts using commonly understood English

words.

Consider the following two examples.



In some languages, if you want to create a list of things, you have to

use variously named constructs such as arrays, arraylists, vectors

and collections. In Python, you use something called a list. Here’s

my to-do list from earlier written in Python:

todo_list = ['Shopping', 'Fix broken gutter', 'Mow the lawn']

This code assigns a list of values (strings of characters containing

words that describe tasks in my to-do list) to an object named

todo_list

 (which I can reuse later to refer to this specific list of

items).


In some languages, if you want to create a data dictionary that

allows you to store and look up named values (a basic key/value




Download 3,73 Mb.

Do'stlaringiz bilan baham:
1   ...   17   18   19   20   21   22   23   24   ...   37




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