You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
612 B

#!/usr/bin/env python3
#title :6-4.py
#description :Opdracht 6.4 - Files schrijven
#author :Marcel Haazen
#email :marcel@haazen.xyz
#date :04-10-2019 - 20:43
#version :0.1
#usage :python3 6-4.py
#notes :
#python_version :3.7.4
#==============================================================================
import datetime
while 1 == 1:
vandaag = datetime.datetime.today()
s = vandaag.strftime("%a %d %b %Y, %H:%M:%S")
naam = input("Naam renner:")
file = open("Hardlopers.txt", "a+")
file.write(s+", "+naam+"\n")
file.close