3.1,3.2 Data Abstraction Popcorn ccc

tinga = "binga"
print(tinga)
tinga = "goat"
print(tinga)

boolets = 6
print(boolets)
print(boolets>7)

boolets = 1
boolets1 = 2
boolets2 = 3
boolets1 = boolets2
boolets = boolets1
print(boolets1)
print(boolets)
tingus = ["hungu hungu","ring ring tinga","tinga tinga 123","chong chong","pong","pungu pungu","salamanca"]
print(tingus[0])
print(tingus[3])
print(tingus[6])
import json
ting = ["tinga","ohh tinga","ring ting ting"]
json.obj = json.dumps(ting)
print(json.obj)
secretNumber = 15 # integer
print(secretNumber)

food = "Pizza" # string
print(food)

names = ["Nandan", "Arnav", "Torin", "Remy"] # list
print(names)

IamCool = True # boolean

print(IamCool)

##Bonus Problem:

names_2 = {
    "Nandan": "TeamMate1",
    "Arnav": "TeamMate2",
    "Torin": "TeamMate3",
    "Remy": "TeamMate4",
}

print(names_2)


15
Pizza
['Nandan', 'Arnav', 'Torin', 'Remy']
True
{'Nandan': 'TeamMate1', 'Arnav': 'TeamMate2', 'Torin': 'TeamMate3', 'Remy': 'TeamMate4'}
questions = ["What period do I have AP CSP?", "What was this lesson on?", "What type of variable is used for numbers?"]
answers = ["5", "Data Abstraction", "Integer"]

score = 0
question_index = 0

while question_index < len(questions):
    print("Question", question_index + 1, ":", questions[question_index])
    user_answer = input("Enter your answer: ")
  
    if user_answer.lower() == answers[question_index].lower():
        print("Correct!")
        score += 1
 
    else:
        print("Incorrect.")
    question_index += 1
    
print("Quiz complete! You scored", score, "out of", len(questions))
Question 1 : What period do I have AP CSP?
Correct!
Question 2 : What was this lesson on?
Incorrect.
Question 3 : What type of variable is used for numbers?
Incorrect.
Quiz complete! You scored 1 out of 3