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

Need help right now can’t figure it out
What element of gothic literature is evident in the following lines from "The Raven"? Lines 46 : Ghastly_grim and ancient raven wandering from the nightly shore
32. A father tells his son, "I was of your present age when you were born," If the father is 36 now, how old was the boy 5 years back? (a) 13 (b) 15 (c) 17 (d)
True or False. Abraham and Sarah were in agreement regarding God's command to sacrifice Isaac.
How to derive Universal Law of Gravitation ?​
Wings of birds,wings of insects and patagia of bats are analogous organ​? why
the weak base ionization constant (ka) for h2c2o4 is equal to what?
If sinA=1/7, sinB=1/3.Prove: cos2A=sin4A​
What are examples of devices that use electromagnetic waves? Check all that apply. -FM radios -microwaves =TV remote controls
pls help meeeeeeee what makes printed hands good for kids​