0% found this document useful (0 votes)
5 views3 pages

Nested For Loop Practice

The document outlines various programming exercises focused on nested loops and basic Python programming tasks. It includes tasks such as printing patterns, generating multiplication tables, reversing strings, and analyzing test scores. Additionally, it addresses error identification and correction in provided code snippets.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Nested For Loop Practice

The document outlines various programming exercises focused on nested loops and basic Python programming tasks. It includes tasks such as printing patterns, generating multiplication tables, reversing strings, and analyzing test scores. Additionally, it addresses error identification and correction in provided code snippets.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

 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

You might also like