0
I write a code but when run it show another output
9 ответов
+ 1
Hi! And what output you want?
+ 1
print (r"C:\\dev")
+ 1
dir = 'C:\\dev'
print (dir[dir.index('\\')+1:])
+ 1
in sololearn context there's a kind of security transform of path output : they are replaced with the string "..\playground\" ^^
you could achieve quite the right output by adding a space after the colon:
print("C: \\dev")
0
dev
0
print("dev")
0
i want it from that
print("C:\dev")
To clear doubt
0
print ("C:\\ dev")