I am unable to understand the output of this program. Can someone explain it to me?
stuff=dict() print(stuff.get('candy',-1))
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
New learner in Python, and need help on the term explanation | BaicaiPy | 3 | 2,124 |
Oct-15-2022, 03:31 PM Last Post: Yoriz |
|
Some line code explanation | Chrilo06 | 3 | 3,173 |
Feb-24-2022, 06:24 PM Last Post: deanhystad |
|
XOR solution explanation needed. | omm | 7 | 4,592 |
Oct-26-2020, 06:30 AM Last Post: omm |
|
While statement explanation | alkhufu2 | 3 | 3,216 |
Sep-02-2020, 05:46 PM Last Post: alkhufu2 |
|
need help with some explanation | vincelim99 | 2 | 4,288 |
Mar-24-2017, 04:12 PM Last Post: nilamo |