Random Password Generator in Python | Python for Beginners #shorts

preview_player
Показать описание
Here is a simple random password generator in Python. In this video I am gonna show you how to generate random passwords using python. This is a YouTube shorts making python for beginners video.

Follow me on -

#python #programming #pythontutorial
Рекомендации по теме
Комментарии
Автор

Updated example Using String and Secrets module.

aslamsean
Автор

Alternatively you can close your eye and roll your face on the keyboard

SurprisedSyrup
Автор

"Today we're gonna make a random password generator"

Prints "random"

junjungaming
Автор

not to take anything away from the video but there is a built-in library named secrets for this very purpose

kanishkjurel
Автор

with all my respect, you can use inbuilt string module for lesser work too.
ex:
import string

lower = string.ascii_lowercase
...
and so on

charon
Автор

I have recently started working in Python. But every time Find a pain when I read a variable called string 😂🥶

DevCat
Автор

This is so efficient I was making different functions lmao

ranbeerarora
Автор

What about:

from string import ascii_lowercase as lower, ascii_uppercase as upper

?

suic
Автор

You can import uppercase letters, lowercase letters, special characters string from import string

devanshurawat
Автор

I would use an f-string to concatenate more than two strings. This way, it doesn't need to copy the entire string constructed so far for each addition

orisphera
Автор

You can also use abc = 'abcdefg...' upper = abc.uppper().

nikitakopylov
Автор

A less time consuming way to declare the upper variable is to just use upper = lower.upper( )

BlyatifulButter
Автор

string in-built library is there for a reason...
import string
all_chars = string.ascii_letters + string.digits + string.punctuation

another thing, random uses a seed which is bad for generating something such as a secure password. Use random.SystemRandom class for this purpose, or alternatively use another in-built library called secrets

mei
Автор

Import string

lower = string.ascii_lowercase
upper = string.ascii_uppercase
number = string.digits
symbol = string.punctuation

sergiusz
Автор

If not using secrets, you could also use the string library and concatenate string.ascii_letters and string.punctuation to make your string.

arkster
Автор

Great video, but I would list the abc with the ord() function and with a for loop

leoo
Автор

Thx Bro, now I can actually change my password😂🤣😂🤣😂🤣😂🤣😂🤣😂😂

showiestsugargaming
Автор

This is really cool and easy to understand

mr.e
Автор

There is no guarantee that any of spec symbols will be added to the pass.
It’s nice to check that and regenerate pass in recursion.

AlebastRnn
Автор

Why do people need to make a 10 minute video on this??? I’ll never know. Thank you for this quick banger!

MrStrongBro