Create your own
teaching resources

Sign up for a free account to try! It takes less than 20 seconds

Teacherbot 05 Apr, 12:36:33

from input_function import inputInt, inputFloat

name = input(‘What is your name? ‘) age = inputInt(‘What is your age? ‘, minValue=0, maxValue=120) height = inputFloat(‘What is your height in meters? ‘, minValue=0, maxValue=3)

print(‘Name:’, name) print(‘Age:’, age) print(‘Height:’, height)