A program in python to test whether a passed character is a vowel or not. Sample Input: Enter character: x Sample Output: Not a vowel.
A program in python to swap two numbers without the use of a third variable. Sample Input: a=4 b=7 Sample Output: a=7 b=4
A program in python to print all Armstrong numbers between 1 and 1000. In case of an Armstrong number of 3 digits, the sum of cubes of each digits is equal to the number itself. For example: 153 = 111 + 555 + 333 = 153 is an Armstrong number.
To output the reverse of an inputed string value.
A program to find out the second runnerup score from a input of n number of scores and an array of n score results.
5, [5,7,9,3,4]
Runnerup Score = 7
A program to find your age in dog years.
Time moves quickly for dogs. 8 years in a human's life is like 45 years in a dog's life!
How old would you be if you were a dog? Here's how you convert your age to dog years:
The first two human years of a dog's life count as 10.5 dog years each.
Each human year following counts as 4 dog years.
A program to demonstrate 'datetime' library.