r/learnpython • • 25d ago

Second-year BCA student — how do you keep a daily Python habit alive when college deadlines pile up?

0 Upvotes

4 comments sorted by

3

u/koraynar 25d ago

Side projects stall during exam weeks because they have a high context-switching cost—by the time you remember where you left off and what bug you were fixing, 30 minutes are gone. What actually survives heavy deadline weeks are three small habits:

  1. **Drop "project sessions" during exam weeks and do a 10-minute `1-cell` data drill instead:** Keep a single `daily_drills.ipynb` (or `.py` script) pointed at one local CSV dataset you already know. During exam weeks, your only goal is **one 10-minute operation** before closing the laptop—for example, one `df.groupby(...).agg(...)`, one date-column filter, or one `matplotlib` chart. Ten minutes keeps `pandas` and Python syntax in working memory with zero setup friction.
  2. **Always leave a `# NEXT:` breadcrumb before pausing a side project:** Before you close a project for assignment week, write a 2–3 line comment at the exact line where you stopped:

    ```python

    # NEXT: clean null values in 'price' column of raw_sales.csv

    # Expected output: DataFrame with ~1,400 rows passed into plot_monthly_trend()

    ```

    When you come back two or three weeks later, you don't have to reverse-engineer your own code—you just execute that one small task.

  3. **Never restart with video tutorials—build your own `syntax_reference.ipynb` cheat sheet:** Forgetting exact syntax after a 2–3 week break is completely normal, even for working developers. Re-watching tutorials feels productive, but it's passive and slow. Instead, every time you learn a pattern (`merge`, boolean indexing, `apply`, list comprehensions, `train_test_split`), save a 5-line runnable example in your own notebook. After exams, skim your own notebook for 10 minutes and jump straight back into writing code.

1

u/Norega-Iziegbe80 25d ago

plain .py files beat notebooks for the syntax reference sheet imo, it is way faster to grep through a folder of scripts than wait for a notebook kernel to spin up