IG

IG Math Space

Mathematics Teaching and Research

๐Ÿ“ Assignment ยท Python Programming

Programming in Python

KU5DSEMAT303 ยท Fifth Semester B.Sc Mathematics ยท Simple Code-Generating Questions

๐Ÿ‘จโ€๐Ÿซ Gafoor I ๐Ÿ›๏ธ NAM College Kallikkandy ๐Ÿ“ Department of Mathematics ๐Ÿ“… Submission: 25/10/2026
๐Ÿ“Œ 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
  1. Write a Python program to input two numbers from the user and display their sum, difference, product, and quotient.
  2. Write a Python program to input the radius of a circle and compute its area and circumference. (Use the math module and import function.)
  3. Write a Python program to input a list of 5 numbers and print the largest, smallest, and average of the numbers.
  4. Write a Python program to create a tuple of student names and print each name using a for loop.
  5. Write a Python program to input a string and count the number of vowels and consonants in it.
  6. Write a Python program using if-elif-else to input a student's mark and print the grade (A: โ‰ฅ90, B: 75โ€“89, C: 50โ€“74, Fail: <50).
  7. Write a Python program using a while loop to print the first 10 natural numbers and their squares.
  8. Write a Python program to define a function factorial(n) that returns the factorial of a number, and call it for user input.
  9. Write a Python program to create a dictionary of 3 students (name: mark) and print the name of the student with the highest mark.
  10. Write a Python program using matplotlib to 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).

๐Ÿ“ค Submit Assignment
G

Gafoor I

Assistant Professor  |  Department of Mathematics  |  NAM College Kallikkandy

Assignment ยท KU5DSEMAT303: Programming in Python ยท Academic Year 2025โ€“26