-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcode(random module ) python language.py
More file actions
38 lines (26 loc) · 1.03 KB
/
Copy pathcode(random module ) python language.py
File metadata and controls
38 lines (26 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
program of randon password genrator
import random
char = "asdffghjklopiuytrewqzxcvbnm123@"
lenght = int(input("Enter the lenght of password:- "))
password = ""
for i in range(0,lenght):
password += random.choice(char)
print(password)
program of random joke genrator
import random
jokes = ["Why is a football stadium always cold? It has lots of fans!",
"What did one math book say to the other? 'I've got so many problems.",
"What do you call two bananas on the floor? Slippers.",
"What do kids play when their mom is using the phone? Bored games.",
" What's the smartest insect? A spelling bee!",
"How does the ocean say hi? It waves!"]
h = random.choice(jokes)
print(h)
program of password genrator with your name
import random
chars = "123456789" # you can use this also - "qwertyuioplkjhgfdsazxcvbnm!#$%0987654321"
lenght = int(input("Enter the lenght of your password:- "))
password = "Vishwas@"
for i in range(0,lenght):
password += random.choice(chars)
print(password)