Advertisement
Guest User

Untitled

a guest
Nov 28th, 2017
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. import random
  2. Matchs_name=[]
  3. Students = [
  4. {'Name': 'Gio', 'Sex': 'M', 'Mail': 'Zara@mail.com'},
  5. {'Name': 'Nika', 'Sex': 'M', 'Mail': 'Nika@mail.com'},
  6. {'Name': 'Gela', 'Sex': 'M', 'Mail': 'Gela@mail.com'},
  7. {'Name': 'Ika', 'Sex': 'M', 'Mail': 'Ika@mail.com'},
  8. {'Name': 'Ani', 'Sex': 'F', 'Mail': 'Ani@mail.com'},
  9. {'Name': 'Mari', 'Sex': 'F', 'Mail': 'Mari@mail.com'}
  10. ]
  11.  
  12.  
  13. def get_parthner(student, students):
  14. rand_user = random.choice(students)
  15. print(rand_user)
  16. #tu ertidaigivea
  17. #tu misi sqesic mdedrobitia an mamborbiti
  18. #else return
  19. #return rand_user
  20.  
  21.  
  22.  
  23. for student in Students:
  24. #print(student)
  25. rand_user = get_parthner(student , Students)
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. #send_mail():
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44. """""
  45. First_match = random.choice(Students)
  46. Second_match = random.choice(Students)
  47. if First_match != Second_match:
  48. print(First_match['Name'])
  49. print(Second_match)
  50. """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement