๐ Assignment Details
Institution: NAM College Kallikkandy
Department: Department of Mathematics
Programme: Fifth Semester B.Sc Mathematics
Course Code: KU5DSEMAT303 โ Programming in Python
Submission Date: 25/10/2026
๐ Instructions: Answer all questions. Write clean, well-indented Python code for each question. Each question carries equal marks. Submit your work via the Google Form link provided at the bottom of this page.
01 Questions
- Write a Python program to input two numbers from the user and display their sum, difference, product, and quotient.
- Write a Python program to input the radius of a circle and compute its area and circumference. (Use the
mathmodule andimportfunction.) - Write a Python program to input a list of 5 numbers and print the largest, smallest, and average of the numbers.
- Write a Python program to create a tuple of student names and print each name using a
forloop. - Write a Python program to input a string and count the number of vowels and consonants in it.
- Write a Python program using
if-elif-elseto input a student's mark and print the grade (A: โฅ90, B: 75โ89, C: 50โ74, Fail: <50). - Write a Python program using a
whileloop to print the first 10 natural numbers and their squares. - Write a Python program to define a function
factorial(n)that returns the factorial of a number, and call it for user input. - Write a Python program to create a dictionary of 3 students (name: mark) and print the name of the student with the highest mark.
- Write a Python program using
matplotlibto plot the curve y = xยฒ for x values from โ5 to 5, with a title and axis labels.
02 Submission Guidelines
โ
Before you submit:
- Ensure all 10 questions are answered.
- Include output screenshots where applicable.
- Use proper indentation and comments in your code.
- Submit before 25/10/2026.
๐ค How to Submit
Click the button below to open the Google Form. Fill in your details and upload your assignment file (single PDF or .py files zipped).
Gafoor I
Assistant Professor | Department of Mathematics | NAM College Kallikkandy
Assignment ยท KU5DSEMAT303: Programming in Python ยท Academic Year 2025โ26