Help me in python | Sololearn: Learn to code for FREE!

+2

Help me in python

I need to add a password generator help me solve here is my code https://code.sololearn.com/cIRpAlMXcV4h/?ref=app

4/8/2021 12:35:03 PM

Codemurai

12 Answers

New Answer

+4

Codemurai ```python import random l = list(range(5)) print(l) # [0, 1, 2, 3, 4] random.shuffle(l) print(l) # [4, 3, 2, 1, 0] ```

+4

What problems you got, the code works correctly

+2

Ananiya Jemberu Thanks But please show a code I don't know how to place

+1

There is no problem I mean help me to add a password generator

+1

Hint: use random store it as a list then shuffle it

+1

Help me to do this I know lists but........................................show me

+1

Ananiya Jemberu How do I shuffle do a demo code

0

What if the person's name is Jane or Kate or a four letter noun I suggest you use >=4 name = str(input()) if (len(name) >= 4): print("welcome " + name) print("HERE IS YOUR DATA") print("name:" + name) else: print("INVALID NAME")

0

Eg ```python random.shuffle(list("%","$","*",1,2,3,4,5, 6) ```

0

Codemurai Before you can make a password generator, you need to define the rules of the password. How many characters does it need to be? Is it just alpha/alpha-numeric, or are symbols involved. Can it start with any letter/number/symbol, or does it have to start with a letter/numer? Does at least one character have to be capitalized? Then, you can build the generator.

0

0