Ask Question
19 November, 21:33

Write code to add two numbers, 5 and 7. Then display the sum on the serial monitor.

+1
Answers (1)
  1. 19 November, 21:54
    0
    Explanation

    Using the Python 3 syntax in writing the code.

    First we will define a function 'add_numbers', parse in the variables x and y and return its sum as shown.

    Then we carry out the addition of 5 and 7.

    def sum_numbers (x, y):

    return x+y

    sum_numbers (5, 7)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write code to add two numbers, 5 and 7. Then display the sum on the serial monitor. ...” in 📗 Physics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers