Skip to content

Commit d43f521

Browse files
authored
Create generator.py
1 parent 04437dc commit d43f521

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

generator.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import random
2+
3+
print("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n")
4+
5+
a = "+-/*!&$#?=@abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"
6+
times = input("Cuantos caracteres quieres? ")
7+
alltext = "error!"
8+
error = False
9+
10+
if times.isnumeric() == False:
11+
print("error!")
12+
error = True
13+
14+
if error == False:
15+
if int(times) > 9999:
16+
aceptar = input("HEY HEY HEY, eso son muchos numeros, podria haber un problema si lo ejecutas, deseas ponerlo a 9999? (N/Y) ")
17+
if aceptar == "Y" or aceptar == "y":
18+
times = "9999"
19+
if int(times) > 0:
20+
alltext = ""
21+
for i in range(int(times)):
22+
randomItem = random.choice(a)
23+
alltext = alltext + randomItem
24+
print(alltext)

0 commit comments

Comments
 (0)