0% found this document useful (0 votes)
1 views2 pages

Python Questions

The document lists various Python practice questions categorized into different types: Pattern Questions, For Loop Questions, While Loop Questions, Nested Loop Questions, and Bonus Questions. Each category contains specific tasks such as creating patterns, checking prime numbers, and manipulating lists. The questions are designed to enhance programming skills in Python.

Uploaded by

kiranshetty0798
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)
1 views2 pages

Python Questions

The document lists various Python practice questions categorized into different types: Pattern Questions, For Loop Questions, While Loop Questions, Nested Loop Questions, and Bonus Questions. Each category contains specific tasks such as creating patterns, checking prime numbers, and manipulating lists. The questions are designed to enhance programming skills in Python.

Uploaded by

kiranshetty0798
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

Python Practice Questions

Pattern Questions
1. Full Pyramid Pattern

2. Inverted Pyramid Pattern

3. Diamond Pattern

4. Floyd’s Triangle

5. Pascal-like Pattern

For Loop Questions


1. Check if a number is prime

2. Print Fibonacci series

3. Find largest element in list without max()

4. Count vowels in a string

5. Print all divisors of a number

While Loop Questions


1. Check Armstrong number

2. Print all prime numbers till n

3. Take input until user enters 0

4. Guess the number game

5. Find GCD of two numbers

Nested Loop Questions


1. Number pattern (1, 2 2, 3 3 3...)

2. Pyramid pattern using nested loops

3. Matrix transpose

4. Matrix multiplication
5. Find duplicates in list using nested loops

Bonus Questions
1. Binary pattern (1, 0 1, 1 0 1...)

2. Palindrome pattern

3. Spiral matrix printing

4. Find pairs with given sum

5. Alphabet pattern

You might also like