0
Code coach inputs and outputs
Where does the input on these problems come from? I was assuming it would be a string named input but I donât think that is correct. And should the result be a string named output? Maybe they want a function? Does it matter what it is called? They all start âwrite a program that takes a stringâŠâ. Aha! Work=input(ââ) is how the input gets in. Iâm printing the output and that seems to work
2 Answers
+ 5
Len ,
please link your code here, so that we can check what causes an issue.
+ 1
Thanks. I got it to work but i have questions about the input. In line 2 Is int() required to input an integer? Is the ââ required in lines 1 and 3?
I just figured out how to create a playground and run a test so that i could link it here. So i can answer these questions myself now.
https://code.sololearn.com/cBhugqHDKYae/?ref=app
So the ââ in lines 1 and 3 is not needed but the int() in line 2 is. Evidently input() returns a string.