Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose t = (1, 2, 4, 3), which of the following is incorrect? O a. print(len(t)) O b.print(max(t)) O c. t[3] = 45 O d.print(t[3])
Suppose t = (1, 2, 4, 3), which of the following is incorrect? O a. print(len(t)) O b.print(max(t)) O c. t[3] = 45 O d.print(t[3]) What will be the output of the following Python code? tuple = (10, 30, 77, 88, 77, 55, 44, 77, 88, 55) x = tuple.count(77) print(x) a. 5 O b. 2 O c.3 O d. 77 Which of the following is correct about sets in Python? a. Sets are written with curly brackesAnswer O b. Sets are immutable data types O c. Sets is a collection of ordered elements. O d. Set elements are always indexed. Identify the method to add sequence of items in the set. O a. s.popo b. update.s(seq) O C. s.update(seq) O d. s.remove(val) What will be the output of the following Python code? def mkx): def mk10: print("Decorated") XO return mk1 def mk20: print(" Ordinary") p = mk(mk2) PO O a. Ordinary Ordinary O b. Decorated Ordinary c. Decorated Decorated O d. Ordinary Decorated
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started