39 Answers
New AnswerYou’re given a task to write the word "hi" 42 times. Boring, right? Write a program to do it for you. Create a program to output "hi" 42 times, without any separators, on the same line. https://code.sololearn.com/cApZQ1v8379s/?ref=app
5/18/2022 12:11:50 PM
Nafee Riad Farah39 Answers
New AnswerIt's easy‼️😀🤣 Just: print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="") print("Hi", end="")
Андрей Зализкий Please create an own thread, mention the programming language and the task and link your code
Андрей Зализкий CREATE YOUR OWN THREAD PLEASE. To LINK your code: Go to Code section, click +, select the programming language, insert your code, save. Come back to YOUR OWN THREAD, click +, Insert Code, sort for My Code Bits, select your code. You need to read the task description carefully: If there are 2 example inputs, you need to write 2 input() and use them.
Андрей Зализкий Please try below code x = input() print(x * 10) Hope I understood your task and able to help you
Re-read the lesson – you find the answer there. Pay attention to how strings can be repeated
Lisa thank you very much you are so kind But i dont know how to share my code to let you help me
A bug or you missing something.. Can you show it by saving in playground? Close app and reopen then Try again once... edit: Nafee Riad Farah This may help you, to share links 👇 https://www.sololearn.com/post/75089/?ref=app
Below is the code that should work. First_counter = 0 While first_counter < 42: print(“hi”) first_counter += 1
You have to use the multiply symbol which is this * and create the string 42 and that should work btw it should look like this! print("hi"*42)
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message