Python | Numpy np.disp() method
With the help of
np.disp() method, we can get the string into a display buffer and by using stringIO class we can get the values from buffer by using
Return : Will not return anything without StringIO class.
Example #1 :
In this example by using
np.disp() method, we are able to collect message from parameter and put that message into display buffer by using this method.
‘Geeks For Geeks\n’
Example #2 :
‘Author “Jitender Kumar”\n’
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course