Python Project1
Python Project1
on
Bachelor of Technology
In
Computer Science and Engineering
To
IKG Punjab Technical University, Jalandhar
Submitted By:
Name: Divyansh Khajuria
Roll no.: 2533933
Semester: 3
Batch: 2025-2029
June 2025
CANDIDATE’S DECLARATION
I hereby declare that the work which is being presented in the Project, entitled
“Attendance Checker System ”, in partial fulfillment of the requirements for IPT of
Bachelor of Technology in Computer Science & Engineering and submitted to CGC
College of Engineering, Landran, Mohali is an original piece of work carried out by me
during the IPT from May 2026 to June 2026 under the supervision of Ms. Richa
Suryavanshi department of CSE, CGC College of Engineering Landran Mohali Punjab
India.
Divyansh Khajuria
Candidate Name & Signature
ii
Certificate
I hereby declare that the Project Report entitled ("Attendance Checker System ") is an
authentic record of my own work as requirements of IPT during the period from May
2026 to June 2026 for the award of degree of B. Tech. Computer Science & Engineering ,
CGC-College of Engineering, Landran, Mohali under the guidance of Ms. Richa
Suryavanshi.
Divyansh Khajuria
2533933
Date: ____________________
Certified that the above statement made by the student is correct to the best of our
knowledge and belief.
Signatures
Examined by:
IPT Co-ordinator .
Head of Department
iii
ACKNOWLEDGMENT
With profound respect, sincere gratitude is expressed to Director-Principal Dr. Anuj
Kumar Gupta, CGC College of Engineering, Landran, for providing the opportunity and
institutional support to undertake IPT and complete the present work.
Heartfelt thanks are extended to Dr. Sushil Kamboj, Head, Department of Computer
Science & Engineering, CGC College of Engineering, Landran (Mohali), for academic
guidance, continuous encouragement, and valuable inputs throughout the training period.
Appreciation is also conveyed to the faculty members of the Computer Science &
Engineering Department, CGC COE, Landran, for their constructive feedback, technical
insights, and consistent support that strengthened the quality of this synopsis.
The assistance of Ms. Richa Suryavanshi , Supervisor for experimentation, is gratefully
acknowledged for their mentorship, practical guidance, and timely facilitation of
experimental work.
Finally, indebtedness is expressed to all individuals who have directly or indirectly
contributed to the successful completion of this Project-II.
Divyansh Khajuria
iv
Table of Contents
Candidate Declaration.................................................................................. ii
Certificate.......................................................................................................iii
Acknowledgement........................................................................................iv
Table of Content …………………………………………………………..v
List of Figures ………………………………………………………………vi
Abstract..........................................................................................................vii
Chapter 1: Introduction...........................................................................1
1.1 Basic of Python………………………………………………1
1.2 Basic Terminologies …………………………………………2
1.3 Background…………………………………………………..19
Chapter 2: Objective..................................................................................21
Chapter 3: Software / Hardware Requirements....................................22
Chapter 4: Feasibility Study....................................................................23
Chapter 5: Methodology...........................................................................24
Chapter 6: Output Screens.......................................................................26
Chapter 7: Applications............................................................................27
Chapter 8: Conclusion and Future Scope............................................28
Chapter 9: References……………………………………………….29
v
List of Figures
vi
ABSTRACT
vii
Chapter 1: Introduction
1.1 Basics of Python:
Python is a high-level, general-purpose programming language that is easy to learn and
use. It was developed by Guido van Rossum and first released in 1991. Python has a
simple and readable syntax, which makes it easier to write, understand, and maintain
programs. It is an interpreted language, meaning that code is executed line by line without
the need for compilation. Python is also platform independent, allowing the same
program to run on different operating systems such as Windows, Linux, and macOS. Due
to its simplicity and powerful features, Python is widely used in web development, data
science, artificial intelligence, automation, software testing, and many other fields. It is
one of the most popular programming languages in the world today.
1. Easy to Read and Learn: The syntax is clean, utilizing plain English keywords
and strict indentation to define blocks of code instead of curly braces.
3. Dynamically Typed: You do not need to explicitly declare variable types; the
interpreter automatically resolves them at runtime.
5. Free and Open-Source: You can download Python and its massive global
ecosystem entirely for free via the official PYTHON HOMEPAGE
Applications of Python
1. Web Development
5. Software Testing
1
6. Game Development
Installation of Python :
Download the Installer: Go to the Official Python Website. The website will
automatically detect your operating system (Windows or macOS). Click the prominent
yellow button to download the latest version.
Run the Installer: Open your Downloads folder and double-click the downloaded .exe
file to start the installation wizard.
Add Python to PATH: At the bottom of the first installation window, make sure to
check the boxes for "Use admin privileges when installing [Link]" and "Add
[Link] to PATH". This allows you to run Python directly from your terminal or
command prompt.
Complete the Installation: Click "Install Now" to complete the standard installation.
1. Open your terminal or Command Prompt (search cmd in the Windows start
menu).
3. If you see the version number (e.g., Python 3.13.x), the installation was
successful!
Syntax:
variable_name = value
2. Data Types
A data type is a classification that determines the kind of value a variable holds and the
operations that can be performed on it.
Integer (int)
Stores whole numbers without decimal points.
Example :
age = 18
marks = 95
Float (float)
Stores numbers with decimal points.
Example:
height = 5.8
price = 99.99
3
A string is a sequence of characters enclosed within single quotes (' ') or double quotes ("
").
Example:
name = "Divyansh"
course = 'Python'
False
It is commonly used in decision-making and conditional statements.
Example:
is_student = True
is_logged_in = False
Characteristics:
I. Ordered
II. Immutable (cannot be changed)
III. Allows duplicate values
Example:
4
colors = ("Red", "Green", "Blue")
"Age": 18,
"Course": "Python"
}
3. Basic Operators
Operators are special symbols used to perform operations on variables and values. They
help in performing calculations, comparisons, logical decisions, and other operations in a
Python program.
# Arithmetic Operator:
Arithmetic operators are used to perform mathematical calculations.
5
sum = 10 + 5 # Addition
sub = 10 – 5 #Subtration
product = 4 * 2 # Multiplication
division = 4 / 2 #Divide
Example:
a = 10
b=3
print(a + b)
print(a - b)
print(a * b)
print(a / b)
print(a ** b)
#Logical Operators
Logical operators are used to combine conditional statements.
Example :
a = True
b = False
print(a and b)
print(a or b)
print(not a)
6
Assignment Operators
Assignment operators are used to assign values to variables.
/= x /= 2 x=x/2
Importance of Operators
I. Perform mathematical calculations.
II. Compare values and make decisions.
III. Combine conditions in programs.
IV. Assign and update values efficiently.
V. Work with collections such as lists and strings.
CONDITIONAL STATEMENTS
1. if Statement
The most basic conditional structure. The code block inside runs only if the condition
evaluates to True.
Program:
age = 20
# Checks if age is 18 or older
if age >= 18:
print("You are an adult.")
7
[Link]-else Statement
Provides an alternative block of code that runs if the initial if condition evaluates to false.
Program:
temperature = 15
if temperature >= 20:
print("It is warm outside.")
else:
print("It is cold outside.")
[Link]-elif-else Ladder
Used when you need to check multiple, mutually exclusive conditions in sequence.
Python checks them from top to bottom and runs only for the condition that is true.
Program:
else:
print("Grade: F")
8
Program:
has_ticket = True
is_vip = False
if has_ticket:
if is_vip:
print("Welcome to the VIP lounge!")
else:
print("Welcome to the standard seating area.")
else:
LOOPING
[Link] loop
A for loop is the standard way to iterate over every item sequentially inside a Python list.
# A list of tech brands
[Link] loop
To iterate through a tuple using a while loop, you use an index variable tracker and keep
loop execution bounded below the total length of the tuple.
# A tuple containing coordinates
coordinates = (10, 20, 30)
# Track the current index position
index = 0
9
# Loop until index reaches the total length of the tuple
[Link]-While Loop
Python does not have a built-in do-while loop. However, it can be replicated by using
an infinite while True loop alongside a conditional break statement at the very end.
word = "Python"
index = 0
while True:
# This block executes at least once
print(f"Character: {word[index]}")
index += 1
1. Break
2. Continue
10
3. Pass
4. Else with loop
1. Break Statement
The break statement is used to immediately terminate a loop when a specified condition is
met. When the break statement is executed, the control exits the loop and moves to the
first statement after the loop.
Syntax:
for variable in sequence:
if condition:
break
Program:
num = int(input("Enter number to search: "))
2. Continue Statement
The continue statement is used to skip the current iteration of a loop and continue with
the next iteration.
Syntax:
for variable in sequence:
if condition:
continue
Program:
11
for i in range(1, 11):
if i == 5:
continue
print(i)
3. Pass Statement
The pass statement is a null statement. It performs no action and is used as a placeholder
where code will be added later.
Syntax:
if condition:
pass
Program:
for i in range(1, 6):
if i == 3:
pass
print(i)
Syntax:
for variable in sequence:
statements
else:
statements
Program:
numbers = [10, 20, 30, 40, 50]
search = 25
for num in numbers:
if num == search:
12
print("Number found")
break
else:
print("Number not found")
Functions:
A function is a block of code that performs a specific task. Functions help in breaking a
large program into smaller, manageable parts. A function can be used multiple times by
calling it whenever required.
Syntax:
# Function Definition
def function_name(parameters):
# Statements
return value
# Function Call
result = function_name(arguments)
# Display Output
print(result)
Example:
def prime():
n = int(input("Enter a number: "))
if n <= 1:
print("Invalid")
13
else:
for i in range(2, n):
if n % i == 0:
print("Not prime")
break
else:
print("Prime")
prime()
Importance of Functions
Functions make programs modular and reusable. They allow programmers to write
cleaner code and avoid writing the same code repeatedly.
Advantages of Functions:
a) Reduces code repetition.
b) Improves readability of programs.
c) Makes debugging easier.
d) Increases code reusability.
e) Helps in organizing large programs.
Function Definition:
A function definition is the process of creating a function using the def keyword. It
specifies the function name and the statements that the function will execute.
Syntax:
def function_name():
statements
14
Explanation:
a) def is a keyword used to define a function.
b) function_name is the name of the function.
Example:
def greet():
print("Hello, Welcome to Python")
Function Call
After defining a function, it must be called to execute its statements.
Example:
def greet():
print("Hello, Welcome to Python")
greet()
Example:
def add(a, b):
print("Sum =", a + b)
add(10, 20)
print(result)
Pass by value:
In pass by value, a copy of the actual value is passed to the function. Any changes made
to the parameter inside the function do not affect the original variable.
Example:
def change(x):
x = 20
print("Inside function:", x)
a = 10
change(a)
print("Outside function:", a)
Output:
Inside function: 20
Outside function: 10
Pass by reference:
In pass by reference, the memory address (reference) of the original variable is passed
to the function. Changes made inside the function directly affect the original variable.
Example:
def change(list):
16
[Link](4)
numbers = [1, 2, 3]
change(numbers)
print(numbers)
Output:
[1, 2, 3, 4]
Here the original list changes because the function works with the same object.
Modules:
What is a module?
A module is a file containing Python code (functions, classes, variables, and statements)
that can be reused in other Python programs.
A module helps in:
a. Reusing code
b. Organizing programs
Types of Modules:
1. Built-in Modules:
These modules come pre-installed with Python.
Examples:
a. math
b. random
c. datetime
d. os
e. sys
Example:
import math
17
print([Link](25))
print([Link])
Output:
5.0
3.141592653589793
[Link]-defined Modules:
A module created by the programmer.
Step 1: Create a file [Link]
def greet(name):
print("Hello", name)
Output:
Hello Divyansh
30
Importing Modules:
[Link] Entire Module
import math
print([Link](5))
Advantages of Modules;
[Link] Reusability.
[Link] Maintenance.
[Link] Organization.
1.3 Background
Attendance plays a significant role in the academic performance and discipline of
students. Educational institutions often require students to maintain a minimum
attendance percentage to be eligible for examinations and other academic activities.
Calculating attendance manually can be time-consuming and may lead to errors,
especially when dealing with a large number of records.
20
Chapter 3: HARDWARE & SOFTWARE REQUIREMENTS
The successful implementation of the Attendance Checker System requires certain
hardware and software resources. These requirements ensure that the application runs
smoothly and efficiently.
Hardware Requirements
a) Computer or Laptop
A computer or laptop is required to develop, execute, and test the Attendance Checker
System. The system can run on most modern computers without requiring specialized
hardware.
c) RAM: 2 GB or Above
A minimum of 2 GB RAM is recommended to ensure smooth execution of Python
programs and development tools. Higher RAM can improve overall system performance.
Software Requirements
a) Python 3.x
Python 3.x is the primary programming language used for developing the Attendance
Checker System. It provides simple syntax and powerful features for building
applications.
21
Chapter 4: FEASIBILITY STUDY
A feasibility study is conducted to determine whether a project is practical,
economical, and beneficial for its intended purpose. The Attendance Checker System
is feasible in terms of technical, economic, and operational aspects.
Technical Feasibility
The Attendance Checker System is technically feasible because it is developed using
Python, a simple and widely used programming language. The project requires only
basic programming concepts such as variables, input/output operations, arithmetic
calculations, conditional statements, and functions. It can run on any computer that
has Python installed and does not require specialized hardware or software. The
system is easy to develop, test, and maintain, making it suitable for beginners and
educational purposes.
Economic Feasibility
The project is highly economical because it uses Python, which is a free and open-
source programming language. No additional software licenses or expensive hardware
components are required. The system can be developed and executed using
commonly available computers and free development environments such as IDLE,
VS Code, or PyCharm Community Edition. Therefore, the overall cost of
development and implementation is minimal.
Operational Feasibility
The Attendance Checker System is easy to operate and understand. Users only need
to enter the total number of classes and the number of attended classes, and the
system automatically calculates the attendance percentage and eligibility status. The
program requires minimal training and can be used by students, teachers, and
educational institutions. Its simple interface and quick response make it convenient
and user-friendly.
Schedule Feasibility
The project is feasible in terms of time because it can be designed, developed, tested,
and implemented within a short duration. Since the project uses basic Python concepts
and has a simple structure, it can be completed efficiently within the training period.
This makes it suitable for academic projects and beginner-level programming
assignments.
22
Chapter 5: METHODOLOGY
The methodology of the Attendance Checker System describes the sequence of steps
followed to calculate a student's attendance percentage and determine eligibility. The
system follows a simple and structured approach to process user input and generate
accurate results.
23
The program is executed using different input values to verify its correctness and
ensure accurate results under various conditions. The outputs are checked to confirm
that the attendance percentage and eligibility status are displayed correctly.
Code:
def calculate_attendance():
total_classes = int(input("Enter total number of classes: "))
attended_classes = int(input("Enter number of classes attended: "))
calculate_attendance()
24
Chapter 6: OUTPUT SCREENS
25
Chapter 7: APPLICATIONS
c) Student Self-Assessment
Students can use the system to check their own attendance status and determine whether
they are eligible to appear for examinations based on attendance requirements.
d) Educational Institutions
Educational institutions can use the system as a simple and effective solution for
attendance calculation and management, reducing the chances of manual errors.
26
Chapter 8: CONCLUSION & FUTURE SCOPE
The Attendance Checker System successfully demonstrates the use of Python
programming to solve a practical problem. The project accurately calculates attendance
percentage and determines eligibility based on attendance requirements.
FUTURE SCOPE:
The Attendance Checker System can be further enhanced by adding new features and
functionalities to make it more useful and efficient. Some possible future improvements
are:
a) A Graphical User Interface (GUI) can be developed using Python's Tkinter library
to make the system more interactive and user-friendly.
b) The system can be enhanced to store attendance records permanently using files
or databases, allowing users to access previous records whenever required.
c) Support for multiple students can be added so that attendance information for an
entire class can be managed within a single application.
d) The project can be upgraded to generate attendance reports automatically,
reducing manual effort and improving efficiency.
e) Features such as attendance shortage alerts and eligibility notifications can be
incorporated to help students track their attendance regularly.
f) The system can be integrated with school or college management systems for
centralized attendance management.
27
Chapter 9: Reference
The following references were used for understanding Python programming concepts and
developing the Attendance Checker System:
3. W3Schools
a) Python Tutorial and Reference
b) Available at: [Link]
28