Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.
Instruction
Sequence Operations Cheat Sheet
Sequence Operations Common to All Types
Concatenate
Attaches one sequence to the end of another
nums1 = [1, 2, 3]
nums2 = [4, 5, 6]
nums3 = nums1 + nums2 # [1, 2, 3, 4, 5, 6]
Count
Returns the number of times an item appears in a sequence
student_gpas = [2.5, 4.0, 3.2, 2.9, 3.7, 1.5, 4.0]
student_gpas.count(4.0) # 2
In
Retu...