Skip to content

ydvsamiirrr2007/python-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Basics 🐍

A collection of beginner-friendly Python exercises covering core control flow concepts: loops, conditionals, functions, and recursion.

📂 Contents

A simple login flow with username/password validation and an interactive menu.

  • Concepts: while loop, if/elif/else, continue, break, sys.exit()
  • File: login.py
  • Sample output: output.txt

Three different ways to check if a value is a palindrome.

  • Concepts: while loops, string slicing, functions, recursion
  • File: palindrome.py

🚀 How to Run

Requires Python 3.x.

# Login system
cd login_system
python3 login.py

# Palindrome checker
cd palindrome
python3 palindrome.py

🎯 What you'll learn

Topic Where
while True loops login.py, palindrome.py
if/elif/else both
continue / break login.py
sys.exit() login.py
String slicing s[::-1] palindrome.py
Recursion palindrome.py

📝 Notes

  • The login credentials in login.py are demo only — never hardcode real passwords in plain code.
  • All scripts use only the Python standard library.

📄 License

MIT — feel free to use, learn from, and modify.

About

Beginner Python exercises covering loops, conditionals, functions, and recursion — including a login system and palindrome checker.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages