Home / MCQ Bank / Computer
Computer Functions In Python Difficulty: Medium

What will be the output of the following Python code? def to_upper(k): k.upper() x = ['ab', 'cd'] print(list(map(to_upper, x)))

Select the correct option to test your answer:

More Computer Questions

The operator used in PHP to access property of an object is . . . . . . . . What is the output of the given code? a="string" b="strings" if(a==b) print ("a and b are same") else print "Not same" end The . . . . . . . . is a framework-specific entity that negotiates resources from the ResourceManager. Which key deletes the character to the left of the cursor? What will be the output of the following C# code? static void Main(string[] args) { object[] a = {" 1 ", 4.0f, " harsh "}; fun(a); Console.ReadLine(); } static void fun(params object[] b) { for (int i = 0; i < b.Length - 1; i++) Console.WriteLine(b[i] + " "); }