Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Python, help me create the code for this, thank you so much! Lists 1. Create a variable numberlist and assign it the value of

Using Python, help me create the code for this, thank you so much! image text in transcribed
Lists 1. Create a variable numberlist and assign it the value of [5.4,2,1,3). 2 Print the following values below: a len(numberlist) b. numberlist[0] Cnumberlist[1] d numberlist[2] e numberlist[3] f numberlist[4] g numberlist[5] h numberlist(-1) i numberlist[-2] i numberlist[-31 k numberlist(-4) | numberlist(-5) m numberlist|-6] Reminder: Use the print) command. The values numberlist[5] and numberlist[-] should return an error 3. Write your observation after printing all the values. 4 Create a variable named itemlist and assign it the value of [1.-2.0.[1,2,3]. "Word"] 5. Print the following values below: a len(itemlist) b. itemlist [0] citemlist [1] ditemlist [2] e itemlist [3] f len(itemlist[2] 9 itemlist [2][0) h itemlist [2][1] i itemlist [2][2] 1 itemlist (-1) k itemlist [-2] itemlist (-3) m itemlist (-4) n len(itemlist[-2]) 0 itemlist[-2][01 p.itemlist[-2][1] 9 itemlist[-2][2] itemlist[-2](-3) Sitemlist[-2][-2] t itemlist[-2](-1) 6. Write your observation after printing all the values. What does len() do

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

Oracle 10g SQL

Authors: Joan Casteel, Lannes Morris Murphy

1st Edition

141883629X, 9781418836290

More Books