Stop spending hours on one task

AI assistant explains errors and suggests solutions — you learn faster

1def solve(nums, target):
2 for i in range(len(nums)):
3 if nums[i] == target:
4 return i
AI Assistant

On line 2 you're iterating by index — that's not idiomatic Python.
Use enumerate(nums) to get both the index and value at once.

Prepare for real interviews

Solve tasks that top companies actually ask in interviews

Amazon
Avito
Magnit
VK
x5
Google
Sberbank
Capital One

Prove your skills to employers

Get a certificate after solving 50+ tasks successfully

Certificate Preview

Access to reference solutions

Solved but not sure it's optimal? We'll show you the best approach

Premium Account

  • Unlimited hints from AI Assistant
  • Certificate of successful completion of Python tasks in the trainer
  • Access to tasks from top company interviews
  • Access to reference solutions for tasks
  • Access to advanced Python courses

Payment method

visamastercardmirsberpay
Russian bank card
visamastercardamericanexpressunionpay
Bank card
$ 24,90
6-month access

Our Users Love Us

Review avatar
Marina
Spent six months on Python video courses. Everything made sense in lectures, but sitting down to write code from scratch never worked. Here you write from task one. On harder tasks I'd get stuck, but premium unlocks reference solutions, and I'd compare my janky code to the canonical version line by line. A month in, I wrote a script at work that builds a report from 30 CSV files.
Review avatar
Artem
Bombed a tech interview on a simple dictionary task, brain just shut down under stress. Worked through interview tasks from Yandex and Avito in the trainer, at the next interview I got almost the same problem and had an offer within a week.
Review avatar
Katya
Moved from manual QA to development, and toy tasks about factorials and Fibonacci were driving me crazy. In the trainer it's JSON parsing, CSV processing, API work, exactly what I do at my job, just without deadlines and the fear of breaking prod.

FAQ

What tasks will open solutions
Premium expiration date
How to get a certificate
Will progress be saved if I purchase a premium subscription
What does the certificate look like
Will the certificate be available after the premium expires
Didn't find an answer to your question