Category Archives: Python

2 dimensional arrays in python

2 dimensional arrays in python. Learn to create 2 dimensional arrays in python with example 2D Numpy Arrays numpy.ndarray numpy means that it is a type that is defined in the numpy package. nd stands for n dimensional array You can create 1,2,3 and even upto 7 dimensional array but we are discussing here only… Read More »

tuple in python | learn Python

tuple in python it is a type in Python.Tuple means ordered collection. example = (‘one’,’two’,’three’); print(example) the output will be one, two, three print(example[1]) output be will example[0] = 1 error tuple cannot be changed and the list can be changed. difference between tuple and lists in python: In list’s element can be changed but… Read More »

lists in python | Python Lists

lists in Python contain any type but a list is also a Python type. and a list can also contain a list. A list contains any Python type means you can store any type of data in it e.g strings booleans and floats etc. Lists are used for storing values of different datatypes rather than… Read More »

data types in Python | Python Data types

There are several data types in Python like int, float, string, Boolean which are common to other programming languages like C, C++, and Java. There are other data types in Python which another programming language does not have like lists, dictionaries, etc. Variables in Python other programming languages like C++, Java, etc variables are declared… Read More »

python tutorial | python basics

So We will start learning python soon so stay tuned.. In this python tutorial we will learn all the python basics. print function in python print function is also used for checking our program escape sequence ‘I\’m Asad’ printing escape sequence ‘I\’m Umer and it is backslash\’ commenting in python Comments is basically used for… Read More »