Latest Awards
Complete 10 python programs which focus on loops.

morgan

Score over 100 points in total

vincebanter10

Complete any 5 python programs

vincebanter10

Complete 3 python list based tasks

vincebanter10

Complete 5 python list based tasks

vincebanter10

Complete 10 python list based tasks

dman12

Score over 1000 points in total

april-logan

Complete any pygame task

april-logan

Complete any 3 pygame tasks

april-logan

You have to complete 5 pygame tasks

april-logan

Score over 500 points in total

sam-edmund

Complete any pygame task

sam-edmund

Complete any 3 pygame tasks

sam-edmund

You have to complete 5 pygame tasks

sam-edmund

Complete any pygame task

12wrigleyf

Complete any 3 pygame tasks

12wrigleyf

You have to complete 5 pygame tasks

12wrigleyf

Score over 500 points in total

jhoughton12

Complete any 10 python prograns

jhoughton12

Complete 10 python programs which focus on loops.

jhoughton12

Python Score
tasks = 0
achivements = 0
freestyle = 0
Total = 0
Top 5 Scores
114gilo 3410
2joss-nolan-2 2530
3alexdawkins 2425
4byrnebrian 2050
512wattsl 1750
Click to view all scores
Who else completed this task?
28 people have completed this task! Below are some of those users!

kierwills 14gilo
byrnebrian nileboy2
alexdawkins 11zhuj
alan-manjali idle
andrwchng johannes-z

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!

Leave a Reply

You must be logged in to post a comment.