Cetak ke file teks menggunakan argumen file inline
# Appends the print statement into a log.txt
print("Welcome to ItsMyCode", file=open('log.txt','a'))
Gorgeous Gazelle
# Appends the print statement into a log.txt
print("Welcome to ItsMyCode", file=open('log.txt','a'))