Загрузка...

🔐 Day 26 LEARNING PYTHON: Build a Login System in Python#Python #LearnPython #PythonForBeginners

🔐 Day 26: Build a Login System in Python

In this mini project, you’ll create a simple login system using Python.

The program stores a username and password, asks the user to enter both, and checks whether they match.

If they are correct, Python prints:

✅ Access Granted

Otherwise, it prints:

❌ Wrong Username or Password

This is the basic idea behind real authentication systems used in apps and websites.
---

💻 Python Code

username = "admin"
password = "1234"

user = input("Enter username: ")
pwd = input("Enter password: ")

if user == username and pwd == password:
print("Access Granted")
else:
print("Wrong Username or Password")
---

🧠 What You Learned

Variables

input()

if else

Comparison using ==

The and operator

Mini project building
---

🚀 Challenge

Change the username and password to your own secret values and test both correct and incorrect inputs.

Comment your custom username below! 🔐
---

⏭️ Next Video

Day 27: Functions Recap — The Real Power of Functions ⚡
---

#Python #LearnPython #PythonForBeginners #Coding #Programming #100DaysOfPython #PythonProject #LoginSystem #CodeNewbie #TechShorts

Видео 🔐 Day 26 LEARNING PYTHON: Build a Login System in Python#Python #LearnPython #PythonForBeginners канала Pythondex
Яндекс.Метрика
Все заметки Новая заметка Страницу в заметки
Страницу в закладки Мои закладки
На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.
О CookiesНапомнить позжеПринять