+ 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
4 Answers
+ 2
Your output is H68
thats what you wanted ?
+ 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.
+ 1
QTWizard here I want to print first word of file with length of file .
0
Chain Sing Maravi
fw=file.readline().split()
print(fw[0]+str(lf))