DEV Community

Aadarsh Ancha
Aadarsh Ancha

Posted on

Data types in python

Hello, Today I will be showing you data types in python.
Hope you enjoy!

The first data type is int, short for integer.
A integer is basically a number, Whole numbers,Negative numbers, and zero.

The Second one is float, which is the same as integer but a decimal

The third one is String. A string is a word or number with double quotes before and after it. Here is an example below⬇

Image description

The last one is bool, short for boolean. A boolean is basically true or false

Top comments (2)

Collapse
 
aadarsh_ancha_bba80fa9cdf profile image
Aadarsh Ancha

Hello hope you guys have a nice time viewing

Collapse
 
aadarsh_ancha_81e020ba4bd profile image
Aadarsh Ancha

I did

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more