Posts

Showing posts from January, 2021

Data Types In Python

Image
    Python Data types Data types is the value which we want to store in variables .In which variable are store in different data types Python provide the type() function to Identify the type of variable .In Python there are some standard data types which are used to define storage method .In Python there is no need to define the type of variable in the statement of variable declaration .when the value is assigned to the variable , the interpreter set the data type of variable. There are five types of data types provide by Python        1. Number    2. String 3. List  4. Tuple          5. Dictionary Number :  Number are used to store numeric value .Number object is generated by Python when a number assigned to a variable. In Python there are four types of numeric data. integer (int) : signed integer such as 5,10,15,etc. long : used for high range value like 1234567890 Float : used for point number such as 1.21,3...

Comments in python

Image
  Comments in python The comments are the statement in the code which are ignored by the python interpreter.  Comments are used to add additional information about the program and the statement to understand by the people. Comment can written anywhere in the program and it is good to write comments in code. The comments in python begin with the # (Hash) character.  Anything written in the # is considered as single line comment in a python.   # This is the comment in python. Types of comment : In python there are two types of comments . 1.Single-line comments. 2. Multi-line comments. Single-line comments : The single line comments start with the # character.it can write inline with code and also in an individual line. Example :  # the print() function use to print message on the screen or output device  print("Comment in the python")  output : Comment in python we see the one more example a=2 # value of a is integer b=2.5 # Value of b is float c= ...

Installation Of Python

Image
                            Installation Of Python Python is a high level programming language. it is an open source, simple and easy to use.    In this installation of python on windows 10 we need to follow some steps.   Python on windows 10 : The latest version of python Python 3.9.1 released on 7th Dec 2020. this version has so many new features and optimizations.this is the first version of python to default to the 64-bit system. Installing Python 3.9.1 on windows 10 : open a web browser (like chrome,firefox,microsoft edge) and go to https://www.python.org/ . and you reach to the offical python page. Now, click on the download python 3.9.1 . now it will start downloading. this is around 27-30 MB in size.if your system have lower version of windows, then click download menu and select the specfic version suitable for your system. Once finish the download then ...

Introduction about python programming.

Image
  Introduction To Python what is Python? Basically , Python is most popular programming language nowadays. Basic of Python : ·         Python is consider as a general purpose,dynamic,high level and interpreated programming language. ·         Python was created by Guido Van Rossum and released in1991. ·         Python has support for Object Oriented Programming (OOP). for developing application. ·         Python language is simple and easy to learn and facilities to several high-level data structure. ·         Python has huge support for mutiple programming pattrens, such as object-oriented(like C++)and functional programming styles(like C). ·         Python is not restricted to work ina specific area, such as web programming. Hence it is known as multipurp...