how to get in input only int in python code example
Example 1: how to get int input in python
num = int(input("inter your number: "))
print(num)
Example 2: python input integer only
num = int(input("Enter an integer number: "))
num = int(input("inter your number: "))
print(num)
num = int(input("Enter an integer number: "))