@@CodeWithHarry Can u make secure password vault where we can keep password as back apart from lastpass , avast password and other stuffs, because it's a bit of privacy concern and some time lost of data. And suggest where to store the password vault as a backup.
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)
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(' Enter 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 whole code to only 17 lines!
You can handle gibbrish using try and except you can use: try: plen = int(input("Enter the password length: ")) 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....
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 👌
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(' Enter 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!
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. :)
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
Language is not a primary thing if someone wants to learn ML. Just start with basic python and learn the lib used for performing ML algos, promptly learn maths behind it. One free website is Great Learning for learning Stats.
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(' Enter 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!
Suggestions: 1. You can use list(string.printables) instead of that much extend functions 2. These passwords are not practical. Use list(string.ascii_letters+string.digits)
while True: a = input("Enter password length ") # handle gibberish(anything is entered except int) b = a.isdigit() if b==True: plen= int(a) break else: print(f"Invalid value! Please enter the valid value")
Bhai aap mere life ke sabse awesome bando me ek ho. bhai aap videos me please batao ki ye module inbuilt hai ya external hai. Or bhai kuch android par chalene wale projects Lao bhai please.
I created a program like this using c++ , same concept,"password generator" which I've been using for over a year but the logic is different that I created and I still use it personally.
Sir we can do that, Plen=int(input('enter the length of password: ')) While type(Plen)!=int: Print(' please enter length in numbers') Plen=int(input('enter the length of password: ')) Remain program here
@@Shivam-ml7tu bro when input is not int the loop will again and again ask him to write length in number when the user enters length in number then the execution of program move otherwise loop remain going on.
This will keep asking you for the password length until you put the integer number. while True: try: plen = int(input("Enter the password length ")) break except ValueError : print("Oops! That's not the valid number. Please try again...")
first of all i really really want to tanks to you for everything that i learn from you. I haven't watched all of your videos but when ever i watch you videos i really learn something you. sir i have a question that to be a hacker. what should i learn for hacking
You're are lit sir🔥🔥 thanks for providing everything for us..
Thanks and welcome
@@CodeWithHarry Can u make secure password vault where we can keep password as back apart from lastpass , avast password and other stuffs, because it's a bit of privacy concern and some time lost of data. And suggest where to store the password vault as a backup.
@@CodeWithHarry pls make java script with notes and thanks for all other videos really help a lot
@@CodeWithHarry b
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)
You cannot add lists.
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('
Enter 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 whole code to only 17 lines!
Sir you are the hero of students that can not afford expansive Acadmy .. thank you so much 💗💗💗💗💗💗💗💗💗💗💗💗💗💗💗💗
You are genius and best coder in you tube.
acha kaam kr rhe ho bhaiya .. lockdown mein ab jake python ki applications ki power pta chali...
bdiya lge rho bhaiya.............
You can handle gibbrish using try and except
you can use:
try:
plen = int(input("Enter the password length:
"))
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....
Love you dear.
💌
Sir you are doing great work and my frist programming teacher. 🙏🙏
plen = input("Enter password length
")
if plen.isdigit() == True:
plen = int(plen)
print("Your password is: ")
print("".join(random.sample(s, plen)))
else:
print("Please enter only digits")
Aapke videos ki bhukh lagi hai jitne banaoge utne Kam hai Bhai . Thank you Harry bhai ❤️
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 👌
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('
Enter 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!
Bhut mst kaam karta hai re tu...
harry bahiya , the best part about you that you try to occilate between level to take care of the newcommers.
Thanks
What a programmer. 😊😍😍💯
Wah bhai wah...... Yeh kaise kia.......... Samajh to a gya....... Laikin bhai tumhei is tarha ke ideas ate kaha se hai?
harry bhai aap k channel se mena puri python sikhi h thankyou for upload this free videos
first i watched your python 15 hour course after this i started follow you😍
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. :)
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.
Vaai nice video
It's me Susan from nepal
Hello ,
sir thank you for providing free python tutorials
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
Sir...I want to start learning ML, so before starting it did I had to have the knowledge of the python or any other language ???
Plsz sirr reply ❤
Nice ques...I walso want to know this thing ??
You need to know basic of any one
Oop language . I prefer python because Harry bhai has course on it
Language is not a primary thing if someone wants to learn ML. Just start with basic python and learn the lib used for performing ML algos, promptly learn maths behind it. One free website is Great Learning for learning Stats.
Yes Mansi any one of the oops languages but python is preferable because it is easy and provides a lot of functionality required for easy coding
U r the best teacher
while True:
plen = input("Enter the length of password: ")
if plen.isdigit():
plen = int(plen)
break
else:
print("Invalid Input")
20:41 (Just user try and except method):-
import string
import random
s1 = string.ascii_letters
s2 = string.digits
s3 = string.punctuation
try:
print('''----Welcome to Password Generator----
___Generate your password for free___''')
paswrdLen = int(input("Enter length of password you want in integer:- "))
s_1 = list(s1)
s_2 = list(s2)
s_3 = list(s3)
list = []
list.extend(s_1)
list.extend(s_2)
list.extend(s_3)
random.shuffle(list)
# print("Your Password is:-")
print("Your Password is:-","".join(list[0:paswrdLen]))
# print("".join(random.sample(list,paswrdLen)))--> prints any 4(paswrdLen) random items inside the list
except:
raise ValueError("Enter integer!")
Sir, please make playlist on flutter and dart
Yes, plz
Yes, sir
Yes
Yes, sir
amazing thanks a lot sir ....
U r very good teacher for a beginner 🔥🔥🔥🔥
Sir, please start a playlist of data structures and algorithm. So that we get help in placement session
kya chahiye
Start hogaya hai
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('
Enter 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!
Suggestions:
1. You can use list(string.printables) instead of that much extend functions
2. These passwords are not practical. Use list(string.ascii_letters+string.digits)
First Solution
if plen >= '0' and plen
Agar mene 11 diya to
Thanks bai I got t-shirt from hacktober using your trick thanks ❤️❤️❤️👍
You are best Harry bhai❤👍👏
Thank you sir for making new new projects😊
Harry sir u are the best...loved this video❣️💖❣️💖❣️
Nice video sir please continue C++ series
Sir I love this series 🤩.
Awesome video
Harry bhai thanks for the heart. phehle bar heart Mila ha
You Are Legend🙌🙌
Thank You For Your all the videos of GUI python..😊😊
Really u are great. I always follow ur YT. Thank u for ur advices.
very good Harry Kumar!
Harry bhaii...ethical hacking ki playlist Banado plz... love your videos 😊
East or west Harry bhaiya is best
Eval type casting can change
Finally a tutorial without import random
while True:
a = input("Enter password length
") # handle gibberish(anything is entered except int)
b = a.isdigit()
if b==True:
plen= int(a)
break
else:
print(f"Invalid value! Please enter the valid value")
Working 👌👌👌
I just started with python and l Love it to learn from you
# author :-Snehal
# Date :-12-may-2020
import string
import random
s1 = string.ascii_uppercase
s2 = string.ascii_lowercase
s3 = string.punctuation
s4 = string.digits
plen = (input("Enter Your Password Length :-"))
# Check it is Numeric or String
if plen.isdigit():
plen = int(plen)
s = []
s.extend(list(s1))
s.extend(list(s2))
s.extend(list(s3))
s.extend(list(s4))
random.shuffle(s)
print("".join(s[0:plen]))
else:
print("Somthing Wrong try again and Enter Numeric Value")
Love from Chhattisgarh ❤
Bhai aap mere life ke sabse awesome bando me ek ho. bhai aap videos me please batao ki ye module inbuilt hai ya external hai. Or bhai kuch android par chalene wale projects Lao bhai please.
Bhai itna mushkil password to yaad krna bhi mushkil hi jaega
lol
So cool! padsword generator
Love you harry vai,,kiya sikhaya tumne❤❤❤❤,i regard you🙏🙏🙏
Jabardast video
You great 😃
Thank you so much 😀
@@CodeWithHarry aap python se automation par bhi python program banaye
I created a program like this using c++ , same concept,"password generator" which I've been using for over a year but the logic is different that I created and I still use it personally.
Bhai ap ny Kamal kr diya
Please make a coding series on java
Doing great bro these projects will be helpful for our resumes. You are really helping your subscriber 😍😍😍😍
harry bhai u r doing great work...
1 ,एक ही दिल है harry bhai कितनी बार जीतोगे ।। Love
You are splendid sir
Sir we can do that,
Plen=int(input('enter the length of password:
'))
While type(Plen)!=int:
Print(' please enter length in numbers')
Plen=int(input('enter the length of password:
'))
Remain program here
nice answer
If input is not integer there will be error and code below it will not execute
@@Shivam-ml7tu bro when input is not int the loop will again and again ask him to write length in number when the user enters length in number then the execution of program move otherwise loop remain going on.
you are a guru for me
Your content is best
Nice plz tell us how to make bots plz plz make a vidoe on it .....sir plz lpz
thanks sir helps alot in working
Bhai bohot.mehnat karte ho aap or wo mehnat aapki videos me dikhti hai bhai
Bro you are awesome.... loved your explanation \m/
You are awesome sir 😊
I love your tutorials ♥️
we can add condition , if p_length == int:
pass
This will keep asking you for the password length until you put the integer number.
while True:
try:
plen = int(input("Enter the password length
"))
break
except ValueError :
print("Oops! That's not the valid number. Please try again...")
Is this good?
bro you have to take input from user again
You can use string. printable() for get all this letters with symbol
String.printable also has blank space so we cannot use it for the purpose of password generation.
This speed and explanation is good dear , u too could diff with other videos
Ek no brooo 👍👍👍
Error ke caught karne ke liye extension handling ka istamal karna hoga while flag == True laga ke usme try: aur excend dalna padega.
Maza ah gaya. You are great.
Bhai itni energy kaha se aati hai aapme
Bhaiya can u tell us how to make this type of applications for mobile platform
Tq so much sir 🥰
Python 3.8 mein extend = equal to append k hain.
So amazing nd incredible sir
Thank you so much 😀
@@CodeWithHarry You always comes with awesome content. Nowadays i learn django with your series. It's such great. 👍😃
@@CodeWithHarry its ur plesure sir
Harry bhai, how to make chatbot with python?ek video banao bhai...plz comments bhai...and love your teaching style.♥️
Why you use ascii in lower and upper and not in digit
here (if__name=="__main__" ) is completely not needed .
is it ?????
Great video. Keep up the good work.
first of all i really really want to tanks to you for everything that i learn from you.
I haven't watched all of your videos but when ever i watch you videos i really learn something you.
sir i have a question that to be a hacker. what should i learn for hacking
Bhai you are phenomenal
sir thank you for your kind explanation . Keep making such videos
I see your web development series but I install vscode then type console.log and any key not suggest.
What problem
You are awesome... Sir
..isdigit() function ka use kr skte hai...
Agr digit hoga tabhi wo run krega otherwise wo koi instructions print krega ...
this python series is my fab....pleaseeeee harry make a video on how to operate with very large integer values in python of around 300 digits
you are programming god
You should review your video friend but whole video is knowledge full
This stuff is bring you a lot views
Bhaiya please data structures and algorithms ki course start karo kyoki interview mai wahi main hai..please
Very good sir ❤️
Thanks 😊☺️😘
You are amazing bro
Love you brother
if not(plen.isdigit()):
print("Wrong Entry")
else:
plen = int(plen)
little correction:
if plen==str:
print("Wrong Entry")
else:
plen = int(plen)
both din worked
@@p.k5016 vo else mai jayga hi nhi kabhi
Bhai agar aap password aur password kiske liye banaya hai un dono ko agar file mai save save karte toh aur bhi accha hota..
But love you bhai