Inputs and Outputs

What are Inputs and Outputs

Inputs and outputs make programs interactive, allowing users to enter information and receive results.

  • Input: Data the user enters into the program
  • Output: Information the program shows to the user

Why are Input and Outputs Important?

  • They let programs interact with users
  • Inputs allow users to give data or choices
  • Outputs display results or messages

Why are Inputs and Outputs Important?

name = input("Enter name: ")
age = int(input("Enter age: "))
height = float(input("Enter height(m): "))

print("Name -", name)
print("Age -", age)
print("Height-", height)

Targets

For your programming language:

State the input and output commands

Demonstrate how to use the input and output commands