python how to make function only accept integer code example Example: python input integer only num = int(input("Enter an integer number: "))