Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
0 views

Python Programming Questions Class IX

The document outlines a series of Python programming exercises covering basic concepts such as input/output, arithmetic operations, and conditional statements. It includes tasks like greeting users, performing arithmetic calculations, checking even/odd numbers, and determining grades. Additionally, it introduces looping concepts and combined concepts like prime number checking and Fibonacci series generation.

Uploaded by

Anuroop Mishra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Python Programming Questions Class IX

The document outlines a series of Python programming exercises covering basic concepts such as input/output, arithmetic operations, and conditional statements. It includes tasks like greeting users, performing arithmetic calculations, checking even/odd numbers, and determining grades. Additionally, it introduces looping concepts and combined concepts like prime number checking and Fibonacci series generation.

Uploaded by

Anuroop Mishra
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PYTHON BASICS:

1. 1. Simple Input and Output:

Write a Python program to take a name as input and greet the user with "Hello, [name]!".
2. 2. Arithmetic Operations:

Create a program to input two numbers and display their sum, difference, product, and
quotient.
3. 3. Swapping Variables:

Write a Python program to swap two variables without using a third variable.
4. 4. Area of a Circle:

Write a program to calculate the area of a circle with a given radius.


5. 5. Simple Interest Calculator:

Develop a program to calculate simple interest using the formula SI = (P * R * T) / 100.

CONDITIONAL STATEMENTS:
6. 6. Even or Odd:

Write a program to check whether a given number is even or odd.


7. 7. Grade Calculator:

Create a program that takes a percentage as input and outputs the grade based on the
criteria:
- ≥90: A
- 80-89: B
- 70-79: C
- 60-69: D
- <60: F
8. 8. Leap Year Checker:

Develop a program to check whether a given year is a leap year or not.


9. 9. Eligibility to Vote:

Write a program that takes the user's age as input and displays whether they are eligible to
vote (age ≥ 18).
10. 10. Largest of Three Numbers:

Create a program to find the largest of three input numbers.


LOOPING CONCEPTS:
11. 11. Multiplication Table:

Write a program to generate the multiplication table of a given number using a for loop.
12. 12. Sum of Natural Numbers:

Create a program to find the sum of all natural numbers up to a given number using a while
loop.
13. 13. Factorial Calculation:

Develop a program to calculate the factorial of a number using a for loop.


14. 14. Counting Digits:

Write a program to count the number of digits in a given number using a while loop.
15. 15. Reversing a Number:

Create a program to reverse the digits of a given number.

COMBINED CONCEPTS:
16. 16. Prime Number Checker:

Write a program to check whether a given number is a prime number or not.


17. 17. Fibonacci Series:

Develop a program to display the Fibonacci series up to a specified number of terms.


18. 18. Sum of Digits:

Create a program to calculate the sum of digits of a given number.


19. 19. Number Pattern:

Write a program to generate the following pattern for n = 5:


1
12
123
1234
12345
20. 20. Armstrong Number Checker:

Develop a program to check whether a given number is an Armstrong number (e.g., 153 =
1³ + 5³ + 3³).

You might also like