I'm trying to write an add()
function using input()
, however it seem that the input doesn't really work for me.
The module is as following:
def add (n1, n2):
return (n1+n2)
def main ():
print (add(input("Enter number one, please:"),input ("Enter number two, please:")))
if __name__ == "__main__":
main()
When ran, I just get the "Enter number one, please:" prompt, and when inputting an actual number and pressing ENTER, nothing really happens. I tried getting the "Sublime Input" package, but to no avail.
I'd like to get this to run without resorting to Ubuntu (I'm using Windows 8.1).