Back slashes not working? | Sololearn: Learn to code for FREE!

0

Back slashes not working?

Every time I try to use them to separate it sentence, it's turns out to be an error.

10/17/2020 1:08:45 AM

Samain Salia

7 Answers

New Answer

+4

Can we see that code ?

+3

Samain Salia You're looking for something like this? https://code.sololearn.com/cvl2njF7kZSa/?ref=app https://www.sololearn.com/post/664632/?ref=app

+1

Samain Salia print("Hello \nWorld")

+1

Samain Salia input("6+3\n11+22") .you need remember about types. "\n" is an element of string. In your example you try use it with INT type

+1

ok thankyou all

0

-1

input(6 + 3 \n11 + 22)