Exercises
About Exercises
Don't look solutions on search engines, it's not the point.
Forbidden python features
If you want more challenging exercises, you can try to find a solution without thoses features.
- imports,
- from imports,
- defining functions with builtin names,
- calls of function with builtin names except ['int', 'list', 'dict', 'bool', 'str', 'float', 'tuple', 'type', 'ord', 'chr'],
- calls of methods (eg. 'my_list.append()'),
- try clauses,
- break and continue statements,
- variables with builtin names or trailing underscore (eg. 'myvar'),
- for loop,
- list comprehensions,
- dict comprehensions,
- set comprehensions,
- generator expressions,
- yield and yield from statements,
- raise statements,
- assert statements,
- while else statements,
- global statements,
- nonlocal statements,
- following operators on list: ['+', '+=', '==', '>=', '<=', '>', '<', '!=', '='],
- following operators on dict: ['+', '+=', '==', '>=', '<=', '>', '<', '!=', '=', '|', '&'],
- 3 args form of type,
- class definitions,
- in and not in operator,
- is and is not operator,
- positional only arguments, keyword only arguments, keywords defaults arguments, defaults arguments, variadic arguments, variadic keyword arguments,
- slices,
- packing and unpacking,