Posts

Showing posts with the label python3

Python 3 -(2) Values and Variables

Image
Python VALUES :-      Basically values are the digits or letters used in python to perform certain task.      These values has different types:                       1.integer type(int)                               eg:-   2,5                       2.floating point type(float)                             eg:-    3.0,2.0                       3.string                             eg:-    hello everyone ! VARIABLES :-                Variable is the location in memory used to store some data (value) or simply,a name that refer    to value.             * The rules of representing a variable is same as writing identifiers.      * In python,we even don't have to declare the type of the variable,it will handle internally according to the type of value which we assigned to the variable.    VARIABLE ASSIGNMENT:-                          We use assignment operator(=) to assign a value to variable.           eg :- 1.   a=34                  #here a is a variable and 34 is a value(int) .  

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(