I have a variable 'a' with an input.
#a = input() #say input is "t"
Then the below code should be like that which will assign "t"(based on input) to "abc"(string), concatenate "d" to "abc" and print the output.
Is it possible?
Pylearn locals and vars are same except vars can take an optional argument as a class, object, instance which as __dict__ attribute and returns it.
Either way if no argument is passed to vars it will act same like locals.
Pylearn If you write anything inside double quotes that will be String not variable.
We assign value to variable not any String.
Do like this
#input is z
a = input()
a = 5
but it doesn't make sense we can directly take 5 from input.