Python 3
Lesson 1 of 12
8%
Free Section Starter (Lesson 1)
PYTHON Free Section Starter Challenge 20 min

1. Python Syntax, Variables & Formatted F-Strings

Overview: Understand dynamic typing, string interpolations with f-strings, and type conversion functions.

Concept & Syntax Guide

Python variables do not require explicit type declarations; types are dynamically inferred at runtime. Formatted strings (f"...") evaluate expressions inside curly braces directly, offering cleaner and faster string assembly than traditional concatenation.

Hands-On Practice Exercise

Calculate Course Enrollment Total

Set course_name = "Python Masterclass" and price = 399, then output the formatted enrollment confirmation.

Target Output: Enrolled in Python Masterclass for ₹399
Need a hint? Click here to reveal
Hint: Check syntax carefully and make sure your code contains: Enrolled in Python Masterclass for ₹399
PYTHON Code Editor
1
2
3
4
5
6
7
8
9
10