Quantcast
Channel: Ivy Professional School | Official Blog
Viewing all articles
Browse latest Browse all 330

Top 5 Python Data Types that you should know

$
0
0

Data types are the building blocks of every programming language. Any variable that stores a value contains some data which can be Boolean, string, number, etc. We talk in terms of classes and objects in Python. Data types are classes and the variables are objects. We can operate a variable based on what kind of data it has stored. In this article, we are going to explain all the data types available in Python and how we operate on them. First of all, let us understand the rules to assign a variable. A variable can have a short name (like x and y) or a more descriptive name (age, car_name, total_volume) Name of a variable must start with a letter or an underscore character Do not start a variable name with a number A variable name can only contain alpha-numeric characters and underscores (A-z, 0-9, and _ ) Variable names are case-sensitive (School_Name, school_name, and SCHOOL_NAME are three different variables) Variables cannot be named with words used in Python internally like for, in, not, list, tuple, dict, etc. Kind of Python Data Types – Python has 5 Standard data types which are listed below. Numeric Sequence Type Dictionary Sets Boolean […]

The post Top 5 Python Data Types that you should know appeared first on Ivy Professional School | Official Blog.


Viewing all articles
Browse latest Browse all 330

Trending Articles