## Program to print the pattern ‘D’

In this article, we will learn how to print the pattern D using stars and white-spaces. Given a number n, we will write a program… Read More »

## Python Program for Sum of squares of first n natural numbers

Given a positive integer N. The task is to find 12 + 22 + 32 + ….. + N2. Examples: Input : N = 4… Read More »

## Python | Check if binary representation is palindrome

Given an integer ‘n’, write a Python function that returns true if binary representation of x is palindrome else return false. Examples: Input : n… Read More »

## Program to Convert Radian to Degree

Before moving to the actual solution, let’s try to find out what is a degree, a radian, and their relations. Radian : The radian is… Read More »

## Program to Convert Km/hr to miles/hr and vice versa

Given a speed in km/hr, Convert it to m/hr and m/hr to km/hr. Examples: Input : 150 (km/hr) Output : 93.21 Input : 100 (m/hr)… Read More »

## Python Program for Number of stopping station problem

There are 12 intermediate stations between two places A and B. Find the number of ways in which a train can be made to stop… Read More »

## Python Program for Print Number series without using any loop

Problem – Givens Two number N and K, our task is to subtract a number K from N until number(N) is greater than zero, once… Read More »

## Calculating Wind Chill Factor(WCF) or Wind Chill Index(WCI) in Python

Wind-chill or Windchill is the perceived decrease in air temperature felt by the body on exposed skin due to the flow of air. The effect… Read More »

## Python Program for compound interest

Compound Interest formula: Formula to calculate compound interest annually is given by: Compound Interest = P(1 + R/100)r Where, P is principle amount R is… Read More »

## Python Program for cube sum of first n natural numbers

Print the sum of series 13 + 23 + 33 + 43 + …….+ n3 till n-th term. Examples: Input : n = 5 Output… Read More »

## Python Program for Smallest K digit number divisible by X

Integers X and K are given. The task is to find smallest K-digit number divisible by X. Examples: Input : X = 83, K =… Read More »

## Python Program for Largest K digit number divisible by X

Integers X and K are given. The task is to find highest K-digit number divisible by X. Examples: Input : X = 30, K =… Read More »

## Python Program for Program to find the sum of a Series 1/1! + 2/2! + 3/3! + 4/4! +…….+ n/n!

You have been given a series 1/1! + 2/2! + 3/3! + 4/4! +…….+ n/n!, find out the sum of the series till nth term.… Read More »

## Python Program for Program to Print Matrix in Z form

Given a square matrix of order n*n, we need to print elements of the matrix in Z form Examples: Input : mat[][] = {1, 2,… Read More »

## Python Program to Split the array and add the first part to the end

There is a given an array and split it from a specified position, and move the first part of array add to the end. Examples:… Read More »
{"ft_lang_label":"__label__en","ft_lang_prob":0.74946487,"math_prob":0.9741454,"size":2234,"snap":"2019-35-2019-39","text_gpt3_token_len":613,"char_repetition_ratio":0.167713,"word_repetition_ratio":0.19111112,"special_character_ratio":0.2972247,"punctuation_ratio":0.13184585,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98493606,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-09-17T15:14:45Z\",\"WARC-Record-ID\":\"<urn:uuid:36f47117-348b-4b12-9463-0a2d921eb688>\",\"Content-Length\":\"98573\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:8efb07d2-40ec-47ee-8b10-b887ab9c25ad>\",\"WARC-Concurrent-To\":\"<urn:uuid:f27387e6-7078-4a45-90a4-9110e10ef2f4>\",\"WARC-IP-Address\":\"23.221.72.19\",\"WARC-Target-URI\":\"https://www.geeksforgeeks.org/category/python-programs/page/54/\",\"WARC-Payload-Digest\":\"sha1:QCZDR5YBT72VRZ5B2MLQ6AX4MUIEEQDD\",\"WARC-Block-Digest\":\"sha1:YIMZGIYTW5HBPKVNYFBZAHWB3VHUVAOY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-39/CC-MAIN-2019-39_segments_1568514573080.8_warc_CC-MAIN-20190917141045-20190917163045-00309.warc.gz\"}"}