fork download
  1. def add_numbers(a, b):
  2. return a + b # Corrected to perform addition
  3.  
  4. num1 = 5
  5. num2 = 7
  6. result = add_numbers(num1, num2)
  7. print("The sum of", num1, "and", num2, "is:", result)
Success #stdin #stdout 0.04s 9608KB
stdin
Standard input is empty
stdout
The sum of 5 and 7 is: 12