Today we’ll discuss on Python program to Reverse a given String. First we are finding the length of the given string and storing it in the variable i and we are iterating it with the help of a while and adding the strings to the rev variable. Output:

This article gives the source code of Python Program to Find Factorial of a Number. You can refer C++ Program. Output:

Python Program to get Number of Digits in a Number

February 28, 2013

So this is our first program of Python. This article explains how to get the Digit Count of a given Number using Python. Lets get started.. 1. First of all Define a function count which takes number as input. 2. Convert the number into a string using the inbuilt function str and assign it to […]

Read the full article →