Ask Question
3 March, 18:56

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

+3
Answers (1)
  1. 3 March, 20:42
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers