# Python File Methods

. Updated on

Python File Methods: A file object is created using open function and here is a list of functions which can be called on this object. Python provides an inbuilt function for creating, writing and reading …

# Python program to add digits of a number

By Pinki. Updated on

In this article, we have shared a simple Python program to add the digits of a number using while loop. Once you execute this program it will ask to enter a positive number and the …

# Python program for subset sum problem

. Updated on

Python program for subset sum problem: In computer science, the subset sum problem is an important decision problem in complexity theory and cryptography. There are several equivalent formulations of the problem. One of them is: …

# Generating strong password using Python

. Updated on

In this article, we have shared a python script to generate the strong password. If you want to generate the random strong password by using the python program, then this tutorial is for you. Generating …

. Updated on

# Python examples on simple mathematical problems

. Updated on

In this program, we have shared the mathematical functions. Below are some python program to solve simple mathematical problems. Python and how you can use them in your program. Python examples on simple mathematical problems Below …

# Program for adding two binary numbers

. Updated on

Program for adding two binary numbers In this tutorial, We have used two built-in functions int() and bin(). The int() function converts the given string into an integer number considering the provided base value. Program …

# Python Program to Solve n-Queen Problem with Recursion

. Updated on

What is n-Queen Problem? The eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other; thus, a solution requires that no two …

# Python Program to Solve the Celebrity Problem

. Updated on

What is Celebrity Problem In a party of N people, only one person is known to everyone. Such a person may be present in the party, if yes, (s)he does not know anyone in the …

# Python Program to Solve n-Queen Problem without Recursion

. Updated on

What is n-Queen Problem? The eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other; thus, a solution requires that no two …

# Python Programs on Games

. Updated on

Free Python Games is an Apache2 licensed collection of free Python games intended for education and fun. The games are written in simple python games with the complete source code. Python is one of the …

# Python Program to Implement Tower of Hanoi

. Updated on

Problem Statement: The program prompts the user for the number of disks n and the program prints the procedure to move n disks from peg A to peg C using peg B. What is the …

# Write a program to find the title tags from a given html document

. Updated on

In this python exercise “Write a program to find the title tags from a given html document”. Below are the solution to find the title tags from a given html document. Find the title tags …

# Bisect Algorithm programs in Python

. Updated on

In this tutorial, we are going to share the about the bisect algorithm programs in Python with the out. The bisection algorithm is a simple method for finding the roots of one-dimensional functions. The goal …

# Implementation of k-nearest neighbor algorithm in Python

. Updated on

The k-nearest neighbors algorithm (k-NN) is a non-parametric method used for classification and regression. In both cases, the input consists of the k closest training examples in the feature space.The K-nearest neighbor classification performance can often be significantly improved through (supervised) metric learning. Popular …