Ask Question
15 August, 15:10

Consider the following code: x = 17 y = 5 print (x % y) What is output?

+2
Answers (1)
  1. 15 August, 16:40
    0
    The output to given python code is "2".

    Explanation:

    The description of the python program as follows:

    In the given code, two variable is defined that is, x and y in which contain assign value that is 17 and 5. In this code, variable x modules variable y that is (x%y). In python or any other programming language, modules (%) will give a remainder that is "2". To print calculated value we use a print function, that prints its value.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Consider the following code: x = 17 y = 5 print (x % y) What is output? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers