0
Python Challenge Question.
What is the output of the code? x ={1:2,2:3,3:4,4:6} Print(x.get(2,0)%x.get(5,4)) Why is answer 3?
2 Answers
+ 6
x.get(2,0) => 3. take value from x with key 2.
x.get(5,4) => 4. because key 5 dont exist in x, so 4 from 2nd argument return.
3%4 => 3mod4 => 3
+ 3
Go through 3rd topic in this
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2451/