My Blog

My WordPress Blog

My Blog

My WordPress Blog

Day: October 3, 2024

OOP Concepts

OOP is an abbreviation that stands for Object-oriented programming paradigm. It is defined as a programming model that uses the concept of objects which refers to real-world entities with state and behavior. This chapter helps you become an expert in using object-oriented programming support in Python language. Python is a programming language that supports object-oriented programming. This makes it […]

Installation

You can start learning the basics of programming in PHP with the help of any of the online PHP compilers freely available on the Internet. This will help in getting acquainted with the features of PHP without installing it on your computer. Later on, install a full-fledged PHP environment on your local machine. One such […]

Python OS.Path Methods

The os.path is another Python module, which also provides a big range of useful methods to manipulate files and directories. Most of the useful methods are listed here − Sr.No. Methods with Description 1 os.path.abspath(path)Returns a normalized absolutized version of the pathname path. 2 os.path.basename(path)Returns the base name of pathname path. 3 os.path.commonprefix(list)Returns the longest path prefix […]

Python OS File/Directory Methods

The OS module of Python provides a wide range of useful methods to manage files and directories. These are the built-in methods that help in interacting with operating systems. Most of the useful methods are listed here − Sr.No. Methods & Description 1 os.access(path, mode)Use the real uid/gid to test for access to path. 2 os.chdir(path)Change the […]

File Methods

A file object is created using open() function. The file class defines the following methods with which different file IO operations can be done. The methods can be used with any file like object such as byte stream or network stream. Sr.No. Methods & Description 1 file.close()Close the file. A closed file cannot be read […]

Directories

Directories in Python In Python, directories, commonly known as folders in operating systems, are locations on the filesystem used to store files and other directories. They serve as a way to group and manage files hierarchically. Python provides several modules, primarily os and os.path, along with shutil, that allows you to perform various operations on directories. These operations […]

Scroll to top