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

 Lab5 Lab5.py 1 # Lab 5 2 # What will the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!