Variables and Data Types

If you have ever learned any programming language than you would have a clear idea about variables and data types. But for those who never learn any programming language before, Variable like containers that contain values and values can change through out the program. For instance if you want to add two numbers then you can store those two values in variables and then you can save addition of those variables in third variable. Python is totally Object Oriented programming language. It means you do not have to declare every variable before using it. Because every variable in Python is an Object. In this tutorial we will learn about five kind of data types.

Variables, Data Types, DataTypes, Python

Data Types in Python:

Numeric Variables: - There kind of data types are use to store numeric type data.

Python supports these four numerical types ?
  • int (signed integers)
  • long (long integers, they can also be use to represented octal and hexadecimal)
  • float (floating point values)
  • complex (complex numbers)

String in Python: - String is a collection of characters. Strings can contain alphabets, numeric and special characters.
Click Here to Learn String in Detail

List in Python: - List is similar to arrays expect one difference. List can contain different kind of data(Integer, string, object) in it. In list we can elements according to index number and we can fetch elements from list using index number.
Click Here to Learn List in Detail

Tuple in Python: - Tuple is same like List expect one difference Tuples are immutable. Once we assigned element to Tuple we can not change it. We can fetch elements from Tuple using index number.
Click Here to Learn Tuple in Detail

Dictionary: - Python's dictionaries are kind of hash table type. They work like associative arrays. Click Here to Learn Dictionary in Detail

Share this tutorial with your friends on your social Media..

Variables and Data Types Variables and Data Types Variables and Data Types Variables and Data Types

Now You Can Follow All These Tutorials on Your Android Mobile Just Download This App.