-
Notifications
You must be signed in to change notification settings - Fork 0
/
odev_10_2.py
47 lines (30 loc) · 1.01 KB
/
odev_10_2.py
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
38
39
40
41
42
43
44
45
46
47
print("""
#######################################################
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
# PYHTON v.3.7.2 #
# Yazan: Mustafa #
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
#######################################################
""")
import random
b = 1
liste = []
liste1=[]
while b < 70:
a = random.randrange(0,300)
if a not in liste:
liste +=[a]
b+=1
for i in liste:
a=min(liste)
liste1+=[a]
liste.remove(a)
print("Sirali liste(<)=",liste1,"\n"*3)
isimler=["ahmet", "mustafa", "ismail", "dilara", "can", "ece","aysegul","omer","aziz","fatih",
"fatma","yahya","gulseren","arif","esra","seyma","huseyin","erdem","alperen","beyza"]
isimler1=[]
for i in isimler:
a=min(isimler)
isimler1+=[a]
isimler.remove(a)
print("Sirali liste(<)=",isimler1)