Username/password authentication
📖 Scenario: You are setting up a simple username and password authentication system for an IoT device. This device needs to check if the user credentials are correct before allowing access.
🎯 Goal: Build a small program that stores a username and password, sets a login attempt, checks if the credentials match, and prints whether access is granted or denied.
📋 What You'll Learn
Create variables for username and password with exact values
Create variables for login attempt username and password
Write a condition to check if login attempt matches stored credentials
Print 'Access granted' if credentials match, otherwise print 'Access denied'
💡 Why This Matters
🌍 Real World
IoT devices often require simple username and password checks to allow authorized users to control or configure them.
💼 Career
Understanding basic authentication logic is important for DevOps roles managing device security and access control.
Progress0 / 4 steps