Python Variable Types

In last post “How To Start With Python For SDN” gives clear direction how to start with Python. In this post I am trying to cover the basic variable types which are must to know for every network engineer who wants to learn Python.

Variables are used to store values in specific memory locations. It means whenever you create a value python reserves some space in memory. Memory allocation happens based on the defined variable type. In Python we have different type of variables as given below:
1. Integer
2. Float
3. String
4. Tuple
5. List
6. Dictionary

Declare the name of the variable and use the assignment operator = to assign the value. We do not declare the variable type. The value assigned to the variable determines the type Integer, Floats, String, Lists, Dictionaries, and more types.


Share on facebook
Share on twitter
Share on linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *

Become a member

Full Access to 739 Lessons. New Lessons Added Every Week!

Awesome Deal! Get 2 Months for FREE!

No Obligations. Cancel At Any Time!