AITeky Learn

AiTeky Original

Where should I start?

A few quick questions, one for each Learn lesson. Nothing is saved or marked: it only suggests the best lesson to start from.

Answer what you can, and choose "I don't know yet" when you are not sure. There are no marks: this only finds the right lesson to start from.

What does [n * 2 for n in [1, 2, 3, 4] if n > 2] give?

def bill(price, quantity=1, discount=0.0). Which call is valid and clear?

Why is a bare except: that does nothing a bad idea?

A dictionary lacks the key "city". What does data.get("city", "unknown") return?

What does self mean inside a class method?

A bug crashed last night's job on a row with a text quantity. What is the best next step?

A job reads DRY_RUN=false from the environment and checks if os.environ.get("DRY_RUN"):. What happens?

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in