0% found this document useful (0 votes)
11 views1 page

Advanced Python Loop Practical Questions

The document outlines a set of advanced Python loop practical questions categorized into four sections: Number & Logic Based, Series & Mathematical Problems, Pattern Printing – Advanced, and String & Loop Logic. Each section contains specific tasks such as checking for Strong and Perfect numbers, printing prime numbers, creating patterns, and manipulating strings and lists. Additionally, it includes challenges related to loop control and applications, such as building a menu-driven calculator and a number guessing game.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Advanced Python Loop Practical Questions

The document outlines a set of advanced Python loop practical questions categorized into four sections: Number & Logic Based, Series & Mathematical Problems, Pattern Printing – Advanced, and String & Loop Logic. Each section contains specific tasks such as checking for Strong and Perfect numbers, printing prime numbers, creating patterns, and manipulating strings and lists. Additionally, it includes challenges related to loop control and applications, such as building a menu-driven calculator and a number guessing game.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Advanced Python Loop Practical Questions

(Level-3)

Number & Logic Based

1 Check whether a number is a Strong number.


2 Check whether a number is a Perfect number.
3 Print all Armstrong numbers between 1 and 1000.
4 Check whether a number is a Harshad number.
5 Convert a decimal number to binary using a loop.

Series & Mathematical Problems

1 Print the first n terms of the prime number series.


2 Print the following series: 2, 6, 12, 20, 30, ...
3 Find the sum of the Fibonacci series up to n terms.
4 Find the power of a number without using ** operator.

Pattern Printing – Advanced

1 Print a diamond pattern using stars.


2 Print Floyd’s triangle.
3 Print a hollow square pattern.
4 Print a number pyramid pattern.

String & Loop Logic

1 Count uppercase and lowercase letters in a string.


2 Check whether a string is an anagram.
3 Find frequency of each character in a string.

List & Loop Challenges

1 Sort a list in ascending order without using sort().


2 Find the second largest number in a list.
3 Separate even and odd numbers into two lists.

Loop Control & Applications

1 Create a menu-driven calculator using an infinite loop.


2 Validate user input using a loop.
3 Create a simple number guessing game using loops.

You might also like