Python

How To Read and Write Files Using Python.

Reading and writing to files using Python is easy to do. In this post, I will go over how to read and write to text files. First, create a file object by calling the open function. Python’s built-in open function is used to open test.txt file in read mode.  This tells python what file to…… Continue reading How To Read and Write Files Using Python.

Python

A Summary of PEP 8: Style Guide for Python Code and PEP 257: Docstring Conventions.

Most programming languages follow a basic style or formatting standard to make it easy for others to read your code. In Python, we have the PEP 8 and the PEP 257 conventions. PEP stands for “Python Enhancement Proposal”. “PEP 8: Style Guide for Python Code” and “PEP 257: Docstring Conventions” are documents that contain conventions…… Continue reading A Summary of PEP 8: Style Guide for Python Code and PEP 257: Docstring Conventions.