Question: Consider the following code fragment: mystruct = tuple ( [ ele * * 2 for ele in range ( 0 , 1 0 ) if

Consider the following code fragment:
mystruct = tuple([ele**2 for ele in range(0,10) if ele%3==2]) print(mystruct)
What is the output of the print statement?
A (36,49,64)
B [36,49,64]
C (4,25,64)
D [4,25,64]

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!