Python3

WHY PYTHON?

     *Basically python is general purpose ,high level,interpreted language .   
     *Very simple language to learn.
     *It has best packages for AI,deep learning,machine learning etc...
     *It also has very interactive frame work that is ipython notebook.
     *Extensively used in industry 

Features OF PYTHON:-

                  *simplicity 
                  *open source language- free for everyone👯👫 
                  *portability-code sharing much easier ðŸ’¯                 
                  *Embeddable and extensible
                  *interpreted line by line (CPU and Memory Management)
                  *huge libraries (Numpy , Matplotlib , Scikit-learn)
                  *object oriented

PYTHON KEYWORDS(🔑):
                             keywords are reserved words.
                             In python, there are 35 keywords.  

               Python Variable Names and Keywords - MAKE ME ANALYST
 
#get all keywords in python 
   

            >>> import keyword
            >>> print(keyword.kwlist)    #kwlist is just like holding elements in list


  
output:-['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue',
               'def', 'del', 'elif', 'else', 'except', 'finally',  'for','from', 'global', 'if', 'import', 'in', 'is',
               'lambda', 'nolocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']

IDENTifiers  :-

        Identifiers is the name given to any entities like variables,functions,class etc..in python.

 Some rules to write identifiers:

     1.combinations of lowercase letters(a to z)or uppercase letters(A to Z)or digits(0 to 9)or                               underscore(_).
        eg:- abc_12     #valid

     2.identifiers cant start with digits
         eg:-  17_level   #invalid
               level_12  #valid

     3.keywords are not used as identifiers
         eg:-  global=23  #invalid (global is keyword in python)

     4.we cant use special symbols in identifiers like @,!,%
         eg:-  level@=24  #invalid        




















Comments

Post a Comment

Popular posts from this blog

Python3 Function Arguments

Python3 File Handling