Q6Numerical3 Marks13 Apr 2025
Consider the following Python code snippet:
How many lines will be present in the file sample.txt after executing the above code?
```
f = open('sample.txt', 'w')
f.write('alpha\n')
f.write('beta')
f.write('\ngamma\ndelta')
f.write('\nepisilon')
f.close()
```
Press Enter to check.