How Can I print "/\/\/\/\/\" in python3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How Can I print "/\/\/\/\/\" in python3

24th Aug 2019, 4:22 PM
Pushkar Singh Bisht
Pushkar Singh Bisht - avatar
7 Answers
+ 16
D_Stark thats the legend way of doing it 😂👌 Pushkar Singh Bisht For doing it in normal way, you can print("/\\"*6)
24th Aug 2019, 4:33 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 11
"/\\/\\/\\/\\/\\"
24th Aug 2019, 4:25 PM
D_Stark
D_Stark - avatar
+ 6
Gaurav Agrawal The legend way haha 😂 your way is much better 👍
24th Aug 2019, 4:54 PM
D_Stark
D_Stark - avatar
+ 5
ASCII 47 and 92 corresponds to / and \. Just in case anyone feels like doing this a different way, although there's no reason to it.
24th Aug 2019, 4:36 PM
Hatsy Rei
Hatsy Rei - avatar
+ 3
print("/\\"*5)
24th Aug 2019, 4:58 PM
Ve Sudhakaran
+ 3
How about just "AAAAA"?
24th Aug 2019, 5:22 PM
Seb TheS
Seb TheS - avatar
0
like this print("/\/\/\/\/\")
2nd Jul 2020, 4:46 AM
Pr0C0d3r
Pr0C0d3r - avatar