Ravindra BagaleCourses & study guides

3. Python Basics for Data Work

3.1 Variables and Types

city = "Pune"                 # str
orders_today = 212            # int
gmv = 1_25_450.75             # float (underscores OK in Python 3.6+)
is_festival = True            # bool
print(type(city), type(gmv))

f-strings build readable messages:

print(f"{city} GMV today: ₹{gmv:,.2f}")
# Pune GMV today: ₹125,450.75

Note: Python’s :, uses international thousands separators. For full Indian lakh format in reports you often format manually later; for class, :,.2f is fine.

Ravindra Bagale's Tip

Khup students gmv = "125450" asa text thevtaat aani mag add nahi hota. Numbers sathi quotes kadha. type() ne check kara. Dhyan rakho!