Write a Python program that takes as input a month and year, determines how many days are in the month, and outputs the number of days. Thirty days are in September, April, June, and November. All the rest are 31 except for February which could be 28 or 29 depending upon whether the year is a leap year or not. In general, a year is a leap year when it is evenly divisible by 4. Exceptions occur when the year is also evenly divisible by 100 in which case the year would not be a leap year unless it is evenly divisible by 400. For example, 2000 and 2012 are leap years, but 2100 is not Oct 5, 2021 in Python 42 views

+1 vote

## I am trying to write a program in python for the occurrences of a character given the start and stop values of that string only using while

Here's the code: check = input("Enter the character: ...READ MORE

## How to find the value of a row in a csv file in python and print column and row of that value ?

Hello @Khanhh , Use panda to find the value of ...READ MORE

## Print the odd and even factors of a number in Python

x = int(input("Enter any number \n")) print("The factors ...READ MORE

–1 vote

## How to filter out any digit that contains odd number in a range of number in Python?

n = list(range(10)) b = list(filter(lambda i:i%2!=0,n)) print(b) READ MORE

+1 vote

## How do I find out the sum of digits of a number in Python?

Hi, good question. If you are considering ...READ MORE

## how do I check the length of an array in a python program?

lets say we have a list mylist = ...READ MORE

## How can I find the square of a number in python?

You can use the exponentiation operator or ...READ MORE