Skip to content

Instantly share code, notes, and snippets.

@bcalm-2
bcalm-2 / assignment.py
Created November 14, 2025 00:34
DSA Assignment
import math
def area_of_circle(r):
return math.pi * r * r
def is_leap_year(year):
if (year % 400 == 0) or (year % 4 == 0 and year % 100 != 0):
return True
return False