filmov
tv
Coding to Christmas - Python - Challenge 13

Показать описание
Challenge 13 - Santa's Pin Code
Santa has left his naughty and nice list on his mobile phone. Only he wants to access it by entering passcode "464646". Create a function that asks and checks if he enters the correct passcode, if so, it will tell him his phone is unlocked. If it is the incorrect passcode, tell him access denied.
Give the user 3 chances to enter a passcode and then lock them out after 3 incorrect tries.
Overview:In this challenge, you’ll learn how to use functions to create reusable code.
This will allow you to answer the challenge above, as well as link to additional questions for you to try out.
What you’ll need:
What you’ll learn:
• Functions
• While loops
• Conditionals
Santa has left his naughty and nice list on his mobile phone. Only he wants to access it by entering passcode "464646". Create a function that asks and checks if he enters the correct passcode, if so, it will tell him his phone is unlocked. If it is the incorrect passcode, tell him access denied.
Give the user 3 chances to enter a passcode and then lock them out after 3 incorrect tries.
Overview:In this challenge, you’ll learn how to use functions to create reusable code.
This will allow you to answer the challenge above, as well as link to additional questions for you to try out.
What you’ll need:
What you’ll learn:
• Functions
• While loops
• Conditionals