Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- Matchs_name=[]
- Students = [
- {'Name': 'Gio', 'Sex': 'M', 'Mail': 'Zara@mail.com'},
- {'Name': 'Nika', 'Sex': 'M', 'Mail': 'Nika@mail.com'},
- {'Name': 'Gela', 'Sex': 'M', 'Mail': 'Gela@mail.com'},
- {'Name': 'Ika', 'Sex': 'M', 'Mail': 'Ika@mail.com'},
- {'Name': 'Ani', 'Sex': 'F', 'Mail': 'Ani@mail.com'},
- {'Name': 'Mari', 'Sex': 'F', 'Mail': 'Mari@mail.com'}
- ]
- def get_parthner(student, students):
- rand_user = random.choice(students)
- print(rand_user)
- #tu ertidaigivea
- #tu misi sqesic mdedrobitia an mamborbiti
- #else return
- #return rand_user
- for student in Students:
- #print(student)
- rand_user = get_parthner(student , Students)
- #send_mail():
- """""
- First_match = random.choice(Students)
- Second_match = random.choice(Students)
- if First_match != Second_match:
- print(First_match['Name'])
- print(Second_match)
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement