1. Write a statement that assigns an empty list to the variable named empty.
2. Write a statement which assigns all the odd integer values between 0 and 10 (in order) to the variable named odds.
3. Write a statement which assigns the list of three-letter abbreviations of the months of the year to the variable months. That would be:
Capitalize correctly and have no punctuation.
4. Create a list named threes which has the values (in this order):
5. Create a list named threes which has the values (in this order):
6. Create a list named coins with the values 0.01, 0.05, 0.1, 0.25, 0.5, and 1.0.
#Answer1:
empty=[]
#Answer2
odds=[]
for i in range(0,11):
if i % 2==0:
odds.append(i)
print(odds)
#Answer3:
months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]
#Answer4:
threes=["three",3,3.0]
#Answer5:
threes=["three",3,3.0]
#Answer6:
coins=[0.01, 0.05, 0.1, 0.25, 0.5, and 1.0]
NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME
IT IS VERY IMP FOR ME
Get Answers For Free
Most questions answered within 1 hours.