If-Else Statements
3 / 4
Boolean 'and'
Input a username and input a password. Check if they equal "JohnDoe" and "Password123!", respectively. If so, print "Access granted"; otherwise, print "Access denied".
Input a username and input a password. Check if they equal "JohnDoe" and "Password123!", respectively. If so, print "Access granted"; otherwise, print "Access denied".