JSS MAHAVIDYAPEETHA
JSS ACADEMY OF TECHNICAL EDUCATION
Department of Computer Science and Engineering
Academic year 2025-26 (Even semester)
Name of the Subject: Python Programming
Subject Code: 1BPLC205B
Branch: Computer science and Engineering
Section: A1
Semester: 2nd SEMESTER
Name of the Faculty: Dr. Pooja H
MARKS SECURED
ASSIGNMENT NO ASSIGNMENT-1 ASSIGNMENT-2
(CERTIFICATION (GAME
COURSE) DEVELOPMENT)
1JS25CS061(HEERABAI)
1JS25CS062(HEMANYA)
SIGNATURE
ASSIGNMENT -1
TITLE:CERTIFICATION COURSE ON PYTHON
STUDENT NAME: HEERABAI BILGUNDI
USN:1JS25CS061
TITLE: PYTHON COURSE FROM SIMPLILEARN
COURSE CONTENT:
1. Introduction to Python
Python is a high-level, interpreted programming language.
It is easy to learn and widely used in software development, data science, and AI.
Learn how to install Python and run Python programs.
2. Data Types in Python
Python supports data types such as integers, floats, strings, lists, tuples, sets, and dictionaries.
Variables are used to store data values.
Operators are used to perform arithmetic and logical operations.
3. Strings in Python
A string is a sequence of characters enclosed in quotes.
String operations include concatenation, repetition, and slicing.
Built-in string methods help manipulate text data.
4. Conditional Statements
Conditional statements help make decisions in a program.
The if statement executes code when a condition is true.
The if-else and elif statements handle multiple conditions.
5. Loops in Python
Loops are used to execute a block of code repeatedly.
The for loop iterates over a sequence of elements.
The while loop runs as long as a condition remains true.
break, continue, and pass modify loop behavior.
1
6. Object-Oriented Programming
A class is a blueprint for creating objects.
Objects are instances of a class containing data and methods.
Inheritance allows one class to acquire properties of another class.
Polymorphism enables the same method to behave differently in different classes.
Encapsulation helps protect data by restricting direct access.
7. Threading and Scripting
Threading allows multiple tasks to run concurrently.
Python scripts automate repetitive tasks.
Multithreading improves program efficiency.
8. NumPy
NumPy provides support for multidimensional arrays.
It offers fast mathematical and statistical operations.
NumPy is widely used in scientific computing.
9. Pandas
Pandas is used for data analysis and manipulation.
DataFrames help organize data in tabular form.
Pandas provides tools for filtering, sorting, and analyzing data.
10. Matplotlib
Matplotlib is a library used for data visualization.
It helps create line charts, bar graphs, pie charts, and histograms.
Graphs make it easier to understand data trends.
11. Scikit-Learn
Scikit-Learn is a machine learning library for Python.
It provides tools for classification, regression, and clustering.
It simplifies the process of building predictive models.
12. Web Scraping with Python
Web scraping extracts information from websites automatically.
Python libraries such as BeautifulSoup and Requests are commonly used.
Scraped data can be stored and analyzed for various purposes.
2
13. Python Interview Questions
OBJECTIVE:
The objective of this course is to provide a strong foundation in Python programming and help
learners develop problem-solving and logical thinking skills. The course introduces the basic
concepts of programming, including variables, data types, operators, conditional statements,
loops, functions, modules, and exception handling. It enables learners to write, execute, test,
and debug Python programs [Link] course also covers object-oriented programming
concepts such as classes, objects, inheritance, and polymorphism, which are essential for
developing structured and reusable software applications. In addition, learners are introduced
to popular Python libraries such as NumPy, Pandas, and Matplotlib for data analysis and
visualization, along with basic concepts of machine learning and web scraping.
By the end of the course, learners will be able to develop simple Python applications, automate
routine tasks, analyze data, and apply Python programming skills to real-world problems. The
course serves as a foundation for advanced studies in software development, data science,
artificial intelligence, machine learning, and related technologies.
LEARNINGS:
From the “Introduction to Python” course by Simplilearn, I learned the basic concepts of
Python programming and how to write simple programs using variables, data types,
operators, conditional statements, loops, and functions. I gained a clear understanding of
object-oriented programming concepts such as classes, objects, inheritance, and
polymorphism. The course also introduced me to important Python libraries like NumPy,
Pandas, Matplotlib, and Scikit- Learn, which are useful for data analysis, visualization, and
basic machine learning tasks. In addition, I learned about web scraping techniques and
Python scripting. Through practical examples and exercises, the course improved my logical
thinking, coding skills, and problem solving abilities, giving me confidence to work on real-
world Python applications.
SKILLS GAINED:
• Basic Python programming skills
• Problem-solving and logical thinking
• Use of loops, functions, and conditions
• Understanding of object-oriented programming
• Data handling using NumPy and Pandas
• Data visualization with Matplotlib
• Basic machine learning concepts
• Web scraping basics
3
CERTIFICATE
Successfully completed the course and earned a certificate from Simplilearn.
4
ASSIGNMENT -1
TITLE:CERTIFICATION COURSE ON PYTHON
STUDENT NAME: HEMANYA R
USN:1JS25CS062
TITLE: PYTHON COURSE FROM KAGGLE
Course Content:
This course covered essential Python concepts through structured modules:
• Hello, Python: Introduction to Python syntax, variable assignment, and numerical
operations
• Functions and Getting Help: Defining and calling functions, understanding
documentation and built-in help features
• Booleans and Conditionals: Implementing logical decisions using boolean expressions
and conditional statements
• Lists: Working with lists, including indexing, slicing, and modifying data
• Loops and List Comprehensions: Using loops efficiently and writing concise code
with list comprehensions
• Strings and Dictionaries: Handling text data and key-value pairs for structured data
storage
• Working with External Libraries: Importing and using Python libraries to extend
functionality
Objective:
The objective of completing the Python Course by Kaggle was to build a strong and practical
foundation in programming using Python. The course aimed to develop problem-solving
abilities by teaching how to break down complex problems into manageable steps and
implement efficient solutions through code.
It also focused on enabling learners to understand core programming concepts such as control
flow, functions, and data structures, which are essential for advanced domains like data
science, machine learning, and software development. Additionally, the course emphasized
hands-on learning, encouraging the application of concepts through exercises and real-world
scenarios to improve analytical thinking and coding confidence.
What I Learned:
Through this course, I gained both conceptual knowledge and practical coding experience. I
developed a clear understanding of Python syntax and programming fundamentals, which
allowed me to write structured and efficient programs. I learned how to design reusable code
5
using functions and apply logical decision-making through conditionals and loops. Working
with data structures such as lists, dictionaries, and strings helped me understand how to
organize, store, and manipulate data effectively.
I also improved my ability to write optimized and concise code using techniques like list
comprehensions, making my programs more efficient and readable. Additionally, I explored
the use of external libraries, which introduced me to extending Python’s capabilities for real-
world applications.
Overall, this course strengthened my problem-solving mindset, enhanced my coding
efficiency, and gave me the confidence to apply Python in practical scenarios and further
technical learning.
Skills Gained:
• Python Programming
• Problem-Solving & Logical Thinking
• Data Structures (Lists, Dictionaries, Strings)
• Code Optimization (List Comprehensions)
• Working with Libraries & Modules
• Writing Clean, Maintainable Code
6
Certificate:
Successfully completed the course and earned a certificate from Kaggle.
7
ASSIGNMENT-2
TITLE: GAME DEVELOPMENT
INTRODUCTION
The Rock Paper Scissors game is a simple interactive program where a user plays
against the computer. The game begins by displaying three options: Rock, Paper,
and Scissors. The user selects one option, and the computer simultaneously
generates its own choice. Based on the standard rules of the game, the program
compares both choices and displays whether the user has won, lost, or if the match
has ended in a draw.
The operation of the program is based on decision-making and comparison of
choices. If both the user and the computer select the same option, the game results
in a draw. Otherwise, the program checks the winning conditions to decide the final
result. The game continues as a single-round competition between the player and
the computer.
This program provides an easy and fun way to understand how interactive
applications work. It demonstrates how a computer can accept user input, process
different conditions, and generate appropriate outputs. The project is useful for
beginners to understand the flow of a program and the working of game logic in a
simple and practical manner.
OBJECTIVE
The primary objectives of this project are as follows:
• To develop an interactive Rock Paper Scissors game for entertainment and
learning purposes.
● To create a program that allows a user to play against the computer.
● To simulate the traditional Rock Paper Scissors game in digital form.
● To accept user input and process it correctly.
8
● To generate the computer’s choice automatically during gameplay.
● To compare both choices and determine the result based on the game rules.
● To display the result as win, lose, or draw in a clear manner.
● To understand the sequence of operations involved in a game program.
● To improve logical thinking and problem-solving skills through game logic.
● To understand how interactive programs respond to different user actions.
● To demonstrate the working of condition-based decision making in programs.
● To learn how different outcomes are produced based on multiple conditions.
● To design a basic console-based application with proper flow and execution.
● To encourage creativity and interest in developing simple games using
programming.
TOOLS USED
Programming Language
• Language: Python
• Version: Python 3.x (compatible with Python 3.6 and above)
• Python was chosen for its simplicity, readability, and rich built-in support for
string operations and file handling, making it ideal for beginner-level game
development.
Integrated Development Environment (IDE)
• Primary IDE: Visual Studio Code (VS Code) — A lightweight, feature-rich code
editor with Python extension support, syntax highlighting, and an integrated terminal.
• Alternative IDE: PyCharm Community Edition — A Python-specific IDE with
intelligent code assistance, debugging tools, and project management features.
• Offline Alternative: IDLE The built-in Python editor, useful for quick code
testing and simple script execution.
9
CODE USED
import random
print("Team members:\nHeerabai(1JS25CS061)\nHemanya(1JS25CS062)")
print("WELCOME TO ROCK PAPER SCISSORS GAME!!")
print("Select one")
print("[Link] ")
print("[Link] ")
print("[Link] ")
user_choice=int(input("Enter your choice:"))
if user_choice<0 or user_choice>2:
print('Invalid choice!!Please select a correct option.')
else:
computer_choice=[Link](0,2)
print(f"Computer chose:{computer_choice}")
if user_choice==computer_choice:
print("It's a draw")
elif computer_choice==0 and user_choice==2:
print("You lose ")
elif computer_choice==2 and user_choice==0:
print("You win ")
elif computer_choice>user_choice:
print("You lose ")
elif user_choice>computer_choice:
print("You win ")
10
GAME DESIGN AND LOGIC
The game is designed as an interactive application where the user plays Rock Paper
Scissors against the computer. The user selects one option among Rock, Paper, and
Scissors by entering the corresponding number. The computer then generates its
own choice automatically.
The program compares both choices based on the rules of the game and displays
the result as win, lose, or draw. If both choices are the same, the game ends in a
draw. The program also checks whether the user input is valid and displays an error
message for invalid choices. The game logic works through condition checking and
decision-making to produce the final result.
EXPLANATION OF CONCEPTS
● Random Module: Used to generate the computer’s choice randomly.
● Input and Output: input() takes the user’s choice and print() displays
messages and results.
● Variables: Store the user’s choice and computer’s choice.
● Conditional Statements: if, elif, and else are used to check conditions and
decide the winner.
● Comparison Operators: Operators like ==, <, and > compare values.
● Logical Operator: or is used to validate the user’s input.
● Input Validation: Ensures the user enters only values between 0 and 2.
● Game Logic: The program compares both choices based on Rock Paper
Scissors rules to decide whether the user wins, loses, or draws.
11
SAMPLE OUTPUT
12
CHALLENGES FACED
While developing the Rock Paper Scissors game, several challenges were faced to
make the program work successfully. One of the main difficulties was handling
correct user input and ensuring that only valid options such as 0, 1, or 2 were
accepted. Understanding how to use the random module for generating the
computer’s choice was another challenge. Writing the game logic correctly for win,
lose, and draw conditions required careful use of if-elif-else statements. Small syntax
mistakes such as missing brackets, quotation marks, and indentation errors also
caused problems during execution and had to be debugged. In addition, testing all
possible combinations of Rock, Paper, and Scissors was necessary to verify that the
program produced accurate results and provided a smooth user experience.
CONCLUSION
In conclusion, the Rock Paper Scissors game was successfully developed using
Python by applying important programming concepts such as user input handling,
conditional statements, random number generation, and decision-making logic. The
project provided a practical understanding of how a simple interactive game can be
13
created using basic Python concepts. During the development process, challenges
such as validating user input, implementing the correct game logic, handling syntax
and indentation errors, and testing different outcomes were faced and solved
through debugging and practice. The program was designed to provide a user-
friendly experience with clear instructions and outputs. Overall, this project enhanced
programming knowledge, logical thinking, and problem-solving skills while also
giving hands-on experience in writing, testing, and executing Python programs
successfully.
14