Skip to content

22BCAD09anusha/Programming_Task_02_Anusha

Repository files navigation

Python Basic Programs Assignment

This project contains simple Python programs created to perform basic tasks using conditional statements and user input.

Programs Included

Part A: Even or Odd Checker

  • Takes a number as input
  • Checks whether the number is even or odd
  • Displays the result

Example: Input: 15 Output: 15 is an Odd Number

Part B: Largest of Three Numbers

  • Accepts three numbers from the user
  • Finds the largest number
  • Displays the largest value

Example: Input: 10, 25, 18 Output: Largest Number = 25

Part C: Student Grade Calculator

  • Accepts marks from the user
  • Assigns grade based on marks

Grade Criteria:

  • 90–100 → A
  • 80–89 → B
  • 70–79 → C
  • 60–69 → D
  • Below 60 → F

Example: Input: 85 Output: Grade: B

Part D: Simple Login Validation

  • Stores predefined username and password
  • Validates user credentials

Default Credentials:

  • Username: admin
  • Password: password123

Example Output: Login Successful

Part E: Password Strength Checker

  • Checks password length (minimum 8 characters)
  • Checks for at least one number
  • Checks for at least one uppercase letter
  • Displays password strength

Output Levels:

  • Weak Password
  • Moderate Password
  • Strong Password

Example: Input: Cyber123 Output: Strong Password

Technologies Used

  • Python 3
  • Conditional Statements
  • User Input Handling

How to Run

  1. Open terminal or command prompt
  2. Navigate to project folder
  3. Run: python filename.py

Folder Structure

Programming_task_02_Anusha/
│
├── Screenshots/
│   ├── even_odd.png
│   ├── grade_calculator.png
│   ├── largest_number.png
│   ├── login_validation.png
│   └── password_checker.png
│
├── even_odd.py
├── grade_calculator.py
├── largest_number.py
├── login_validation.py
├── password_checker.py
└── README.md

Conclusion

This project helped in understanding the basics of Python programming through simple practical programs. It provided hands-on experience with user input handling, conditional statements, decision-making, and implementing basic logic using Python.

Author

Anusha

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages