Computer Science

Welcome to a Computational Thinking (CT) Challenge



Abstract an Algorithm
Pseudo-Code

Sample Code in Python

Tkinter Code in Python
to display the UI below

Puzzle
Password Strength

You want to design a password facility for a website.
To protect user data, you want to guarantee all users set strong passwords.
You must first write a program in Python to take a string from the user and test its strength.
A strong password : one lowercase letter; ONE UPPERCASE; 1 digit; 8 or more characters.
The user must be allowed to decide whether they want to continue or not.
_______________________________________________________________

In the lesson on for loops, the CT challenge asked you to incorporate your code in a Tkinter program. There is a similar one above.
Read and execute the program. The UI is below. Can you see how the buttons give the user the same control as your program? analyse strength of a password







Later in the course, we will return to this program. So file it away!!
At some later point you will translate your program to Javascript.
We will then develop the html/ccs behind this page to include the JS code.



The sandbox below can be used to run the sample Python code or to play around with your own ideas.
Be careful of certain limitations of online IDEs compared to those downloaded to your devices.