Computer Science, asked by ishikakushwah71040, 2 months ago

What will be the output of 19 % 2 in python language.
A) 2
B) 17
C) 9
D) ​

Answers

Answered by kanishkachauhan76
4

Answer:

Find output of Python programs - 1

sum = 0 for i in range(12,2,-2): sum+=i print sum.

n=50 i=5 s=0 while i<n: s+=i i+=10 print "i=",i print "sum=",s.

List=[1,6,8,4,5] print List[-4:]

L=[100,200,300,400,500] L1=L[2:4] print L1 L2=L[1:5] print L2 L2. extend(L1) print L2.

Answered by kavyapsynergy
0

The output of 19 % 2 in python language is 1

Python Modulus Operator

  • The inbuilt Python Modulus Operator returns the residual numbers by dividing the first number by the second number. It's utilized to figure out how to finish a division problem.
  • The Python modulo is another name for it. The modulus symbol in Python is represented by the percentage (%) sign.
  • In our case, the remainder of 19 divided by 2 is 1

Similar questions