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