how to make a variable defined as an integer python code example
Example 1: python declare int
x = 5
print(type(x))
# Output: <class 'int'>
Example 2: Use variables in python
x = 'Welcome'
print(x)
x = 5
print(type(x))
# Output: <class 'int'>
x = 'Welcome'
print(x)