Learning Python: The Ultimate Guide for Beginners to Coding with Python with Useful Tools



Download 2,02 Mb.
Pdf ko'rish
bet19/126
Sana01.01.2022
Hajmi2,02 Mb.
#285662
1   ...   15   16   17   18   19   20   21   22   ...   126
Bog'liq
Learning Python The Ultimate Guide for Beginners to Coding with


particular type of error it is in line 3 . In a situation like this, it will signify a
name  error.  Additionally,  it  will  reports  that  our  variable  hasn’t  been
properly  defined.  Whenever  you  see  a  name  error,  it  means  there  is  a
spelling  error,  or  we  didn’t  set  a  value  to  the  variable.  However,  in  this
example,  it  was  a  wrong  spelling  where  we  didn’t  include  the  letter  “e”
from our variable name.
Note  that  the  interpreter  does  not  check  the  code  for  spelling;  rather,  it
ensures the variable names are consistent when used. For instance, if we use
the variable “outcom” in our previous program, it will print out the result
successfully. Check the code below.
outcom= “Hello, Welcome to Python Programming!”
print(outcome)
outcom = “Hello, Welcome to Learning Python!”
print(outcome)


The program output will be:
Hello, Welcome to Python Programming!
Hello, Welcome to Learning Python!
You must understand that programming languages are strict; however, they
disregard  bad  and  good  spellings.  Because  of  this,  you  don’t  need  to
contemplate  about  grammatical  and  spelling  procedures  when  creating  a
variable name.

Download 2,02 Mb.

Do'stlaringiz bilan baham:
1   ...   15   16   17   18   19   20   21   22   ...   126




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