Skip to content

Commit 77b5c49

Browse files
rupen project file
1 parent ecaf7b3 commit 77b5c49

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

rupen.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
import random
2+
def print1(i,s):
3+
s=str(s)
4+
i=i+s
5+
print(f"al.add('{i}');")
6+
7+
def random1(i,l):
8+
if l==2:
9+
s=random.randrange(100,999)
10+
print1(i,s)
11+
if l==3:
12+
s=random.randrange(10,99)
13+
print1(i,s)
14+
if l==4:
15+
s=random.randrange(0,99)
16+
print1(i,s)
17+
if l==5 or l==6:
18+
print(f"al.add('{i}');")
19+
20+
f6=open('file6.txt')
21+
triplets=f6.read().split()
22+
for i in triplets:
23+
l=len(i)
24+
random1(i,l)
25+
f6.close()
26+
27+
28+
29+
30+
31+
32+
33+
34+
35+
36+

0 commit comments

Comments
 (0)