Lesson 4 - Input Functions

In this lesson, we will learn about input functions through a simple program that produces question and responses based off of different user inputs.

    my_name = input("What is your name? ")
    print("Hello ", my_name)
    my_age = int(input("How old are you? "))
    print("Wow, you are ", my_age, "years old")
    print(3*my_age)
        
< Previous Next >