0
When i apply forward slash (/) then why (../playground/) is comes in output?
print('pythonisfun/n'* 7) Then the output is pythonisfun../playground/ And If print('pythonisfun\n'* 7) Then the output will be pythonisfun pythonisfun pythonisfun pythonisfun pythonisfun pythonisfun pythonisfun
3 Respostas
+ 2
Because "\" is a escaping character in most programming languages if not all. "\n" means break line. Many things you can do with "\". Like in python -> print("hello\tworld") will give you
hello world.
Because "\t" means "tab". Just learn about escaping characters.
+ 1
Devegna Kanzariya (-:Dev;-) "/" is considered as regular string character
0
But what happen in "/''