Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899