In this section we discuss that point many beginner python programmer mistake. Their is lot of the word that reserved in python. That types of word cannot use any programmer.
What happen if you use that python reserved word. If you do this than your program is confused. What do or what not do and gives error and faces you error.
You always make program neat and clean. If you want to write a program at first research the python reserved word.Â
Make This remember when the python version is update. Update version of python reserved word is also update. In python 2 version their is one confusion problem that is print and print(). If you want to make a good programmer in python than you always update your self with new python document update or release.
Which of the following is not a keyword in a python language |
Some types of word does not reserved by python programming but this is important point When you use any module that word reserved by python module so you cannot use that word as same as python module name.
You cannot write file name with python reserved word or python reserved module. If module name and python file name is match. When you import the module than python interpreter gives you error message Because python is confused with python module and python file.
Following word that reserved by python language
This is the common and basic word that is use in python program and reserved in python programming language.
What happen when use python reserve word
hello = "which of the following word is not a python language"
import = "to know visit code bug free"
INOUTPUT
import = "to know visit code bug free"
^
SyntaxError: invalid syntax
Here we make the 2 two variable hello and import. Hello is nor reserved by python but the import is reserved by python. When we import the module that time programmer use import keyword. so comes error in out put.
0 Comments
Don't comment a spam message