How do I convert into "int" here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I convert into "int" here?

I don't know how to do it. It's failing because of that. I want to do a list of variables, and depending of what the user writes, it selects one. Please help. https://code.sololearn.com/cP0Lv8d8JUAj/?ref=app

15th Mar 2022, 5:26 PM
Wiki
1 Answer
+ 2
To fix your code you need to double quote all variable values https://code.sololearn.com/cpHtpToMUFPS/?ref=app
15th Mar 2022, 5:47 PM
Raju Adhikary
Raju Adhikary - avatar