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
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