Please enable JavaScript to use CodeHS

NCyTE Cybersecurity Concept Lessons (Python)

Input Validation & Conditionals

In this module, students will develop a program to validate passwords, and more specifically, identify how a segment of program code functions by identifying inputs and outputs in a program. They will also explore basic computer science concepts such as representing a value with a variable, representing a string using a variable, and writing and evaluating conditional statements.

Lessons

6.1 Applying Conditionals - Password Validation

  • Input Validation and Conditionals
  • Conditional Pseudocode Activity
  • Password Checker
  • How are passwords saved?
  • Reflect: How are passwords saved?

6.2 Password Protection

  • Password Protection
  • Create a password
  • Ethics Moment: Impact of Code
  • Reflection: Impact of Code

Courses that include this module