Skip to content

Instantly share code, notes, and snippets.

@NagariaHussain
Created February 13, 2025 06:06
Show Gist options
  • Save NagariaHussain/e70ff1da15274e1fb57bb45d145b0471 to your computer and use it in GitHub Desktop.
Save NagariaHussain/e70ff1da15274e1fb57bb45d145b0471 to your computer and use it in GitHub Desktop.
import random
num_teams = 3
students = [
"Aman",
"Manya",
"Ritika",
"Siddharth",
"Khushbu",
"Yashvi"
]
for i in range(num_teams):
member_1 = random.choices(students)
students.remove(member_1[0])
member_2 = random.choices(students)
students.remove(member_2[0])
print(f"Team {i+1}:", member_1, "and", member_2)
# Teams
# Team 1: ['Manya'] and ['Aman']
# Team 2: ['Siddharth'] and ['Khushbu']
# Team 3: ['Yashvi'] and ['Ritika']
# Instructions:
# * Use Pull Requests (2nd video in week 2, git for professionals)
# * Use conventional commits for commit messages (https://www.conventionalcommits.org/en/v1.0.0/)
# * Write a nice README (screenshots and demo GIFs/Videos)
# * Deadline: 17th Feb, 2025. 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment