On my recent project I am facing with new obstruction where I need to declare a variable based on value of another string.
What I need:
'Hai'= 2
The String Hai
is initialized at variable x
,
x='hai'
then I need 'hai'= 2
Now all I want is the value of x
to point to a int
(different int
for different values of x
).
So if,
x='bye'
then,
'bye'=20