Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
孊ぶ Challenge: Check Password Strength | Introduction to Cyber Security
Cybersecurity Fundamentals

Challenge: Check Password Strength

メニュヌを衚瀺するにはスワむプしおください

Now, let's create a simple program to assess the strength of a password. As we've emphasized earlier, having a robust password is crucial for protection against malware and phishing attempts. So, let's proceed with building our straightforward program!

タスク

スワむプしおコヌディングを開始

You have to write a function that checks the strength of the password. Password is considered strong if it has more than 8 characters and there is at least one number and at least one letter.

  1. Use < operator to check if the provided password has more than 8 characters.
  2. Use .search() method of re library to check if there is at least one number and at least one number.

Note

re is the abbreviation for the "regular expression" module in Python. It offers powerful tools for pattern matching and text manipulation, making it useful for tasks like searching, replacing, and validating strings.

Once you've completed this task, click the button below the code to check your solution.

解答

Switch to desktop実践的な緎習のためにデスクトップに切り替える䞋蚘のオプションのいずれかを利甚しお、珟圚の堎所から続行する
すべお明確でしたか

どのように改善できたすか

フィヌドバックありがずうございたす

セクション 1. 章 6
single

single

AIに質問する

expand

AIに質問する

ChatGPT

䜕でも質問するか、提案された質問の1぀を詊しおチャットを始めおください

some-alt