Cody Bable

Generation

generate functionSun, 23 Apr 2023

tell the difference between integer or float of a number.

def number_type(a): if type(a) == float: print('float') else: print('integer') number_type(1.1)

Questions about programming?Chat with your personal AI assistant