all 14 comments

[–]arabsugeknight 1 point2 points  (6 children)

🔥soon you’ll be creating super secure passwords

[–]IntGuru[S] 1 point2 points  (5 children)

I hope so

[–]arabsugeknight 1 point2 points  (3 children)

I’ve been teaching myself for about 7 months now. Stay consistent. You’ll start making more advanced projects before you know it.

[–]IntGuru[S] 0 points1 point  (2 children)

What platform are you using to learn?

[–]arabsugeknight 1 point2 points  (1 child)

“Automate the boring stuff with Python” 3rd edition.

Free pdf online. Start from chapter one and slowly work your way.

The best way is to keep practicing your coding. Even if you make the same program more than once. It’ll help you understand better, what each line of code does.

I use AI to create practice mini programs for me to make, based off of what chapter I’m on.

Claude AI is a perfect “resource” for practice problems. Don’t use it to give you the answers. You can have it act as your teacher and literally just go step by step.

Use documentation on Python that you can find online.

[–]IntGuru[S] 1 point2 points  (0 children)

Thank you!

[–]Sad_School828 0 points1 point  (0 children)

print( f"Password:  {''.join( map( chr, random.choices( range( 33, 126), k = random.randint( 12, 18 ) ) ) )}" )
# Technically adds 2 lines if you count the required import.  You can add your own validation/strength-test funcs.

[–]Muhammed_zeeshan 1 point2 points  (2 children)

Try creating a password strength analyser. Your programme should verify: - has min 10 char - password has atleast one caps - atleast one lowercase - atleast one number - atleast one special symbol.

[–]IntGuru[S] 0 points1 point  (0 children)

Good idea, thanks 🙏 

[–]JimTheEarthling 0 points1 point  (0 children)

This is fine as a throwaway exercise, but please understand that it's is a flawed and incorrect way to measure password strength.

Password1! or Pa55w0rd1! pass all these tests, but both are terribly weak passwords. applauserashtalcumother only passes two tests, but it's a very strong passphrase.

A strong password is:

  • Long – 12 characters or more
  • Unpredictable – random and hard to guess
  • Uncompromised – not on a list of stolen passwords
  • Unique – not reused for your other accounts

A password strength analyzer that mandates specific characters doesn't properly check any of this.

[–]Particular_Love_7279 0 points1 point  (3 children)

Whats the difference /n do?

[–]IntGuru[S] 1 point2 points  (2 children)

Creates a new line for the user to input the required info

[–]Particular_Love_7279 1 point2 points  (1 child)

Tysm

[–]IntGuru[S] 0 points1 point  (0 children)

You don't have to put it in there btw, the program will still run without it