Issue Date: October 2025
Submission Date:
GULZAR GROUP OF INSTITUTES
DEPARTMENT OF ARTIFICIAL INTELLIGENCE AND EMERGING
TECHNOLOGIES
PORGRAMMING IN PYTHON – BTAIML 501-20
ASSIGNMENT No. - 1
Question 1. Write a program to simulate ATM operations like checking balance,
withdrawal, and deposit using decision statements and loops.
Question 2. Create a program that accepts an email address and checks if it is valid
based on simple rules (contains '@', ends with .com or .org).
Question 3. Write a program that calculates the total price including sales tax for a
list of products with given prices and tax rates.
Question 4. Take student marks as input and calculate the final grade based on
percentage using control structures.
Question 5. Write a program to add, remove, and display items in a store inventory
using lists and dictionaries.
Question 6. Write a program where the user plays Rock-Paper-Scissors against the
computer with random choices.
Question 7. Implement Hangman where the user guesses letters to reveal a hidden
word within limited tries.
Question 8. Write a script to send emails with attachments using built-in Python
libraries.
Question 9. Create a two-player Tic-Tac-Toe game on the console with input
validation and win/draw detection.
Question 10. Create a script that reads sales data from a CSV file and generates
basic charts (bar, line) using a standard library.
Question 11. Build a simplified version of the classic snake game using console
output and keyboard input.
Question 12. Create a two-player version where players take turns guessing the
number. The first to guess correctly wins.
Question 13. Build a calculator that performs basic arithmetic operations (+, -, *, /)
based on user input.
Question 14. Write a program that calculates the monthly salary of employees
including overtime pay.
Issue Date: October 2025
Submission Date:
Question 15. Create a program that searches for books in a list by title or author and
displays matching results.
Question 16. Simulate traffic light changes (red, yellow, green) using loops and time
delays.
Question 17. Write a program to allow users to vote for candidates and show the
winner after all votes are counted.
Question 18. Develop a game where the user guesses a randomly generated number
within limited attempts.
Question 19. Implement deposit, withdrawal, and balance check functionalities for
a user’s bank account.
Question 20. Display the current time and update it every second using Python’s
datetime module.