Question: CODING IN PYTHON Please help with Python I want to see written code, not screen shots, please.. 1. Write a Python program to display the

CODING IN PYTHON Please help with Python I want to see written code, not screen shots, please..

1. Write a Python program to display the first and last colors from the following list.

color_list = ["Red","Green","White" ,"Black"]

2. Write a Python program to calculate number of days between two dates.

The function should look like this:

Python datetime.date(year, month, day) :

The function returns date object with same year, month and day. All arguments are required. Arguments may be integers, in the following ranges:

MINYEAR <= year <= MAXYEAR

1 <= month <= 12

1 <= day <= number of days in the given month and year

If an argument outside those ranges is given, ValueError is raised.

Note: The smallest year number allowed in a date or datetime object. MINYEAR is 1.

The largest year number allowed in a date or datetime object. MAXYEAR is 9999.

3. Write a Python program to find whether a given number (accept input from the user) is even or odd, print out an appropriate message to the user

4. Write a Python program that creates a histogram from a given list of integers. (A histogram is a representation of the distribution of numerical data. It's a kind of bar graph.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!