How can I code in python for beginners, lesson 14.1 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

How can I code in python for beginners, lesson 14.1

https://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.

21st Jan 2022, 11:26 AM
Harshil Patel
Harshil Patel - avatar
16 Answers
0
Change + to *
22nd Jan 2022, 7:21 PM
Ebi TNT
+ 8
You 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.
21st Jan 2022, 12:01 PM
Simba
Simba - avatar
+ 3
Please tag "Python" and link your code attempt so we can help you!
21st Jan 2022, 11:28 AM
Lisa
Lisa - avatar
+ 2
you can use a "hint" to help you
22nd Jan 2022, 1:29 PM
Scruffy Scruffington
Scruffy Scruffington - avatar
0
👉THEN LINK YOUR CODE...👈
21st Jan 2022, 11:37 AM
Lisa
Lisa - avatar
0
How can I get link?
21st Jan 2022, 11:40 AM
Harshil Patel
Harshil Patel - avatar
0
Copy code, go to Code section, select Python, paste your code, save In the thread: Click +, select code
21st Jan 2022, 11:42 AM
Lisa
Lisa - avatar
21st Jan 2022, 11:48 AM
Harshil Patel
Harshil Patel - avatar
0
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
21st Jan 2022, 11:48 AM
Lisa
Lisa - avatar
0
I have seen 'oi in output' 10 times also
21st Jan 2022, 11:55 AM
Harshil Patel
Harshil Patel - avatar
0
Phyton 1.1 po pa help
23rd Jan 2022, 12:42 AM
Cristine Gadayan
0
₽+
25th Jan 2022, 10:49 AM
Михаил
Михаил - avatar
- 1
Hey
23rd Jan 2022, 4:40 AM
Nikhil Ks
- 1
hi
23rd Jan 2022, 5:06 AM
Mahabali FF
- 1
I new leaner
23rd Jan 2022, 5:59 AM
Adiyan
- 2
In one code
21st Jan 2022, 11:55 AM
Harshil Patel
Harshil Patel - avatar