Python | Basic Input and Output Functions

Python | Basic Input and Output Functions

The Basic input and output functions are most confusing in Python Language  ,The print and input functions aren’t very useful at the Python console.

Here is the Simple Example


input("Enter Something")

Store input in Variable


s = input("Enter something: ")
print(s)


#enter hello world

Output : hello world

Examples

a=input("Enter your name:")
print(a)
b=input("Enter your age:")
print(b)

output :
Enter your name :_______
Enter your age:______

you just have to enter your answer

Hits: 33

CATEGORIES
TAGS
Share This

COMMENTS

Wordpress (0)
Disqus ( )
%d bloggers like this: