Raspberry Pi - Data Logging and Databases
What will be the output of this Python code on Raspberry Pi?
with open('log.txt', 'w') as f:
f.write('Temp: 22C\n')
with open('log.txt', 'a') as f:
f.write('Humidity: 60%\n')
with open('log.txt', 'r') as f:
print(f.read())