How to loop something to send in one email in Django

I like to send email to myself that contains the name of users who matches the criteria. My problem is that if I use the for loop in the mass_mail it sends every results in separated emails. So if I have 6 results it sends the email 6 times containing one results in every emails:
(I am using the mass_mail because in the future I like to send emails to more users not just me.)

How to make various list using random.sample()?

in this list AIB13seoul= ['김예나','김혜관','노주연','박진수','박희선','양건희','양세비', '이예지','전형준','정승기','sangwon','이지현','김강호','김슬기', '김용석','김재성','방준원','한유성','한현구','강병우'] I want to make 3 other random lists called a, b, and c without duplicates, using loop. I’m not used to utilizing loops, so this is how I tried originally: import random a = random.sample(AIB13seoul, 7) list(a) removed=list(set(AIB13seoul) – set(a)) b = random.sample(removed, 7) removed1=list(set(removed) – set(b)) c … Read more

Binary Search – Is this correct? and how to get position of search term

I am a beginner to programming. I have three questions about my binary search code I wrote (in Python):
(1) When I compared my code to the ones I found on the net, I see that everyone uses low and high values parameters. Wondering if mine can have errors that I am not seeing or is it just that the high/low parameters make the code more readable? I thought mine follows the recursive way of thinking (at least for me).