Reading Time: 2 minutesLogging in Python Logging in Python Table of Contents Introduction to logging module and severity levels Using integers to denote severity levels Logging to a file: filename & filemode Formatting […]
lakshayarora7
Python: The "_" identifier in Interactive Sessions
Reading Time: 1 minutes_ in Python _ in Python _ in Python: The _ identifier stores the most recently printed expression. This identifier can be used to quickly access the last computed result […]
Python: Variable Swapping
Reading Time: 1 minutesVariable Swapping in Python Variable Swapping in Python: Python makes it really easy to swap values of two or more variables. Example: The way this works is that the expression […]
Using the Standard Library Module ftplib
Reading Time: 1 minutesftplib in Python ftplib in Python ftplib in Python: Python's standard library module ftplib enables users to carry out operations on a remote system using File Transfer Protocol. You can […]
Python: Running Python Scripts
Reading Time: 2 minutesRunning Python Scripts Running Python Scripts: Once you have installed Python, you executed Python scripts (.py files) in the following way: For Windows, press Windows + R for the run […]
PyPro #36 Removing end-of-line characters from a file
Reading Time: 1 minutesRemoving end-of-line characters from a file in Python Removing end-of-line characters from a file in Python Removing end-of-line characters from a file: Write a Python program to create minified versions […]
PyPro #35 Picking a random line from a file
Reading Time: 1 minutesPicking a random line from a file in Python Picking a random line from a file in Python Picking a random line from a file: Write Python code to pick […]
PyPro # 34 Printing corresponding lines of two files together
Reading Time: 1 minutesPrinting corresponding lines of two files together in Python Printing corresponding lines of two files together in Python Printing corresponding lines of two files together: Write a Python script which […]
PyPro #33 Longest word(s) in a file
Reading Time: 1 minutesLongest word(s) in a file in Python Longest word(s) in a file in Python Longest word(s) in a file: Write a Python program to extract the longest word(s) out of […]
PyPro #32 Emulating the 'head' command of Unix
Reading Time: 1 minutesEmulating the 'head' command of Unix in Python Emulating the 'head' command of Unix in Python Emulating the 'head' command of Unix in Python: In Unix, the head -n fileName […]

