WS - On Python Module & File Handling - With - Soln
WS - On Python Module & File Handling - With - Soln
2. ( C ) In top-down approach) we started with a statement of the overall function that a system
was expected to perform , We then broke that function down into sub functions
3. (C )
4. (a) Hint: C contains file named scores.txt
f=open("C:\scores.txt.txt", "r")
text=f.read()
print(text)
f.close()
5. (a)
6. (b)
7. ( c) Hint:-
f = open('scores.txt','r')
print(f.closed) # gives output False
f.close()
print(f.closed) # gives output True
17.
18. # returns a new list with unique elements of the first list.