Exercise: Conditional Statements

Solve this exercise on conditional statements before moving on to the next chapter.

Problem Statement #1

Write a program that will ask for the login details and password of a user. If the login username is “admin” and the password is “12345”, it should print “Granted access to online banking”.

Note: We need to press the “Run” button to execute our program, after changing our code.

Get hands-on with 1200+ tech skills courses.