Question: Create two tuples named months1 and months2, including first six months and last six months, respectively. Create a new tuple from concatenation of the two

Create two tuples named months1 and months2, including first six months and last six months, respectively. Create a new tuple from concatenation of the two tuples created previously. Print the tuple including all months. Print the name of the 6th month using tuple index. Query the index of the one of months. (ex.November) python IDL

#WORKLAB4.3

month1=('January','February','March','April','May','June')

month2=('July','August','September','October','November','December')

allMonths = 'months1'+ 'months2'

print('allMonths')

print(allMonths[6])

print(allMonths.index('November'))

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!