0
Anyone can tell me how I got the output is 8
fib = {2:1, 2:1, 3:2, 4:3} Print(fib.get(4,0) + fib.get(7,5)
5 ответов
+ 4
Sorry no idea then ,maybe there is a dictionary din with key value pair of 4:3 which returns 3 and a dictionary fib with key value pair of something else(not 7 as key) but fib.get(7,5) returns the value 5 in case key is not there in dictionary ,then only you can get a output of 8!
+ 2
Sorry that was my mistake ,now check again
+ 2
Thanks a ton bro
+ 1
Is this the full code?
+ 1
Yes