ravro999 ravro999
  • 10-10-2019
  • Computers and Technology
contestada

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

Respuesta :

codiepienagoya codiepienagoya
  • 08-01-2020

Answer:

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.
Answer Link

Otras preguntas

in survival at 40 the author includes a map and explained cause and effect relationships to the reader?
Two data sets have the same mean, 8. However, the MAD of Data Set A is 2 and the MAD of Data Set B is 4. What does this indicate about the variability of the d
If the diagonal of the square is 12 √ 6cm, find the area?
The passage says how often the carnival is held
Please answer fast I will give Brainliest if you get correct.
work out the following questions
Which of the following is not considered to be a reservoir for inorganic carbon? (a) trees (b) Earth’s crust (c) oceans (d) the atmosphere
Find an expression which represents the difference when (-5x-y) is subtracted from (9x+2y) in simplest terms.
Half of a certain number is three more than the number​
Please a need the answer