+ 2

[SOLVED]Assign inputs to variables (python)

How do i get a certain input from the user and assign it to one of my variables?

20th Aug 2018, 11:44 AM
Pau Blasco
Pau Blasco - avatar
2 Answers
+ 6
a = input('abc')
20th Aug 2018, 11:56 AM
Mert Yazıcı
Mert Yazıcı - avatar
+ 5
var1 = input("Enter variable: ") print(var1)
20th Aug 2018, 12:02 PM
Rameshwor Nepal
Rameshwor Nepal - avatar