Lesson - 08 : Python3 - Python Keywords

Published: 06 December 2017
on channel: Sada Learning Hub
58
2

**************************************************
Python Core PlayList :    • Lesson - 01 : Python3 - What is python  
Python Advanced PlayList :    • Lesson - 46 : Python Advanced - Pytho...  
**************************************************
Python Keywords:

Keywords are the reserved words in Python. We cannot use a keyword as variable name, function name or any other identifier.
Here's a list of all keywords in Python Programming

1. None : None is a special constant in Python that represents the absence of a value or a null value.
2. and, or , not : and, or, not are the logical operators in Python. and will result into True only if both the operands are True.
3. As : as is used to create an alias while importing a module. It means giving a different name (user-defined) to a module while importing it.
4. Assert : assert is used for debugging purposes.
5. break, continue : break and continue are used inside for and while loops to alter their normal behavior.
6. Class : class is used to define a new user-defined class in Python.
7. Def : def is used to define a user-defined function.
8. Del : del is used to delete the reference to an object. Everything is object in Python. We can delete a variable reference using del
9. if, else, elif : if, else, elif are used for conditional branching or decision making.
10. except, raise, try : except, raise, try are used with exceptions in Python.
11. Finally : finally is used with try…except block to close up resources or file streams.
12. For : for is used for looping. Generally we use for when we know the number of times we want to loop.
13. from, import : import keyword is used to import modules into the current namespace. from…import is used to import specific attributes or functions into the current namespace.
14. Global : global is used to declare that a variable inside the function is global (outside the function).

Sample Projects : https://github.com/SadaLearningHub1/P...


On this page of the site you can watch the video online Lesson - 08 : Python3 - Python Keywords with a duration of hours minute second in good quality, which was uploaded by the user Sada Learning Hub 06 December 2017, share the link with friends and acquaintances, this video has already been watched 58 times on youtube and it was liked by 2 viewers. Enjoy your viewing!