Data Abstracation
colorsList = ["green", "red", "pink", "purple", "blue", "brown"] # creating a index d
for i in colorsList: # recalling the indexes
print(i) # prints them
num1 = 5
num2 = 9
num1 = num2
print(num1)
print(num2)
num1 = 15
num2 = 25
num3 = 42
num2 = num3
num3 = num1
num1 = num2
print(num1)
print(num2)
print(num3)
num2 += num1
print(num1)
print(num2)
print(str(num1)+ str(num2))
print(num1 + num2)
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