Tagged: Python

0

Python for loop

A for loop is used to execute the program for a fixed number of times. It can be used to iterate through the elements of a list, tuple etc. In python, a for loop is created using the for keyword. The syntax of for loop in Python is different is from the syntax of for loop in C.

0

Python List

In Python, a list is an ordered collection of items of different datatypes. The items of a list is enclosed in [ ] brackets. Each list items are separated by a comma (,).

0

Python string datatype

A sequence of characters is known as a string. Python allows you to use single quotes (‘), double quotes (“) or triple quotes (“””) to denote a string.

0

Python datatypes

Python automatically determines the data type based on the value assigned to it. You can find the datatype of a variable using type() function.

0

Python Numeric datatypes

The numeric datatypes are used to store numerical values. Python numeric datatype includes the following number types.

0

Python variables

In Python, a variable is declared when you set a value to the variable. Unlike some other programming languages, Python does not have special keywords for declaring a variable.

0

First Python program

Assuming that you have installed and set up python Environment on your computer, lets create our first Python program.

0

Introduction to Python

Python is a general-purpose, interpreted, object-oriented scripting language. It was created by Guido van Rossum in 1991. At the time of writing this post, the latest version of python was 3.7.1.