- 1
Last task in dictionary section
Hi guys i need a little push. The last task in dictionaries section, donât really understand how .get() works with 7 and 5. I worked out the correct answer in Python but really donât get how the number 5 works there. 7 isnât there but whatâs 5? fib = {1:1, 2:1, 3:2, 4:3} print(fib.get(4,0) + fib.get(7,5)) Can anyone help me ?
1 Answer
0
well 7 isnât there so it does nothing, but 5 isnât there either but has value. Maybe iâm just looking into it for too long and missing some basics