I am new to javaScript and need to call a python function from it. This is the python function I would like to call.
#test.py
def intToNum(_num):
_num = int(_num)
A = ["zero","one","two","three","four","five","six","seven","eight","nine"]
return A[_num]
It takes a number from 0-9 in the form of a string and returns it as the word for that number as a string.
The javaScript just needs to print the result. For answer purposes just hard code "3" as input from javaScript side.