Sep-08-2021, 07:52 PM
There are lot of ambiguity for me, so just some examples of dict and EAFP:
>>> ratings = {'Peppa the Pig': 5} >>> ratings.update([('Bob the Builder', 10)]) >>> ratings {'Peppa the Pig': 5, 'Bob the Builder': 10} >>> try: ... print(ratings['Fireman Sam']) ... except KeyError: ... print('No rating for this movie') ... No rating for this movie
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.