Build the wall
| Im sure everyones read at least one news artical where hackers have taken down a websites security with ease. What about those websites too strong to crack? You never hear about those. The people who code those defences too strong to break make an obscene amount of money. And for good reason. | ![]() |
Your task is to generate a randomly generated password that’s 8 characters long. It should contain numbers and one letter, this can be anywhere in the password. To do this you need to use the random function.
Before any coding starts you need to use: “Import random” to code with random numbers.
Then we use “x = random.randint(0,9)” to generate a number between zero and 9 and assign it to “x”. How can you use this to generate a random letter? Think arrays. And alphabets. For bonus marks put the letter in a random position.
Save your password in the form of an array that is 8 long. Print the array out to see your password. Make sure you save your code somewhere. Youre going to need it later.
BONUS: For extra credit use a loop to cut down on code usage.
When you finish go to “Now break it” and complete that task.
You need to log in or create an account to submit code!












