zfill() function is type of padding function. This function fills only with ‘0’. Takes the resultant width of the string as argument. This is useful to pad a numeric string values.
There are various ways to split strings. The popular split function we use often is split(), rsplit(). Apart from these 3 there are a few more functions that is very useful in string manipulations.
2 reasons to use Python Type Hints
There may be situations, where we may need to dynamically place a value in a sub string of a string. You may think it is…
In our previous post A Tip A Day – Python Tip #7: OpenCV – CV2: imread() and resize(), we have explored a simple image and…
In this article we are going to learn some of the major use of OpenCV or CV2.