Input & Output Statements
Input Statement:
Input() keyword is used to get information from the user is
called a input statement.
Example:
name= input("Enter your name")
hobby=input("Enter your hobby")
Output Statement:
print() keyword is used to get output on the screen is called a
output statement.
Example:
print(name)
print(hobby)
Program:
name= input("Enter your name:")#Abdul Kalam
hobby=input("Enter your hobby:")#Invention
print(name)
print(hobby)
Output:
Enter your name:Abdul Kalam
Enter your hobby:Invention
Abdul Kalam
Invention