Menangani pengecualian tunggal
#!/usr/bin/env python3
with open('input.txt', 'r') as myfile:
for line in myfile:
print(line)
print('Outside the with block')
Shy Skunk