Q1.
ODD/EVEN COUNTER
Write a program that generate 100 random numbers and keeps a count of how many of those random
numbers are even and how many are odd.
Source-
OUTPUT-
2. GRADE AND GRADE-POINT CALCULATOR
Create an application in Python to display the report card of a student. Read name of the
student and marks for 5 subjects from user. Write user defined function to calculate the Grade
and Grade-point for each subject mark to display in the report card
SOURCE-
OUTPUT-
[Link] GENERATOR
Create two functions first one def factorial (n) which takes an argument and finds the factorial
of a number and returns an integer value. Second one def power (x, n) which takes two
arguments and calculate 𝑥 2𝑛 . Write a program that finds the following series, which invokes
the above functions to find factorial and power.
SOURCE-
OUTPUT-