Python Basic Tutorials

Python is a high level general purpose programming language which has a clear/easy learning curve. Python programming language is massively used in various domains like Artificial Intelligence, Data Science, Web Development, Utilities Tools and Scripts and many more

Python is a Programming language, and the default Python we use is written in C programming language which is also referred to as CPython (Python implementation in C). There are various implementation of Python Programming language i.e Jython(in JAVA), Skulpt(in JS) e.t.c

To make everything easy: We refer CPython as Python

Python Datatype

The classification of the data item in python is datatypes. Every literal in python is of one of any datatype. That means every literal in python are the object of any datatype's class. Datatypes define the behaviours of different kinds of literals used in python.

For example, any integer value let's say 5 is the object of class int

    #program that shows the datatype of literals
num1 = 32423 #Number literal
num2 = 5j #Complex literal
num3 = 5.23 #float literal
string_literal = "Harry" #string literal
true_literal = True #boolean literal
false_literal = False
value = None #None type literal

print(num1, type(num1))
print(num2, type(num2))
print(num3, type(num3))
print(string_literal, type(string_literal))
print(true_literal, type(true_literal))
print(false_literal, type(false_literal))
print(value, type(value))
32423 <class 'int'>
5j <class 'complex'>
5.23 <class 'float'>
Harry <class 'str'>
True <class 'bool'>
False <class 'bool'>
None <class 'NoneType'>
List of Python Datatypes
  • Numeric Datatype
  • Integer type.
  • Complex type.
  • Float type.
  • Sequence Type
  • String Type
  • List
  • Tuple
  • Booleans Datatype
  • None Type