Ram Gambhir
2 min readJan 26, 2022

What Are Basic Data Types in Python?

Hello all, This is Ram Gambhir. In today’s post, I am going to cover basic concepts of Data Types in Python programming language.

Let’s start off with basic data types:-

Data types are the classification of data items. Data types represents a kind of value which determines what can be done to that data.

What are basic data types data in Python ?

Data Types :-

We have 2 basic data types in Python :-

1. Numbers
2. String

1. Numbers :-

In Python, numbers are represented either using Integers or Float.

Integers:- we denote Integers as int in python. Integers are the whole number, including negative numbers but not fractions. 

Example :-
1,5,10,20,-10
These are whole number without any fractions

Float :- Numbers with Decimals
In python a float refers to a number that has decimal places.

Example :-
2.5, 3.5, 97.2

2. String :-

A string is a data type used in programming, such as an integer and floating point unit, but is used to represent text rather than numbers.

We denote string as str in Python language.
 It is the sequence of characters wrapped inside single, double, or triple quotes.

Example :-
'Hello world '
"Hello 123"
" this is my first artical"

Well, that finishes of today’s basic tutorial of data types. In the next one, we will try to cover more basic concepts in Python.

You can follow us on medium.com for getting updates on the next programming tutorial. Till then have a nice day !!!!