In practice!! Help mee :))) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In practice!! Help mee :)))

print("\'hi\'" + "42 times") Why doesnt work?

31st Jul 2021, 1:44 AM
Winalif Sabarudin
4 Answers
+ 4
Hi Winalif! You're supposed to print hi 42 times in this practice. "\" symbol is used for escaping characters whereas "*" does the job for this practice. I can give you an easy example to understand what you have to do for it. print("a"*5) Output: 5 times a aaaaa
31st Jul 2021, 4:23 AM
Python Learner
Python Learner - avatar
+ 3
''' The second escape character was causing the problem i think. Was this the output you wanted? ''' print("\'hi'" + " 42 times")
31st Jul 2021, 1:59 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
11.2 practice in pyhton beginer, Iam confused to make a program.
31st Jul 2021, 3:27 AM
Winalif Sabarudin
0
Help me
31st Jul 2021, 12:44 PM
Shofikulislam mithu Shofikulislam mithu