Code Coach SoloLearn | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Code Coach SoloLearn

I would really like to work with the Code Coach on SoloLearn. But I don't get how it works. There are usually string that I have to work with. But how do I put them into my code, so I could call them in a if-statement for example?

31st Dec 2019, 7:33 PM
ExampleWasTaken
ExampleWasTaken - avatar
4 Answers
+ 2
s = input() They tell you how many inputs there are, so all you have to do is take them in that order. If for example they told you: Frst input is for a name Second input for an age Then you take it like this: name = input() age = input()
31st Dec 2019, 7:37 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
Tim Fussnegger No problem :), Happy New Year!
31st Dec 2019, 7:39 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
Aymane Boukrouh thanks! That's exactly what I was looking for!🙏
31st Dec 2019, 7:38 PM
ExampleWasTaken
ExampleWasTaken - avatar
+ 1
Oh back to you! Thank you very much!
31st Dec 2019, 7:40 PM
ExampleWasTaken
ExampleWasTaken - avatar