# importing datetime module for now()
import datetime

# using now() to get current time
current_time = datetime.datetime.now()

with open('firstpython_output.txt', 'w') as f:
	f.write('Script firstpyton.py as successful at @ %s' % current_time)
f.close()  