I am working on a program that uses a recursive function to print the digits of a number in English (i.e. 456 would display "Four Five Six".) Right now I am beyond confused and I don't have much code to show for the hour and a half of work I've done. I'm not looking for anyone to write this program for me, just offer some assistance. In theory I know what needs to be done but I'm having a very difficult time translating that into code.
def main:
Number = raw_input("Please enter a number: ")
return englishDigits
def convertEnglish(Number):
numEnglish = {0: "Zero", 1: "One", 2: "Two", 3: "Three", 4: "Four",
5: "Five", 6: "Six", 7: "Seven", 8: "Eight", 9: "Nine"}
def englishDigits(Number):
digit = Number % 10
digit = numEnglish.get(
Note that the code isn't even complete. I'm so stuck and obviously realize it doesn't run.