Python data types, map syntax, exception handling, API latency and Git basics
Filed under Deutsche Bank
Free read 2 of 3Rate yourself honestly with a reason. Built-in types: int, float, complex, str, bool, list, tuple, set, frozenset, dict, bytes, NoneType.
The question
Python and basics: rate your Python skill, list the data types, write dictionary (map) syntax and access keys and values, show try/except syntax and its use, explain API latency, and how to initialise a local Git repository.
Approach
Rate yourself honestly with a reason. Built-in types: int, float, complex, str, bool, list, tuple, set, frozenset, dict, bytes, NoneType.
d = {'a': 1, 'b': 2}; d['a'] gives 1; d.keys(), d.values() and d.items() give keys, values and pairs; d.get('x', 0) avoids KeyError.
try: risky() except ValueError as e: handle(e) else: ok() finally: cleanup(). Use it to handle errors gracefully, and raise to throw your own exceptions.
API latency is the time from sending a request to receiving the response, affected by network, server processing and payload size. Reduce it with caching, indexing and compression. Initialise a repo with git init (then git add and git commit).
Tips
- What they are testing: Hands-on fundamentals and the ability to write basic syntax correctly.
- Common mistake: Overrating your Python skill, and mixing up latency (delay of one request) with throughput (requests per time).
Related Deutsche Bank questions
Collected from public candidate posts and coding forums. Updated Nov 2026.