Can we take input in python programs if yes then how | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can we take input in python programs if yes then how

I want to take input from user at run time of program in python how can I do this please help me

30th Jul 2017, 1:41 AM
Vivek Kumar
Vivek Kumar - avatar
2 Answers
+ 3
print("enter input") var = input() print(var) or var=input("enter input") print(var)
30th Jul 2017, 1:44 AM
Infant Raj
Infant Raj - avatar
+ 2
userInput = input() This in the course
30th Jul 2017, 1:43 AM
Rrestoring faith
Rrestoring faith - avatar