Reading Time: 1 minutesCurrent Directory in Python Current Directory in Python In order to check the current directory in Python, you can use the getcwd() function of the standard library os. current directory […]
Python
Python: Finding pathnames matching a Unix-style pattern with glob
Reading Time: 1 minutesglob in Python glob in Python The glob standard library helps to find pathnames matching a Unix-style pattern, using its glob() function. You can use Unix wildcards such as *, […]
Python: Reloading a Module
Reading Time: 1 minutesReloading a Module in Python Reloading a Module in Python Reloading a Module: There are occasions when you have changed the code of a module, and you want the changes […]
Python: Beginning with Oracle with cx_Oracle
Reading Time: 2 minutesBeginning with Oracle using cx_Oracle in Python Beginning with Oracle using cx_Oracle in Python Python has a third party library called cx_Oracle, which helps you to work with Oracle databases. […]
Archiving Files Using zipfile & tarfile Modules
Reading Time: 1 minuteszipfile & tarfile in Python zipfile & tarfile in Python The standard libraries zipfile & tarfile facilitate creating and manipulating zip & Unix tar archive files. The tarfile is not […]
Python: Arrays
Reading Time: 2 minutesArrays in Python Arrays in Python Arrays in Python: An array is a data structure which stores homogeneous elements i.e. of the same type. This is in contrast to lists […]
Python: Fetching Last n Items of an Iterable
Reading Time: 1 minutesFetching Last n Items of an Iterable in Python Fetching Last n Items of an Iterable in Python Fetching Last n Items of an Iterable: In order to fetch the […]
Python: Maintaining order in Dictionaries
Reading Time: 1 minutesMaintaining order in Dictionaries in Python Maintaining order in Dictionaries in Python Maintaining order in Dictionaries: The regular behaviour of Python dictionaries is such that, the order in which the […]
Python: Getting Largest or Smallest n items of an Iterable
Reading Time: 1 minutesGetting Largest or Smallest n items of an Iterable in Python Getting Largest or Smallest n items of an Iterable in Python Getting Largest or Smallest n items of an […]
Python: Beginning with SQLite3
Reading Time: 1 minutesSQLite3 in Python SQLite3 in Python SQLite3 in Python: Python ships a module called sqlite3 which enables you to work with a builtin database called SQLite3 without having to install […]