isn’t working on my jupyter notebook
Lshift dunder not working
showing error unsupported operand type(s) for <<: ‘type’ and ‘str’
TypeError Traceback (most recent call last)
in
----> 1 cout<<“Naman”<<“Mehra”
TypeError: unsupported operand type(s) for <<: ‘type’ and ‘str’
Can you post the screenshot of your code along with the error over here ? Only then will I be able to debug the error
Hey when you create an object of a class, then it is created like this :
cout = ostream()
Try this. I hope this helps you !
Happy coding 
again the same error
Did you run both the cells again ? Share the screenshot again of the update code.
it worked (forgot to run both cells)
Good !
Happy Learning ! 
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.
