+ 1
Have you tried using vars()?
8th Jun 2020, 4:43 PM
Valmob101
Valmob101 - avatar
+ 1
For example: # input is ab vars()[input()] = 1234 print(ab) #Output will be 1234
8th Jun 2020, 4:53 PM
Valmob101
Valmob101 - avatar