Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views

Python Programming Language Project

Python programming
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Python Programming Language Project

Python programming
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Python Programming Language Project.

1. Simple ATM Simulation


Write a program that simulates an ATM. The program should:
 Ask the user for their starting balance.
 Provide options to check balance, deposit money, and withdraw money.
 Update the balance based on the user's input and use conditionals to ensure withdrawals do
not exceed the balance.

Hint:

 Tools and Functions: input(), print(), float()


 Conditions: Use if, elif, and else statements to handle different ATM options and ensure
withdrawals do not exceed the balance.
 Statements: Use loops (while or for) to keep the program running until the user chooses to
exit.

2. Number Guessing Game


 Create a number guessing game where the program randomly selects a number between 1
and 100, and the user has to guess it.
 The program should give hints ("higher" or "lower") after each guess until the user guesses
the correct number.
 Use loops and conditionals to manage the game flow.

Hint:

 Tools and Functions: input(), print(), int(), random.randint()


 Conditions: Use if, elif, and else statements to give hints and check if the guess is correct.
 Statements: Use a loop (while) to keep the game running until the user guesses the correct
number. Use import random to generate a random number.

3. Grade Calculator
Create a program that takes in a student's marks for five subjects, calculates the total and
average, and prints out the grade based on the average.
Use conditionals to determine the grade (e.g., A for 90-100, B for 80-89, etc.).

Hint:

 Tools and Functions: input(), print(), int(), float()


 Conditions: Use if, elif, and else statements to determine the grade based on the average.
 Statements: Use arithmetic operators to calculate the total and average marks.

You might also like