+ 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
Często masz takie pytania?
Ucz się bardziej efektywnie, za darmo:
Popularne dzisiaj
Python
1 Votes
I learn things but not know what should I build out of it what project what things should I build
2 Votes
Sololearn and Black Friday
2 Votes