Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Lab5 Lab5.py 1 # Lab 5 2 # What will the following Program Print 4 list1 = [chr(100), Audi, FCA, General Motors, Ford, Dodge, 5

image text in transcribed

Lab5 Lab5.py 1 # Lab 5 2 # What will the following Program Print 4 list1 = [chr(100), "Audi", "FCA", "General Motors", "Ford", "Dodge", "5" + chr (102) slistl.sort) 6 print (listl) 8 flowers = [("Marigold", -5), ("Tulips", 2), ("Daffodils", 6), ("Alstroemeria", 1)] flowers. sort() 10 print (flowers) 12 xl = 5 13 yl = 5 14 x2 = 'Agapanthus 15 y2 = 'Star of Bethlehem 16 x3 = [1,2,3] 17 y3 = (1,2,3] 20 print (xl is not yl) print(x2 is y2) 24 print(x3 is y3) 26 X 27 y = 'Bee Balm Flower {1:-1,2: 'a'} 20 print(' f in x) 30 print('Balm' not in x) 31 print (1 in y) 32 print('a' in y) 34 txt = " Hello from the outside At least, I can say that I've tried 35 x = txt.startswith("outside", 17, 23) 36 print("x is " + str(x)) 38 tuplex = 5, 10, 15, 20, 25 30 print (tuplex) 40 tuplex = 5,15 41 print (tuplex) + tup = ('r', 'o', 'T', 'e', 'y', 'p', 'o','1', 'e', 'y') 45 tupl = ''.join(tup) 46 print (tupl) 47 tuplex = 2, 4, 5, 6, 2, 3, 4, 4, 7 48 print (tuplex)

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

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

1. Outline the listening process and styles of listening

Answered: 1 week ago

Question

4. Explain key barriers to competent intercultural communication

Answered: 1 week ago