brianfede27
brianfede27 brianfede27
  • 21-10-2020
  • Computers and Technology
contestada

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

Respuesta :

Cytokine
Cytokine Cytokine
  • 22-10-2020

In python the % operator is modulo. Modulo returns the remainder of two numbers.

19 % 5 = 4 therefore,

print(x%y) would output 4

Answer Link

Otras preguntas

Which of the following pairs of factors are most directly responsible for increasing the concentration of salt in the ocean? A. condensation and sea breezes B.
If twice a number added to three is divided by the number plus one, the result is 3/2. Find the number
Escoger Select the appropriate verbs. 1. Tú __ el almuerzo (lunch) con tus amigos. 
 comparten 
compartes 
comparte 
 compartimos 


 2.  Usted __ los viernes
How do I find Trig ratios
the sum of 6 and a number,n, is 15. find the number ​
Why was the House of Burgesses so important? It was the first colonial representative body It was the first sight of a colonial constitution It was the first ju
HELP ASAP!! WILL MARK BRAINIST!!! ASAP!! n - 2 divided by -3 = -6 what is the value of n?
The percentage change in the price level from one time period to the next, whether the price level is measured in terms of money or as a price index, will be th
Check all of the solutions to this equation PLS ANSWER!!
a briefcase selling for rs 1500 was marked down by 20% for a special promotion. it was later marked down further by 10% of the promotion sales price. compute th