Posts

List Function in python

Image
List Function in Python Hello Friends, I am Nirav. And in this tutorial I going to show you how to use Variable and datatype in Python.. So, Let's get Started So, Friends as you know List function is basic function to remember all thing in one variable. Why we use List ?           To store data in to one variable name How To Create List ?            In Python programming, a list is created by placing all the items (elements) inside a square bracket [ ], separated by commas. It can have any number of items and they may be of different types (integer, float, string etc.). How to access elements from a list? There are various ways in which we can access the elements of a list.                      1 )  List Index                           In Index operator we can ...

Variables and datatype in Python

Image
Variables and datatype in Python Hello Friends, I am Nirav. And in this tutorial I going to show you how to use Variables and Datatype in python.. So, Let's get Started 1.Data types In python mainly three data types are used           1) Integer                              #Numerical values           2) String                               #Group of Characters           3) Float                                #Point Values           4) Boolean                           #Either true or false 2. Variables What is variable ? An element, feature, or factor that is liabl...

Print Function in python

Image
Print Function in python Hello Friends, I am Nirav. And in this tutorial I going to show you how to use print function in python…. So, Let’s get Started So, Friends as you all know print function is basic function in any programming language. Why we use print Function?                 So, main question is that “why we use print function?” when you wants to print something at a time of execution of your program than you have to use print function. For EX:- you want to print “This is my first program” so you have to write “This is my first program” in print function How to treat data type in print function                 In other programming language whatever you write in print function it’s trite that as a string and print whatever you write in print function.         ...