16 Answers
New Answerhttps://code.sololearn.com/cohHh0W9Krqb/?ref=app I can't solve it. Please help me. Somebody wrote code to take a string input and output it, repeated 10 times. However, the code results in an error. Fix the code to output the desired output.
1/21/2022 11:26:30 AM
Harshil Patel16 Answers
New AnswerYou need to write a code that will work for any input not just that one test case. It means input will be provided by Sololearn for each test case separately. It can be "hello" or "oi" whatever they decide. All you need to take x as input variable and multiply it by 10.
Copy code, go to Code section, select Python, paste your code, save In the thread: Click +, select code
You overwrite the input with 'hello' but you need to repeat the input – not hello Also you need to repeat (*) 10 times – not add '10' to the string
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message