Questions about Python
Which way you'd get key value from dictionary? if dict.has_key('x'): value = dict['x'] else: value ...
1. def abc(zzz): 2: if zzz > 5 3: return zzz % 5 4: return ...
((a, b), c) = ('TE', 'ST') wartości a, b, c to: a == 'TE' b ...
lists = [[]] * 5 lists[0].append(3) Which one is true? 1. lists == [[3], [], ...
list = [1,2,3,4,5] list.append(5) list is now: 1. [1,2,3,4,5,5] 2. [1,2,3,4,5]
When python creates functions defined by "def" statement? (multiple choice question) 1. Function is created ...