+ 1

Guys please here help me to find out where is code will be corrected??

Here , where is wrong code?? https://code.sololearn.com/cbu1dNlk60DN/?ref=app

21st Oct 2020, 11:52 AM
Chain Sing Maravi
Chain Sing Maravi - avatar
4 Answers
+ 2
Your output is H68 thats what you wanted ?
21st Oct 2020, 12:10 PM
Jennisha Smith
Jennisha Smith - avatar
+ 1
Code looks normal. What do you want to do with your code? seek(0) will move the pointer to beginning of the file. read() will read the whole file. read(1) reads one byte from the beginning of the file since you have brought the pointer to the beginning.
21st Oct 2020, 11:56 AM
QTWizard
+ 1
QTWizard here I want to print first word of file with length of file .
21st Oct 2020, 11:57 AM
Chain Sing Maravi
Chain Sing Maravi - avatar
0
Chain Sing Maravi fw=file.readline().split() print(fw[0]+str(lf))
21st Oct 2020, 12:08 PM
QTWizard