Python Assignments
Python Assignments
○ 90-100: A
○ 80-89: B
○ 70-79: C
○ 0–12: Child
○ 13–19: Teen
○ 20–59: Adult
○ 60+: Senior
● Positive or negative
Print 1 to 10:
Use a loop to print numbers from 1 to 10.
Multiplication Table:
Print the multiplication table of any number (e.g. 5).
Factorial of a Number:
Find the factorial of a number using a loop.
Reverse a Number:
Input a number and reverse it using a loop.
(e.g. input: 123 → output: 321)
Fibonacci Series:
Print the first n terms of the Fibonacci sequence.
1. Check for Alphabet Case and Type:
Input a character. Check if it is an alphabet, then check if it's a vowel or consonant,
and also whether it's uppercase or lowercase.
○ Input 3 sides.
○ If total is > 40%, then check if each subject is more than 35.