Dyskusje Q&A
dict comprehension
0 głosów
2 odpowiedziRegex with python
2 głosów
6 odpowiedzistrings & variables part 2
0 głosów
2 odpowiedziImmutable objects
1 Głos
2 odpowiedziI need your help with this
0 głosów
1 OdpowiedźLetter Counter
0 głosów
1 Odpowiedźpairs = {1: "apple",
"orange": [2, 3, 4],
True: False,
None: "True",
}
print(pairs.get("orange"))
print(pairs.get(1))
print(pairs.get(12345, "not in dictionary"))
the output is
[2, 3, 4]
False
not in dictionary
why is print(pairs.get(13345,"not in dictionary")) giving the output not in dictionary.pls I nid explanation
2 głosów
4 odpowiedziPopularne dzisiaj
Learn python
2 Votes
Help for study
1 Votes
Where's PHP and Ruby courses?
1 Votes
Detach thread exception
1 Votes
Qt timer timeout
0 Votes
Not video
0 Votes
Not image in the page
0 Votes
How to make a 2d game
0 Votes