Python Programs For Interview
Python Program to check for Leap year.
num = int(input("Enter a year: "))
if num % 4 == 0:
if num % 100 == 0:
if num % 400 == 0:
print(f'{num} is not leap year')
else:
print(f'{num} is leap year')
e...
imkanchan.hashnode.dev7 min read
Himanshu Gupta
Software Developer
Thank you for sharing these Python programs that cover various concepts and problem-solving skills.