Python is completely object-oriented, and not “statically typed”. You do not need to declare variables before using them or declare their type. Every variable in Python is an object.

This tutorial will go over a few basic types of variables.

Python Numbers

Python supports two types of numbersintegers and floating point numbers. (It also supports complex numbers.)

To define an integer, use the following syntax:

myintvar = 7
print(myintvar)

Trinket.io on-line Python compiler