+ 1

Am i doing something wrong or is this task bugged ?

I'm working on a task in Python that asks me to add newlines. I've wrote two solutions , one using \n and one using quotes ; print('A \nB \nC \nD') print("""A B C D""") Any and all inputs will be greatly appreciated.

31st Jan 2021, 8:15 AM
Kirill Chernyatin
Kirill Chernyatin - avatar
16 Réponses
+ 3
Кирилл Чернятин You just need to write 2nd option print ("""ABCD""") new line will be automatically apply
31st Jan 2021, 8:39 AM
A͢J
A͢J - avatar
+ 2
String format, very versatile for complicated print structures. Let me send you a solution from earlier in the tutorial print('A\nB\nC\nD')
31st Jan 2021, 10:00 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Кирилл Чернятин call outs: put @ in front of name of user. Works for people you follow and others involved in discussion
31st Jan 2021, 10:04 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Кирилл Чернятин Just be aware that cr** is considered a swear word by some cultures and may be censored by mods. Happy learning, enjoy the journey
31st Jan 2021, 10:07 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Rik Wittkopp Oh , goodness gracious me. Thank you for information , Rik , i appreciate it and will be more careful ! :). I'm neither joking nor sarcastic.
31st Jan 2021, 10:09 AM
Kirill Chernyatin
Kirill Chernyatin - avatar
+ 2
🖐😁👍
31st Jan 2021, 10:10 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
✨🔥Parneet Kaur🔥✨ Interesting ! Thank you for information ! :).
31st Jan 2021, 8:21 PM
Kirill Chernyatin
Kirill Chernyatin - avatar
+ 1
Crapbaskets. Thank you , AJ ! Have a wonderful day ! :D.
31st Jan 2021, 8:50 AM
Kirill Chernyatin
Kirill Chernyatin - avatar
+ 1
Кирилл Чернятин My suggestion: print(f'A\nB\nC\nD')
31st Jan 2021, 9:56 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
What does "f" do ? I hadn't covered it yet.
31st Jan 2021, 9:57 AM
Kirill Chernyatin
Kirill Chernyatin - avatar
+ 1
I Am AJ ! I don't understand your concept, and can't get it to work. Am I missing something?
31st Jan 2021, 9:58 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
It worked for me. Interesting.
31st Jan 2021, 9:59 AM
Kirill Chernyatin
Kirill Chernyatin - avatar
+ 1
Thank you for information , and I'll greatly appreciate that ! How do you make call outs ? Or write names when you're referring to other users ? I thought that it was impossible.
31st Jan 2021, 10:01 AM
Kirill Chernyatin
Kirill Chernyatin - avatar
+ 1
Rik Wittkopp Holy crap ! Thank you for information , Rik ! :D.
31st Jan 2021, 10:05 AM
Kirill Chernyatin
Kirill Chernyatin - avatar
- 2
Hello everyone i am python bigginer and i need help Calculate tip of bill 125 and 268 Pls give me codes......😢
1st Feb 2021, 4:20 PM
Om Kumar
Om Kumar - avatar