+ 1
Have you tried using vars()?
8th Jun 2020, 4:43 PM
Valmob101
+ 1
For example:
# input is ab
vars()[input()] = 1234
print(ab)
#Output will be 1234
8th Jun 2020, 4:53 PM
Valmob101
Often have questions like this?
Learn more efficiently, for free:
Hot today
Question â
0 Votes
Someone explain it... Plz!!!
1 Votes
Code suggestions
3 Votes
Web development
0 Votes
Help me
1 Votes
Sololearn Theme Changing
0 Votes
How to access private creations
0 Votes



