Skip to content
VUBuddy

CS306P Assignment 1 Solution Fall 2026

Introduction to Python (Practical) Lesson 3: Week 3 Lab # 3 20 marks No solution

About CS306P Assignment 1

CS306P Assignment No 1 for Fall 2026 is from Introduction to Python (Practical). It covers lesson 3: Week 3 Lab # 3, carries 20 marks and closed on VULMS on Sunday 15 November 2026. No solution was added before it closed.

Course
CS306P Introduction to Python (Practical)
Assignment
Assignment No 1
Semester
Fall 2026
Lesson
3: Week 3 Lab # 3
Total marks
20
End date
Sun 15 Nov, 11:59 pm

What CS306P Assignment 1 asks

This assignment evaluates your proficiency in Python programming by implementing four specific functions. You will work with conditional logic, assignment operators, loops, and mathematical calculations. The tasks require you to write clean, modular code that processes inputs and returns results without using print or input statements inside the functions. You must submit all four functions within a single Python source file.

  1. Task 1: Student Performance Evaluation

    5 marks

    Create a function named evaluate_student(marks, attendance) that determines academic status based on specific thresholds. You must use if-elif-else statements and the logical 'and' operator to check conditions in the exact order provided. The function should return a string indicating the status as 'Excellent', 'Satisfactory', 'Failed', or 'Short Attendance'.

  2. Task 2: Update Bank Account Balance

    5 marks

    Implement a function named update_balance(balance) that modifies an initial account balance through a series of transactions. You are required to use assignment operators including += for deposits, -= for withdrawals and service charges, and *= to double the balance. The function must return the final calculated balance.

  3. Task 3: Calculate Special Number Sum

    5 marks

    Write a function named sum_special_numbers(start, end) to calculate the sum of all integers divisible by 5 within a given range. You must use a for loop with range() and the modulus operator to identify qualifying numbers. If no numbers meet the criteria, the function should return 0.

  4. Task 4: Calculate Repeated Product

    5 marks

    Develop a function named calculate_product(start, end) that computes the product of all consecutive integers between two provided values. You must use a for loop with range() to iterate through the sequence and accumulate the product. The function should return the final calculated product.

What to submit
One .zip file containing a single .py file with all four function definitions.
Topics covered
conditional statements logical operators assignment operators for loops user-defined functions modulus operator

A summary of the assignment file, Fall 2026_CS306P_1.docx. Download the file for the full wording before you start.

Lesson covered

Lesson 3: Week 3 Lab # 3 CS306P · Introduction to Python (Practical)

The questions in this assignment come from this lesson. Read it in the CS306P handout before you open the assignment file, then practise it with the MCQs and past papers.

Solution

No solution was added before this assignment closed. The assignment file stays here so you can revise lesson 3.

Before you submit on VULMS

  1. 1 This assignment closed without a solution. Use the assignment file to revise lesson 3 before your exams.
  2. 2 Write the final answer in your own words. VU checks assignments for copying, and copied work gets zero marks.
  3. 3 Save your answer in the file type the assignment file asks for, and name it with your student ID, for example BC260012345.
  4. 4 Open the file once more to check it is not empty or corrupted, then upload it on VULMS before 11:59 pm on Sun 15 Nov.

Questions about this assignment

When is CS306P Assignment 1 due?

It closed on Sunday 15 November 2026. VULMS no longer accepts files for it, but the assignment stays here for revision.

Will a solution be added?

No. Solutions are written only while an assignment is open on VULMS, and this one closed on Sunday 15 November 2026. The assignment file stays here for revision.

Can I submit the solution as it is?

No. VU checks assignments for copying, and copied work gets zero marks. Use the solution to check your method, then write your own answer.

What file do I submit?

The assignment file says which file type to upload and lists any extra instructions from your instructor. Name the file with your student ID before you upload it on VULMS.

Get more out of VUBuddy, for free

Android app Free on Google Play
  • Unlimited downloads
  • The explanation behind every MCQ answer
  • Study offline on slow data
Get the Android app
Chrome extension Free on the Chrome Web Store
  • 30 downloads a day instead of 3
  • Sign in and buy Pro Semester here
Add to Chrome

One Pro Semester membership works in both the extension and the app.