Replace YOUR NAME with your name in _quarto.yml and index.qmd.
Describe yourself in index.qmd.
Add the picture file (e.g., png) of your profile photo to img directory. Then correct img/profile.png in index.qmd accordingly.
Add the PDF file of your resumé to the website working directory in your laptop.
Correct links for your resumé, LinkedIn, email, and optionally social media.
Make sure that you do not have any broken links in your website.
Add a menu of “Project” to the navigation bar using danl_proj_nba.ipynb.
danl_proj_nba.ipynb file is available from Brightspace.
Add a drop-down menu of “Python Data Analysis” to the navigation bar.
Under the menu of “Python Data Analysis”, add links for the following webpage:
Pandas Basics using pandas_basic.ipynb
Seaborn Basics using seaborn_basic.ipynb
pandas_basic.ipynb and seaborn_basic.ipynb files are available from Brightspace.
Add a “Python Basics” blog post to your blog using Jupyter Notebook.
In your “Python Basics” blog post, briefly explain Python Basics we discussed in Lecture 4 and Lecture 5, and in Classwork 4
Choose a proper image file for a thumbnail for a blog post.
An YAML header template for a blog post can be found below, including an image option:
Click to Check the Answer!
---title: BLOG_TITLEauthor: YOUR_NAMEdate: 2025-02-14categories: [tag_1, tag_2, tag_3] # tags for a blog post (e.g., python)image: "image.png"toc: true---
Use the 3-step git commands (git add ., git commit -m "MESSAGE", and git push) to update your online website.
Part 3. Python Basics
Question 0
Provide your GitHub username.
Question 1
Q1a
Create a list of integers from 1 to 10.
Append the number 11 to the list and remove the number 5.
dict_salaries = {'Alice': 50000, 'Bob': 60000, 'Charlie': 70000}dict_salaries['Dana'] =65000dict_salaries['Alice'] =55000for name, salary in dict_salaries.items():print(name, ":", salary)# An f-string (formatted string literal) is a way to embed expressions # inside string literals using curly braces `{}`.for name, salary in dict_salaries.items():print(f'{name}: {salary}')
Assign two variables, role and salary, to 'Manager' and 85000, respectively.
Use nested if-else statements to print:
'Eligible for bonus' if the role is 'Manager' and the salary is greater than 80,000.
'Eligible for raise' if the role is 'Analyst' and the salary is less than 60,000.
'No action needed' for all other cases.
Click to Check the Answer!
role ='Manager'salary =85000if role =='Manager':if salary >80000:print('Eligible for bonus')else:print('No action needed')elif role =='Analyst':if salary <60000:print('Eligible for raise')else:print('No action needed')else:print('No action needed')