🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 1: Portfolio

Python Challenge

Builds on these lessons

Step 1 of 3
Project

Arithmetic on Portfolio Stats

Compute an engagement rate from view and like counts: likes / views * 100. Python's arithmetic operators work exactly like a calculator, with the usual order of operations — multiplication and division bind tighter than the surrounding division here.

🎯 Your Task

Please add the exact code shown in the light gray box below to your editor.Do not delete your previous code, just insert these new lines in the correct place!

views = 1200
likes = 340
engagement_rate = likes / views * 100

print(f"Engagement rate: {engagement_rate:.1f}%")
← Previous
Next