Lesson - 08 : Python3 - Python Keywords

Pubblicato il: 06 dicembre 2017
sul canale di: 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...


In questa pagina del sito puoi guardare il video online Lesson - 08 : Python3 - Python Keywords della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Sada Learning Hub 06 dicembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 58 volte e gli è piaciuto 2 spettatori. Buona visione!