colorsList = ["green", "red", "pink", "purple", "blue", "brown"] # creating a index d
for i in colorsList: # recalling the indexes 
    print(i) # prints them 
green
red
pink
purple
blue
brown

Changing Values

num1 = 5
num2 = 9
num1 = num2

print(num1)
print(num2)
9
9
num1 = 15
num2 = 25
num3 = 42
num2 = num3
num3 = num1
num1 = num2

print(num1)
print(num2)
print(num3)
42
42
15
num2 += num1
print(num1)
print(num2)

print(str(num1)+ str(num2))
print(num1 + num2)
42
84
4284
126
quesCount = 0
score = 0

# Use a dictionary for the questions
quesList = ["What team is Lebron James on?", "Who won the 2022 NBA Championship?","Who is the best player on the Mavericks?","Who is the best 3 point shooter in the NBA?"]

# Use a dictionary for the correct solutions
soluList = ["Lakers", "Golden State Warriors", "Luka Doncic", "Stephen Curry"]

quesAmount= len(quesList)

while quesCount < quesAmount:
    print(quesList[quesCount] + "\n")
    guess = input()
    if(guess == soluList[quesCount]):
        score += 1
        print("Correct! Score: ")
    else: 
        print("Incorrect! The correct answer was " + soluList[quesCount] + "\n")
    print(quesCount)
    print(quesAmount)
    quesCount += 1
What team is Lebron James on?

Correct! Score: 
0
4
Who won the 2022 NBA Championship?

Correct! Score: 
1
4
Who is the best player on the Mavericks?

Correct! Score: 
2
4
Who is the best 3 point shooter in the NBA?

Incorrect! The correct answer was Stephen Cury

3
4