0
Please please help me fix this
How do I fix this. Please share https://sololearn.com/compiler-playground/ck2z0NI1Rdg8/?ref=app
6 Respostas
+ 5
Use print (locals()[namething])
instead of print(namething)
+ 5
Theo ,
an other way of doing this task could be to take all the text / strings out of the code and put them in a file (csv file). from there we can read it and store it in a dictionary.
so searching and mapping will get convenient.
i have reactivated a code that i have done some months ago in pydroid and have put it in the attached file.
it does not give you a ready-made code, but you can find everything in there what is required to get your project run in the mentioned way.
https://sololearn.com/compiler-playground/cpFjQ1gb79Ho/?ref=app
+ 1
Theo ,
You fixed it already, but here is an alterative fix to ponder as well.
print(eval(namething))
0
What is the issue here and what you want to do.
0
The program is working perfectly.
It asks user for input and print it out.
What you want to fix?