


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



score = 85 if score >= 90 : print("Grade: A") elif score >= 80 : print("Grade: B") else: print("Grade: C") Use code with caution.
# For loop iterating through a range for i in range( 1 , 4 ): print(f"Iteration number: {i}") Use code with caution.
fruits = ["apple", "banana", "cherry"] fruits.append("orange") # Adding an element print(fruits) # Output: ['apple', 'banana', 'cherry', 'orange'] Use code with caution.
coordinates = (14.55, 121.05) # Latitude and Longitude # coordinates[0] = 15.00 <- This will throw a TypeError Use code with caution.
student_profile = { "name": "Carlwyn", "course": "Computer Science", "year": 1 } print(student_profile["course"]) # Output: Computer Science Use code with caution.
unique_ids = { 101 , 102 , 103 , 101 }