LC Computer Science

Welcome to CT



The Puzzle Below

Abstract an Algorithm
Pseudo-Code

Code in Python

Tkinter Code in Python
to display the UI below

Puzzle
Develop a Password Strength JS program embedded in html code
(An ALT1 Introduction to Interactive Webpages)

To protect user data, you want to guarantee all users set strong passwords before entering this page. The html/ccs code behind this page includes Javascript code to test password strength. The password facility for this site only allows entry above a password strength of 4.
The algorithm (and code) is first tested out in Python, as part of the lessons on for and while loops.
You must first write a program in Python to take a string from the user and test its strength.
A strong password :
one lowercase and ONE UPPERCASE letter; 1 digit; 8 or more characters.
analyse strength of a password The user must be allowed to decide whether they want to continue or not.
The code is then incorporated into a Tkinter program to interact with the user through the GUI below.

The sandbox below can be used to run some sample Javascript code (with debug prints) or to play around with your own ideas.
Be careful of certain limitations of online IDEs compared to those downloaded to your devices.