All questions

# Problem 1 ### Write a function to construct the following pattern, using a nested for loop.

1
2
3
4
5
6
7
8
9
* 
* * 
* * * 
* * * * 
* * * * * 
* * * * 
* * * 
* * 
*

# Problem 2 ### Write a Python program that iterates the integers num = 20. For multiples of three print "Fizz" instead of the number and for multiples of five print "Buzz". For numbers that are multiples of three and five, print "FizzBuzz".

1
2
3
4
5
6
7
Output :
fizzbuzz
1
2
fizz
4
buzz

# Problem 3 ### Write a Python function to check whether an alphabet is a vowel or consonant.

1
2
3
4
Output:

Enter a letter: L                                       
L is a consonant.

# Problem 4 ### Write a function to find the median of three values.

1
2
3
4
5
6
Output:

Input first number: 15                                                  
Input second number: 26                                                 
Input third number: 29                                                  
The median is 26.0   

# Problem 5 ### Write a function to construct the following pattern, using a nested loop number.

``` Output:

1 22 333 4444 55555 666666 7777777 88888888 999999999 ```