hello!..
Here's the code: ↓
```python
import random
# List of books you like most
favorite_books = [
"The Great Gatsby",
"To Kill a Mockingbird",
"1984",
"Pride and Prejudice",
"The Catcher in the Rye",
"The Lord of the Rings",
"Harry Potter and the Sorcerer's Stone",
"The Hobbit",
"The Hunger Games",
"The Da Vinci Code",
]
# Create a copy of the list to shuffle
available_books = favorite_books.copy()
# Initialize a dictionary to store book assignments
book_assignments = {}
# Create a list of your 7 friends
friends = ["Friend1", "Friend2", "Friend3", "Friend4", "Friend5", "Friend6", "Friend7"]
# Assign books to friends randomly without duplicates
for friend in friends:
if available_books:
assigned_book = random.choice(available_books)
book_assignments[friend] = assigned_book
available_books.remove(assigned_book)
else:
break # No more books available
# Print the book assignments
for friend, book in book_assignments.items():
print(f"{friend} will read: {book}")
```
↪ This code will randomly assign one book from your list of favorite books to each of your 7 friends, ensuring that no two friends receive the same book.