- 1
Print ('c':\docs\nvivek')
What is the out put of this code, I am beginners .
10 Respostas
+ 7
Vivek Kumar Singh ,
there is still an error in the code, since python is case sensitive. spelling of print() has to be lowercase.
the first quote in print() statement is still wrong, it has to be: print('c:\docs\nvivek')
then the output will be: c:\docs\nvivek
+ 4
It will produce error. single quote after c is considered as the end of the string and rest part is not the part of a string.
+ 2
This will also produce the error.. Read about what type of argument print accepts
+ 2
You can run code yourself in the sololearn playground.
+ 2
Actually, You Have Done A Backslash Error...
And Also, Quotation Mark Error. Remove That Extra ',
Replace All The \ With \\ Then, Run The Code Again...
Repaired:
print('c:\\docs\\nvivek')
+ 1
It will raise an error
Bcoz you have end with quotation mark at c and also at the end
0
Sorry its my mistake
Print (c':\docs\nvivek')
0
Thanks to you 👍
0
Actually ,i am also writing this code but this my typing mistake 😃
0
Okay thanks 👍