Day 6 – Lists, Tuples, and Basic Operations
📋 Day 6 – Lists, Tuples, and Basic Operations 1. Learning Objectives By the end of Day 6, you will be able to: Create and manipulate lists to store ordered collections of AEC data (e.g., column loads, beam spans, coordinates). Access, modify, and slice list elements using indexing. Use common list methods ( append , remove , sort , index , etc.). Understand tuples as immutable sequences and know when to use them (e.g., storing a point (x, y, z) ). Apply lists and tuples to practical AEC tasks: storing material properties, iterating over a nested list of coordinates. 2. Concept Explanation 2.1 Lists A list is an ordered, mutable collection of items. Items can be of any data type (numbers, strings, other lists). # Creating lists beam_spans = [6.0, 4.5, 7.2, 5.0] # list of floats column_loads = [850, 920, 780, 1100] # list of ints floor_names = ["Lobby", "Office", "MEP"] # list of strings mixed = [1, "hello", ...