Explain Input output statements or function in python

  • Input

User can take input using input() function

For interger (number) input statement

Syntax

Input(“Enter your message”)

Ex,

name=input(“enter your name:”)

print(“my name is:”,name)

o/p

Output

Python provide print() function to display output to the standard output devices

Syntax

Print(“Value”)

e.g print(“Rahul”)

Posted In :

Leave a Reply

Your email address will not be published. Required fields are marked *