Question: PYTHON IDLE 1) Write a Python program that takes as input a month and year (as integer numbers) and determines the number of days in

PYTHON IDLE

1) Write a Python program that takes as input a month and year (as integer numbers) and determines the number of days in the month, and prints them to the output. 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. Consider a year a leap year if it is evenly divisible by 4.

2) Write a Python program that asks users to input 10 float numbers (using a while statement), and print the minimum number.

3) Write a Python program that asks users to input an integer number and print the summation of its digits and total number of its digits. (i.e., for n=35, sum is 3+5=8, and total number of digits is 2.

4) Write a simple calculator python program that prints the following menu:

1. Addition

2. Subtraction

3. Multiplication

4. Division

5. Quit

That takes as input the number of desired operations and 2 numbers and outputs the calculation result. After printing each calculation result the program must reshow the operations menu and ask user if she/he wants to choose another operation or quit.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets work through each problem step by step Ill provide Python code for each task 1 Determine the Number of Days in a Month The program will take an i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!