Add numbers entered by the user (fixed)
examples/basics/add_numbers_input.py
def main(): a = input("First number: ") b = input("Second number: ") print(int(a) + int(b)) main()
First number: 2 Second number: 3 5
In order to convert the string to numbers use the int() or the float() functions. Whichever is appropriate in your situation.