How to insert code into your note

NOTE.GD

 

//CODE DEMO

digitlist = ["one","two","three","four","five","six","seven","eight","nine","ten"]
digitlist_1 = ["eleven","twelve","thirteen","fourteen","fivteen","sixteen","seventeen","eighteen","nineteen","twenty"]
digitlist_2 = ["ten","twenty","thirty","fourty","fifty","sixty","seventy","eighty","ninety"]
number = input("enter 4 digit number : ")
if number.isdigit():
    if len(number)==4:
        thousandplace = int(number[0])
        hundredplace = int(number[1])
        tenplace = int(number[2])
        unitplace = int(number[3])
        
        if(int(number) == 0):
            print("zero")
        if thousandplace != 0:
            print(digitlist[thousandplace -1 ], "thousand", end=" ")
        if hundredplace != 0:
            print(digitlist[hundredplace -1 ], "hundred",end=" ")
        if 10 < int(number)%100 < 21 :
            print(digitlist_1[int(number)%10-1])
        else:
            if tenplace != 0:
                print(digitlist_2[tenplace -1],end=" ")
            if unitplace !=0:
                print(digitlist[unitplace -1])
    else:
        print("Input only 4 digit")
else:
    print("enter digits only")