0

Python Program to count the number of vowels in a string!

python-tutorialsmade

Here is another interesting Python program which will take a word or sentence as an input (basically a string) and return the number of vowels present in it. There are numerous way you can write a Python program to count… Continue Reading

0

Python program to find prime number or not!

python-tutorialsmade

Hello people, here I am writing a Python programme after a very long time. This programme could be useful for cracking interviews or could be useful for school / college students who wish to learn the basic of Python programming. This… Continue Reading

0

Python Factorial Program

python-tutorialsmade

This is a basic Python program which helps school and college students to improve their knowledge in Python. If you don’t know what is factorial, here is a small explanation, Multiplying given integer with the sequence of descending positive integers is called factorial.… Continue Reading

0

Read a file in Python and find number of Lines

python-tutorialsmade

Reading a file in Python is very simple, In this tutorial you are going to see how to read a file as well as count the number of lines in a text file in Python. See the code here:

Looks… Continue Reading

1

Calculate hours, minutes between two times in Python

python-tutorialsmade

I’m basically a PHP developer, but there was a situation where I have to work with a Python script, you know what? I have to find hours between two times, but that was not so easy for me. Even I… Continue Reading

0

Reverse a string without using build in method [::-1] in Python

python-tutorialsmade

  If you are new to Python and you don’t know how to reverse a string in Python, here is a sample script using default reverse method [::-1]:

The output of the above program: Enter a String superman Reverse is:… Continue Reading

0

Python program to convert Fahrenheit to Celsius

python-tutorialsmade

  In this lesson you are going to learn how to convert Fahrenheit to Celsius by using Python script, I’m following Python 3 syntax to write programs which actually works in both Python 2 and Python 3. Formula for finding the… Continue Reading

0

Python program to find Armstrong number

python-tutorialsmade

In this Python example you are going to learn how to find a number is an Armstrong number or not. An “Armstrong number” is a number that is equal to the sum of the nth powers of its individual digits. For example,… Continue Reading