I have a piece of code that should be printing a number. But it instead prints "None", along with the number I anticipated it to print. Here is the snippet of code that should produce, at the very last line, just the number 3.
mylist=[]
def number_replied(user):
for z in task1dict:
if user in task1dict[z]:
mylist.append(z)
def how_many_replied_to(username):
del(mylist[:])
number_replied(username)
print(len(mylist))
print(how_many_replied_to('joeclarkphd'))
This should produce the result, "3", but it shows "None", a line break, "3". Is there something I need to add or change? Let me know if you need more of the code.