1|Page Springdays school, Grade 11, computer science(11JA1B1)
Notebook assignment programs
Write python programs for the following :
1. Choose given area or perimeter of circle – Likely asks the user to
select between calculating area or perimeter based on input.
2. Largest number among three using if-elif-else
3. Largest number among two using if-else
4. Add two numbers if both are greater than 50
5. Check if a number is single-digit or multi-digit
6. Check if a number is odd or not
7. Check if +ve, -ve or zero
Task: Write a program to check if a given number is
positive, negative, or zero.
Concept: Use if, elif, and else statements.
8. Perform all arithmetic operations
Task: Take two numbers as input and perform addition,
subtraction, multiplication, and division.
Concept: Use arithmetic operators (+, -, *, /, //, **, %).
9. check if number is single, double, or triple digit
Task: Determine if a number has 1, 2, or 3 digits.
Concept: Use conditions to check the range (e.g., 0-9, 10-99,
100-999).
10. Check if character is number, uppercase, lowercase, or special
11. Print category based on number
Task:
If input is 1-5, print "Primary"
If 6-8, print "Secondary"
If 9-10, print "Tertiary"
Concept: Use if-elif-else to categorize based on value.
12. Calculate cost based on number of items
Task:
If items < 10, cost = 120 per item
If 10 ≤ items ≤ 29, cost = 100 per item
Else, cost = 70 per item
2|Page Springdays school, Grade 11, computer science(11JA1B1)
Concept: Use conditional statements to determine cost.
13. Check if it’s a triangle
Task: Given three sides, check if they can form a
triangle (sum of any two sides must be greater than the
third).
Concept: Use triangle inequality theorem.
14. Input number & write in word form
Task: Input a number and print its word form (e.g., 5 →
"five").
15. Write the program for the following output
5
10
9
16. Write the program for the following output
5@10@9
17. Print first 5 multiples of 5
18. Find area of a circle
19. Find average mark
20. Calculate simple interest and compound interest
21. Print first 3 multiples of input value
22. Print name, grade and age in a single line, then print each on a
newline with 2 line gaps
23. Swap values: num1 becomes num1+num2, num2 becomes
num1-num2 in a single line
24. Write a program to assign grades based on the following
conditions:
o If the score is greater than or equal to 90:
If the score is greater than or equal to 95, assign
grade A+.
Otherwise, assign grade A.
o If the score is greater than or equal to 80, assign grade B.
3|Page Springdays school, Grade 11, computer science(11JA1B1)
o Otherwise, assign grade C.
25. Write a program to assign grades and print performance
messages based on the following conditions:
o If the score is greater than or equal to 90, assign grade A
and print "Excellent Performance".
o If the score is greater than or equal to 80:
If the score is greater than or equal to 85, assign
grade B+.
Otherwise, assign grade B.
o Otherwise, assign grade C and print "Work harder".
26. Write a program to assign grades and print feedback based on
the following conditions:
If the score is greater than or equal to 90, assign grade A+ and
print "Outstanding Performance".
If the score is greater than or equal to 80, assign grade B and
print "Good".
If the score is greater than or equal to 70, assign grade C and
print "Ok/You can improve".
Otherwise, assign grade D or F and print "Needs improvement".
27. Write a program to assign grades based on the following
conditions:
If the score is greater than or equal to 90:
o If the score is greater than or equal to 95, print grade
A+.
o Otherwise, print grade A.
If the score is greater than 80:
o If the score is greater than or equal to 85, print grade
B+.
o Otherwise, print grade B.
4|Page Springdays school, Grade 11, computer science(11JA1B1)
28. Create a list of odd numbers and iterate through the list using a
loop. print each odd number
29. Write a program that asks the user to enter an integer
If the number is positive
Check if it is even or odd. print “the number is
positive and even.” or, “the number is positive
and odd”. Accordingly
If the number is negative:
Check if its absolute value is greater than 10.
Print “the number is negative and its absolute
value is greater than 10.” Or “the number is
negative and its absolute value is not greater
than 10.” Accordingly
If the number is zero, print “the number is zero.”
30. Write a Python program using nested if statements to check
whether a given year is a leap year:
A year is a leap year if:
It is divisible by 4 and
o Not divisible by 100 unless
It is also divisible by 400.
Chapter-7(Data Handling)(3.1 to 3.8)
5|Page Springdays school, Grade 11, computer science(11JA1B1)
6|Page Springdays school, Grade 11, computer science(11JA1B1)
7|Page Springdays school, Grade 11, computer science(11JA1B1)
8|Page Springdays school, Grade 11, computer science(11JA1B1)
9|Page Springdays school, Grade 11, computer science(11JA1B1)