I'm still a beginner at python, but I've been trying to get better at it lately. I'm trying to create a program that asks the user what day it is and what they have to do. It will then take this and place it in a list. I'm trying to get the program to print out the list that has the new assignment in it, but it's not working. (The list that has the assignment is in another list.)
I tried placing it all in a function and using a return stmt, but it says that "the object is not callable". I also tried normally printing it out with a print stmt, but it doesn't work.
#List of days
doa = ["M","T","W","TH","F","S","SU"]
#Lists for every day
my_list = []
for i in range(7):
my_list.append([i])
#Ask user what today is
day = input("What is the day today?")
#Ask user assignment
ast = input("What do you have to do my sir?")
#Add to list
if day == doa[i]:
my_list[i].append(ast)
#Print that days list to check
print(my_list(day))
I know what I'm doing is wrong. I'm assuming the way I'm doing it prints out the index for the list (that's in another list)...,but I couldn't think of any other way.