Title: Lab 5 — Build Your Student Profile Script
Course: AIINFRA 100: AI Systems & Development Environments > Section: Week 05 — Python for AI — Fundamentals

🛠️ Lab 5 — Build Your Student Profile Script (50 pts)

Goal: Practice variables, lists, dicts, and functions by writing a small script that describes you as a learner — then run it two different ways and compare the results. Steps:

1. Open VS Code and open (or create) your course project folder from Week 1.
2. Open the integrated terminal (Ctrl+ or Cmd+ ) and create a virtual environment: python -m venv .venv
3. Activate the virtual environment:
  - macOS/Linux: source .venv/bin/activate
  - Windows: .venv\Scripts\activate
  - Confirm it worked — your terminal prompt should now show (.venv) at the start of the line.
4. In VS Code, make sure the Python interpreter selected (bottom status bar) points to this project's .venv. Click it and choose the .venv interpreter if it isn't already selected.
5. Create a new file named student_profile.py in your project folder.
6. In student_profile.py, create three variables: your name, your age, and a one-sentence learning goal for this course.
7. Create a list called skills_to_learn containing 3 skills you want to build in this course (e.g., ["Python basics", "Git", "Prompting"]).
8. Create a dict called skill_hours that maps each skill in your list to how many hours per week you plan to spend on it (e.g., {"Python basics": 3, "Git": 1, "Prompting": 2}).
9. Write a function summarize(name, skills_dict) that returns a formatted string summarizing the name, the skills, and the total planned hours per week (use sum() and len() on the dict).
10. Call summarize(...) with your variables and print() the result.
11. Run the script from the terminal: python student_profile.py. Note the output.
12. Run the script using VS Code's Run button (or Run/Debug panel). Note the output.
13. At the bottom of your file, add a comment (starting with #) with one sentence stating whether the two outputs differed and why (or why not).
14. Save your file.

Deliverables: Upload your completed student_profile.py file, AND paste your full script plus your one-sentence terminal-vs-Run-button comparison into the text entry box.