Catalog of quizzes
- boolean (8)
- boolean/literal (10)
- boolean/operation/add (1)
- boolean/operation/compare (4)
- boolean/operation/not (1)
- build-in/all (2)
- build-in/any (2)
- build-in/append (1)
- build-in/bool (1)
- build-in/bytes (1)
- build-in/callable (1)
- build-in/dict (4)
- build-in/divmod (1)
- build-in/enumerate (2)
- build-in/filter (3)
- build-in/float (2)
- build-in/frozenset (1)
- build-in/getattr (1)
- build-in/int (4)
- build-in/isinstance (3)
- build-in/issubclass (1)
- build-in/iter (1)
- build-in/len (5)
- build-in/list (9)
- build-in/map (1)
- build-in/max (1)
- build-in/min (1)
- build-in/next (2)
- build-in/pow (1)
- build-in/print (4)
- build-in/range (7)
- build-in/reversed (1)
- build-in/round (1)
- build-in/set (2)
- build-in/setattr (1)
- build-in/slice (1)
- build-in/sorted (1)
- build-in/str (2)
- build-in/sum (2)
- build-in/tuple (5)
- build-in/type (14)
- build-in/yield (4)
- build-in/zip (2)
- built-in/enumerate (1)
- built-in/isinstance (1)
- built-in/sum (1)
- byte (1)
- byte/literal (4)
- byte/operation/add (1)
- byte/operation/compare (1)
- byte/operation/hex (1)
- bytes (1)
- class (2)
- class/classmethod (1)
- class/dataclass (1)
- class/inherit (2)
- class/inheritance (3)
- class/method/__add__ (1)
- class/method/__eq__ (1)
- class/method/__len__ (1)
- class/method/abstractmethod (1)
- class/method/call (1)
- class/method/ceil (1)
- class/method/class (1)
- class/method/contains (1)
- class/method/del (1)
- class/method/divmod (1)
- class/method/eq (1)
- class/method/floor (1)
- class/method/ge (1)
- class/method/iadd (1)
- class/method/invert (1)
- class/method/lt (2)
- class/method/missing (1)
- class/method/mod (1)
- class/method/pos (1)
- class/method/staticmethod (1)
- class/method/super (1)
- class/property (2)
- class/prototype (1)
- class/self (1)
- class/super (2)
- class/variable (4)
- complex (1)
- decorator (2)
- dict (4)
- dict/equal (1)
- dict/indexing (4)
- dict/literal (3)
- dict/lvalue (1)
- dict/operation/clear (1)
- dict/operation/copy (1)
- dict/operation/fromkeys (7)
- dict/operation/get (3)
- dict/operation/item (1)
- dict/operation/items (2)
- dict/operation/keys (5)
- dict/operation/pop (3)
- dict/operation/popitem (1)
- dict/operation/set (1)
- dict/operation/setdefault (3)
- dict/operation/update (1)
- dict/operation/values (2)
- dict/var-keyword (1)
- expression/evaluation_order (1)
- expression/integer_division (1)
- expression/lambda (1)
- expression/operation/and (1)
- expression/operation/equality (4)
- expression/operation/in (3)
- expression/operation/is (6)
- expression/operation/modulo (4)
- expression/operation/not (1)
- expression/operation/not_in (1)
- expression/operation/or (2)
- expression/operation/power (1)
- expression/operation/smaller (1)
- expression/priority (2)
- float (1)
- float/comprehension (1)
- float/operation/as_integer_ratio (2)
- float/operation/compare (1)
- float/operation/is_integer (1)
- float/operation/pow (1)
- float/operation/round (1)
- float/round (1)
- function (5)
- function/inner (7)
- function/inner_function (1)
- function/lambda (3)
- function/lambda/closures (1)
- function/object (1)
- function/parameter (1)
- function/parameter/default (1)
- function/parameter/unpacking (2)
- function/variable (1)
- generator (9)
- generator/definition (2)
- generator/reusable (1)
- int (2)
- int/literal (3)
- int/operation/abs (1)
- int/operation/bin (1)
- int/operation/bit_count (1)
- int/operation/bit_length (2)
- int/operation/divmod (1)
- int/operation/modular_exponentiation (1)
- int/operation/negation (1)
- int/operation/pow (1)
- int/operator/exponentiation (1)
- int/pow (1)
- iterator (7)
- lambda (2)
- list (2)
- list/comprehension (2)
- list/literal (18)
- list/operation (1)
- list/operation/append (5)
- list/operation/compare (1)
- list/operation/copy (1)
- list/operation/count (2)
- list/operation/extend (1)
- list/operation/in (1)
- list/operation/insert (3)
- list/operation/multiply (2)
- list/operation/multiply, (1)
- list/operation/pop (2)
- list/operation/reverse (1)
- list/operation/slice (5)
- list/operation/sort (4)
- object/access_identifier (1)
- object/compare (2)
- object/identify (7)
- object/reference (9)
- object/variable (5)
- process/parameter (1)
- scope (11)
- scope/global (3)
- scope/nonlocal (3)
- set (2)
- set/comprehension (3)
- set/literal (2)
- set/operation (1)
- set/operation/add (2)
- set/operation/addition (3)
- set/operation/clear (1)
- set/operation/definition (3)
- set/operation/difference (2)
- set/operation/discard (1)
- set/operation/intersection (1)
- set/operation/intersection_update (1)
- set/operation/isdisjoint (1)
- set/operation/issuperset (1)
- set/operation/length (1)
- set/operation/remove (1)
- set/operation/symmetric_difference (2)
- set/operation/union (2)
- set/operation/update (1)
- set/parameter (1)
- statement/as (1)
- statement/assert (2)
- statement/assignment (2)
- statement/break (1)
- statement/continue (2)
- statement/del (3)
- statement/for (7)
- statement/for/else (1)
- statement/global (3)
- statement/if (1)
- statement/import (1)
- statement/is (1)
- statement/not (1)
- statement/pass (1)
- statement/raise (2)
- statement/return (1)
- statement/try (4)
- statement/try, (1)
- statement/try/else (1)
- statement/try/except (1)
- statement/try/finally (1)
- statement/while (2)
- statement/yield (1)
- string (1)
- string/concatenation (1)
- string/immutable (2)
- string/literal (2)
- string/operation/count (1)
- string/operation/empty_value (1)
- string/operation/encode (3)
- string/operation/format (3)
- string/operation/is (1)
- string/operation/join (1)
- string/operation/maketrans (1)
- string/operation/multiple (1)
- string/operation/multiply (1)
- string/operation/partition (1)
- string/operation/rfind (1)
- string/operation/rpartition (1)
- string/operation/slice (4)
- string/operation/split (2)
- string/operation/splitlines (2)
- string/operation/strip (1)
- string/operation/translate (2)
- string/operation/upper (1)
- string/operation/zfill (1)
- thread/parameter (1)
- thread/parameter/args (1)
- thread/parameter/target (1)
- tuple (3)
- tuple/assignment (1)
- tuple/literal (11)
- tuple/operation (1)
- tuple/operation/contains (1)
- tuple/operation/count (3)
- tuple/operation/index (2)
- tuple/slice (1)
- type (12)
- type/annotation (3)
- type/compare (1)
a = ()
print(type(a))
<class 'tuple'>
- tuple/literal
list_of_tuple = [('bob', 35, 'mgr'), ('sue', 40, 'dev')]
data = list(map((lambda row: row[2]), list_of_tuple))
print(data)
['mgr', 'dev']
- build-in/map
- build-in/list
- list/literal
- tuple/literal
- lambda
tuple1 = (1, 2, 3)
tuple2 = tuple(1, 2, 3)
print(tuple1 == tuple2)
TypeError: tuple expected at most 1 argument, got 3
- tuple/literal
- build-in/tuple
lst = [(2, 3), (2, 9), (5, 0)]
a = dict(lst)
print(a)
{2: 9, 5: 0}
- build-in/dict
- build-in/int
- list/literal
- tuple/literal
def foo(value):
t = value,
return t
print(foo(1))
(1,)
- tuple/literal
t1 = (11, 14, 54, 0, 58, 41)
res = len(set(t1)) == len(t1)
print(res)
True
- tuple/literal
- set/parameter
value = (4, 5, 6)
print(type(value) is tuple)
True
- tuple/literal
- type
tpl = (4, 1, 0, 'a')
a = any(tpl)
print(a)
True
- build-in/any
- tuple/literal
- boolean
str = 'abc'
num = (10, 20, 30, 40)
a = list(zip(str, num))
print(a)
[('a', 10), ('b', 20), ('c', 30)]
- build-in/zip
- build-in/list
- tuple/literal
first, second = zip(*[(1, 4), (2, 5), (3, 6)])
print(first, second)
(1, 2, 3) (4, 5, 6)
- build-in/zip
- list/literal
- tuple/literal
vowels = ('a', 'e', 'i', 'o', 'u')
fSet = frozenset(vowels)
fSet.add('v')
AttributeError: 'frozenset' object has no attribute 'add'
- build-in/frozenset
- tuple/literal