Ask Question

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

+4
Answers (1)
  1. 11 January, 12:46
    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?
Find an answer to your question 👍 “Consider the following code: x = 17 y = 5 print (x % y) What is output? ...” in 📗 Computers & Technology 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