Python | Basic Input and Output Functions - Passionate Geekz

Breaking

Where you can unleash your inner geek.

Saturday, 29 June 2019

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

No comments:

Post a Comment