So Im trying to prompt the user to enter strings until they enter an empty string.
Then i want to add all the strings to a list and using recursion I want to print the reversed list to the screen.
I keep getting 'None' printed instead. What am I missing from this? or doing wrong?
while True: userinput = input("Enter a string: ") if userinput == "": break elif userinput != "": lists.append(userinput) return recur(lists)
print(recur(x = lists))