Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

give answers without showing operations 1. stu =[1,2,3,[ 'Bob', 22], ['Peter', 21],' Hello world'] stu[1]: stu[3][0]: len(stu): 2. spam =[[cat,bat],[10,20,30,40,50]] spam[0]: spam[1]: spam[1:1] 3. spam

give answers without showing operations
image text in transcribed
1. stu =[1,2,3,[ 'Bob', 22], ['Peter', 21],' Hello world'] stu[1]: stu[3][0]: len(stu): 2. spam =[[cat,bat],[10,20,30,40,50]] spam[0]: spam[1]: spam[1:1] 3. spam = 'This is a computer' spam[2:7]: spam[7:]: len(spam): 4. spam= 'This is a computer.' spamsplit0: spamsplit(ABC): spamsplit(::): 5. a=77,b=aa ord(b2) ord(b): chr(a) : 6. p=Path(C: /Windows/Media spamtxt') p.anchor: p.parent: p.name: 7. s=a,b,c,s2=(x,y,z),s3=y s.split('): s3.join (abc): s3 join(s2) 8. batRegex = re compile (r Bat(wo ' man' ) mo1 = batRegex. search('The Adventures of Batman') mol.group0: mo2 = batRegex. search( The Adventures of Batwoman') mo2.group0: mo3 = batRegex.search (The Adventures of Batwowowowoman') mo3.group0 9.s=[1,2,3,4,5,6] 5[:1]: 5[2]:. del 5[:1] : 10n=123 n3n33:n3

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

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

i need 6 4 7 .

Answered: 1 week ago

Question

2. How do these vengeful heroes exorcise their daemons?

Answered: 1 week ago