Quiz 2 Python Data Structure Question No. 4

Hello Sarthak and Rahul,

So the question of the quiz is:

                s=('CodingBlocks',4)
      
                             type(s)

I chose the option: It will be an error but my answer was incorrect and the answer was Tuple.

But after submitting I ran the code in jupyter-notebook and i found this:

SO can you tell me what should be done?

Thank You!

Hi @sarthakagg105
I have shared an in-depth explationation with you via chat please have a look once
Hope that might helps :slight_smile:

Hi Rahul, once again. So can you tell me how can I open the chat? I have looked everywhere but I cannot seem to find.:sweat_smile: Thank You!

Hi @sarthakagg105
what exactly the question wants you to answer is what is the type of s in s=(‘CodingBlocks’,4), there might have been some typo due to which there some extra space.

If I write
s=(‘CodingBlocks’,4)
type(s)
the output comes as tuple

If you omit the extra indentation before the type(s) function in your jupyter notebook it won’t show an error

Hope this might helps :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.