how to declare integer in python 3 code example Example: python declare int x = 5 print(type(x)) # Output: <class 'int'>