- 1

Print ('c':\docs\nvivek')

What is the out put of this code, I am beginners .

1st Dec 2021, 6:47 PM
Vivek Kumar Singh
Vivek Kumar Singh - avatar
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
1st Dec 2021, 7:15 PM
Lothar
Lothar - avatar
+ 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.
1st Dec 2021, 7:03 PM
Pranshu Sachan
+ 2
This will also produce the error.. Read about what type of argument print accepts
1st Dec 2021, 7:11 PM
Pranshu Sachan
+ 2
You can run code yourself in the sololearn playground.
1st Dec 2021, 7:28 PM
Simon Sauter
Simon Sauter - avatar
+ 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')
1st Dec 2021, 8:21 PM
Sancho Godinho
Sancho Godinho - avatar
+ 1
It will raise an error Bcoz you have end with quotation mark at c and also at the end
2nd Dec 2021, 4:09 PM
Nanda kishore Yadav
Nanda kishore Yadav - avatar
0
Sorry its my mistake Print (c':\docs\nvivek')
1st Dec 2021, 7:07 PM
Vivek Kumar Singh
Vivek Kumar Singh - avatar
0
Thanks to you 👍
1st Dec 2021, 7:18 PM
Vivek Kumar Singh
Vivek Kumar Singh - avatar
0
Actually ,i am also writing this code but this my typing mistake 😃
1st Dec 2021, 7:19 PM
Vivek Kumar Singh
Vivek Kumar Singh - avatar
0
Okay thanks 👍
1st Dec 2021, 7:33 PM
Vivek Kumar Singh
Vivek Kumar Singh - avatar