I Created a Password Generator using Python

preview_player
Показать описание

Best Hindi Videos For Learning Programming:



►C Language Complete Course In Hindi -

►JavaScript Complete Course In Hindi -



►Django Complete Course In Hindi -






Follow Me On Social Media
Рекомендации по теме
Комментарии
Автор

Have you followed me on Insta yet? - Instagram.com/CodeWithHarry
I upload memes, quizzes and educational posts there!

CodeWithHarry
Автор

You're are lit sir🔥🔥 thanks for providing everything for us..

tushar__og
Автор

You really are a great teacher and brother for all students who are willing to learn programming.
I would like to mention one thing - Apart from using s.extend(list(s1)) and so forth, we could have used s+= list(s1) + list(s2) + list(s3) + list(s4)

riteshgupta
Автор

You can handle gibbrish using try and except


you can use:
try:
plen = int(input("Enter the password length:\n"))
except:
sys.exit("Invalid Length")

but first of all you have to import the sys module so that you can exit it

Thx code with harry for helping us in the journey of learning this beautiful language....

mars_ka_wasi
Автор

Sir you are the hero of students that can not afford expansive Acadmy .. thank you so much 💗💗💗💗💗💗💗💗💗💗💗💗💗💗💗💗

AliKhan-jrwp
Автор

You are genius and best coder in you tube.

codewithharryfanchannel
Автор

acha kaam kr rhe ho bhaiya .. lockdown mein ab jake python ki applications ki power pta chali...
bdiya lge rho

ironman--tj
Автор

while True:
plen = input("Enter the length of password: ")
if plen.isdigit():
plen = int(plen)
break
else:
print("Invalid Input")

notblurgaming
Автор

Sir you are doing great work and my frist programming teacher. 🙏🙏

udaypratapsingh
Автор

plen = input("Enter password length\n")
if plen.isdigit() == True:
plen = int(plen)
print("Your password is: ")
print("".join(random.sample(s, plen)))
else:
print("Please enter only digits")

LaveshBansal
Автор

Aapke videos ki bhukh lagi hai jitne banaoge utne Kam hai Bhai . Thank you Harry bhai ❤️

dharmveersinhsolanki
Автор

import string
import random

letters = string.ascii_letters
digits = string.digits
specials = string.punctuation

combined = letters + digits + specials # this is a string
try:
pass_len = int(input('\nEnter the length of the password : '))
except ValueError as err:
print('Please Enter only integer value!')
pass_len = int(input('Enter the length of the password : '))

passwd = random.sample(combined, pass_len)
print('Here is a strong password: ', end='')
print(''.join(passwd))

I compressed the code to only 17 lines!

tayyab.sheikh
Автор

harry bhai while loop chlake check kr lenge.
if plen.isdigit():
print("".join(random.sample(s, int(plen))))

break
else:
print("enter a valid number : ")
continue

niteshchauhan
Автор

Hi bhayya
My name:- Yugandhar
Region:- Telangana
I solved the bug by using "try", "except", "else" statements
Thank for teaching
Your teaching style is awesome 👌

yugandharchevitolla
Автор

harry bhai aap k channel se mena puri python sikhi h thankyou for upload this free videos

K-CEEE-PrinceKoli
Автор

harry bahiya, the best part about you that you try to occilate between level to take care of the newcommers.
Thanks

priyanshuparmar
Автор

Suggestions:
1. You can use list(string.printables) instead of that much extend functions
2. These passwords are not practical. Use

krishnagamer
Автор

Sir one exercise, please make it:
Exercise:-
A program which takes input from user of time and messege and then print that messege on that time.

Shivam-edfn
Автор

Harry bhai tum bhot acha kaam kr rhe ho. Ese hi krte rhna .. aur yeh short projects ki video hi banate rhna hmesa . it help us to boast knowledge and get to know real world prorblem's solution. :)

ravvkush
Автор

Sir, please start a playlist of data structures and algorithm. So that we get help in placement session

shubhgarg
visit shbcf.ru