0% found this document useful (0 votes)
8 views4 pages

Assignment 1 Completion Code Guide

The document outlines the course structure for a Python programming class, detailing the marks distribution across assignments and examinations totaling 50 marks. It specifies the requirements for two assignments, including program execution, documentation, and group project topics with deliverables. Each group is assigned specific topics related to Python fundamentals, with expectations for explanations, examples, and comparisons of programming concepts.

Uploaded by

moinddinmd9
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views4 pages

Assignment 1 Completion Code Guide

The document outlines the course structure for a Python programming class, detailing the marks distribution across assignments and examinations totaling 50 marks. It specifies the requirements for two assignments, including program execution, documentation, and group project topics with deliverables. Each group is assigned specific topics related to Python fundamentals, with expectations for explanations, examples, and comparisons of programming concepts.

Uploaded by

moinddinmd9
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Course: MTMHSE202M / MTMGSE402M /

MTMGSE602M
Programming Language‐Python (Marks: 50, Credits: 3)
Marks Distribution

1. Assignment 1: 10 Marks
o Based on the successful completion and submission of the assigned programs
with required screenshots and printouts.
2. Assignment 2: 24 Marks
o Includes the following components:
• Project Submission based on your topics given to your group
• A Test consisting of 10 questions, covering at least one question from each
project topic submitted
3. End‐Semester Practical Examination: 16 Marks
o You will be required to run 2 programs, each carrying 8 marks
o The programs will be evaluated based on correctness, execution, and output.

Total: 50 Marks

Assignment type‐I :

Instructions for Assignment Submission


1. Program Execution and Documentation
Write all the assigned programs using your distinct data. After executing each program:
o Take a screenshot of both the program code and the output.
o Print the screenshots and compile them for submission.
2. Package Utilization (SymPy, Pandas, etc.)
o Use at least two Python packages, such as SymPy and Pandas.
o Write programs demonstrating at least five applications for each of the selected packages.
o For each application:
• Take a screenshot of the program and its corresponding output.
• Print the screenshots and include them in your final submission.
Note: Ensure that your work is original and properly formatted. Submissions without screenshots or required
applications will not be accepted.
Assignment type‐II

📘 Final Output Format (For Each Group and you have to use A4 page):
1. Title of Topic and students detail in the front page
2. Concept Explanation and detailed notes
3. Syntax Format
4. Example Code
Group‐wise Project Breakdown
🔹 Group 1: Python Basics and Setup
Topics:
 History and Importance of Python
 Installing Python, IDEs
 Running Python programs (script & interactive mode)
 First Python Program
Deliverables:
 Step‐by‐step installation guide (with screenshots if possible)
 Python prompt usage
 Sample programs:
o Hello World
o Simple arithmetic in interactive mode

🔹 Group 2: Debugging in Python


Topics:
 Syntax Errors
 Runtime Errors
 Semantic Errors
Deliverables:
 Explanation of each error type with sample code
 Example:
print("Hello") # SyntaxError: missing closing bracket
x=5/0 # RuntimeError: ZeroDivisionError
print("10" + 5) # SemanticError: TypeError
 Tips for debugging

=======================================================
🔹 Group 3: Variables and Data Types
Topics:
 Variables and Assignment
 Data Types (int, float, str, bool)
 type(), id(), int(), float(), str()
Deliverables:
 Tables comparing data types
 Code snippets:
a=5
print(type(a))
print(id(a))

🔹 Group 4: Expressions and I/O


Topics:
 Expressions & Statements
 Arithmetic and Boolean Expressions
 Operator Precedence
 Input & Output (input(), print())
Deliverables:
 Operator precedence table
 Example:

a = int(input("Enter number: "))


print(a * 2)

🔹 Group 5: Conditionals
Topics:
 if, if‐else, if‐elif‐else
 Nested conditionals
 Examples with logic
Deliverables:
 Syntax summary
 Flowcharts (optional)
 Sample:
x = 10
if x > 0:
print("Positive")
elif x == 0:
print("Zero")
else:
print("Negative")

🔹 Group 6: Loops
Topics:
 while loop
 for loop + range()
 break, continue
Deliverables:
 Comparison of while vs for
 Loop control statements examples

for i in range(5):
if i == 3:
break
print(i)

🔹 Group 7: Functions
Topics:
 Built‐in vs User‐defined Functions
 Function Parameters and Return Values
 Recursive Functions
Deliverables:
 Function template explanation
 Examples:

def add(a, b):


return a + b

def factorial(n):
if n == 1:
return 1
return n * factorial(n ‐ 1)

🔹 Group 8: Strings
Topics:
 String Slicing & Immutability
 String Functions & Methods:
find(), join(), split(), lower(), upper(), len()
Deliverables:
 String operations table
 Sample codes with output

s = "hello world"
print([Link]())
print([Link]())

🔹 Group 9: Lists, Tuples, Dictionaries


Topics:
 Lists: Operations, Methods (append(), sort(), etc.), Mutability
 Tuples: Accessing, Nested Tuples, Tuple Assignment
 Dictionaries: keys(), values(), get(), etc.
Deliverables:
 Comparison table: List vs Tuple vs Dictionary
 Examples:
my_list = [1, 2, 3]
my_tuple = (4, 5, 6)
my_dict = {"name": "Alice", "age": 20}

You might also like