Nested for loop Practice
1. Print the number pyramid
2. Print the pattern using nested for loop
$ $ $ $ $
$ $ $ $
$ $ $
$ $
$
3. Write a Python program that prints a multiplication table for numbers from 1
to 5 using nested loops.
4. Write a program that generates the multiplication table for a given number n.
5. Write a program that takes a string input and prints it in reverse using for loop
6.
7. You have a list of test scores [45, 78, 62, 89, 55, 92, 36]. The teacher wants to know
the following:
Task: Write a Python program to:
Calculate the highest and lowest scores.
Calculate the average score.
Display a message indicating whether the average score is a passing grade (above 50).
8. Identify the error and fix the code given below:
9. Identify the error and fix the code given below and also state the reason
10.Identify the error and fix the code given below and also state the reason
11.Identify the error and fix the code given below and also state the reason