Posts

Showing posts with the label Python

Python3- Data types1

Image
Python DATA TYPES:-         In python, every value has a datatypes. Everything is the object in python programming, datatypes are actually classes and variables are instances(object) of these classes.        1. Numeric         2. Boolean        3. Sequence type               1.Strings                2.List                3.Tuple        4. Set        5. Dictionaries.                                                                        NUMBERS(NUMERIC):-            In this numeric values are stores in variables which are immutable  (the values assigned to a variables can be changed).           *  Integers(int) ,float point numbers(float)  and complex numbers(complex) are involved in this.                      * type() function  used to know which class a variable or value belongs to .           * isinstance() function used to check if an object belongs to particular class or not.            * complex() function used to convert integers to complex       eg:-         1.               

Python3

Image
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.                      # get all keywords in python                  >>> import keyword             >>> print(