How can I enter answers? | Sololearn: Learn to code for FREE!


How can I enter answers?

i only get errors

3/3/2017 3:38:03 PM


3 Answers

New Answer


n = "23" #type string print(int(n)) #string conversion to int I'm not sure if that was your question, but..


n = input("enter a value: ") # type string print(n) # need conversion to int only to do calculation # but I don't know if it's what you expect: your question and even your attempt to explain more are not clear at all ^^


the problem was that I needed to use enter to enter multiple answers which was not implied. thx for the response though. used to to dos as a kid and haven't used code in a long while haha