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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started