Baca file baris demi baris ke dalam daftar
with open("file.txt") as file:
lines = file.readlines()
lines = [line.rstrip() for line in lines]
wouthur
with open("file.txt") as file:
lines = file.readlines()
lines = [line.rstrip() for line in lines]