import logging


def check_user_input_if_integer(user_input):
    """ 
    check if user input is integer and not any other data type

    """
    integer_input = ''
    while not integer_input:
         try:
             integer_input = int(user_input)
         except ValueError:
             logging.warn('only integer number accepted')
             user_input = input('enter a number: ')

    return integer_input