
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
Found 33676 Articles for Programming

1K+ Views
Python has risen as one of the foremost favored programming languages all-inclusive, owing to its flexibility, user-friendliness, and extensive libraries. Whether a beginner or a prepared developer, having a collection of convenient code parts can spare you important time and energy. In this article, we'll delve into ten Python code fragments that can be employed to tackle routine programming challenges. We'll guide you through each fragment, elucidating how it operates in straightforward steps. Swapping two variables Switching the values of two variables is a frequent task in programming. In Python, this can be achieved without utilizing a temporary variable ... Read More

206 Views
What Is a 1/4 Mile Calculator? A 1/4 mile calculator helps to estimate how long it will take for a vehicle to cover a quarter-mile (about 400 meters) based on speed. This is a common way to measure a car's acceleration and performance in drag racing. To make this estimation, we will use the following basic formula: ET = (weight / horsepower) ** (1/3) * 5.825 In this formula: ET stands for Estimated Time in seconds Weight is the car’s weight in pounds Horsepower is the engine power in HP Creating a 1/4 Mile Calculator Using PyQt5 ... Read More

4K+ Views
Pyspark is the library which provides the interface to Apache spark. The Apache spark is the distributed computing system to process the large datasets. We have the feasibility in pyspark to write the spark applications using python apart of the traditional languages Java and Scala. Verifying for a substring in a PySpark Pyspark provides the dataframe API which helps us in manipulating the structured data such as the SQL queries. It can read various formats of data like parquet, csv, JSON and much more. It provides the features to support the machine learning library to use classification, regression, ... Read More

233 Views
Checking horoscope using Python Python is used in many applications all over the world. One of the applications is to check the horoscope on that day or day after using the Beautifulsoup of the python language. The following are the steps to be followed to check the horoscope using python. Installing the beautifulsoup Firstly, we have to install the beautifulsoup package in our python working envinornment. The below is the code. pip install bs4 The output of installing the beautifulsoup is as follows. Collecting bs4 Downloading bs4-0.0.1.tar.gz (1.1 kB) Preparing metadata (setup.py): started ... Read More

2K+ Views
PyMongo is one of the libraries in python which provides a way to interact with the MongoDB , the most popular NoSQL document oriented database. It allows the developers to easily connect with the mongoDB instances and interact with the databases and collections, insert and retrieve the documents and other various operations. Cursors in PyMongo A cursor in MongoDB is an object that points to the documents. When we execute the find() method by passing a search query as a parameter, the results of the given query are returned in the form of a cursor object. By iterating ... Read More

14K+ Views
Generally, if you need to verify whether your current system is connected to the internet or not, we can do so, by simply sending request to any of webserver application using the browser or, using the dos command ping. The ping command is typically used to troubleshoot connectivity, reachability, and name resolution. Similarly, in Python we can verify the user’s internet connectivity status either by sending a request to any web application or by using the ping command. Using the request.get() method In python, the modules request helps us to send HTTP requests using Python. By sending requests ... Read More

229 Views
Bootstrap is the popular HTML, CSS, JavaScript framework which helps us to develop responsive, mobile first, front end web applications. It provides design templates for forms, typography, navigation, buttons and other interface components. Python is the best language to manipulate the web content. The Selenium Library If we need to click a link using Python programming we should use the selenium library. It is the most popular open source automation testing tool which allows us to make the web browsers automate. Selenium is mainly used for the testing purpose of the automated web applications and also used for other ... Read More

2K+ Views
Python provides Pywebcopy module, that allows us to download and store the entire website including all the images, HTML pages and other files to our machine. In this module, we have one of the functions namely save_webpage() which allows us to clone the webpage. Installing pywebcopy module Firstly, we have to install the pywebcopy module in the python environment using the following code. pip install pywebcopy On successful installation we will get the following output – Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Collecting pywebcopy Downloading pywebcopy-7.0.2-py2.py3-none-any.whl (46 kB) . . ... Read More

660 Views
JSON can be abbreviated as JavaScript Object Notation. It is a text-based file used for transferring and storing data in programming languages. It is supported by the python programming language using a built-in package namely JSON, Its text is given in the quoted string format in which contains a key and value within the curly braces{} as same as a dictionary. For using JSON in python, we have to import the JSON package in python script. JSON package provides several methods, among them one of the methods is dumps. This is used to convert the python tuple objects into ... Read More

266 Views
Introduction Regression is the technique of predictive modeling to analyze the relationship between the independent variable and the dependent variable. The relation between the target(dependent variable) and the independent variable may be either linear or non-linear. The target is always continuous value and regression is widely used in forecasting, understanding cause and effect as well as in predictive analysis. In this article let us explore various regression techniques available. Regression Techniques Linear Regression − It is the simplest of all regression techniques. In Linear Regression the independent and the target variable are linearly related or dependent on each ... Read More