DEV Community

Cover image for Data Types in Python
Keshav Jindal
Keshav Jindal

Posted on

5 2

Data Types in Python

1.Introduction
Variable in python stores different kind of data and these are :
Image description
2.INTEGER TYPE OF DATA
As the name suggest it contain positive or negative type of data. It is used by the keyword "int.
Image description
Image description
3.Float
It contains decimal type of data.
Image description
Image description
4.String
It contains a message to be executed to the user and it is enclosed in quotes.
Image description
Image description
5.Tuple

It can contain more than one type of data in one variable. They are enclosed in ().
NOTE- Tuple value is unchangeable.
Image description
Image description

6.Lists
They contain multiple data in them. They are enclosed in square brackets[].
Image description
Image description
7.Sets
With the help of Sets we can make many sets of different data and they are enclosed in {}.
Image description
Image description

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay