Practice: Comparison Operators

« Read the chapter

Q21. Password check

BeginnerApplication

Given saved = "Secret1" and typed = "secret1", print Access granted only if they are exactly equal, otherwise Access denied.

Goal: Use == in a login check.