Taking input in Python

Taking input in Python

Instructor-svgAl-Mamun Sarkar
Mar 24 , 2020

Taking input from user using input() function in Python programming.

print("Enter First Number")
x = input()
print("Enter Second Number")
y = input()

print("First is : " + x)
print("Second is : " + y)

# Multiple input
print("Enter 2 value")
a, b = input().split()

print(a)
print(b)

 

  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram