How can I add all the numbers in a list? For instance, take the code below.
import random
cards = [11, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10]
user_cards = random.sample(cards, 2)
user_score = user_cards[0 + 1]
print(f"Your cards: {user_cards}, your score: {user_score}")
The user randomly picks two cards from the list "cards", but the line
user_score = user_cards[0 + 1]
is not adding numbers together; it's just printing the second number. What am I doing wrong? I'm a confused beginner.