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