Python Tutorial
How To Convert Python List / Tuple Element To String
This example tell you how to convert a python list element to a python string, the list data can be pure string data or mix data type such as string, number and boolean. The methods below also applicable to python tuple ( read only python list ), just replace [ ] to ( ). Below …
How To Convert Python List / Tuple Element To String Read More »
Python 3 Unittest Html And Xml Report Example
The unit test is very useful and helpful in programming. Python provides a built-in unittest module for you to test python class and functions. With third-party modules such as html-testRunner and xmlrunner , you can also generate test case reports in HTML or XML format. This article will tell you how to do that.
Python Create File If Not Exists Example
This article will tell you some methods about how to use python os.path and pathlib module to operate files. The tasks are listed below. Check if a file exists or not, create the file if not exists. Check if a file is a directory or a file. Check if the file is readable, writable, or …
How To Extract Text From Pdf In Python
This example will show you how to use the python modules PyPDF2, textract, and nltk to extract text from a pdf format file. 1. Install Python Modules PyPDF2, textract, and nltk. Open a terminal and run the below command to install the above python library. pip install PyPDF2 pip install textract pip install nltk When …