0

a password generator using python

import random def passwordgenerator{}: alpha={a,b,c,d,e,f,g,h,i,j} password=random.choice(alpha) password=password+password print(password) i m unable to get the output.... please help

2nd Mar 2020, 6:04 PM
Akshat Jain
2 Antworten
+ 5
There are many problems in this solution for a start please do two things: def pwg().... not def pwg{} and add a last line passwordgenerator() without indent
2nd Mar 2020, 6:19 PM
Oma Falk
Oma Falk - avatar
+ 5
Your code has bad syntax and also it has bad logic. I fixed that mess but it's still not password generator. Try to improve logic ;) Edit: I accidentally saved final version so you don't need to write that on your own :() https://code.sololearn.com/cCO8olr0T213/?ref=app
2nd Mar 2020, 6:19 PM
r8w9
r8w9 - avatar