
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
SaiKrishna Tavva has Published 107 Articles

SaiKrishna Tavva
256 Views
The zfill() method in Python is used to pad a string with leading zeros to achieve a specified total length. If the string is already longer than the specified length, zfill() does nothing. Syntax Following is the syntax for the zfill() method string.zfill(width) Consistent File Naming Consistent ... Read More

SaiKrishna Tavva
307 Views
Python provides built-in functions to convert strings into numerical data types like integers and floats. However, it's crucial to handle errors that may arise when a string cannot be properly converted (eg, trying to convert "abc" to an integer). Following are several methods to parse a string to float or ... Read More

SaiKrishna Tavva
308 Views
The string formatting operator ('%') in Python is used for string formatting, allowing you to embed variables or values directly into a string. It's often referred to as "printf-style" string formatting because it's similar to the sprintf() function in C. How it Works The % operator takes a format string on ... Read More

SaiKrishna Tavva
19K+ Views
When working with databases, especially MySQL, handling dates correctly is crucial. Python's datetime module provides powerful tools for managing dates and times. To insert a date into a MySQL database, which has a column of DATE or DATETIME type. Following are several methods to achieve this. ... Read More

SaiKrishna Tavva
16K+ Views
File manipulation is a fundamental aspect of programming, especially when dealing with data processing and management. Python offers powerful tools for handling files and text efficiently. A common task is searching for specific text patterns within a file and replacing them with desired content. This article explores several practical methods ... Read More

SaiKrishna Tavva
4K+ Views
Hard links in Python can be created using several methods. Hard links allow you to create multiple names for the same file on the filesystem, meaning changes made to one will reflect in the other. Below are three methods to create hard links. Using os.link() ... Read More

SaiKrishna Tavva
1K+ Views
Python supports a feature known as multiple inheritance, where a class (child class) can inherit attributes and methods from more than one parent class. This allows for a flexible and powerful way to design class hierarchies. To manage this, Python provides the super() function, which facilitates the calling of methods ... Read More

SaiKrishna Tavva
6K+ Views
The datetime module in Python can be used to find the first day of the given year. In general, this datetime module is mostly used for manipulating dates and times. Some of the Common approaches to print the first day of the given year by using Python are as follows. ... Read More

SaiKrishna Tavva
2K+ Views
A sequence is a positionally ordered collection of items, where each item can be accessed using its index number. The first element's index starts at 0. We use square brackets [] with the desired index to access an element in a sequence. If the sequence contains n items, the last ... Read More

SaiKrishna Tavva
1K+ Views
Creating symbolic links (or soft links) in Python can be done using the OS module. A symbolic link is a special type of file that points to another file or directory, allowing you to access it under a different pathname. This can be useful for various reasons, such as creating shortcuts ... Read More