From 903a166a175c12250afa65678a56e45495c19fd2 Mon Sep 17 00:00:00 2001 From: milinaum Date: Sun, 8 Nov 2020 12:06:57 +0000 Subject: [PATCH] testing --- preferences.py | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/preferences.py b/preferences.py index ece0b7f..ce8909f 100644 --- a/preferences.py +++ b/preferences.py @@ -1,9 +1,29 @@ #As a user I want to be able to go back and see what my music tastes were previously #Tasks - +import datetime #Take User input (name, music preferences, timestamp and date stamp) +def pref(): + file = open("test.txt","w") + user_choice = input("Enter your favorite song: ") + file.write(user_choice) + file.close() + file1 = open("pref.txt","w") + music_preference = input ("Tell me your favorite music genre: ") + file1.write(music_preference) + file1.close() + #file2 = open("date.txt", "w") + +pref() + + +#today_date = datetime.datetime.now() +#print(today_date) + +#song_name = input("Enter the name of a song: ") +#print("the song is called: ",song_name) + #Store the inputs in a text file