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 Respostas
+ 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.