[{"data":1,"prerenderedAt":8872},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/reading-tuple-data":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[388],{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"body":989,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},{"type":990,"children":991,"toc":8840},"root",[992,1000,1006,1011,1483,1490,1495,1611,1618,1947,1953,2271,2277,2577,2583,2596,2718,2724,3099,3105,3474,3480,3827,3832,3838,3843,3954,3960,4407,4413,4754,4760,5238,5244,5249,5376,5382,5786,5792,6140,6146,6636,6642,6647,6745,6751,7060,7066,7376,7382,7740,7746,7751,8026,8031,8051,8277,8283,8795,8801,8806,8812,8818,8823,8834],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":392},[997],{"type":998,"value":999},"text","📖 Reading Tuple Data",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Reading data from tuples is fundamental to working with Python's immutable sequences. Tuples support the same access patterns as lists - indexing, slicing, and searching - but with the guarantee that the data won't change unexpectedly. Understanding these access patterns allows you to extract exactly the information you need from your structured data.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Whether you're working with coordinates, database records, or configuration settings, efficient tuple data access is essential for building robust applications.",{"type":993,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic tuple data access\nstudent = (\"Alice\", 20, \"Computer Science\", 3.8)\ncoordinates = (10, 25, 5)\ncolors = (\"red\", \"green\", \"blue\", \"yellow\")\n\n# Accessing individual elements\nprint(f\"Student name: {student[0]}\")\nprint(f\"X coordinate: {coordinates[0]}\")\nprint(f\"First color: {colors[0]}\")\n\n# Negative indexing\nprint(f\"Last color: {colors[-1]}\")\nprint(f\"Student GPA: {student[-1]}\")\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1096,1139,1191,1199,1207,1264,1313,1362,1369,1377,1431],{"type":993,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030],{"type":993,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1034],{"type":998,"value":1035},"# Basic tuple data access\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039,1045,1051,1056,1062,1067,1073,1077,1082,1086,1091],{"type":993,"tag":1026,"props":1040,"children":1042},{"style":1041},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1043],{"type":998,"value":1044},"student ",{"type":993,"tag":1026,"props":1046,"children":1048},{"style":1047},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1049],{"type":998,"value":1050},"=",{"type":993,"tag":1026,"props":1052,"children":1053},{"style":1041},[1054],{"type":998,"value":1055}," (",{"type":993,"tag":1026,"props":1057,"children":1059},{"style":1058},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1060],{"type":998,"value":1061},"\"Alice\"",{"type":993,"tag":1026,"props":1063,"children":1064},{"style":1041},[1065],{"type":998,"value":1066},", ",{"type":993,"tag":1026,"props":1068,"children":1070},{"style":1069},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1071],{"type":998,"value":1072},"20",{"type":993,"tag":1026,"props":1074,"children":1075},{"style":1041},[1076],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1078,"children":1079},{"style":1058},[1080],{"type":998,"value":1081},"\"Computer Science\"",{"type":993,"tag":1026,"props":1083,"children":1084},{"style":1041},[1085],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1087,"children":1088},{"style":1069},[1089],{"type":998,"value":1090},"3.8",{"type":993,"tag":1026,"props":1092,"children":1093},{"style":1041},[1094],{"type":998,"value":1095},")\n",{"type":993,"tag":1026,"props":1097,"children":1098},{"class":1028,"line":36},[1099,1104,1108,1112,1117,1121,1126,1130,1135],{"type":993,"tag":1026,"props":1100,"children":1101},{"style":1041},[1102],{"type":998,"value":1103},"coordinates ",{"type":993,"tag":1026,"props":1105,"children":1106},{"style":1047},[1107],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1109,"children":1110},{"style":1041},[1111],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1113,"children":1114},{"style":1069},[1115],{"type":998,"value":1116},"10",{"type":993,"tag":1026,"props":1118,"children":1119},{"style":1041},[1120],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1122,"children":1123},{"style":1069},[1124],{"type":998,"value":1125},"25",{"type":993,"tag":1026,"props":1127,"children":1128},{"style":1041},[1129],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1131,"children":1132},{"style":1069},[1133],{"type":998,"value":1134},"5",{"type":993,"tag":1026,"props":1136,"children":1137},{"style":1041},[1138],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1140,"children":1141},{"class":1028,"line":45},[1142,1147,1151,1155,1160,1164,1169,1173,1178,1182,1187],{"type":993,"tag":1026,"props":1143,"children":1144},{"style":1041},[1145],{"type":998,"value":1146},"colors ",{"type":993,"tag":1026,"props":1148,"children":1149},{"style":1047},[1150],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1152,"children":1153},{"style":1041},[1154],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1156,"children":1157},{"style":1058},[1158],{"type":998,"value":1159},"\"red\"",{"type":993,"tag":1026,"props":1161,"children":1162},{"style":1041},[1163],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1165,"children":1166},{"style":1058},[1167],{"type":998,"value":1168},"\"green\"",{"type":993,"tag":1026,"props":1170,"children":1171},{"style":1041},[1172],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1174,"children":1175},{"style":1058},[1176],{"type":998,"value":1177},"\"blue\"",{"type":993,"tag":1026,"props":1179,"children":1180},{"style":1041},[1181],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1183,"children":1184},{"style":1058},[1185],{"type":998,"value":1186},"\"yellow\"",{"type":993,"tag":1026,"props":1188,"children":1189},{"style":1041},[1190],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1192,"children":1193},{"class":1028,"line":54},[1194],{"type":993,"tag":1026,"props":1195,"children":1196},{"emptyLinePlaceholder":13},[1197],{"type":998,"value":1198},"\n",{"type":993,"tag":1026,"props":1200,"children":1201},{"class":1028,"line":63},[1202],{"type":993,"tag":1026,"props":1203,"children":1204},{"style":1032},[1205],{"type":998,"value":1206},"# Accessing individual elements\n",{"type":993,"tag":1026,"props":1208,"children":1209},{"class":1028,"line":72},[1210,1215,1220,1225,1230,1235,1240,1245,1250,1255,1260],{"type":993,"tag":1026,"props":1211,"children":1212},{"style":1069},[1213],{"type":998,"value":1214},"print",{"type":993,"tag":1026,"props":1216,"children":1217},{"style":1041},[1218],{"type":998,"value":1219},"(",{"type":993,"tag":1026,"props":1221,"children":1222},{"style":1047},[1223],{"type":998,"value":1224},"f",{"type":993,"tag":1026,"props":1226,"children":1227},{"style":1058},[1228],{"type":998,"value":1229},"\"Student name: ",{"type":993,"tag":1026,"props":1231,"children":1232},{"style":1069},[1233],{"type":998,"value":1234},"{",{"type":993,"tag":1026,"props":1236,"children":1237},{"style":1041},[1238],{"type":998,"value":1239},"student[",{"type":993,"tag":1026,"props":1241,"children":1242},{"style":1069},[1243],{"type":998,"value":1244},"0",{"type":993,"tag":1026,"props":1246,"children":1247},{"style":1041},[1248],{"type":998,"value":1249},"]",{"type":993,"tag":1026,"props":1251,"children":1252},{"style":1069},[1253],{"type":998,"value":1254},"}",{"type":993,"tag":1026,"props":1256,"children":1257},{"style":1058},[1258],{"type":998,"value":1259},"\"",{"type":993,"tag":1026,"props":1261,"children":1262},{"style":1041},[1263],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1265,"children":1266},{"class":1028,"line":81},[1267,1271,1275,1279,1284,1288,1293,1297,1301,1305,1309],{"type":993,"tag":1026,"props":1268,"children":1269},{"style":1069},[1270],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1272,"children":1273},{"style":1041},[1274],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1276,"children":1277},{"style":1047},[1278],{"type":998,"value":1224},{"type":993,"tag":1026,"props":1280,"children":1281},{"style":1058},[1282],{"type":998,"value":1283},"\"X coordinate: ",{"type":993,"tag":1026,"props":1285,"children":1286},{"style":1069},[1287],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1289,"children":1290},{"style":1041},[1291],{"type":998,"value":1292},"coordinates[",{"type":993,"tag":1026,"props":1294,"children":1295},{"style":1069},[1296],{"type":998,"value":1244},{"type":993,"tag":1026,"props":1298,"children":1299},{"style":1041},[1300],{"type":998,"value":1249},{"type":993,"tag":1026,"props":1302,"children":1303},{"style":1069},[1304],{"type":998,"value":1254},{"type":993,"tag":1026,"props":1306,"children":1307},{"style":1058},[1308],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1310,"children":1311},{"style":1041},[1312],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1314,"children":1315},{"class":1028,"line":91},[1316,1320,1324,1328,1333,1337,1342,1346,1350,1354,1358],{"type":993,"tag":1026,"props":1317,"children":1318},{"style":1069},[1319],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1321,"children":1322},{"style":1041},[1323],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1325,"children":1326},{"style":1047},[1327],{"type":998,"value":1224},{"type":993,"tag":1026,"props":1329,"children":1330},{"style":1058},[1331],{"type":998,"value":1332},"\"First color: ",{"type":993,"tag":1026,"props":1334,"children":1335},{"style":1069},[1336],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1338,"children":1339},{"style":1041},[1340],{"type":998,"value":1341},"colors[",{"type":993,"tag":1026,"props":1343,"children":1344},{"style":1069},[1345],{"type":998,"value":1244},{"type":993,"tag":1026,"props":1347,"children":1348},{"style":1041},[1349],{"type":998,"value":1249},{"type":993,"tag":1026,"props":1351,"children":1352},{"style":1069},[1353],{"type":998,"value":1254},{"type":993,"tag":1026,"props":1355,"children":1356},{"style":1058},[1357],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1359,"children":1360},{"style":1041},[1361],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1363,"children":1364},{"class":1028,"line":100},[1365],{"type":993,"tag":1026,"props":1366,"children":1367},{"emptyLinePlaceholder":13},[1368],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1370,"children":1371},{"class":1028,"line":109},[1372],{"type":993,"tag":1026,"props":1373,"children":1374},{"style":1032},[1375],{"type":998,"value":1376},"# Negative indexing\n",{"type":993,"tag":1026,"props":1378,"children":1379},{"class":1028,"line":118},[1380,1384,1388,1392,1397,1401,1405,1410,1415,1419,1423,1427],{"type":993,"tag":1026,"props":1381,"children":1382},{"style":1069},[1383],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1385,"children":1386},{"style":1041},[1387],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1389,"children":1390},{"style":1047},[1391],{"type":998,"value":1224},{"type":993,"tag":1026,"props":1393,"children":1394},{"style":1058},[1395],{"type":998,"value":1396},"\"Last color: ",{"type":993,"tag":1026,"props":1398,"children":1399},{"style":1069},[1400],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1402,"children":1403},{"style":1041},[1404],{"type":998,"value":1341},{"type":993,"tag":1026,"props":1406,"children":1407},{"style":1047},[1408],{"type":998,"value":1409},"-",{"type":993,"tag":1026,"props":1411,"children":1412},{"style":1069},[1413],{"type":998,"value":1414},"1",{"type":993,"tag":1026,"props":1416,"children":1417},{"style":1041},[1418],{"type":998,"value":1249},{"type":993,"tag":1026,"props":1420,"children":1421},{"style":1069},[1422],{"type":998,"value":1254},{"type":993,"tag":1026,"props":1424,"children":1425},{"style":1058},[1426],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1428,"children":1429},{"style":1041},[1430],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1432,"children":1433},{"class":1028,"line":127},[1434,1438,1442,1446,1451,1455,1459,1463,1467,1471,1475,1479],{"type":993,"tag":1026,"props":1435,"children":1436},{"style":1069},[1437],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1439,"children":1440},{"style":1041},[1441],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1443,"children":1444},{"style":1047},[1445],{"type":998,"value":1224},{"type":993,"tag":1026,"props":1447,"children":1448},{"style":1058},[1449],{"type":998,"value":1450},"\"Student GPA: ",{"type":993,"tag":1026,"props":1452,"children":1453},{"style":1069},[1454],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1456,"children":1457},{"style":1041},[1458],{"type":998,"value":1239},{"type":993,"tag":1026,"props":1460,"children":1461},{"style":1047},[1462],{"type":998,"value":1409},{"type":993,"tag":1026,"props":1464,"children":1465},{"style":1069},[1466],{"type":998,"value":1414},{"type":993,"tag":1026,"props":1468,"children":1469},{"style":1041},[1470],{"type":998,"value":1249},{"type":993,"tag":1026,"props":1472,"children":1473},{"style":1069},[1474],{"type":998,"value":1254},{"type":993,"tag":1026,"props":1476,"children":1477},{"style":1058},[1478],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1480,"children":1481},{"style":1041},[1482],{"type":998,"value":1095},{"type":993,"tag":1484,"props":1485,"children":1487},"h2",{"id":1486},"indexing-tuple-elements",[1488],{"type":998,"value":1489},"🎯 Indexing Tuple Elements",{"type":993,"tag":1001,"props":1491,"children":1492},{},[1493],{"type":998,"value":1494},"Tuple indexing works exactly like list indexing, using square brackets with numeric positions. Python uses zero-based indexing, where the first element is at index 0.",{"type":993,"tag":1496,"props":1497,"children":1501},"info-box",{"emoji":1498,"title":1499,"type":1500},"🎯","Tuple Indexing Rules","info",[1502,1511,1536,1544,1591,1601],{"type":993,"tag":1001,"props":1503,"children":1504},{},[1505],{"type":993,"tag":1506,"props":1507,"children":1508},"strong",{},[1509],{"type":998,"value":1510},"Index Fundamentals:",{"type":993,"tag":1512,"props":1513,"children":1514},"ul",{},[1515,1521,1526,1531],{"type":993,"tag":1516,"props":1517,"children":1518},"li",{},[1519],{"type":998,"value":1520},"Zero-based indexing: first element at index 0",{"type":993,"tag":1516,"props":1522,"children":1523},{},[1524],{"type":998,"value":1525},"Positive indices: 0, 1, 2, ... (left to right)",{"type":993,"tag":1516,"props":1527,"children":1528},{},[1529],{"type":998,"value":1530},"Negative indices: -1, -2, -3, ... (right to left)",{"type":993,"tag":1516,"props":1532,"children":1533},{},[1534],{"type":998,"value":1535},"IndexError raised for invalid indices",{"type":993,"tag":1001,"props":1537,"children":1538},{},[1539],{"type":993,"tag":1506,"props":1540,"children":1541},{},[1542],{"type":998,"value":1543},"Access Patterns:",{"type":993,"tag":1512,"props":1545,"children":1546},{},[1547,1558,1569,1580],{"type":993,"tag":1516,"props":1548,"children":1549},{},[1550,1552],{"type":998,"value":1551},"Single element: ",{"type":993,"tag":1022,"props":1553,"children":1555},{"className":1554},[],[1556],{"type":998,"value":1557},"tuple[index]",{"type":993,"tag":1516,"props":1559,"children":1560},{},[1561,1563],{"type":998,"value":1562},"First element: ",{"type":993,"tag":1022,"props":1564,"children":1566},{"className":1565},[],[1567],{"type":998,"value":1568},"tuple[0]",{"type":993,"tag":1516,"props":1570,"children":1571},{},[1572,1574],{"type":998,"value":1573},"Last element: ",{"type":993,"tag":1022,"props":1575,"children":1577},{"className":1576},[],[1578],{"type":998,"value":1579},"tuple[-1]",{"type":993,"tag":1516,"props":1581,"children":1582},{},[1583,1585],{"type":998,"value":1584},"Second to last: ",{"type":993,"tag":1022,"props":1586,"children":1588},{"className":1587},[],[1589],{"type":998,"value":1590},"tuple[-2]",{"type":993,"tag":1001,"props":1592,"children":1593},{},[1594,1599],{"type":993,"tag":1506,"props":1595,"children":1596},{},[1597],{"type":998,"value":1598},"Immutability:",{"type":998,"value":1600}," Reading never changes the tuple",{"type":993,"tag":1001,"props":1602,"children":1603},{},[1604,1609],{"type":993,"tag":1506,"props":1605,"children":1606},{},[1607],{"type":998,"value":1608},"Performance:",{"type":998,"value":1610}," Direct index access is O(1) - very fast",{"type":993,"tag":1612,"props":1613,"children":1615},"h3",{"id":1614},"positive-index-access",[1616],{"type":998,"value":1617},"Positive Index Access",{"type":993,"tag":1012,"props":1619,"children":1620},{},[1621],{"type":993,"tag":1016,"props":1622,"children":1624},{"className":1018,"code":1623,"language":6,"meta":8,"style":8},"# Positive indexing\nperson = (\"John\", \"Doe\", 25, \"Engineer\", True)\n\nprint(f\"First name: {person[0]}\")\nprint(f\"Last name: {person[1]}\")\nprint(f\"Age: {person[2]}\")\nprint(f\"Job: {person[3]}\")\nprint(f\"Active: {person[4]}\")\n",[1625],{"type":993,"tag":1022,"props":1626,"children":1627},{"__ignoreMap":8},[1628,1636,1696,1703,1752,1800,1849,1898],{"type":993,"tag":1026,"props":1629,"children":1630},{"class":1028,"line":12},[1631],{"type":993,"tag":1026,"props":1632,"children":1633},{"style":1032},[1634],{"type":998,"value":1635},"# Positive indexing\n",{"type":993,"tag":1026,"props":1637,"children":1638},{"class":1028,"line":27},[1639,1644,1648,1652,1657,1661,1666,1670,1674,1678,1683,1687,1692],{"type":993,"tag":1026,"props":1640,"children":1641},{"style":1041},[1642],{"type":998,"value":1643},"person ",{"type":993,"tag":1026,"props":1645,"children":1646},{"style":1047},[1647],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1649,"children":1650},{"style":1041},[1651],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1653,"children":1654},{"style":1058},[1655],{"type":998,"value":1656},"\"John\"",{"type":993,"tag":1026,"props":1658,"children":1659},{"style":1041},[1660],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1662,"children":1663},{"style":1058},[1664],{"type":998,"value":1665},"\"Doe\"",{"type":993,"tag":1026,"props":1667,"children":1668},{"style":1041},[1669],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1671,"children":1672},{"style":1069},[1673],{"type":998,"value":1125},{"type":993,"tag":1026,"props":1675,"children":1676},{"style":1041},[1677],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1679,"children":1680},{"style":1058},[1681],{"type":998,"value":1682},"\"Engineer\"",{"type":993,"tag":1026,"props":1684,"children":1685},{"style":1041},[1686],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1688,"children":1689},{"style":1069},[1690],{"type":998,"value":1691},"True",{"type":993,"tag":1026,"props":1693,"children":1694},{"style":1041},[1695],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1697,"children":1698},{"class":1028,"line":36},[1699],{"type":993,"tag":1026,"props":1700,"children":1701},{"emptyLinePlaceholder":13},[1702],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1704,"children":1705},{"class":1028,"line":45},[1706,1710,1714,1718,1723,1727,1732,1736,1740,1744,1748],{"type":993,"tag":1026,"props":1707,"children":1708},{"style":1069},[1709],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1711,"children":1712},{"style":1041},[1713],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1715,"children":1716},{"style":1047},[1717],{"type":998,"value":1224},{"type":993,"tag":1026,"props":1719,"children":1720},{"style":1058},[1721],{"type":998,"value":1722},"\"First name: ",{"type":993,"tag":1026,"props":1724,"children":1725},{"style":1069},[1726],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1728,"children":1729},{"style":1041},[1730],{"type":998,"value":1731},"person[",{"type":993,"tag":1026,"props":1733,"children":1734},{"style":1069},[1735],{"type":998,"value":1244},{"type":993,"tag":1026,"props":1737,"children":1738},{"style":1041},[1739],{"type":998,"value":1249},{"type":993,"tag":1026,"props":1741,"children":1742},{"style":1069},[1743],{"type":998,"value":1254},{"type":993,"tag":1026,"props":1745,"children":1746},{"style":1058},[1747],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1749,"children":1750},{"style":1041},[1751],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1753,"children":1754},{"class":1028,"line":54},[1755,1759,1763,1767,1772,1776,1780,1784,1788,1792,1796],{"type":993,"tag":1026,"props":1756,"children":1757},{"style":1069},[1758],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1760,"children":1761},{"style":1041},[1762],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1764,"children":1765},{"style":1047},[1766],{"type":998,"value":1224},{"type":993,"tag":1026,"props":1768,"children":1769},{"style":1058},[1770],{"type":998,"value":1771},"\"Last name: ",{"type":993,"tag":1026,"props":1773,"children":1774},{"style":1069},[1775],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1777,"children":1778},{"style":1041},[1779],{"type":998,"value":1731},{"type":993,"tag":1026,"props":1781,"children":1782},{"style":1069},[1783],{"type":998,"value":1414},{"type":993,"tag":1026,"props":1785,"children":1786},{"style":1041},[1787],{"type":998,"value":1249},{"type":993,"tag":1026,"props":1789,"children":1790},{"style":1069},[1791],{"type":998,"value":1254},{"type":993,"tag":1026,"props":1793,"children":1794},{"style":1058},[1795],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1797,"children":1798},{"style":1041},[1799],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1801,"children":1802},{"class":1028,"line":63},[1803,1807,1811,1815,1820,1824,1828,1833,1837,1841,1845],{"type":993,"tag":1026,"props":1804,"children":1805},{"style":1069},[1806],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1808,"children":1809},{"style":1041},[1810],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1812,"children":1813},{"style":1047},[1814],{"type":998,"value":1224},{"type":993,"tag":1026,"props":1816,"children":1817},{"style":1058},[1818],{"type":998,"value":1819},"\"Age: ",{"type":993,"tag":1026,"props":1821,"children":1822},{"style":1069},[1823],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1825,"children":1826},{"style":1041},[1827],{"type":998,"value":1731},{"type":993,"tag":1026,"props":1829,"children":1830},{"style":1069},[1831],{"type":998,"value":1832},"2",{"type":993,"tag":1026,"props":1834,"children":1835},{"style":1041},[1836],{"type":998,"value":1249},{"type":993,"tag":1026,"props":1838,"children":1839},{"style":1069},[1840],{"type":998,"value":1254},{"type":993,"tag":1026,"props":1842,"children":1843},{"style":1058},[1844],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1846,"children":1847},{"style":1041},[1848],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1850,"children":1851},{"class":1028,"line":72},[1852,1856,1860,1864,1869,1873,1877,1882,1886,1890,1894],{"type":993,"tag":1026,"props":1853,"children":1854},{"style":1069},[1855],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1857,"children":1858},{"style":1041},[1859],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1861,"children":1862},{"style":1047},[1863],{"type":998,"value":1224},{"type":993,"tag":1026,"props":1865,"children":1866},{"style":1058},[1867],{"type":998,"value":1868},"\"Job: ",{"type":993,"tag":1026,"props":1870,"children":1871},{"style":1069},[1872],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1874,"children":1875},{"style":1041},[1876],{"type":998,"value":1731},{"type":993,"tag":1026,"props":1878,"children":1879},{"style":1069},[1880],{"type":998,"value":1881},"3",{"type":993,"tag":1026,"props":1883,"children":1884},{"style":1041},[1885],{"type":998,"value":1249},{"type":993,"tag":1026,"props":1887,"children":1888},{"style":1069},[1889],{"type":998,"value":1254},{"type":993,"tag":1026,"props":1891,"children":1892},{"style":1058},[1893],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1895,"children":1896},{"style":1041},[1897],{"type":998,"value":1095},{"type":993,"tag":1026,"props":1899,"children":1900},{"class":1028,"line":81},[1901,1905,1909,1913,1918,1922,1926,1931,1935,1939,1943],{"type":993,"tag":1026,"props":1902,"children":1903},{"style":1069},[1904],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1906,"children":1907},{"style":1041},[1908],{"type":998,"value":1219},{"type":993,"tag":1026,"props":1910,"children":1911},{"style":1047},[1912],{"type":998,"value":1224},{"type":993,"tag":1026,"props":1914,"children":1915},{"style":1058},[1916],{"type":998,"value":1917},"\"Active: ",{"type":993,"tag":1026,"props":1919,"children":1920},{"style":1069},[1921],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1923,"children":1924},{"style":1041},[1925],{"type":998,"value":1731},{"type":993,"tag":1026,"props":1927,"children":1928},{"style":1069},[1929],{"type":998,"value":1930},"4",{"type":993,"tag":1026,"props":1932,"children":1933},{"style":1041},[1934],{"type":998,"value":1249},{"type":993,"tag":1026,"props":1936,"children":1937},{"style":1069},[1938],{"type":998,"value":1254},{"type":993,"tag":1026,"props":1940,"children":1941},{"style":1058},[1942],{"type":998,"value":1259},{"type":993,"tag":1026,"props":1944,"children":1945},{"style":1041},[1946],{"type":998,"value":1095},{"type":993,"tag":1612,"props":1948,"children":1950},{"id":1949},"negative-index-access",[1951],{"type":998,"value":1952},"Negative Index Access",{"type":993,"tag":1012,"props":1954,"children":1955},{},[1956],{"type":993,"tag":1016,"props":1957,"children":1959},{"className":1018,"code":1958,"language":6,"meta":8,"style":8},"# Negative indexing\nrgb_color = (255, 128, 64)\npoint_3d = (10, 20, 30)\n\nprint(f\"Last RGB value: {rgb_color[-1]}\")\nprint(f\"Second to last: {rgb_color[-2]}\")\nprint(f\"Z coordinate: {point_3d[-1]}\")\nprint(f\"Y coordinate: {point_3d[-2]}\")\n",[1960],{"type":993,"tag":1022,"props":1961,"children":1962},{"__ignoreMap":8},[1963,1970,2013,2054,2061,2114,2166,2219],{"type":993,"tag":1026,"props":1964,"children":1965},{"class":1028,"line":12},[1966],{"type":993,"tag":1026,"props":1967,"children":1968},{"style":1032},[1969],{"type":998,"value":1376},{"type":993,"tag":1026,"props":1971,"children":1972},{"class":1028,"line":27},[1973,1978,1982,1986,1991,1995,2000,2004,2009],{"type":993,"tag":1026,"props":1974,"children":1975},{"style":1041},[1976],{"type":998,"value":1977},"rgb_color ",{"type":993,"tag":1026,"props":1979,"children":1980},{"style":1047},[1981],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1983,"children":1984},{"style":1041},[1985],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1987,"children":1988},{"style":1069},[1989],{"type":998,"value":1990},"255",{"type":993,"tag":1026,"props":1992,"children":1993},{"style":1041},[1994],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1996,"children":1997},{"style":1069},[1998],{"type":998,"value":1999},"128",{"type":993,"tag":1026,"props":2001,"children":2002},{"style":1041},[2003],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2005,"children":2006},{"style":1069},[2007],{"type":998,"value":2008},"64",{"type":993,"tag":1026,"props":2010,"children":2011},{"style":1041},[2012],{"type":998,"value":1095},{"type":993,"tag":1026,"props":2014,"children":2015},{"class":1028,"line":36},[2016,2021,2025,2029,2033,2037,2041,2045,2050],{"type":993,"tag":1026,"props":2017,"children":2018},{"style":1041},[2019],{"type":998,"value":2020},"point_3d ",{"type":993,"tag":1026,"props":2022,"children":2023},{"style":1047},[2024],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2026,"children":2027},{"style":1041},[2028],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2030,"children":2031},{"style":1069},[2032],{"type":998,"value":1116},{"type":993,"tag":1026,"props":2034,"children":2035},{"style":1041},[2036],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2038,"children":2039},{"style":1069},[2040],{"type":998,"value":1072},{"type":993,"tag":1026,"props":2042,"children":2043},{"style":1041},[2044],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2046,"children":2047},{"style":1069},[2048],{"type":998,"value":2049},"30",{"type":993,"tag":1026,"props":2051,"children":2052},{"style":1041},[2053],{"type":998,"value":1095},{"type":993,"tag":1026,"props":2055,"children":2056},{"class":1028,"line":45},[2057],{"type":993,"tag":1026,"props":2058,"children":2059},{"emptyLinePlaceholder":13},[2060],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2062,"children":2063},{"class":1028,"line":54},[2064,2068,2072,2076,2081,2085,2090,2094,2098,2102,2106,2110],{"type":993,"tag":1026,"props":2065,"children":2066},{"style":1069},[2067],{"type":998,"value":1214},{"type":993,"tag":1026,"props":2069,"children":2070},{"style":1041},[2071],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2073,"children":2074},{"style":1047},[2075],{"type":998,"value":1224},{"type":993,"tag":1026,"props":2077,"children":2078},{"style":1058},[2079],{"type":998,"value":2080},"\"Last RGB value: ",{"type":993,"tag":1026,"props":2082,"children":2083},{"style":1069},[2084],{"type":998,"value":1234},{"type":993,"tag":1026,"props":2086,"children":2087},{"style":1041},[2088],{"type":998,"value":2089},"rgb_color[",{"type":993,"tag":1026,"props":2091,"children":2092},{"style":1047},[2093],{"type":998,"value":1409},{"type":993,"tag":1026,"props":2095,"children":2096},{"style":1069},[2097],{"type":998,"value":1414},{"type":993,"tag":1026,"props":2099,"children":2100},{"style":1041},[2101],{"type":998,"value":1249},{"type":993,"tag":1026,"props":2103,"children":2104},{"style":1069},[2105],{"type":998,"value":1254},{"type":993,"tag":1026,"props":2107,"children":2108},{"style":1058},[2109],{"type":998,"value":1259},{"type":993,"tag":1026,"props":2111,"children":2112},{"style":1041},[2113],{"type":998,"value":1095},{"type":993,"tag":1026,"props":2115,"children":2116},{"class":1028,"line":63},[2117,2121,2125,2129,2134,2138,2142,2146,2150,2154,2158,2162],{"type":993,"tag":1026,"props":2118,"children":2119},{"style":1069},[2120],{"type":998,"value":1214},{"type":993,"tag":1026,"props":2122,"children":2123},{"style":1041},[2124],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2126,"children":2127},{"style":1047},[2128],{"type":998,"value":1224},{"type":993,"tag":1026,"props":2130,"children":2131},{"style":1058},[2132],{"type":998,"value":2133},"\"Second to last: ",{"type":993,"tag":1026,"props":2135,"children":2136},{"style":1069},[2137],{"type":998,"value":1234},{"type":993,"tag":1026,"props":2139,"children":2140},{"style":1041},[2141],{"type":998,"value":2089},{"type":993,"tag":1026,"props":2143,"children":2144},{"style":1047},[2145],{"type":998,"value":1409},{"type":993,"tag":1026,"props":2147,"children":2148},{"style":1069},[2149],{"type":998,"value":1832},{"type":993,"tag":1026,"props":2151,"children":2152},{"style":1041},[2153],{"type":998,"value":1249},{"type":993,"tag":1026,"props":2155,"children":2156},{"style":1069},[2157],{"type":998,"value":1254},{"type":993,"tag":1026,"props":2159,"children":2160},{"style":1058},[2161],{"type":998,"value":1259},{"type":993,"tag":1026,"props":2163,"children":2164},{"style":1041},[2165],{"type":998,"value":1095},{"type":993,"tag":1026,"props":2167,"children":2168},{"class":1028,"line":72},[2169,2173,2177,2181,2186,2190,2195,2199,2203,2207,2211,2215],{"type":993,"tag":1026,"props":2170,"children":2171},{"style":1069},[2172],{"type":998,"value":1214},{"type":993,"tag":1026,"props":2174,"children":2175},{"style":1041},[2176],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2178,"children":2179},{"style":1047},[2180],{"type":998,"value":1224},{"type":993,"tag":1026,"props":2182,"children":2183},{"style":1058},[2184],{"type":998,"value":2185},"\"Z coordinate: ",{"type":993,"tag":1026,"props":2187,"children":2188},{"style":1069},[2189],{"type":998,"value":1234},{"type":993,"tag":1026,"props":2191,"children":2192},{"style":1041},[2193],{"type":998,"value":2194},"point_3d[",{"type":993,"tag":1026,"props":2196,"children":2197},{"style":1047},[2198],{"type":998,"value":1409},{"type":993,"tag":1026,"props":2200,"children":2201},{"style":1069},[2202],{"type":998,"value":1414},{"type":993,"tag":1026,"props":2204,"children":2205},{"style":1041},[2206],{"type":998,"value":1249},{"type":993,"tag":1026,"props":2208,"children":2209},{"style":1069},[2210],{"type":998,"value":1254},{"type":993,"tag":1026,"props":2212,"children":2213},{"style":1058},[2214],{"type":998,"value":1259},{"type":993,"tag":1026,"props":2216,"children":2217},{"style":1041},[2218],{"type":998,"value":1095},{"type":993,"tag":1026,"props":2220,"children":2221},{"class":1028,"line":81},[2222,2226,2230,2234,2239,2243,2247,2251,2255,2259,2263,2267],{"type":993,"tag":1026,"props":2223,"children":2224},{"style":1069},[2225],{"type":998,"value":1214},{"type":993,"tag":1026,"props":2227,"children":2228},{"style":1041},[2229],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2231,"children":2232},{"style":1047},[2233],{"type":998,"value":1224},{"type":993,"tag":1026,"props":2235,"children":2236},{"style":1058},[2237],{"type":998,"value":2238},"\"Y coordinate: ",{"type":993,"tag":1026,"props":2240,"children":2241},{"style":1069},[2242],{"type":998,"value":1234},{"type":993,"tag":1026,"props":2244,"children":2245},{"style":1041},[2246],{"type":998,"value":2194},{"type":993,"tag":1026,"props":2248,"children":2249},{"style":1047},[2250],{"type":998,"value":1409},{"type":993,"tag":1026,"props":2252,"children":2253},{"style":1069},[2254],{"type":998,"value":1832},{"type":993,"tag":1026,"props":2256,"children":2257},{"style":1041},[2258],{"type":998,"value":1249},{"type":993,"tag":1026,"props":2260,"children":2261},{"style":1069},[2262],{"type":998,"value":1254},{"type":993,"tag":1026,"props":2264,"children":2265},{"style":1058},[2266],{"type":998,"value":1259},{"type":993,"tag":1026,"props":2268,"children":2269},{"style":1041},[2270],{"type":998,"value":1095},{"type":993,"tag":1612,"props":2272,"children":2274},{"id":2273},"index-bounds-and-error-handling",[2275],{"type":998,"value":2276},"Index Bounds and Error Handling",{"type":993,"tag":1012,"props":2278,"children":2279},{},[2280],{"type":993,"tag":1016,"props":2281,"children":2283},{"className":1018,"code":2282,"language":6,"meta":8,"style":8},"# Safe indexing with bounds checking\ndata = (1, 2, 3)\n\n# Check length before accessing\nif len(data) > 2:\n    print(f\"Third element: {data[2]}\")\n\n# Handle potential errors\ntry:\n    value = data[5]  # This will cause an IndexError\nexcept IndexError:\n    print(\"Index out of range\")\n\nprint(f\"Tuple length: {len(data)}\")\n",[2284],{"type":993,"tag":1022,"props":2285,"children":2286},{"__ignoreMap":8},[2287,2295,2335,2342,2350,2383,2433,2440,2448,2460,2491,2508,2528,2535],{"type":993,"tag":1026,"props":2288,"children":2289},{"class":1028,"line":12},[2290],{"type":993,"tag":1026,"props":2291,"children":2292},{"style":1032},[2293],{"type":998,"value":2294},"# Safe indexing with bounds checking\n",{"type":993,"tag":1026,"props":2296,"children":2297},{"class":1028,"line":27},[2298,2303,2307,2311,2315,2319,2323,2327,2331],{"type":993,"tag":1026,"props":2299,"children":2300},{"style":1041},[2301],{"type":998,"value":2302},"data ",{"type":993,"tag":1026,"props":2304,"children":2305},{"style":1047},[2306],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2308,"children":2309},{"style":1041},[2310],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2312,"children":2313},{"style":1069},[2314],{"type":998,"value":1414},{"type":993,"tag":1026,"props":2316,"children":2317},{"style":1041},[2318],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2320,"children":2321},{"style":1069},[2322],{"type":998,"value":1832},{"type":993,"tag":1026,"props":2324,"children":2325},{"style":1041},[2326],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2328,"children":2329},{"style":1069},[2330],{"type":998,"value":1881},{"type":993,"tag":1026,"props":2332,"children":2333},{"style":1041},[2334],{"type":998,"value":1095},{"type":993,"tag":1026,"props":2336,"children":2337},{"class":1028,"line":36},[2338],{"type":993,"tag":1026,"props":2339,"children":2340},{"emptyLinePlaceholder":13},[2341],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2343,"children":2344},{"class":1028,"line":45},[2345],{"type":993,"tag":1026,"props":2346,"children":2347},{"style":1032},[2348],{"type":998,"value":2349},"# Check length before accessing\n",{"type":993,"tag":1026,"props":2351,"children":2352},{"class":1028,"line":54},[2353,2358,2363,2368,2373,2378],{"type":993,"tag":1026,"props":2354,"children":2355},{"style":1047},[2356],{"type":998,"value":2357},"if",{"type":993,"tag":1026,"props":2359,"children":2360},{"style":1069},[2361],{"type":998,"value":2362}," len",{"type":993,"tag":1026,"props":2364,"children":2365},{"style":1041},[2366],{"type":998,"value":2367},"(data) ",{"type":993,"tag":1026,"props":2369,"children":2370},{"style":1047},[2371],{"type":998,"value":2372},">",{"type":993,"tag":1026,"props":2374,"children":2375},{"style":1069},[2376],{"type":998,"value":2377}," 2",{"type":993,"tag":1026,"props":2379,"children":2380},{"style":1041},[2381],{"type":998,"value":2382},":\n",{"type":993,"tag":1026,"props":2384,"children":2385},{"class":1028,"line":63},[2386,2391,2395,2399,2404,2408,2413,2417,2421,2425,2429],{"type":993,"tag":1026,"props":2387,"children":2388},{"style":1069},[2389],{"type":998,"value":2390},"    print",{"type":993,"tag":1026,"props":2392,"children":2393},{"style":1041},[2394],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2396,"children":2397},{"style":1047},[2398],{"type":998,"value":1224},{"type":993,"tag":1026,"props":2400,"children":2401},{"style":1058},[2402],{"type":998,"value":2403},"\"Third element: ",{"type":993,"tag":1026,"props":2405,"children":2406},{"style":1069},[2407],{"type":998,"value":1234},{"type":993,"tag":1026,"props":2409,"children":2410},{"style":1041},[2411],{"type":998,"value":2412},"data[",{"type":993,"tag":1026,"props":2414,"children":2415},{"style":1069},[2416],{"type":998,"value":1832},{"type":993,"tag":1026,"props":2418,"children":2419},{"style":1041},[2420],{"type":998,"value":1249},{"type":993,"tag":1026,"props":2422,"children":2423},{"style":1069},[2424],{"type":998,"value":1254},{"type":993,"tag":1026,"props":2426,"children":2427},{"style":1058},[2428],{"type":998,"value":1259},{"type":993,"tag":1026,"props":2430,"children":2431},{"style":1041},[2432],{"type":998,"value":1095},{"type":993,"tag":1026,"props":2434,"children":2435},{"class":1028,"line":72},[2436],{"type":993,"tag":1026,"props":2437,"children":2438},{"emptyLinePlaceholder":13},[2439],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2441,"children":2442},{"class":1028,"line":81},[2443],{"type":993,"tag":1026,"props":2444,"children":2445},{"style":1032},[2446],{"type":998,"value":2447},"# Handle potential errors\n",{"type":993,"tag":1026,"props":2449,"children":2450},{"class":1028,"line":91},[2451,2456],{"type":993,"tag":1026,"props":2452,"children":2453},{"style":1047},[2454],{"type":998,"value":2455},"try",{"type":993,"tag":1026,"props":2457,"children":2458},{"style":1041},[2459],{"type":998,"value":2382},{"type":993,"tag":1026,"props":2461,"children":2462},{"class":1028,"line":100},[2463,2468,2472,2477,2481,2486],{"type":993,"tag":1026,"props":2464,"children":2465},{"style":1041},[2466],{"type":998,"value":2467},"    value ",{"type":993,"tag":1026,"props":2469,"children":2470},{"style":1047},[2471],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2473,"children":2474},{"style":1041},[2475],{"type":998,"value":2476}," data[",{"type":993,"tag":1026,"props":2478,"children":2479},{"style":1069},[2480],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2482,"children":2483},{"style":1041},[2484],{"type":998,"value":2485},"]  ",{"type":993,"tag":1026,"props":2487,"children":2488},{"style":1032},[2489],{"type":998,"value":2490},"# This will cause an IndexError\n",{"type":993,"tag":1026,"props":2492,"children":2493},{"class":1028,"line":109},[2494,2499,2504],{"type":993,"tag":1026,"props":2495,"children":2496},{"style":1047},[2497],{"type":998,"value":2498},"except",{"type":993,"tag":1026,"props":2500,"children":2501},{"style":1069},[2502],{"type":998,"value":2503}," IndexError",{"type":993,"tag":1026,"props":2505,"children":2506},{"style":1041},[2507],{"type":998,"value":2382},{"type":993,"tag":1026,"props":2509,"children":2510},{"class":1028,"line":118},[2511,2515,2519,2524],{"type":993,"tag":1026,"props":2512,"children":2513},{"style":1069},[2514],{"type":998,"value":2390},{"type":993,"tag":1026,"props":2516,"children":2517},{"style":1041},[2518],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2520,"children":2521},{"style":1058},[2522],{"type":998,"value":2523},"\"Index out of range\"",{"type":993,"tag":1026,"props":2525,"children":2526},{"style":1041},[2527],{"type":998,"value":1095},{"type":993,"tag":1026,"props":2529,"children":2530},{"class":1028,"line":127},[2531],{"type":993,"tag":1026,"props":2532,"children":2533},{"emptyLinePlaceholder":13},[2534],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2536,"children":2537},{"class":1028,"line":136},[2538,2542,2546,2550,2555,2560,2565,2569,2573],{"type":993,"tag":1026,"props":2539,"children":2540},{"style":1069},[2541],{"type":998,"value":1214},{"type":993,"tag":1026,"props":2543,"children":2544},{"style":1041},[2545],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2547,"children":2548},{"style":1047},[2549],{"type":998,"value":1224},{"type":993,"tag":1026,"props":2551,"children":2552},{"style":1058},[2553],{"type":998,"value":2554},"\"Tuple length: ",{"type":993,"tag":1026,"props":2556,"children":2557},{"style":1069},[2558],{"type":998,"value":2559},"{len",{"type":993,"tag":1026,"props":2561,"children":2562},{"style":1041},[2563],{"type":998,"value":2564},"(data)",{"type":993,"tag":1026,"props":2566,"children":2567},{"style":1069},[2568],{"type":998,"value":1254},{"type":993,"tag":1026,"props":2570,"children":2571},{"style":1058},[2572],{"type":998,"value":1259},{"type":993,"tag":1026,"props":2574,"children":2575},{"style":1041},[2576],{"type":998,"value":1095},{"type":993,"tag":1484,"props":2578,"children":2580},{"id":2579},"slicing-tuples",[2581],{"type":998,"value":2582},"🔪 Slicing Tuples",{"type":993,"tag":1001,"props":2584,"children":2585},{},[2586,2588,2594],{"type":998,"value":2587},"Tuple slicing creates new tuples containing subsequences of the original tuple. Slicing uses the syntax ",{"type":993,"tag":1022,"props":2589,"children":2591},{"className":2590},[],[2592],{"type":998,"value":2593},"tuple[start:stop:step]",{"type":998,"value":2595}," and returns a new tuple with the selected elements.",{"type":993,"tag":1496,"props":2597,"children":2601},{"emoji":2598,"title":2599,"type":2600},"🔪","Tuple Slicing Syntax","success",[2602,2610,2667,2675,2698,2708],{"type":993,"tag":1001,"props":2603,"children":2604},{},[2605],{"type":993,"tag":1506,"props":2606,"children":2607},{},[2608],{"type":998,"value":2609},"Slicing Format:",{"type":993,"tag":1512,"props":2611,"children":2612},{},[2613,2624,2635,2646,2657],{"type":993,"tag":1516,"props":2614,"children":2615},{},[2616,2622],{"type":993,"tag":1022,"props":2617,"children":2619},{"className":2618},[],[2620],{"type":998,"value":2621},"tuple[start:stop]",{"type":998,"value":2623},": Elements from start to stop-1",{"type":993,"tag":1516,"props":2625,"children":2626},{},[2627,2633],{"type":993,"tag":1022,"props":2628,"children":2630},{"className":2629},[],[2631],{"type":998,"value":2632},"tuple[start:]",{"type":998,"value":2634},": From start to end",{"type":993,"tag":1516,"props":2636,"children":2637},{},[2638,2644],{"type":993,"tag":1022,"props":2639,"children":2641},{"className":2640},[],[2642],{"type":998,"value":2643},"tuple[:stop]",{"type":998,"value":2645},": From beginning to stop-1",{"type":993,"tag":1516,"props":2647,"children":2648},{},[2649,2655],{"type":993,"tag":1022,"props":2650,"children":2652},{"className":2651},[],[2653],{"type":998,"value":2654},"tuple[::step]",{"type":998,"value":2656},": Every step-th element",{"type":993,"tag":1516,"props":2658,"children":2659},{},[2660,2665],{"type":993,"tag":1022,"props":2661,"children":2663},{"className":2662},[],[2664],{"type":998,"value":2593},{"type":998,"value":2666},": Full control",{"type":993,"tag":1001,"props":2668,"children":2669},{},[2670],{"type":993,"tag":1506,"props":2671,"children":2672},{},[2673],{"type":998,"value":2674},"Default Values:",{"type":993,"tag":1512,"props":2676,"children":2677},{},[2678,2683,2688,2693],{"type":993,"tag":1516,"props":2679,"children":2680},{},[2681],{"type":998,"value":2682},"start defaults to 0",{"type":993,"tag":1516,"props":2684,"children":2685},{},[2686],{"type":998,"value":2687},"stop defaults to length",{"type":993,"tag":1516,"props":2689,"children":2690},{},[2691],{"type":998,"value":2692},"step defaults to 1",{"type":993,"tag":1516,"props":2694,"children":2695},{},[2696],{"type":998,"value":2697},"Negative values work with all parameters",{"type":993,"tag":1001,"props":2699,"children":2700},{},[2701,2706],{"type":993,"tag":1506,"props":2702,"children":2703},{},[2704],{"type":998,"value":2705},"Result:",{"type":998,"value":2707}," Always returns a new tuple (never modifies original)",{"type":993,"tag":1001,"props":2709,"children":2710},{},[2711,2716],{"type":993,"tag":1506,"props":2712,"children":2713},{},[2714],{"type":998,"value":2715},"Empty Slices:",{"type":998,"value":2717}," Invalid ranges return empty tuples",{"type":993,"tag":1612,"props":2719,"children":2721},{"id":2720},"basic-slice-operations",[2722],{"type":998,"value":2723},"Basic Slice Operations",{"type":993,"tag":1012,"props":2725,"children":2726},{},[2727],{"type":993,"tag":1016,"props":2728,"children":2730},{"className":1018,"code":2729,"language":6,"meta":8,"style":8},"# Basic slicing\nnumbers = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)\n\n# Get first three elements\nfirst_three = numbers[:3]\nprint(f\"First three: {first_three}\")\n\n# Get last three elements\nlast_three = numbers[-3:]\nprint(f\"Last three: {last_three}\")\n\n# Get middle elements\nmiddle = numbers[3:7]\nprint(f\"Middle: {middle}\")\n",[2731],{"type":993,"tag":1022,"props":2732,"children":2733},{"__ignoreMap":8},[2734,2742,2842,2849,2857,2883,2924,2931,2939,2969,3010,3017,3025,3058],{"type":993,"tag":1026,"props":2735,"children":2736},{"class":1028,"line":12},[2737],{"type":993,"tag":1026,"props":2738,"children":2739},{"style":1032},[2740],{"type":998,"value":2741},"# Basic slicing\n",{"type":993,"tag":1026,"props":2743,"children":2744},{"class":1028,"line":27},[2745,2750,2754,2758,2762,2766,2770,2774,2778,2782,2786,2790,2794,2798,2802,2806,2811,2815,2820,2824,2829,2833,2838],{"type":993,"tag":1026,"props":2746,"children":2747},{"style":1041},[2748],{"type":998,"value":2749},"numbers ",{"type":993,"tag":1026,"props":2751,"children":2752},{"style":1047},[2753],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2755,"children":2756},{"style":1041},[2757],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2759,"children":2760},{"style":1069},[2761],{"type":998,"value":1244},{"type":993,"tag":1026,"props":2763,"children":2764},{"style":1041},[2765],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2767,"children":2768},{"style":1069},[2769],{"type":998,"value":1414},{"type":993,"tag":1026,"props":2771,"children":2772},{"style":1041},[2773],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2775,"children":2776},{"style":1069},[2777],{"type":998,"value":1832},{"type":993,"tag":1026,"props":2779,"children":2780},{"style":1041},[2781],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2783,"children":2784},{"style":1069},[2785],{"type":998,"value":1881},{"type":993,"tag":1026,"props":2787,"children":2788},{"style":1041},[2789],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2791,"children":2792},{"style":1069},[2793],{"type":998,"value":1930},{"type":993,"tag":1026,"props":2795,"children":2796},{"style":1041},[2797],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2799,"children":2800},{"style":1069},[2801],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2803,"children":2804},{"style":1041},[2805],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2807,"children":2808},{"style":1069},[2809],{"type":998,"value":2810},"6",{"type":993,"tag":1026,"props":2812,"children":2813},{"style":1041},[2814],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2816,"children":2817},{"style":1069},[2818],{"type":998,"value":2819},"7",{"type":993,"tag":1026,"props":2821,"children":2822},{"style":1041},[2823],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2825,"children":2826},{"style":1069},[2827],{"type":998,"value":2828},"8",{"type":993,"tag":1026,"props":2830,"children":2831},{"style":1041},[2832],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2834,"children":2835},{"style":1069},[2836],{"type":998,"value":2837},"9",{"type":993,"tag":1026,"props":2839,"children":2840},{"style":1041},[2841],{"type":998,"value":1095},{"type":993,"tag":1026,"props":2843,"children":2844},{"class":1028,"line":36},[2845],{"type":993,"tag":1026,"props":2846,"children":2847},{"emptyLinePlaceholder":13},[2848],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2850,"children":2851},{"class":1028,"line":45},[2852],{"type":993,"tag":1026,"props":2853,"children":2854},{"style":1032},[2855],{"type":998,"value":2856},"# Get first three elements\n",{"type":993,"tag":1026,"props":2858,"children":2859},{"class":1028,"line":54},[2860,2865,2869,2874,2878],{"type":993,"tag":1026,"props":2861,"children":2862},{"style":1041},[2863],{"type":998,"value":2864},"first_three ",{"type":993,"tag":1026,"props":2866,"children":2867},{"style":1047},[2868],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2870,"children":2871},{"style":1041},[2872],{"type":998,"value":2873}," numbers[:",{"type":993,"tag":1026,"props":2875,"children":2876},{"style":1069},[2877],{"type":998,"value":1881},{"type":993,"tag":1026,"props":2879,"children":2880},{"style":1041},[2881],{"type":998,"value":2882},"]\n",{"type":993,"tag":1026,"props":2884,"children":2885},{"class":1028,"line":63},[2886,2890,2894,2898,2903,2907,2912,2916,2920],{"type":993,"tag":1026,"props":2887,"children":2888},{"style":1069},[2889],{"type":998,"value":1214},{"type":993,"tag":1026,"props":2891,"children":2892},{"style":1041},[2893],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2895,"children":2896},{"style":1047},[2897],{"type":998,"value":1224},{"type":993,"tag":1026,"props":2899,"children":2900},{"style":1058},[2901],{"type":998,"value":2902},"\"First three: ",{"type":993,"tag":1026,"props":2904,"children":2905},{"style":1069},[2906],{"type":998,"value":1234},{"type":993,"tag":1026,"props":2908,"children":2909},{"style":1041},[2910],{"type":998,"value":2911},"first_three",{"type":993,"tag":1026,"props":2913,"children":2914},{"style":1069},[2915],{"type":998,"value":1254},{"type":993,"tag":1026,"props":2917,"children":2918},{"style":1058},[2919],{"type":998,"value":1259},{"type":993,"tag":1026,"props":2921,"children":2922},{"style":1041},[2923],{"type":998,"value":1095},{"type":993,"tag":1026,"props":2925,"children":2926},{"class":1028,"line":72},[2927],{"type":993,"tag":1026,"props":2928,"children":2929},{"emptyLinePlaceholder":13},[2930],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2932,"children":2933},{"class":1028,"line":81},[2934],{"type":993,"tag":1026,"props":2935,"children":2936},{"style":1032},[2937],{"type":998,"value":2938},"# Get last three elements\n",{"type":993,"tag":1026,"props":2940,"children":2941},{"class":1028,"line":91},[2942,2947,2951,2956,2960,2964],{"type":993,"tag":1026,"props":2943,"children":2944},{"style":1041},[2945],{"type":998,"value":2946},"last_three ",{"type":993,"tag":1026,"props":2948,"children":2949},{"style":1047},[2950],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2952,"children":2953},{"style":1041},[2954],{"type":998,"value":2955}," numbers[",{"type":993,"tag":1026,"props":2957,"children":2958},{"style":1047},[2959],{"type":998,"value":1409},{"type":993,"tag":1026,"props":2961,"children":2962},{"style":1069},[2963],{"type":998,"value":1881},{"type":993,"tag":1026,"props":2965,"children":2966},{"style":1041},[2967],{"type":998,"value":2968},":]\n",{"type":993,"tag":1026,"props":2970,"children":2971},{"class":1028,"line":100},[2972,2976,2980,2984,2989,2993,2998,3002,3006],{"type":993,"tag":1026,"props":2973,"children":2974},{"style":1069},[2975],{"type":998,"value":1214},{"type":993,"tag":1026,"props":2977,"children":2978},{"style":1041},[2979],{"type":998,"value":1219},{"type":993,"tag":1026,"props":2981,"children":2982},{"style":1047},[2983],{"type":998,"value":1224},{"type":993,"tag":1026,"props":2985,"children":2986},{"style":1058},[2987],{"type":998,"value":2988},"\"Last three: ",{"type":993,"tag":1026,"props":2990,"children":2991},{"style":1069},[2992],{"type":998,"value":1234},{"type":993,"tag":1026,"props":2994,"children":2995},{"style":1041},[2996],{"type":998,"value":2997},"last_three",{"type":993,"tag":1026,"props":2999,"children":3000},{"style":1069},[3001],{"type":998,"value":1254},{"type":993,"tag":1026,"props":3003,"children":3004},{"style":1058},[3005],{"type":998,"value":1259},{"type":993,"tag":1026,"props":3007,"children":3008},{"style":1041},[3009],{"type":998,"value":1095},{"type":993,"tag":1026,"props":3011,"children":3012},{"class":1028,"line":109},[3013],{"type":993,"tag":1026,"props":3014,"children":3015},{"emptyLinePlaceholder":13},[3016],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3018,"children":3019},{"class":1028,"line":118},[3020],{"type":993,"tag":1026,"props":3021,"children":3022},{"style":1032},[3023],{"type":998,"value":3024},"# Get middle elements\n",{"type":993,"tag":1026,"props":3026,"children":3027},{"class":1028,"line":127},[3028,3033,3037,3041,3045,3050,3054],{"type":993,"tag":1026,"props":3029,"children":3030},{"style":1041},[3031],{"type":998,"value":3032},"middle ",{"type":993,"tag":1026,"props":3034,"children":3035},{"style":1047},[3036],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3038,"children":3039},{"style":1041},[3040],{"type":998,"value":2955},{"type":993,"tag":1026,"props":3042,"children":3043},{"style":1069},[3044],{"type":998,"value":1881},{"type":993,"tag":1026,"props":3046,"children":3047},{"style":1041},[3048],{"type":998,"value":3049},":",{"type":993,"tag":1026,"props":3051,"children":3052},{"style":1069},[3053],{"type":998,"value":2819},{"type":993,"tag":1026,"props":3055,"children":3056},{"style":1041},[3057],{"type":998,"value":2882},{"type":993,"tag":1026,"props":3059,"children":3060},{"class":1028,"line":136},[3061,3065,3069,3073,3078,3082,3087,3091,3095],{"type":993,"tag":1026,"props":3062,"children":3063},{"style":1069},[3064],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3066,"children":3067},{"style":1041},[3068],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3070,"children":3071},{"style":1047},[3072],{"type":998,"value":1224},{"type":993,"tag":1026,"props":3074,"children":3075},{"style":1058},[3076],{"type":998,"value":3077},"\"Middle: ",{"type":993,"tag":1026,"props":3079,"children":3080},{"style":1069},[3081],{"type":998,"value":1234},{"type":993,"tag":1026,"props":3083,"children":3084},{"style":1041},[3085],{"type":998,"value":3086},"middle",{"type":993,"tag":1026,"props":3088,"children":3089},{"style":1069},[3090],{"type":998,"value":1254},{"type":993,"tag":1026,"props":3092,"children":3093},{"style":1058},[3094],{"type":998,"value":1259},{"type":993,"tag":1026,"props":3096,"children":3097},{"style":1041},[3098],{"type":998,"value":1095},{"type":993,"tag":1612,"props":3100,"children":3102},{"id":3101},"advanced-slicing-patterns",[3103],{"type":998,"value":3104},"Advanced Slicing Patterns",{"type":993,"tag":1012,"props":3106,"children":3107},{},[3108],{"type":993,"tag":1016,"props":3109,"children":3111},{"className":1018,"code":3110,"language":6,"meta":8,"style":8},"# Advanced slicing with steps\nsequence = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)\n\n# Every second element\nevery_second = sequence[::2]\nprint(f\"Every second: {every_second}\")\n\n# 1 Every third element starting from index\nevery_third = sequence[1::3]\nprint(f\"Every third from 1: {every_third}\")\n\n# Reverse the tuple\nreversed_tuple = sequence[::-1]\nprint(f\"Reversed: {reversed_tuple}\")\n",[3112],{"type":993,"tag":1022,"props":3113,"children":3114},{"__ignoreMap":8},[3115,3123,3219,3226,3234,3259,3300,3307,3315,3349,3390,3397,3405,3433],{"type":993,"tag":1026,"props":3116,"children":3117},{"class":1028,"line":12},[3118],{"type":993,"tag":1026,"props":3119,"children":3120},{"style":1032},[3121],{"type":998,"value":3122},"# Advanced slicing with steps\n",{"type":993,"tag":1026,"props":3124,"children":3125},{"class":1028,"line":27},[3126,3131,3135,3139,3143,3147,3151,3155,3159,3163,3167,3171,3175,3179,3183,3187,3191,3195,3199,3203,3207,3211,3215],{"type":993,"tag":1026,"props":3127,"children":3128},{"style":1041},[3129],{"type":998,"value":3130},"sequence ",{"type":993,"tag":1026,"props":3132,"children":3133},{"style":1047},[3134],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3136,"children":3137},{"style":1041},[3138],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3140,"children":3141},{"style":1069},[3142],{"type":998,"value":1244},{"type":993,"tag":1026,"props":3144,"children":3145},{"style":1041},[3146],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3148,"children":3149},{"style":1069},[3150],{"type":998,"value":1414},{"type":993,"tag":1026,"props":3152,"children":3153},{"style":1041},[3154],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3156,"children":3157},{"style":1069},[3158],{"type":998,"value":1832},{"type":993,"tag":1026,"props":3160,"children":3161},{"style":1041},[3162],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3164,"children":3165},{"style":1069},[3166],{"type":998,"value":1881},{"type":993,"tag":1026,"props":3168,"children":3169},{"style":1041},[3170],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3172,"children":3173},{"style":1069},[3174],{"type":998,"value":1930},{"type":993,"tag":1026,"props":3176,"children":3177},{"style":1041},[3178],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3180,"children":3181},{"style":1069},[3182],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3184,"children":3185},{"style":1041},[3186],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3188,"children":3189},{"style":1069},[3190],{"type":998,"value":2810},{"type":993,"tag":1026,"props":3192,"children":3193},{"style":1041},[3194],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3196,"children":3197},{"style":1069},[3198],{"type":998,"value":2819},{"type":993,"tag":1026,"props":3200,"children":3201},{"style":1041},[3202],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3204,"children":3205},{"style":1069},[3206],{"type":998,"value":2828},{"type":993,"tag":1026,"props":3208,"children":3209},{"style":1041},[3210],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3212,"children":3213},{"style":1069},[3214],{"type":998,"value":2837},{"type":993,"tag":1026,"props":3216,"children":3217},{"style":1041},[3218],{"type":998,"value":1095},{"type":993,"tag":1026,"props":3220,"children":3221},{"class":1028,"line":36},[3222],{"type":993,"tag":1026,"props":3223,"children":3224},{"emptyLinePlaceholder":13},[3225],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3227,"children":3228},{"class":1028,"line":45},[3229],{"type":993,"tag":1026,"props":3230,"children":3231},{"style":1032},[3232],{"type":998,"value":3233},"# Every second element\n",{"type":993,"tag":1026,"props":3235,"children":3236},{"class":1028,"line":54},[3237,3242,3246,3251,3255],{"type":993,"tag":1026,"props":3238,"children":3239},{"style":1041},[3240],{"type":998,"value":3241},"every_second ",{"type":993,"tag":1026,"props":3243,"children":3244},{"style":1047},[3245],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3247,"children":3248},{"style":1041},[3249],{"type":998,"value":3250}," sequence[::",{"type":993,"tag":1026,"props":3252,"children":3253},{"style":1069},[3254],{"type":998,"value":1832},{"type":993,"tag":1026,"props":3256,"children":3257},{"style":1041},[3258],{"type":998,"value":2882},{"type":993,"tag":1026,"props":3260,"children":3261},{"class":1028,"line":63},[3262,3266,3270,3274,3279,3283,3288,3292,3296],{"type":993,"tag":1026,"props":3263,"children":3264},{"style":1069},[3265],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3267,"children":3268},{"style":1041},[3269],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3271,"children":3272},{"style":1047},[3273],{"type":998,"value":1224},{"type":993,"tag":1026,"props":3275,"children":3276},{"style":1058},[3277],{"type":998,"value":3278},"\"Every second: ",{"type":993,"tag":1026,"props":3280,"children":3281},{"style":1069},[3282],{"type":998,"value":1234},{"type":993,"tag":1026,"props":3284,"children":3285},{"style":1041},[3286],{"type":998,"value":3287},"every_second",{"type":993,"tag":1026,"props":3289,"children":3290},{"style":1069},[3291],{"type":998,"value":1254},{"type":993,"tag":1026,"props":3293,"children":3294},{"style":1058},[3295],{"type":998,"value":1259},{"type":993,"tag":1026,"props":3297,"children":3298},{"style":1041},[3299],{"type":998,"value":1095},{"type":993,"tag":1026,"props":3301,"children":3302},{"class":1028,"line":72},[3303],{"type":993,"tag":1026,"props":3304,"children":3305},{"emptyLinePlaceholder":13},[3306],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3308,"children":3309},{"class":1028,"line":81},[3310],{"type":993,"tag":1026,"props":3311,"children":3312},{"style":1032},[3313],{"type":998,"value":3314},"# 1 Every third element starting from index\n",{"type":993,"tag":1026,"props":3316,"children":3317},{"class":1028,"line":91},[3318,3323,3327,3332,3336,3341,3345],{"type":993,"tag":1026,"props":3319,"children":3320},{"style":1041},[3321],{"type":998,"value":3322},"every_third ",{"type":993,"tag":1026,"props":3324,"children":3325},{"style":1047},[3326],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3328,"children":3329},{"style":1041},[3330],{"type":998,"value":3331}," sequence[",{"type":993,"tag":1026,"props":3333,"children":3334},{"style":1069},[3335],{"type":998,"value":1414},{"type":993,"tag":1026,"props":3337,"children":3338},{"style":1041},[3339],{"type":998,"value":3340},"::",{"type":993,"tag":1026,"props":3342,"children":3343},{"style":1069},[3344],{"type":998,"value":1881},{"type":993,"tag":1026,"props":3346,"children":3347},{"style":1041},[3348],{"type":998,"value":2882},{"type":993,"tag":1026,"props":3350,"children":3351},{"class":1028,"line":100},[3352,3356,3360,3364,3369,3373,3378,3382,3386],{"type":993,"tag":1026,"props":3353,"children":3354},{"style":1069},[3355],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3357,"children":3358},{"style":1041},[3359],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3361,"children":3362},{"style":1047},[3363],{"type":998,"value":1224},{"type":993,"tag":1026,"props":3365,"children":3366},{"style":1058},[3367],{"type":998,"value":3368},"\"Every third from 1: ",{"type":993,"tag":1026,"props":3370,"children":3371},{"style":1069},[3372],{"type":998,"value":1234},{"type":993,"tag":1026,"props":3374,"children":3375},{"style":1041},[3376],{"type":998,"value":3377},"every_third",{"type":993,"tag":1026,"props":3379,"children":3380},{"style":1069},[3381],{"type":998,"value":1254},{"type":993,"tag":1026,"props":3383,"children":3384},{"style":1058},[3385],{"type":998,"value":1259},{"type":993,"tag":1026,"props":3387,"children":3388},{"style":1041},[3389],{"type":998,"value":1095},{"type":993,"tag":1026,"props":3391,"children":3392},{"class":1028,"line":109},[3393],{"type":993,"tag":1026,"props":3394,"children":3395},{"emptyLinePlaceholder":13},[3396],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3398,"children":3399},{"class":1028,"line":118},[3400],{"type":993,"tag":1026,"props":3401,"children":3402},{"style":1032},[3403],{"type":998,"value":3404},"# Reverse the tuple\n",{"type":993,"tag":1026,"props":3406,"children":3407},{"class":1028,"line":127},[3408,3413,3417,3421,3425,3429],{"type":993,"tag":1026,"props":3409,"children":3410},{"style":1041},[3411],{"type":998,"value":3412},"reversed_tuple ",{"type":993,"tag":1026,"props":3414,"children":3415},{"style":1047},[3416],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3418,"children":3419},{"style":1041},[3420],{"type":998,"value":3250},{"type":993,"tag":1026,"props":3422,"children":3423},{"style":1047},[3424],{"type":998,"value":1409},{"type":993,"tag":1026,"props":3426,"children":3427},{"style":1069},[3428],{"type":998,"value":1414},{"type":993,"tag":1026,"props":3430,"children":3431},{"style":1041},[3432],{"type":998,"value":2882},{"type":993,"tag":1026,"props":3434,"children":3435},{"class":1028,"line":136},[3436,3440,3444,3448,3453,3457,3462,3466,3470],{"type":993,"tag":1026,"props":3437,"children":3438},{"style":1069},[3439],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3441,"children":3442},{"style":1041},[3443],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3445,"children":3446},{"style":1047},[3447],{"type":998,"value":1224},{"type":993,"tag":1026,"props":3449,"children":3450},{"style":1058},[3451],{"type":998,"value":3452},"\"Reversed: ",{"type":993,"tag":1026,"props":3454,"children":3455},{"style":1069},[3456],{"type":998,"value":1234},{"type":993,"tag":1026,"props":3458,"children":3459},{"style":1041},[3460],{"type":998,"value":3461},"reversed_tuple",{"type":993,"tag":1026,"props":3463,"children":3464},{"style":1069},[3465],{"type":998,"value":1254},{"type":993,"tag":1026,"props":3467,"children":3468},{"style":1058},[3469],{"type":998,"value":1259},{"type":993,"tag":1026,"props":3471,"children":3472},{"style":1041},[3473],{"type":998,"value":1095},{"type":993,"tag":1612,"props":3475,"children":3477},{"id":3476},"practical-slicing-applications",[3478],{"type":998,"value":3479},"Practical Slicing Applications",{"type":993,"tag":1012,"props":3481,"children":3482},{},[3483],{"type":993,"tag":1016,"props":3484,"children":3486},{"className":1018,"code":3485,"language":6,"meta":8,"style":8},"# Practical slicing examples\nlog_entry = (\"2024\", \"01\", \"15\", \"14\", \"30\", \"ERROR\", \"Database connection failed\")\n\n# Extract date components\ndate_parts = log_entry[:3]\nprint(f\"Date: {date_parts}\")\n\n# Extract time components\ntime_parts = log_entry[3:5]\nprint(f\"Time: {time_parts}\")\n\n# Get message (everything after timestamp)\nmessage_parts = log_entry[5:]\nprint(f\"Message: {message_parts}\")\n",[3487],{"type":993,"tag":1022,"props":3488,"children":3489},{"__ignoreMap":8},[3490,3498,3577,3584,3592,3617,3658,3665,3673,3706,3747,3754,3762,3786],{"type":993,"tag":1026,"props":3491,"children":3492},{"class":1028,"line":12},[3493],{"type":993,"tag":1026,"props":3494,"children":3495},{"style":1032},[3496],{"type":998,"value":3497},"# Practical slicing examples\n",{"type":993,"tag":1026,"props":3499,"children":3500},{"class":1028,"line":27},[3501,3506,3510,3514,3519,3523,3528,3532,3537,3541,3546,3550,3555,3559,3564,3568,3573],{"type":993,"tag":1026,"props":3502,"children":3503},{"style":1041},[3504],{"type":998,"value":3505},"log_entry ",{"type":993,"tag":1026,"props":3507,"children":3508},{"style":1047},[3509],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3511,"children":3512},{"style":1041},[3513],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3515,"children":3516},{"style":1058},[3517],{"type":998,"value":3518},"\"2024\"",{"type":993,"tag":1026,"props":3520,"children":3521},{"style":1041},[3522],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3524,"children":3525},{"style":1058},[3526],{"type":998,"value":3527},"\"01\"",{"type":993,"tag":1026,"props":3529,"children":3530},{"style":1041},[3531],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3533,"children":3534},{"style":1058},[3535],{"type":998,"value":3536},"\"15\"",{"type":993,"tag":1026,"props":3538,"children":3539},{"style":1041},[3540],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3542,"children":3543},{"style":1058},[3544],{"type":998,"value":3545},"\"14\"",{"type":993,"tag":1026,"props":3547,"children":3548},{"style":1041},[3549],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3551,"children":3552},{"style":1058},[3553],{"type":998,"value":3554},"\"30\"",{"type":993,"tag":1026,"props":3556,"children":3557},{"style":1041},[3558],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3560,"children":3561},{"style":1058},[3562],{"type":998,"value":3563},"\"ERROR\"",{"type":993,"tag":1026,"props":3565,"children":3566},{"style":1041},[3567],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3569,"children":3570},{"style":1058},[3571],{"type":998,"value":3572},"\"Database connection failed\"",{"type":993,"tag":1026,"props":3574,"children":3575},{"style":1041},[3576],{"type":998,"value":1095},{"type":993,"tag":1026,"props":3578,"children":3579},{"class":1028,"line":36},[3580],{"type":993,"tag":1026,"props":3581,"children":3582},{"emptyLinePlaceholder":13},[3583],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3585,"children":3586},{"class":1028,"line":45},[3587],{"type":993,"tag":1026,"props":3588,"children":3589},{"style":1032},[3590],{"type":998,"value":3591},"# Extract date components\n",{"type":993,"tag":1026,"props":3593,"children":3594},{"class":1028,"line":54},[3595,3600,3604,3609,3613],{"type":993,"tag":1026,"props":3596,"children":3597},{"style":1041},[3598],{"type":998,"value":3599},"date_parts ",{"type":993,"tag":1026,"props":3601,"children":3602},{"style":1047},[3603],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3605,"children":3606},{"style":1041},[3607],{"type":998,"value":3608}," log_entry[:",{"type":993,"tag":1026,"props":3610,"children":3611},{"style":1069},[3612],{"type":998,"value":1881},{"type":993,"tag":1026,"props":3614,"children":3615},{"style":1041},[3616],{"type":998,"value":2882},{"type":993,"tag":1026,"props":3618,"children":3619},{"class":1028,"line":63},[3620,3624,3628,3632,3637,3641,3646,3650,3654],{"type":993,"tag":1026,"props":3621,"children":3622},{"style":1069},[3623],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3625,"children":3626},{"style":1041},[3627],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3629,"children":3630},{"style":1047},[3631],{"type":998,"value":1224},{"type":993,"tag":1026,"props":3633,"children":3634},{"style":1058},[3635],{"type":998,"value":3636},"\"Date: ",{"type":993,"tag":1026,"props":3638,"children":3639},{"style":1069},[3640],{"type":998,"value":1234},{"type":993,"tag":1026,"props":3642,"children":3643},{"style":1041},[3644],{"type":998,"value":3645},"date_parts",{"type":993,"tag":1026,"props":3647,"children":3648},{"style":1069},[3649],{"type":998,"value":1254},{"type":993,"tag":1026,"props":3651,"children":3652},{"style":1058},[3653],{"type":998,"value":1259},{"type":993,"tag":1026,"props":3655,"children":3656},{"style":1041},[3657],{"type":998,"value":1095},{"type":993,"tag":1026,"props":3659,"children":3660},{"class":1028,"line":72},[3661],{"type":993,"tag":1026,"props":3662,"children":3663},{"emptyLinePlaceholder":13},[3664],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3666,"children":3667},{"class":1028,"line":81},[3668],{"type":993,"tag":1026,"props":3669,"children":3670},{"style":1032},[3671],{"type":998,"value":3672},"# Extract time components\n",{"type":993,"tag":1026,"props":3674,"children":3675},{"class":1028,"line":91},[3676,3681,3685,3690,3694,3698,3702],{"type":993,"tag":1026,"props":3677,"children":3678},{"style":1041},[3679],{"type":998,"value":3680},"time_parts ",{"type":993,"tag":1026,"props":3682,"children":3683},{"style":1047},[3684],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3686,"children":3687},{"style":1041},[3688],{"type":998,"value":3689}," log_entry[",{"type":993,"tag":1026,"props":3691,"children":3692},{"style":1069},[3693],{"type":998,"value":1881},{"type":993,"tag":1026,"props":3695,"children":3696},{"style":1041},[3697],{"type":998,"value":3049},{"type":993,"tag":1026,"props":3699,"children":3700},{"style":1069},[3701],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3703,"children":3704},{"style":1041},[3705],{"type":998,"value":2882},{"type":993,"tag":1026,"props":3707,"children":3708},{"class":1028,"line":100},[3709,3713,3717,3721,3726,3730,3735,3739,3743],{"type":993,"tag":1026,"props":3710,"children":3711},{"style":1069},[3712],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3714,"children":3715},{"style":1041},[3716],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3718,"children":3719},{"style":1047},[3720],{"type":998,"value":1224},{"type":993,"tag":1026,"props":3722,"children":3723},{"style":1058},[3724],{"type":998,"value":3725},"\"Time: ",{"type":993,"tag":1026,"props":3727,"children":3728},{"style":1069},[3729],{"type":998,"value":1234},{"type":993,"tag":1026,"props":3731,"children":3732},{"style":1041},[3733],{"type":998,"value":3734},"time_parts",{"type":993,"tag":1026,"props":3736,"children":3737},{"style":1069},[3738],{"type":998,"value":1254},{"type":993,"tag":1026,"props":3740,"children":3741},{"style":1058},[3742],{"type":998,"value":1259},{"type":993,"tag":1026,"props":3744,"children":3745},{"style":1041},[3746],{"type":998,"value":1095},{"type":993,"tag":1026,"props":3748,"children":3749},{"class":1028,"line":109},[3750],{"type":993,"tag":1026,"props":3751,"children":3752},{"emptyLinePlaceholder":13},[3753],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3755,"children":3756},{"class":1028,"line":118},[3757],{"type":993,"tag":1026,"props":3758,"children":3759},{"style":1032},[3760],{"type":998,"value":3761},"# Get message (everything after timestamp)\n",{"type":993,"tag":1026,"props":3763,"children":3764},{"class":1028,"line":127},[3765,3770,3774,3778,3782],{"type":993,"tag":1026,"props":3766,"children":3767},{"style":1041},[3768],{"type":998,"value":3769},"message_parts ",{"type":993,"tag":1026,"props":3771,"children":3772},{"style":1047},[3773],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3775,"children":3776},{"style":1041},[3777],{"type":998,"value":3689},{"type":993,"tag":1026,"props":3779,"children":3780},{"style":1069},[3781],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3783,"children":3784},{"style":1041},[3785],{"type":998,"value":2968},{"type":993,"tag":1026,"props":3787,"children":3788},{"class":1028,"line":136},[3789,3793,3797,3801,3806,3810,3815,3819,3823],{"type":993,"tag":1026,"props":3790,"children":3791},{"style":1069},[3792],{"type":998,"value":1214},{"type":993,"tag":1026,"props":3794,"children":3795},{"style":1041},[3796],{"type":998,"value":1219},{"type":993,"tag":1026,"props":3798,"children":3799},{"style":1047},[3800],{"type":998,"value":1224},{"type":993,"tag":1026,"props":3802,"children":3803},{"style":1058},[3804],{"type":998,"value":3805},"\"Message: ",{"type":993,"tag":1026,"props":3807,"children":3808},{"style":1069},[3809],{"type":998,"value":1234},{"type":993,"tag":1026,"props":3811,"children":3812},{"style":1041},[3813],{"type":998,"value":3814},"message_parts",{"type":993,"tag":1026,"props":3816,"children":3817},{"style":1069},[3818],{"type":998,"value":1254},{"type":993,"tag":1026,"props":3820,"children":3821},{"style":1058},[3822],{"type":998,"value":1259},{"type":993,"tag":1026,"props":3824,"children":3825},{"style":1041},[3826],{"type":998,"value":1095},{"type":993,"tag":3828,"props":3829,"children":3831},"content-exercise",{":widget-view":3830,"category":6,"id":392},"true",[],{"type":993,"tag":1484,"props":3833,"children":3835},{"id":3834},"searching-in-tuples",[3836],{"type":998,"value":3837},"🔍 Searching in Tuples",{"type":993,"tag":1001,"props":3839,"children":3840},{},[3841],{"type":998,"value":3842},"Tuples provide several methods for finding elements and checking membership. These operations help you locate specific values and verify data presence.",{"type":993,"tag":1496,"props":3844,"children":3848},{"emoji":3845,"title":3846,"type":3847},"🔍","Tuple Search Methods","warning",[3849,3857,3904,3912,3935,3944],{"type":993,"tag":1001,"props":3850,"children":3851},{},[3852],{"type":993,"tag":1506,"props":3853,"children":3854},{},[3855],{"type":998,"value":3856},"Search Operations:",{"type":993,"tag":1512,"props":3858,"children":3859},{},[3860,3871,3882,3893],{"type":993,"tag":1516,"props":3861,"children":3862},{},[3863,3869],{"type":993,"tag":1022,"props":3864,"children":3866},{"className":3865},[],[3867],{"type":998,"value":3868},"in",{"type":998,"value":3870}," operator: Check if element exists",{"type":993,"tag":1516,"props":3872,"children":3873},{},[3874,3880],{"type":993,"tag":1022,"props":3875,"children":3877},{"className":3876},[],[3878],{"type":998,"value":3879},"not in",{"type":998,"value":3881}," operator: Check if element doesn't exist",{"type":993,"tag":1516,"props":3883,"children":3884},{},[3885,3891],{"type":993,"tag":1022,"props":3886,"children":3888},{"className":3887},[],[3889],{"type":998,"value":3890},"index()",{"type":998,"value":3892}," method: Find first occurrence position",{"type":993,"tag":1516,"props":3894,"children":3895},{},[3896,3902],{"type":993,"tag":1022,"props":3897,"children":3899},{"className":3898},[],[3900],{"type":998,"value":3901},"count()",{"type":998,"value":3903}," method: Count occurrences",{"type":993,"tag":1001,"props":3905,"children":3906},{},[3907],{"type":993,"tag":1506,"props":3908,"children":3909},{},[3910],{"type":998,"value":3911},"Search Characteristics:",{"type":993,"tag":1512,"props":3913,"children":3914},{},[3915,3920,3925,3930],{"type":993,"tag":1516,"props":3916,"children":3917},{},[3918],{"type":998,"value":3919},"Linear search through elements",{"type":993,"tag":1516,"props":3921,"children":3922},{},[3923],{"type":998,"value":3924},"Case-sensitive for strings",{"type":993,"tag":1516,"props":3926,"children":3927},{},[3928],{"type":998,"value":3929},"Returns first match for index()",{"type":993,"tag":1516,"props":3931,"children":3932},{},[3933],{"type":998,"value":3934},"ValueError if element not found in index()",{"type":993,"tag":1001,"props":3936,"children":3937},{},[3938,3942],{"type":993,"tag":1506,"props":3939,"children":3940},{},[3941],{"type":998,"value":1608},{"type":998,"value":3943}," O(n) time complexity for search operations",{"type":993,"tag":1001,"props":3945,"children":3946},{},[3947,3952],{"type":993,"tag":1506,"props":3948,"children":3949},{},[3950],{"type":998,"value":3951},"Type Sensitivity:",{"type":998,"value":3953}," Exact type matching required (3 ≠ \"3\")",{"type":993,"tag":1612,"props":3955,"children":3957},{"id":3956},"membership-testing",[3958],{"type":998,"value":3959},"Membership Testing",{"type":993,"tag":1012,"props":3961,"children":3962},{},[3963],{"type":993,"tag":1016,"props":3964,"children":3966},{"className":1018,"code":3965,"language":6,"meta":8,"style":8},"# Membership testing\ncolors = (\"red\", \"green\", \"blue\", \"yellow\")\nnumbers = (1, 2, 3, 4, 5)\n\n# Check if elements exist\nprint(f\"'red' in colors: {'red' in colors}\")\nprint(f\"'purple' in colors: {'purple' in colors}\")\nprint(f\"3 in numbers: {3 in numbers}\")\nprint(f\"10 not in numbers: {10 not in numbers}\")\n\n# Practical membership checking\nvalid_statuses = (\"active\", \"inactive\", \"pending\")\nuser_status = \"active\"\nif user_status in valid_statuses:\n    print(\"Valid status\")\n",[3967],{"type":993,"tag":1022,"props":3968,"children":3969},{"__ignoreMap":8},[3970,3978,4025,4080,4087,4095,4146,4195,4241,4291,4298,4306,4349,4366,4387],{"type":993,"tag":1026,"props":3971,"children":3972},{"class":1028,"line":12},[3973],{"type":993,"tag":1026,"props":3974,"children":3975},{"style":1032},[3976],{"type":998,"value":3977},"# Membership testing\n",{"type":993,"tag":1026,"props":3979,"children":3980},{"class":1028,"line":27},[3981,3985,3989,3993,3997,4001,4005,4009,4013,4017,4021],{"type":993,"tag":1026,"props":3982,"children":3983},{"style":1041},[3984],{"type":998,"value":1146},{"type":993,"tag":1026,"props":3986,"children":3987},{"style":1047},[3988],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3990,"children":3991},{"style":1041},[3992],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3994,"children":3995},{"style":1058},[3996],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3998,"children":3999},{"style":1041},[4000],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4002,"children":4003},{"style":1058},[4004],{"type":998,"value":1168},{"type":993,"tag":1026,"props":4006,"children":4007},{"style":1041},[4008],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4010,"children":4011},{"style":1058},[4012],{"type":998,"value":1177},{"type":993,"tag":1026,"props":4014,"children":4015},{"style":1041},[4016],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4018,"children":4019},{"style":1058},[4020],{"type":998,"value":1186},{"type":993,"tag":1026,"props":4022,"children":4023},{"style":1041},[4024],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4026,"children":4027},{"class":1028,"line":36},[4028,4032,4036,4040,4044,4048,4052,4056,4060,4064,4068,4072,4076],{"type":993,"tag":1026,"props":4029,"children":4030},{"style":1041},[4031],{"type":998,"value":2749},{"type":993,"tag":1026,"props":4033,"children":4034},{"style":1047},[4035],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4037,"children":4038},{"style":1041},[4039],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4041,"children":4042},{"style":1069},[4043],{"type":998,"value":1414},{"type":993,"tag":1026,"props":4045,"children":4046},{"style":1041},[4047],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4049,"children":4050},{"style":1069},[4051],{"type":998,"value":1832},{"type":993,"tag":1026,"props":4053,"children":4054},{"style":1041},[4055],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4057,"children":4058},{"style":1069},[4059],{"type":998,"value":1881},{"type":993,"tag":1026,"props":4061,"children":4062},{"style":1041},[4063],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4065,"children":4066},{"style":1069},[4067],{"type":998,"value":1930},{"type":993,"tag":1026,"props":4069,"children":4070},{"style":1041},[4071],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4073,"children":4074},{"style":1069},[4075],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4077,"children":4078},{"style":1041},[4079],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4081,"children":4082},{"class":1028,"line":45},[4083],{"type":993,"tag":1026,"props":4084,"children":4085},{"emptyLinePlaceholder":13},[4086],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4088,"children":4089},{"class":1028,"line":54},[4090],{"type":993,"tag":1026,"props":4091,"children":4092},{"style":1032},[4093],{"type":998,"value":4094},"# Check if elements exist\n",{"type":993,"tag":1026,"props":4096,"children":4097},{"class":1028,"line":63},[4098,4102,4106,4110,4115,4119,4124,4129,4134,4138,4142],{"type":993,"tag":1026,"props":4099,"children":4100},{"style":1069},[4101],{"type":998,"value":1214},{"type":993,"tag":1026,"props":4103,"children":4104},{"style":1041},[4105],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4107,"children":4108},{"style":1047},[4109],{"type":998,"value":1224},{"type":993,"tag":1026,"props":4111,"children":4112},{"style":1058},[4113],{"type":998,"value":4114},"\"'red' in colors: ",{"type":993,"tag":1026,"props":4116,"children":4117},{"style":1069},[4118],{"type":998,"value":1234},{"type":993,"tag":1026,"props":4120,"children":4121},{"style":1058},[4122],{"type":998,"value":4123},"'red'",{"type":993,"tag":1026,"props":4125,"children":4126},{"style":1047},[4127],{"type":998,"value":4128}," in",{"type":993,"tag":1026,"props":4130,"children":4131},{"style":1041},[4132],{"type":998,"value":4133}," colors",{"type":993,"tag":1026,"props":4135,"children":4136},{"style":1069},[4137],{"type":998,"value":1254},{"type":993,"tag":1026,"props":4139,"children":4140},{"style":1058},[4141],{"type":998,"value":1259},{"type":993,"tag":1026,"props":4143,"children":4144},{"style":1041},[4145],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4147,"children":4148},{"class":1028,"line":72},[4149,4153,4157,4161,4166,4170,4175,4179,4183,4187,4191],{"type":993,"tag":1026,"props":4150,"children":4151},{"style":1069},[4152],{"type":998,"value":1214},{"type":993,"tag":1026,"props":4154,"children":4155},{"style":1041},[4156],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4158,"children":4159},{"style":1047},[4160],{"type":998,"value":1224},{"type":993,"tag":1026,"props":4162,"children":4163},{"style":1058},[4164],{"type":998,"value":4165},"\"'purple' in colors: ",{"type":993,"tag":1026,"props":4167,"children":4168},{"style":1069},[4169],{"type":998,"value":1234},{"type":993,"tag":1026,"props":4171,"children":4172},{"style":1058},[4173],{"type":998,"value":4174},"'purple'",{"type":993,"tag":1026,"props":4176,"children":4177},{"style":1047},[4178],{"type":998,"value":4128},{"type":993,"tag":1026,"props":4180,"children":4181},{"style":1041},[4182],{"type":998,"value":4133},{"type":993,"tag":1026,"props":4184,"children":4185},{"style":1069},[4186],{"type":998,"value":1254},{"type":993,"tag":1026,"props":4188,"children":4189},{"style":1058},[4190],{"type":998,"value":1259},{"type":993,"tag":1026,"props":4192,"children":4193},{"style":1041},[4194],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4196,"children":4197},{"class":1028,"line":81},[4198,4202,4206,4210,4215,4220,4224,4229,4233,4237],{"type":993,"tag":1026,"props":4199,"children":4200},{"style":1069},[4201],{"type":998,"value":1214},{"type":993,"tag":1026,"props":4203,"children":4204},{"style":1041},[4205],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4207,"children":4208},{"style":1047},[4209],{"type":998,"value":1224},{"type":993,"tag":1026,"props":4211,"children":4212},{"style":1058},[4213],{"type":998,"value":4214},"\"3 in numbers: ",{"type":993,"tag":1026,"props":4216,"children":4217},{"style":1069},[4218],{"type":998,"value":4219},"{3",{"type":993,"tag":1026,"props":4221,"children":4222},{"style":1047},[4223],{"type":998,"value":4128},{"type":993,"tag":1026,"props":4225,"children":4226},{"style":1041},[4227],{"type":998,"value":4228}," numbers",{"type":993,"tag":1026,"props":4230,"children":4231},{"style":1069},[4232],{"type":998,"value":1254},{"type":993,"tag":1026,"props":4234,"children":4235},{"style":1058},[4236],{"type":998,"value":1259},{"type":993,"tag":1026,"props":4238,"children":4239},{"style":1041},[4240],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4242,"children":4243},{"class":1028,"line":91},[4244,4248,4252,4256,4261,4266,4271,4275,4279,4283,4287],{"type":993,"tag":1026,"props":4245,"children":4246},{"style":1069},[4247],{"type":998,"value":1214},{"type":993,"tag":1026,"props":4249,"children":4250},{"style":1041},[4251],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4253,"children":4254},{"style":1047},[4255],{"type":998,"value":1224},{"type":993,"tag":1026,"props":4257,"children":4258},{"style":1058},[4259],{"type":998,"value":4260},"\"10 not in numbers: ",{"type":993,"tag":1026,"props":4262,"children":4263},{"style":1069},[4264],{"type":998,"value":4265},"{10",{"type":993,"tag":1026,"props":4267,"children":4268},{"style":1047},[4269],{"type":998,"value":4270}," not",{"type":993,"tag":1026,"props":4272,"children":4273},{"style":1047},[4274],{"type":998,"value":4128},{"type":993,"tag":1026,"props":4276,"children":4277},{"style":1041},[4278],{"type":998,"value":4228},{"type":993,"tag":1026,"props":4280,"children":4281},{"style":1069},[4282],{"type":998,"value":1254},{"type":993,"tag":1026,"props":4284,"children":4285},{"style":1058},[4286],{"type":998,"value":1259},{"type":993,"tag":1026,"props":4288,"children":4289},{"style":1041},[4290],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4292,"children":4293},{"class":1028,"line":100},[4294],{"type":993,"tag":1026,"props":4295,"children":4296},{"emptyLinePlaceholder":13},[4297],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4299,"children":4300},{"class":1028,"line":109},[4301],{"type":993,"tag":1026,"props":4302,"children":4303},{"style":1032},[4304],{"type":998,"value":4305},"# Practical membership checking\n",{"type":993,"tag":1026,"props":4307,"children":4308},{"class":1028,"line":118},[4309,4314,4318,4322,4327,4331,4336,4340,4345],{"type":993,"tag":1026,"props":4310,"children":4311},{"style":1041},[4312],{"type":998,"value":4313},"valid_statuses ",{"type":993,"tag":1026,"props":4315,"children":4316},{"style":1047},[4317],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4319,"children":4320},{"style":1041},[4321],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4323,"children":4324},{"style":1058},[4325],{"type":998,"value":4326},"\"active\"",{"type":993,"tag":1026,"props":4328,"children":4329},{"style":1041},[4330],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4332,"children":4333},{"style":1058},[4334],{"type":998,"value":4335},"\"inactive\"",{"type":993,"tag":1026,"props":4337,"children":4338},{"style":1041},[4339],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4341,"children":4342},{"style":1058},[4343],{"type":998,"value":4344},"\"pending\"",{"type":993,"tag":1026,"props":4346,"children":4347},{"style":1041},[4348],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4350,"children":4351},{"class":1028,"line":127},[4352,4357,4361],{"type":993,"tag":1026,"props":4353,"children":4354},{"style":1041},[4355],{"type":998,"value":4356},"user_status ",{"type":993,"tag":1026,"props":4358,"children":4359},{"style":1047},[4360],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4362,"children":4363},{"style":1058},[4364],{"type":998,"value":4365}," \"active\"\n",{"type":993,"tag":1026,"props":4367,"children":4368},{"class":1028,"line":136},[4369,4373,4378,4382],{"type":993,"tag":1026,"props":4370,"children":4371},{"style":1047},[4372],{"type":998,"value":2357},{"type":993,"tag":1026,"props":4374,"children":4375},{"style":1041},[4376],{"type":998,"value":4377}," user_status ",{"type":993,"tag":1026,"props":4379,"children":4380},{"style":1047},[4381],{"type":998,"value":3868},{"type":993,"tag":1026,"props":4383,"children":4384},{"style":1041},[4385],{"type":998,"value":4386}," valid_statuses:\n",{"type":993,"tag":1026,"props":4388,"children":4389},{"class":1028,"line":146},[4390,4394,4398,4403],{"type":993,"tag":1026,"props":4391,"children":4392},{"style":1069},[4393],{"type":998,"value":2390},{"type":993,"tag":1026,"props":4395,"children":4396},{"style":1041},[4397],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4399,"children":4400},{"style":1058},[4401],{"type":998,"value":4402},"\"Valid status\"",{"type":993,"tag":1026,"props":4404,"children":4405},{"style":1041},[4406],{"type":998,"value":1095},{"type":993,"tag":1612,"props":4408,"children":4410},{"id":4409},"element-position-finding",[4411],{"type":998,"value":4412},"Element Position Finding",{"type":993,"tag":1012,"props":4414,"children":4415},{},[4416],{"type":993,"tag":1016,"props":4417,"children":4419},{"className":1018,"code":4418,"language":6,"meta":8,"style":8},"# Finding element positions\nfruits = (\"apple\", \"banana\", \"cherry\", \"banana\", \"date\")\n\n# Find first occurrence\nbanana_index = fruits.index(\"banana\")\nprint(f\"First 'banana' at index: {banana_index}\")\n\n# Find with start position\nsecond_banana = fruits.index(\"banana\", banana_index + 1)\nprint(f\"Second 'banana' at index: {second_banana}\")\n\n# Safe searching with error handling\ntry:\n    grape_index = fruits.index(\"grape\")\nexcept ValueError:\n    print(\"'grape' not found in fruits\")\n",[4420],{"type":993,"tag":1022,"props":4421,"children":4422},{"__ignoreMap":8},[4423,4431,4491,4498,4506,4531,4572,4579,4587,4626,4667,4674,4682,4693,4718,4734],{"type":993,"tag":1026,"props":4424,"children":4425},{"class":1028,"line":12},[4426],{"type":993,"tag":1026,"props":4427,"children":4428},{"style":1032},[4429],{"type":998,"value":4430},"# Finding element positions\n",{"type":993,"tag":1026,"props":4432,"children":4433},{"class":1028,"line":27},[4434,4439,4443,4447,4452,4456,4461,4465,4470,4474,4478,4482,4487],{"type":993,"tag":1026,"props":4435,"children":4436},{"style":1041},[4437],{"type":998,"value":4438},"fruits ",{"type":993,"tag":1026,"props":4440,"children":4441},{"style":1047},[4442],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4444,"children":4445},{"style":1041},[4446],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4448,"children":4449},{"style":1058},[4450],{"type":998,"value":4451},"\"apple\"",{"type":993,"tag":1026,"props":4453,"children":4454},{"style":1041},[4455],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4457,"children":4458},{"style":1058},[4459],{"type":998,"value":4460},"\"banana\"",{"type":993,"tag":1026,"props":4462,"children":4463},{"style":1041},[4464],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4466,"children":4467},{"style":1058},[4468],{"type":998,"value":4469},"\"cherry\"",{"type":993,"tag":1026,"props":4471,"children":4472},{"style":1041},[4473],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4475,"children":4476},{"style":1058},[4477],{"type":998,"value":4460},{"type":993,"tag":1026,"props":4479,"children":4480},{"style":1041},[4481],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4483,"children":4484},{"style":1058},[4485],{"type":998,"value":4486},"\"date\"",{"type":993,"tag":1026,"props":4488,"children":4489},{"style":1041},[4490],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4492,"children":4493},{"class":1028,"line":36},[4494],{"type":993,"tag":1026,"props":4495,"children":4496},{"emptyLinePlaceholder":13},[4497],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4499,"children":4500},{"class":1028,"line":45},[4501],{"type":993,"tag":1026,"props":4502,"children":4503},{"style":1032},[4504],{"type":998,"value":4505},"# Find first occurrence\n",{"type":993,"tag":1026,"props":4507,"children":4508},{"class":1028,"line":54},[4509,4514,4518,4523,4527],{"type":993,"tag":1026,"props":4510,"children":4511},{"style":1041},[4512],{"type":998,"value":4513},"banana_index ",{"type":993,"tag":1026,"props":4515,"children":4516},{"style":1047},[4517],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4519,"children":4520},{"style":1041},[4521],{"type":998,"value":4522}," fruits.index(",{"type":993,"tag":1026,"props":4524,"children":4525},{"style":1058},[4526],{"type":998,"value":4460},{"type":993,"tag":1026,"props":4528,"children":4529},{"style":1041},[4530],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4532,"children":4533},{"class":1028,"line":63},[4534,4538,4542,4546,4551,4555,4560,4564,4568],{"type":993,"tag":1026,"props":4535,"children":4536},{"style":1069},[4537],{"type":998,"value":1214},{"type":993,"tag":1026,"props":4539,"children":4540},{"style":1041},[4541],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4543,"children":4544},{"style":1047},[4545],{"type":998,"value":1224},{"type":993,"tag":1026,"props":4547,"children":4548},{"style":1058},[4549],{"type":998,"value":4550},"\"First 'banana' at index: ",{"type":993,"tag":1026,"props":4552,"children":4553},{"style":1069},[4554],{"type":998,"value":1234},{"type":993,"tag":1026,"props":4556,"children":4557},{"style":1041},[4558],{"type":998,"value":4559},"banana_index",{"type":993,"tag":1026,"props":4561,"children":4562},{"style":1069},[4563],{"type":998,"value":1254},{"type":993,"tag":1026,"props":4565,"children":4566},{"style":1058},[4567],{"type":998,"value":1259},{"type":993,"tag":1026,"props":4569,"children":4570},{"style":1041},[4571],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4573,"children":4574},{"class":1028,"line":72},[4575],{"type":993,"tag":1026,"props":4576,"children":4577},{"emptyLinePlaceholder":13},[4578],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4580,"children":4581},{"class":1028,"line":81},[4582],{"type":993,"tag":1026,"props":4583,"children":4584},{"style":1032},[4585],{"type":998,"value":4586},"# Find with start position\n",{"type":993,"tag":1026,"props":4588,"children":4589},{"class":1028,"line":91},[4590,4595,4599,4603,4607,4612,4617,4622],{"type":993,"tag":1026,"props":4591,"children":4592},{"style":1041},[4593],{"type":998,"value":4594},"second_banana ",{"type":993,"tag":1026,"props":4596,"children":4597},{"style":1047},[4598],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4600,"children":4601},{"style":1041},[4602],{"type":998,"value":4522},{"type":993,"tag":1026,"props":4604,"children":4605},{"style":1058},[4606],{"type":998,"value":4460},{"type":993,"tag":1026,"props":4608,"children":4609},{"style":1041},[4610],{"type":998,"value":4611},", banana_index ",{"type":993,"tag":1026,"props":4613,"children":4614},{"style":1047},[4615],{"type":998,"value":4616},"+",{"type":993,"tag":1026,"props":4618,"children":4619},{"style":1069},[4620],{"type":998,"value":4621}," 1",{"type":993,"tag":1026,"props":4623,"children":4624},{"style":1041},[4625],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4627,"children":4628},{"class":1028,"line":100},[4629,4633,4637,4641,4646,4650,4655,4659,4663],{"type":993,"tag":1026,"props":4630,"children":4631},{"style":1069},[4632],{"type":998,"value":1214},{"type":993,"tag":1026,"props":4634,"children":4635},{"style":1041},[4636],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4638,"children":4639},{"style":1047},[4640],{"type":998,"value":1224},{"type":993,"tag":1026,"props":4642,"children":4643},{"style":1058},[4644],{"type":998,"value":4645},"\"Second 'banana' at index: ",{"type":993,"tag":1026,"props":4647,"children":4648},{"style":1069},[4649],{"type":998,"value":1234},{"type":993,"tag":1026,"props":4651,"children":4652},{"style":1041},[4653],{"type":998,"value":4654},"second_banana",{"type":993,"tag":1026,"props":4656,"children":4657},{"style":1069},[4658],{"type":998,"value":1254},{"type":993,"tag":1026,"props":4660,"children":4661},{"style":1058},[4662],{"type":998,"value":1259},{"type":993,"tag":1026,"props":4664,"children":4665},{"style":1041},[4666],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4668,"children":4669},{"class":1028,"line":109},[4670],{"type":993,"tag":1026,"props":4671,"children":4672},{"emptyLinePlaceholder":13},[4673],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4675,"children":4676},{"class":1028,"line":118},[4677],{"type":993,"tag":1026,"props":4678,"children":4679},{"style":1032},[4680],{"type":998,"value":4681},"# Safe searching with error handling\n",{"type":993,"tag":1026,"props":4683,"children":4684},{"class":1028,"line":127},[4685,4689],{"type":993,"tag":1026,"props":4686,"children":4687},{"style":1047},[4688],{"type":998,"value":2455},{"type":993,"tag":1026,"props":4690,"children":4691},{"style":1041},[4692],{"type":998,"value":2382},{"type":993,"tag":1026,"props":4694,"children":4695},{"class":1028,"line":136},[4696,4701,4705,4709,4714],{"type":993,"tag":1026,"props":4697,"children":4698},{"style":1041},[4699],{"type":998,"value":4700},"    grape_index ",{"type":993,"tag":1026,"props":4702,"children":4703},{"style":1047},[4704],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4706,"children":4707},{"style":1041},[4708],{"type":998,"value":4522},{"type":993,"tag":1026,"props":4710,"children":4711},{"style":1058},[4712],{"type":998,"value":4713},"\"grape\"",{"type":993,"tag":1026,"props":4715,"children":4716},{"style":1041},[4717],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4719,"children":4720},{"class":1028,"line":146},[4721,4725,4730],{"type":993,"tag":1026,"props":4722,"children":4723},{"style":1047},[4724],{"type":998,"value":2498},{"type":993,"tag":1026,"props":4726,"children":4727},{"style":1069},[4728],{"type":998,"value":4729}," ValueError",{"type":993,"tag":1026,"props":4731,"children":4732},{"style":1041},[4733],{"type":998,"value":2382},{"type":993,"tag":1026,"props":4735,"children":4736},{"class":1028,"line":155},[4737,4741,4745,4750],{"type":993,"tag":1026,"props":4738,"children":4739},{"style":1069},[4740],{"type":998,"value":2390},{"type":993,"tag":1026,"props":4742,"children":4743},{"style":1041},[4744],{"type":998,"value":1219},{"type":993,"tag":1026,"props":4746,"children":4747},{"style":1058},[4748],{"type":998,"value":4749},"\"'grape' not found in fruits\"",{"type":993,"tag":1026,"props":4751,"children":4752},{"style":1041},[4753],{"type":998,"value":1095},{"type":993,"tag":1612,"props":4755,"children":4757},{"id":4756},"element-counting",[4758],{"type":998,"value":4759},"Element Counting",{"type":993,"tag":1012,"props":4761,"children":4762},{},[4763],{"type":993,"tag":1016,"props":4764,"children":4766},{"className":1018,"code":4765,"language":6,"meta":8,"style":8},"# Counting occurrences\ngrades = (\"A\", \"B\", \"A\", \"C\", \"B\", \"A\", \"B\")\nnumbers = (1, 2, 2, 3, 2, 4, 2)\n\n# Count specific grades\na_count = grades.count(\"A\")\nb_count = grades.count(\"B\")\nprint(f\"A grades: {a_count}\")\nprint(f\"B grades: {b_count}\")\n\n# Count numbers\ntwos_count = numbers.count(2)\nprint(f\"Number of 2s: {twos_count}\")\n\n# Count non-existent elements\nf_count = grades.count(\"F\")\nprint(f\"F grades: {f_count}\")  # Returns 0\n",[4767],{"type":993,"tag":1022,"props":4768,"children":4769},{"__ignoreMap":8},[4770,4778,4853,4924,4931,4939,4964,4988,5029,5070,5077,5085,5110,5151,5158,5166,5191],{"type":993,"tag":1026,"props":4771,"children":4772},{"class":1028,"line":12},[4773],{"type":993,"tag":1026,"props":4774,"children":4775},{"style":1032},[4776],{"type":998,"value":4777},"# Counting occurrences\n",{"type":993,"tag":1026,"props":4779,"children":4780},{"class":1028,"line":27},[4781,4786,4790,4794,4799,4803,4808,4812,4816,4820,4825,4829,4833,4837,4841,4845,4849],{"type":993,"tag":1026,"props":4782,"children":4783},{"style":1041},[4784],{"type":998,"value":4785},"grades ",{"type":993,"tag":1026,"props":4787,"children":4788},{"style":1047},[4789],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4791,"children":4792},{"style":1041},[4793],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4795,"children":4796},{"style":1058},[4797],{"type":998,"value":4798},"\"A\"",{"type":993,"tag":1026,"props":4800,"children":4801},{"style":1041},[4802],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4804,"children":4805},{"style":1058},[4806],{"type":998,"value":4807},"\"B\"",{"type":993,"tag":1026,"props":4809,"children":4810},{"style":1041},[4811],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4813,"children":4814},{"style":1058},[4815],{"type":998,"value":4798},{"type":993,"tag":1026,"props":4817,"children":4818},{"style":1041},[4819],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4821,"children":4822},{"style":1058},[4823],{"type":998,"value":4824},"\"C\"",{"type":993,"tag":1026,"props":4826,"children":4827},{"style":1041},[4828],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4830,"children":4831},{"style":1058},[4832],{"type":998,"value":4807},{"type":993,"tag":1026,"props":4834,"children":4835},{"style":1041},[4836],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4838,"children":4839},{"style":1058},[4840],{"type":998,"value":4798},{"type":993,"tag":1026,"props":4842,"children":4843},{"style":1041},[4844],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4846,"children":4847},{"style":1058},[4848],{"type":998,"value":4807},{"type":993,"tag":1026,"props":4850,"children":4851},{"style":1041},[4852],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4854,"children":4855},{"class":1028,"line":36},[4856,4860,4864,4868,4872,4876,4880,4884,4888,4892,4896,4900,4904,4908,4912,4916,4920],{"type":993,"tag":1026,"props":4857,"children":4858},{"style":1041},[4859],{"type":998,"value":2749},{"type":993,"tag":1026,"props":4861,"children":4862},{"style":1047},[4863],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4865,"children":4866},{"style":1041},[4867],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4869,"children":4870},{"style":1069},[4871],{"type":998,"value":1414},{"type":993,"tag":1026,"props":4873,"children":4874},{"style":1041},[4875],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4877,"children":4878},{"style":1069},[4879],{"type":998,"value":1832},{"type":993,"tag":1026,"props":4881,"children":4882},{"style":1041},[4883],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4885,"children":4886},{"style":1069},[4887],{"type":998,"value":1832},{"type":993,"tag":1026,"props":4889,"children":4890},{"style":1041},[4891],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4893,"children":4894},{"style":1069},[4895],{"type":998,"value":1881},{"type":993,"tag":1026,"props":4897,"children":4898},{"style":1041},[4899],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4901,"children":4902},{"style":1069},[4903],{"type":998,"value":1832},{"type":993,"tag":1026,"props":4905,"children":4906},{"style":1041},[4907],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4909,"children":4910},{"style":1069},[4911],{"type":998,"value":1930},{"type":993,"tag":1026,"props":4913,"children":4914},{"style":1041},[4915],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4917,"children":4918},{"style":1069},[4919],{"type":998,"value":1832},{"type":993,"tag":1026,"props":4921,"children":4922},{"style":1041},[4923],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4925,"children":4926},{"class":1028,"line":45},[4927],{"type":993,"tag":1026,"props":4928,"children":4929},{"emptyLinePlaceholder":13},[4930],{"type":998,"value":1198},{"type":993,"tag":1026,"props":4932,"children":4933},{"class":1028,"line":54},[4934],{"type":993,"tag":1026,"props":4935,"children":4936},{"style":1032},[4937],{"type":998,"value":4938},"# Count specific grades\n",{"type":993,"tag":1026,"props":4940,"children":4941},{"class":1028,"line":63},[4942,4947,4951,4956,4960],{"type":993,"tag":1026,"props":4943,"children":4944},{"style":1041},[4945],{"type":998,"value":4946},"a_count ",{"type":993,"tag":1026,"props":4948,"children":4949},{"style":1047},[4950],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4952,"children":4953},{"style":1041},[4954],{"type":998,"value":4955}," grades.count(",{"type":993,"tag":1026,"props":4957,"children":4958},{"style":1058},[4959],{"type":998,"value":4798},{"type":993,"tag":1026,"props":4961,"children":4962},{"style":1041},[4963],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4965,"children":4966},{"class":1028,"line":72},[4967,4972,4976,4980,4984],{"type":993,"tag":1026,"props":4968,"children":4969},{"style":1041},[4970],{"type":998,"value":4971},"b_count ",{"type":993,"tag":1026,"props":4973,"children":4974},{"style":1047},[4975],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4977,"children":4978},{"style":1041},[4979],{"type":998,"value":4955},{"type":993,"tag":1026,"props":4981,"children":4982},{"style":1058},[4983],{"type":998,"value":4807},{"type":993,"tag":1026,"props":4985,"children":4986},{"style":1041},[4987],{"type":998,"value":1095},{"type":993,"tag":1026,"props":4989,"children":4990},{"class":1028,"line":81},[4991,4995,4999,5003,5008,5012,5017,5021,5025],{"type":993,"tag":1026,"props":4992,"children":4993},{"style":1069},[4994],{"type":998,"value":1214},{"type":993,"tag":1026,"props":4996,"children":4997},{"style":1041},[4998],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5000,"children":5001},{"style":1047},[5002],{"type":998,"value":1224},{"type":993,"tag":1026,"props":5004,"children":5005},{"style":1058},[5006],{"type":998,"value":5007},"\"A grades: ",{"type":993,"tag":1026,"props":5009,"children":5010},{"style":1069},[5011],{"type":998,"value":1234},{"type":993,"tag":1026,"props":5013,"children":5014},{"style":1041},[5015],{"type":998,"value":5016},"a_count",{"type":993,"tag":1026,"props":5018,"children":5019},{"style":1069},[5020],{"type":998,"value":1254},{"type":993,"tag":1026,"props":5022,"children":5023},{"style":1058},[5024],{"type":998,"value":1259},{"type":993,"tag":1026,"props":5026,"children":5027},{"style":1041},[5028],{"type":998,"value":1095},{"type":993,"tag":1026,"props":5030,"children":5031},{"class":1028,"line":91},[5032,5036,5040,5044,5049,5053,5058,5062,5066],{"type":993,"tag":1026,"props":5033,"children":5034},{"style":1069},[5035],{"type":998,"value":1214},{"type":993,"tag":1026,"props":5037,"children":5038},{"style":1041},[5039],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5041,"children":5042},{"style":1047},[5043],{"type":998,"value":1224},{"type":993,"tag":1026,"props":5045,"children":5046},{"style":1058},[5047],{"type":998,"value":5048},"\"B grades: ",{"type":993,"tag":1026,"props":5050,"children":5051},{"style":1069},[5052],{"type":998,"value":1234},{"type":993,"tag":1026,"props":5054,"children":5055},{"style":1041},[5056],{"type":998,"value":5057},"b_count",{"type":993,"tag":1026,"props":5059,"children":5060},{"style":1069},[5061],{"type":998,"value":1254},{"type":993,"tag":1026,"props":5063,"children":5064},{"style":1058},[5065],{"type":998,"value":1259},{"type":993,"tag":1026,"props":5067,"children":5068},{"style":1041},[5069],{"type":998,"value":1095},{"type":993,"tag":1026,"props":5071,"children":5072},{"class":1028,"line":100},[5073],{"type":993,"tag":1026,"props":5074,"children":5075},{"emptyLinePlaceholder":13},[5076],{"type":998,"value":1198},{"type":993,"tag":1026,"props":5078,"children":5079},{"class":1028,"line":109},[5080],{"type":993,"tag":1026,"props":5081,"children":5082},{"style":1032},[5083],{"type":998,"value":5084},"# Count numbers\n",{"type":993,"tag":1026,"props":5086,"children":5087},{"class":1028,"line":118},[5088,5093,5097,5102,5106],{"type":993,"tag":1026,"props":5089,"children":5090},{"style":1041},[5091],{"type":998,"value":5092},"twos_count ",{"type":993,"tag":1026,"props":5094,"children":5095},{"style":1047},[5096],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5098,"children":5099},{"style":1041},[5100],{"type":998,"value":5101}," numbers.count(",{"type":993,"tag":1026,"props":5103,"children":5104},{"style":1069},[5105],{"type":998,"value":1832},{"type":993,"tag":1026,"props":5107,"children":5108},{"style":1041},[5109],{"type":998,"value":1095},{"type":993,"tag":1026,"props":5111,"children":5112},{"class":1028,"line":127},[5113,5117,5121,5125,5130,5134,5139,5143,5147],{"type":993,"tag":1026,"props":5114,"children":5115},{"style":1069},[5116],{"type":998,"value":1214},{"type":993,"tag":1026,"props":5118,"children":5119},{"style":1041},[5120],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5122,"children":5123},{"style":1047},[5124],{"type":998,"value":1224},{"type":993,"tag":1026,"props":5126,"children":5127},{"style":1058},[5128],{"type":998,"value":5129},"\"Number of 2s: ",{"type":993,"tag":1026,"props":5131,"children":5132},{"style":1069},[5133],{"type":998,"value":1234},{"type":993,"tag":1026,"props":5135,"children":5136},{"style":1041},[5137],{"type":998,"value":5138},"twos_count",{"type":993,"tag":1026,"props":5140,"children":5141},{"style":1069},[5142],{"type":998,"value":1254},{"type":993,"tag":1026,"props":5144,"children":5145},{"style":1058},[5146],{"type":998,"value":1259},{"type":993,"tag":1026,"props":5148,"children":5149},{"style":1041},[5150],{"type":998,"value":1095},{"type":993,"tag":1026,"props":5152,"children":5153},{"class":1028,"line":136},[5154],{"type":993,"tag":1026,"props":5155,"children":5156},{"emptyLinePlaceholder":13},[5157],{"type":998,"value":1198},{"type":993,"tag":1026,"props":5159,"children":5160},{"class":1028,"line":146},[5161],{"type":993,"tag":1026,"props":5162,"children":5163},{"style":1032},[5164],{"type":998,"value":5165},"# Count non-existent elements\n",{"type":993,"tag":1026,"props":5167,"children":5168},{"class":1028,"line":155},[5169,5174,5178,5182,5187],{"type":993,"tag":1026,"props":5170,"children":5171},{"style":1041},[5172],{"type":998,"value":5173},"f_count ",{"type":993,"tag":1026,"props":5175,"children":5176},{"style":1047},[5177],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5179,"children":5180},{"style":1041},[5181],{"type":998,"value":4955},{"type":993,"tag":1026,"props":5183,"children":5184},{"style":1058},[5185],{"type":998,"value":5186},"\"F\"",{"type":993,"tag":1026,"props":5188,"children":5189},{"style":1041},[5190],{"type":998,"value":1095},{"type":993,"tag":1026,"props":5192,"children":5193},{"class":1028,"line":164},[5194,5198,5202,5206,5211,5215,5220,5224,5228,5233],{"type":993,"tag":1026,"props":5195,"children":5196},{"style":1069},[5197],{"type":998,"value":1214},{"type":993,"tag":1026,"props":5199,"children":5200},{"style":1041},[5201],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5203,"children":5204},{"style":1047},[5205],{"type":998,"value":1224},{"type":993,"tag":1026,"props":5207,"children":5208},{"style":1058},[5209],{"type":998,"value":5210},"\"F grades: ",{"type":993,"tag":1026,"props":5212,"children":5213},{"style":1069},[5214],{"type":998,"value":1234},{"type":993,"tag":1026,"props":5216,"children":5217},{"style":1041},[5218],{"type":998,"value":5219},"f_count",{"type":993,"tag":1026,"props":5221,"children":5222},{"style":1069},[5223],{"type":998,"value":1254},{"type":993,"tag":1026,"props":5225,"children":5226},{"style":1058},[5227],{"type":998,"value":1259},{"type":993,"tag":1026,"props":5229,"children":5230},{"style":1041},[5231],{"type":998,"value":5232},")  ",{"type":993,"tag":1026,"props":5234,"children":5235},{"style":1032},[5236],{"type":998,"value":5237},"# Returns 0\n",{"type":993,"tag":1484,"props":5239,"children":5241},{"id":5240},"working-with-nested-tuples",[5242],{"type":998,"value":5243},"🪆 Working with Nested Tuples",{"type":993,"tag":1001,"props":5245,"children":5246},{},[5247],{"type":998,"value":5248},"When tuples contain other tuples, you need to use multiple indexing operations to access nested elements. This is common with coordinate systems, matrices, and hierarchical data.",{"type":993,"tag":1496,"props":5250,"children":5253},{"emoji":5251,"title":5252,"type":1500},"🪆","Nested Tuple Access",[5254,5261,5307,5315,5356,5366],{"type":993,"tag":1001,"props":5255,"children":5256},{},[5257],{"type":993,"tag":1506,"props":5258,"children":5259},{},[5260],{"type":998,"value":1543},{"type":993,"tag":1512,"props":5262,"children":5263},{},[5264,5274,5285,5296],{"type":993,"tag":1516,"props":5265,"children":5266},{},[5267,5269],{"type":998,"value":5268},"Single level: ",{"type":993,"tag":1022,"props":5270,"children":5272},{"className":5271},[],[5273],{"type":998,"value":1557},{"type":993,"tag":1516,"props":5275,"children":5276},{},[5277,5279],{"type":998,"value":5278},"Two levels: ",{"type":993,"tag":1022,"props":5280,"children":5282},{"className":5281},[],[5283],{"type":998,"value":5284},"tuple[index1][index2]",{"type":993,"tag":1516,"props":5286,"children":5287},{},[5288,5290],{"type":998,"value":5289},"Multiple levels: ",{"type":993,"tag":1022,"props":5291,"children":5293},{"className":5292},[],[5294],{"type":998,"value":5295},"tuple[i1][i2][i3]...",{"type":993,"tag":1516,"props":5297,"children":5298},{},[5299,5301],{"type":998,"value":5300},"Mixed with slicing: ",{"type":993,"tag":1022,"props":5302,"children":5304},{"className":5303},[],[5305],{"type":998,"value":5306},"tuple[i1:i2][j1]",{"type":993,"tag":1001,"props":5308,"children":5309},{},[5310],{"type":993,"tag":1506,"props":5311,"children":5312},{},[5313],{"type":998,"value":5314},"Common Structures:",{"type":993,"tag":1512,"props":5316,"children":5317},{},[5318,5329,5340,5351],{"type":993,"tag":1516,"props":5319,"children":5320},{},[5321,5323],{"type":998,"value":5322},"Points and coordinates: ",{"type":993,"tag":1022,"props":5324,"children":5326},{"className":5325},[],[5327],{"type":998,"value":5328},"((x1, y1), (x2, y2))",{"type":993,"tag":1516,"props":5330,"children":5331},{},[5332,5334],{"type":998,"value":5333},"Matrices: ",{"type":993,"tag":1022,"props":5335,"children":5337},{"className":5336},[],[5338],{"type":998,"value":5339},"((row1), (row2), (row3))",{"type":993,"tag":1516,"props":5341,"children":5342},{},[5343,5345],{"type":998,"value":5344},"Records: ",{"type":993,"tag":1022,"props":5346,"children":5348},{"className":5347},[],[5349],{"type":998,"value":5350},"((\"name\", \"age\"), (\"data\", \"values\"))",{"type":993,"tag":1516,"props":5352,"children":5353},{},[5354],{"type":998,"value":5355},"Hierarchical data: nested organization",{"type":993,"tag":1001,"props":5357,"children":5358},{},[5359,5364],{"type":993,"tag":1506,"props":5360,"children":5361},{},[5362],{"type":998,"value":5363},"Error Prevention:",{"type":998,"value":5365}," Check existence before accessing nested levels",{"type":993,"tag":1001,"props":5367,"children":5368},{},[5369,5374],{"type":993,"tag":1506,"props":5370,"children":5371},{},[5372],{"type":998,"value":5373},"Readability:",{"type":998,"value":5375}," Use intermediate variables for complex nested access",{"type":993,"tag":1612,"props":5377,"children":5379},{"id":5378},"multi-level-element-access",[5380],{"type":998,"value":5381},"Multi-Level Element Access",{"type":993,"tag":1012,"props":5383,"children":5384},{},[5385],{"type":993,"tag":1016,"props":5386,"children":5388},{"className":1018,"code":5387,"language":6,"meta":8,"style":8},"# Basic nested tuple access\nline = ((0, 0), (10, 5))\ntriangle = ((0, 0), (5, 0), (2.5, 4.33))\n\n# Access nested elements\nstart_x = line[0][0]\nstart_y = line[0][1]\nend_x = line[1][0]\nend_y = line[1][1]\n\nprint(f\"Line start: ({start_x}, {start_y})\")\nprint(f\"Line end: ({end_x}, {end_y})\")\n",[5389],{"type":993,"tag":1022,"props":5390,"children":5391},{"__ignoreMap":8},[5392,5400,5451,5517,5524,5532,5566,5598,5630,5662,5669,5728],{"type":993,"tag":1026,"props":5393,"children":5394},{"class":1028,"line":12},[5395],{"type":993,"tag":1026,"props":5396,"children":5397},{"style":1032},[5398],{"type":998,"value":5399},"# Basic nested tuple access\n",{"type":993,"tag":1026,"props":5401,"children":5402},{"class":1028,"line":27},[5403,5408,5412,5417,5421,5425,5429,5434,5438,5442,5446],{"type":993,"tag":1026,"props":5404,"children":5405},{"style":1041},[5406],{"type":998,"value":5407},"line ",{"type":993,"tag":1026,"props":5409,"children":5410},{"style":1047},[5411],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5413,"children":5414},{"style":1041},[5415],{"type":998,"value":5416}," ((",{"type":993,"tag":1026,"props":5418,"children":5419},{"style":1069},[5420],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5422,"children":5423},{"style":1041},[5424],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5426,"children":5427},{"style":1069},[5428],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5430,"children":5431},{"style":1041},[5432],{"type":998,"value":5433},"), (",{"type":993,"tag":1026,"props":5435,"children":5436},{"style":1069},[5437],{"type":998,"value":1116},{"type":993,"tag":1026,"props":5439,"children":5440},{"style":1041},[5441],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5443,"children":5444},{"style":1069},[5445],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5447,"children":5448},{"style":1041},[5449],{"type":998,"value":5450},"))\n",{"type":993,"tag":1026,"props":5452,"children":5453},{"class":1028,"line":36},[5454,5459,5463,5467,5471,5475,5479,5483,5487,5491,5495,5499,5504,5508,5513],{"type":993,"tag":1026,"props":5455,"children":5456},{"style":1041},[5457],{"type":998,"value":5458},"triangle ",{"type":993,"tag":1026,"props":5460,"children":5461},{"style":1047},[5462],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5464,"children":5465},{"style":1041},[5466],{"type":998,"value":5416},{"type":993,"tag":1026,"props":5468,"children":5469},{"style":1069},[5470],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5472,"children":5473},{"style":1041},[5474],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5476,"children":5477},{"style":1069},[5478],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5480,"children":5481},{"style":1041},[5482],{"type":998,"value":5433},{"type":993,"tag":1026,"props":5484,"children":5485},{"style":1069},[5486],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5488,"children":5489},{"style":1041},[5490],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5492,"children":5493},{"style":1069},[5494],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5496,"children":5497},{"style":1041},[5498],{"type":998,"value":5433},{"type":993,"tag":1026,"props":5500,"children":5501},{"style":1069},[5502],{"type":998,"value":5503},"2.5",{"type":993,"tag":1026,"props":5505,"children":5506},{"style":1041},[5507],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5509,"children":5510},{"style":1069},[5511],{"type":998,"value":5512},"4.33",{"type":993,"tag":1026,"props":5514,"children":5515},{"style":1041},[5516],{"type":998,"value":5450},{"type":993,"tag":1026,"props":5518,"children":5519},{"class":1028,"line":45},[5520],{"type":993,"tag":1026,"props":5521,"children":5522},{"emptyLinePlaceholder":13},[5523],{"type":998,"value":1198},{"type":993,"tag":1026,"props":5525,"children":5526},{"class":1028,"line":54},[5527],{"type":993,"tag":1026,"props":5528,"children":5529},{"style":1032},[5530],{"type":998,"value":5531},"# Access nested elements\n",{"type":993,"tag":1026,"props":5533,"children":5534},{"class":1028,"line":63},[5535,5540,5544,5549,5553,5558,5562],{"type":993,"tag":1026,"props":5536,"children":5537},{"style":1041},[5538],{"type":998,"value":5539},"start_x ",{"type":993,"tag":1026,"props":5541,"children":5542},{"style":1047},[5543],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5545,"children":5546},{"style":1041},[5547],{"type":998,"value":5548}," line[",{"type":993,"tag":1026,"props":5550,"children":5551},{"style":1069},[5552],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5554,"children":5555},{"style":1041},[5556],{"type":998,"value":5557},"][",{"type":993,"tag":1026,"props":5559,"children":5560},{"style":1069},[5561],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5563,"children":5564},{"style":1041},[5565],{"type":998,"value":2882},{"type":993,"tag":1026,"props":5567,"children":5568},{"class":1028,"line":72},[5569,5574,5578,5582,5586,5590,5594],{"type":993,"tag":1026,"props":5570,"children":5571},{"style":1041},[5572],{"type":998,"value":5573},"start_y ",{"type":993,"tag":1026,"props":5575,"children":5576},{"style":1047},[5577],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5579,"children":5580},{"style":1041},[5581],{"type":998,"value":5548},{"type":993,"tag":1026,"props":5583,"children":5584},{"style":1069},[5585],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5587,"children":5588},{"style":1041},[5589],{"type":998,"value":5557},{"type":993,"tag":1026,"props":5591,"children":5592},{"style":1069},[5593],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5595,"children":5596},{"style":1041},[5597],{"type":998,"value":2882},{"type":993,"tag":1026,"props":5599,"children":5600},{"class":1028,"line":81},[5601,5606,5610,5614,5618,5622,5626],{"type":993,"tag":1026,"props":5602,"children":5603},{"style":1041},[5604],{"type":998,"value":5605},"end_x ",{"type":993,"tag":1026,"props":5607,"children":5608},{"style":1047},[5609],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5611,"children":5612},{"style":1041},[5613],{"type":998,"value":5548},{"type":993,"tag":1026,"props":5615,"children":5616},{"style":1069},[5617],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5619,"children":5620},{"style":1041},[5621],{"type":998,"value":5557},{"type":993,"tag":1026,"props":5623,"children":5624},{"style":1069},[5625],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5627,"children":5628},{"style":1041},[5629],{"type":998,"value":2882},{"type":993,"tag":1026,"props":5631,"children":5632},{"class":1028,"line":91},[5633,5638,5642,5646,5650,5654,5658],{"type":993,"tag":1026,"props":5634,"children":5635},{"style":1041},[5636],{"type":998,"value":5637},"end_y ",{"type":993,"tag":1026,"props":5639,"children":5640},{"style":1047},[5641],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5643,"children":5644},{"style":1041},[5645],{"type":998,"value":5548},{"type":993,"tag":1026,"props":5647,"children":5648},{"style":1069},[5649],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5651,"children":5652},{"style":1041},[5653],{"type":998,"value":5557},{"type":993,"tag":1026,"props":5655,"children":5656},{"style":1069},[5657],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5659,"children":5660},{"style":1041},[5661],{"type":998,"value":2882},{"type":993,"tag":1026,"props":5663,"children":5664},{"class":1028,"line":100},[5665],{"type":993,"tag":1026,"props":5666,"children":5667},{"emptyLinePlaceholder":13},[5668],{"type":998,"value":1198},{"type":993,"tag":1026,"props":5670,"children":5671},{"class":1028,"line":109},[5672,5676,5680,5684,5689,5693,5698,5702,5706,5710,5715,5719,5724],{"type":993,"tag":1026,"props":5673,"children":5674},{"style":1069},[5675],{"type":998,"value":1214},{"type":993,"tag":1026,"props":5677,"children":5678},{"style":1041},[5679],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5681,"children":5682},{"style":1047},[5683],{"type":998,"value":1224},{"type":993,"tag":1026,"props":5685,"children":5686},{"style":1058},[5687],{"type":998,"value":5688},"\"Line start: (",{"type":993,"tag":1026,"props":5690,"children":5691},{"style":1069},[5692],{"type":998,"value":1234},{"type":993,"tag":1026,"props":5694,"children":5695},{"style":1041},[5696],{"type":998,"value":5697},"start_x",{"type":993,"tag":1026,"props":5699,"children":5700},{"style":1069},[5701],{"type":998,"value":1254},{"type":993,"tag":1026,"props":5703,"children":5704},{"style":1058},[5705],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5707,"children":5708},{"style":1069},[5709],{"type":998,"value":1234},{"type":993,"tag":1026,"props":5711,"children":5712},{"style":1041},[5713],{"type":998,"value":5714},"start_y",{"type":993,"tag":1026,"props":5716,"children":5717},{"style":1069},[5718],{"type":998,"value":1254},{"type":993,"tag":1026,"props":5720,"children":5721},{"style":1058},[5722],{"type":998,"value":5723},")\"",{"type":993,"tag":1026,"props":5725,"children":5726},{"style":1041},[5727],{"type":998,"value":1095},{"type":993,"tag":1026,"props":5729,"children":5730},{"class":1028,"line":118},[5731,5735,5739,5743,5748,5752,5757,5761,5765,5769,5774,5778,5782],{"type":993,"tag":1026,"props":5732,"children":5733},{"style":1069},[5734],{"type":998,"value":1214},{"type":993,"tag":1026,"props":5736,"children":5737},{"style":1041},[5738],{"type":998,"value":1219},{"type":993,"tag":1026,"props":5740,"children":5741},{"style":1047},[5742],{"type":998,"value":1224},{"type":993,"tag":1026,"props":5744,"children":5745},{"style":1058},[5746],{"type":998,"value":5747},"\"Line end: (",{"type":993,"tag":1026,"props":5749,"children":5750},{"style":1069},[5751],{"type":998,"value":1234},{"type":993,"tag":1026,"props":5753,"children":5754},{"style":1041},[5755],{"type":998,"value":5756},"end_x",{"type":993,"tag":1026,"props":5758,"children":5759},{"style":1069},[5760],{"type":998,"value":1254},{"type":993,"tag":1026,"props":5762,"children":5763},{"style":1058},[5764],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5766,"children":5767},{"style":1069},[5768],{"type":998,"value":1234},{"type":993,"tag":1026,"props":5770,"children":5771},{"style":1041},[5772],{"type":998,"value":5773},"end_y",{"type":993,"tag":1026,"props":5775,"children":5776},{"style":1069},[5777],{"type":998,"value":1254},{"type":993,"tag":1026,"props":5779,"children":5780},{"style":1058},[5781],{"type":998,"value":5723},{"type":993,"tag":1026,"props":5783,"children":5784},{"style":1041},[5785],{"type":998,"value":1095},{"type":993,"tag":1612,"props":5787,"children":5789},{"id":5788},"matrix-element-access",[5790],{"type":998,"value":5791},"Matrix Element Access",{"type":993,"tag":1012,"props":5793,"children":5794},{},[5795],{"type":993,"tag":1016,"props":5796,"children":5798},{"className":1018,"code":5797,"language":6,"meta":8,"style":8},"# Matrix element access\nmatrix = ((1, 2, 3), (4, 5, 6), (7, 8, 9))\n\n# Access specific matrix elements\ncenter_element = matrix[1][1]\ntop_left = matrix[0][0]\nbottom_right = matrix[2][2]\n\nprint(f\"Matrix center: {center_element}\")\nprint(f\"Top left: {top_left}\")\nprint(f\"Bottom right: {bottom_right}\")\n",[5799],{"type":993,"tag":1022,"props":5800,"children":5801},{"__ignoreMap":8},[5802,5810,5898,5905,5913,5946,5978,6010,6017,6058,6099],{"type":993,"tag":1026,"props":5803,"children":5804},{"class":1028,"line":12},[5805],{"type":993,"tag":1026,"props":5806,"children":5807},{"style":1032},[5808],{"type":998,"value":5809},"# Matrix element access\n",{"type":993,"tag":1026,"props":5811,"children":5812},{"class":1028,"line":27},[5813,5818,5822,5826,5830,5834,5838,5842,5846,5850,5854,5858,5862,5866,5870,5874,5878,5882,5886,5890,5894],{"type":993,"tag":1026,"props":5814,"children":5815},{"style":1041},[5816],{"type":998,"value":5817},"matrix ",{"type":993,"tag":1026,"props":5819,"children":5820},{"style":1047},[5821],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5823,"children":5824},{"style":1041},[5825],{"type":998,"value":5416},{"type":993,"tag":1026,"props":5827,"children":5828},{"style":1069},[5829],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5831,"children":5832},{"style":1041},[5833],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5835,"children":5836},{"style":1069},[5837],{"type":998,"value":1832},{"type":993,"tag":1026,"props":5839,"children":5840},{"style":1041},[5841],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5843,"children":5844},{"style":1069},[5845],{"type":998,"value":1881},{"type":993,"tag":1026,"props":5847,"children":5848},{"style":1041},[5849],{"type":998,"value":5433},{"type":993,"tag":1026,"props":5851,"children":5852},{"style":1069},[5853],{"type":998,"value":1930},{"type":993,"tag":1026,"props":5855,"children":5856},{"style":1041},[5857],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5859,"children":5860},{"style":1069},[5861],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5863,"children":5864},{"style":1041},[5865],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5867,"children":5868},{"style":1069},[5869],{"type":998,"value":2810},{"type":993,"tag":1026,"props":5871,"children":5872},{"style":1041},[5873],{"type":998,"value":5433},{"type":993,"tag":1026,"props":5875,"children":5876},{"style":1069},[5877],{"type":998,"value":2819},{"type":993,"tag":1026,"props":5879,"children":5880},{"style":1041},[5881],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5883,"children":5884},{"style":1069},[5885],{"type":998,"value":2828},{"type":993,"tag":1026,"props":5887,"children":5888},{"style":1041},[5889],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5891,"children":5892},{"style":1069},[5893],{"type":998,"value":2837},{"type":993,"tag":1026,"props":5895,"children":5896},{"style":1041},[5897],{"type":998,"value":5450},{"type":993,"tag":1026,"props":5899,"children":5900},{"class":1028,"line":36},[5901],{"type":993,"tag":1026,"props":5902,"children":5903},{"emptyLinePlaceholder":13},[5904],{"type":998,"value":1198},{"type":993,"tag":1026,"props":5906,"children":5907},{"class":1028,"line":45},[5908],{"type":993,"tag":1026,"props":5909,"children":5910},{"style":1032},[5911],{"type":998,"value":5912},"# Access specific matrix elements\n",{"type":993,"tag":1026,"props":5914,"children":5915},{"class":1028,"line":54},[5916,5921,5925,5930,5934,5938,5942],{"type":993,"tag":1026,"props":5917,"children":5918},{"style":1041},[5919],{"type":998,"value":5920},"center_element ",{"type":993,"tag":1026,"props":5922,"children":5923},{"style":1047},[5924],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5926,"children":5927},{"style":1041},[5928],{"type":998,"value":5929}," matrix[",{"type":993,"tag":1026,"props":5931,"children":5932},{"style":1069},[5933],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5935,"children":5936},{"style":1041},[5937],{"type":998,"value":5557},{"type":993,"tag":1026,"props":5939,"children":5940},{"style":1069},[5941],{"type":998,"value":1414},{"type":993,"tag":1026,"props":5943,"children":5944},{"style":1041},[5945],{"type":998,"value":2882},{"type":993,"tag":1026,"props":5947,"children":5948},{"class":1028,"line":63},[5949,5954,5958,5962,5966,5970,5974],{"type":993,"tag":1026,"props":5950,"children":5951},{"style":1041},[5952],{"type":998,"value":5953},"top_left ",{"type":993,"tag":1026,"props":5955,"children":5956},{"style":1047},[5957],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5959,"children":5960},{"style":1041},[5961],{"type":998,"value":5929},{"type":993,"tag":1026,"props":5963,"children":5964},{"style":1069},[5965],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5967,"children":5968},{"style":1041},[5969],{"type":998,"value":5557},{"type":993,"tag":1026,"props":5971,"children":5972},{"style":1069},[5973],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5975,"children":5976},{"style":1041},[5977],{"type":998,"value":2882},{"type":993,"tag":1026,"props":5979,"children":5980},{"class":1028,"line":72},[5981,5986,5990,5994,5998,6002,6006],{"type":993,"tag":1026,"props":5982,"children":5983},{"style":1041},[5984],{"type":998,"value":5985},"bottom_right ",{"type":993,"tag":1026,"props":5987,"children":5988},{"style":1047},[5989],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5991,"children":5992},{"style":1041},[5993],{"type":998,"value":5929},{"type":993,"tag":1026,"props":5995,"children":5996},{"style":1069},[5997],{"type":998,"value":1832},{"type":993,"tag":1026,"props":5999,"children":6000},{"style":1041},[6001],{"type":998,"value":5557},{"type":993,"tag":1026,"props":6003,"children":6004},{"style":1069},[6005],{"type":998,"value":1832},{"type":993,"tag":1026,"props":6007,"children":6008},{"style":1041},[6009],{"type":998,"value":2882},{"type":993,"tag":1026,"props":6011,"children":6012},{"class":1028,"line":81},[6013],{"type":993,"tag":1026,"props":6014,"children":6015},{"emptyLinePlaceholder":13},[6016],{"type":998,"value":1198},{"type":993,"tag":1026,"props":6018,"children":6019},{"class":1028,"line":91},[6020,6024,6028,6032,6037,6041,6046,6050,6054],{"type":993,"tag":1026,"props":6021,"children":6022},{"style":1069},[6023],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6025,"children":6026},{"style":1041},[6027],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6029,"children":6030},{"style":1047},[6031],{"type":998,"value":1224},{"type":993,"tag":1026,"props":6033,"children":6034},{"style":1058},[6035],{"type":998,"value":6036},"\"Matrix center: ",{"type":993,"tag":1026,"props":6038,"children":6039},{"style":1069},[6040],{"type":998,"value":1234},{"type":993,"tag":1026,"props":6042,"children":6043},{"style":1041},[6044],{"type":998,"value":6045},"center_element",{"type":993,"tag":1026,"props":6047,"children":6048},{"style":1069},[6049],{"type":998,"value":1254},{"type":993,"tag":1026,"props":6051,"children":6052},{"style":1058},[6053],{"type":998,"value":1259},{"type":993,"tag":1026,"props":6055,"children":6056},{"style":1041},[6057],{"type":998,"value":1095},{"type":993,"tag":1026,"props":6059,"children":6060},{"class":1028,"line":100},[6061,6065,6069,6073,6078,6082,6087,6091,6095],{"type":993,"tag":1026,"props":6062,"children":6063},{"style":1069},[6064],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6066,"children":6067},{"style":1041},[6068],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6070,"children":6071},{"style":1047},[6072],{"type":998,"value":1224},{"type":993,"tag":1026,"props":6074,"children":6075},{"style":1058},[6076],{"type":998,"value":6077},"\"Top left: ",{"type":993,"tag":1026,"props":6079,"children":6080},{"style":1069},[6081],{"type":998,"value":1234},{"type":993,"tag":1026,"props":6083,"children":6084},{"style":1041},[6085],{"type":998,"value":6086},"top_left",{"type":993,"tag":1026,"props":6088,"children":6089},{"style":1069},[6090],{"type":998,"value":1254},{"type":993,"tag":1026,"props":6092,"children":6093},{"style":1058},[6094],{"type":998,"value":1259},{"type":993,"tag":1026,"props":6096,"children":6097},{"style":1041},[6098],{"type":998,"value":1095},{"type":993,"tag":1026,"props":6100,"children":6101},{"class":1028,"line":109},[6102,6106,6110,6114,6119,6123,6128,6132,6136],{"type":993,"tag":1026,"props":6103,"children":6104},{"style":1069},[6105],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6107,"children":6108},{"style":1041},[6109],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6111,"children":6112},{"style":1047},[6113],{"type":998,"value":1224},{"type":993,"tag":1026,"props":6115,"children":6116},{"style":1058},[6117],{"type":998,"value":6118},"\"Bottom right: ",{"type":993,"tag":1026,"props":6120,"children":6121},{"style":1069},[6122],{"type":998,"value":1234},{"type":993,"tag":1026,"props":6124,"children":6125},{"style":1041},[6126],{"type":998,"value":6127},"bottom_right",{"type":993,"tag":1026,"props":6129,"children":6130},{"style":1069},[6131],{"type":998,"value":1254},{"type":993,"tag":1026,"props":6133,"children":6134},{"style":1058},[6135],{"type":998,"value":1259},{"type":993,"tag":1026,"props":6137,"children":6138},{"style":1041},[6139],{"type":998,"value":1095},{"type":993,"tag":1612,"props":6141,"children":6143},{"id":6142},"safe-nested-access",[6144],{"type":998,"value":6145},"Safe Nested Access",{"type":993,"tag":1012,"props":6147,"children":6148},{},[6149],{"type":993,"tag":1016,"props":6150,"children":6152},{"className":1018,"code":6151,"language":6,"meta":8,"style":8},"# Safe nested access\ndef safe_nested_get(nested_tuple, *indices):\n    \"\"\"Safely access nested tuple elements\"\"\"\n    current = nested_tuple\n    for index in indices:\n        try:\n            current = current[index]\n        except (IndexError, TypeError):\n            return None\n    return current\n\n# Test safe access\ndata = ((1, 2), (3, 4, 5))\nresult1 = safe_nested_get(data, 0, 1)  # Valid: 2\nresult2 = safe_nested_get(data, 0, 5)  # Invalid: None\nresult3 = safe_nested_get(data, 2, 0)  # Invalid: None\n\nprint(f\"Valid access: {result1}\")\nprint(f\"Invalid access: {result2}\")\nprint(f\"Invalid access: {result3}\")\n",[6153],{"type":993,"tag":1022,"props":6154,"children":6155},{"__ignoreMap":8},[6156,6164,6193,6201,6218,6240,6252,6269,6300,6313,6326,6333,6341,6396,6434,6471,6507,6514,6555,6596],{"type":993,"tag":1026,"props":6157,"children":6158},{"class":1028,"line":12},[6159],{"type":993,"tag":1026,"props":6160,"children":6161},{"style":1032},[6162],{"type":998,"value":6163},"# Safe nested access\n",{"type":993,"tag":1026,"props":6165,"children":6166},{"class":1028,"line":27},[6167,6172,6178,6183,6188],{"type":993,"tag":1026,"props":6168,"children":6169},{"style":1047},[6170],{"type":998,"value":6171},"def",{"type":993,"tag":1026,"props":6173,"children":6175},{"style":6174},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[6176],{"type":998,"value":6177}," safe_nested_get",{"type":993,"tag":1026,"props":6179,"children":6180},{"style":1041},[6181],{"type":998,"value":6182},"(nested_tuple, ",{"type":993,"tag":1026,"props":6184,"children":6185},{"style":1047},[6186],{"type":998,"value":6187},"*",{"type":993,"tag":1026,"props":6189,"children":6190},{"style":1041},[6191],{"type":998,"value":6192},"indices):\n",{"type":993,"tag":1026,"props":6194,"children":6195},{"class":1028,"line":36},[6196],{"type":993,"tag":1026,"props":6197,"children":6198},{"style":1058},[6199],{"type":998,"value":6200},"    \"\"\"Safely access nested tuple elements\"\"\"\n",{"type":993,"tag":1026,"props":6202,"children":6203},{"class":1028,"line":45},[6204,6209,6213],{"type":993,"tag":1026,"props":6205,"children":6206},{"style":1041},[6207],{"type":998,"value":6208},"    current ",{"type":993,"tag":1026,"props":6210,"children":6211},{"style":1047},[6212],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6214,"children":6215},{"style":1041},[6216],{"type":998,"value":6217}," nested_tuple\n",{"type":993,"tag":1026,"props":6219,"children":6220},{"class":1028,"line":54},[6221,6226,6231,6235],{"type":993,"tag":1026,"props":6222,"children":6223},{"style":1047},[6224],{"type":998,"value":6225},"    for",{"type":993,"tag":1026,"props":6227,"children":6228},{"style":1041},[6229],{"type":998,"value":6230}," index ",{"type":993,"tag":1026,"props":6232,"children":6233},{"style":1047},[6234],{"type":998,"value":3868},{"type":993,"tag":1026,"props":6236,"children":6237},{"style":1041},[6238],{"type":998,"value":6239}," indices:\n",{"type":993,"tag":1026,"props":6241,"children":6242},{"class":1028,"line":63},[6243,6248],{"type":993,"tag":1026,"props":6244,"children":6245},{"style":1047},[6246],{"type":998,"value":6247},"        try",{"type":993,"tag":1026,"props":6249,"children":6250},{"style":1041},[6251],{"type":998,"value":2382},{"type":993,"tag":1026,"props":6253,"children":6254},{"class":1028,"line":72},[6255,6260,6264],{"type":993,"tag":1026,"props":6256,"children":6257},{"style":1041},[6258],{"type":998,"value":6259},"            current ",{"type":993,"tag":1026,"props":6261,"children":6262},{"style":1047},[6263],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6265,"children":6266},{"style":1041},[6267],{"type":998,"value":6268}," current[index]\n",{"type":993,"tag":1026,"props":6270,"children":6271},{"class":1028,"line":81},[6272,6277,6281,6286,6290,6295],{"type":993,"tag":1026,"props":6273,"children":6274},{"style":1047},[6275],{"type":998,"value":6276},"        except",{"type":993,"tag":1026,"props":6278,"children":6279},{"style":1041},[6280],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6282,"children":6283},{"style":1069},[6284],{"type":998,"value":6285},"IndexError",{"type":993,"tag":1026,"props":6287,"children":6288},{"style":1041},[6289],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6291,"children":6292},{"style":1069},[6293],{"type":998,"value":6294},"TypeError",{"type":993,"tag":1026,"props":6296,"children":6297},{"style":1041},[6298],{"type":998,"value":6299},"):\n",{"type":993,"tag":1026,"props":6301,"children":6302},{"class":1028,"line":91},[6303,6308],{"type":993,"tag":1026,"props":6304,"children":6305},{"style":1047},[6306],{"type":998,"value":6307},"            return",{"type":993,"tag":1026,"props":6309,"children":6310},{"style":1069},[6311],{"type":998,"value":6312}," None\n",{"type":993,"tag":1026,"props":6314,"children":6315},{"class":1028,"line":100},[6316,6321],{"type":993,"tag":1026,"props":6317,"children":6318},{"style":1047},[6319],{"type":998,"value":6320},"    return",{"type":993,"tag":1026,"props":6322,"children":6323},{"style":1041},[6324],{"type":998,"value":6325}," current\n",{"type":993,"tag":1026,"props":6327,"children":6328},{"class":1028,"line":109},[6329],{"type":993,"tag":1026,"props":6330,"children":6331},{"emptyLinePlaceholder":13},[6332],{"type":998,"value":1198},{"type":993,"tag":1026,"props":6334,"children":6335},{"class":1028,"line":118},[6336],{"type":993,"tag":1026,"props":6337,"children":6338},{"style":1032},[6339],{"type":998,"value":6340},"# Test safe access\n",{"type":993,"tag":1026,"props":6342,"children":6343},{"class":1028,"line":127},[6344,6348,6352,6356,6360,6364,6368,6372,6376,6380,6384,6388,6392],{"type":993,"tag":1026,"props":6345,"children":6346},{"style":1041},[6347],{"type":998,"value":2302},{"type":993,"tag":1026,"props":6349,"children":6350},{"style":1047},[6351],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6353,"children":6354},{"style":1041},[6355],{"type":998,"value":5416},{"type":993,"tag":1026,"props":6357,"children":6358},{"style":1069},[6359],{"type":998,"value":1414},{"type":993,"tag":1026,"props":6361,"children":6362},{"style":1041},[6363],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6365,"children":6366},{"style":1069},[6367],{"type":998,"value":1832},{"type":993,"tag":1026,"props":6369,"children":6370},{"style":1041},[6371],{"type":998,"value":5433},{"type":993,"tag":1026,"props":6373,"children":6374},{"style":1069},[6375],{"type":998,"value":1881},{"type":993,"tag":1026,"props":6377,"children":6378},{"style":1041},[6379],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6381,"children":6382},{"style":1069},[6383],{"type":998,"value":1930},{"type":993,"tag":1026,"props":6385,"children":6386},{"style":1041},[6387],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6389,"children":6390},{"style":1069},[6391],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6393,"children":6394},{"style":1041},[6395],{"type":998,"value":5450},{"type":993,"tag":1026,"props":6397,"children":6398},{"class":1028,"line":136},[6399,6404,6408,6413,6417,6421,6425,6429],{"type":993,"tag":1026,"props":6400,"children":6401},{"style":1041},[6402],{"type":998,"value":6403},"result1 ",{"type":993,"tag":1026,"props":6405,"children":6406},{"style":1047},[6407],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6409,"children":6410},{"style":1041},[6411],{"type":998,"value":6412}," safe_nested_get(data, ",{"type":993,"tag":1026,"props":6414,"children":6415},{"style":1069},[6416],{"type":998,"value":1244},{"type":993,"tag":1026,"props":6418,"children":6419},{"style":1041},[6420],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6422,"children":6423},{"style":1069},[6424],{"type":998,"value":1414},{"type":993,"tag":1026,"props":6426,"children":6427},{"style":1041},[6428],{"type":998,"value":5232},{"type":993,"tag":1026,"props":6430,"children":6431},{"style":1032},[6432],{"type":998,"value":6433},"# Valid: 2\n",{"type":993,"tag":1026,"props":6435,"children":6436},{"class":1028,"line":146},[6437,6442,6446,6450,6454,6458,6462,6466],{"type":993,"tag":1026,"props":6438,"children":6439},{"style":1041},[6440],{"type":998,"value":6441},"result2 ",{"type":993,"tag":1026,"props":6443,"children":6444},{"style":1047},[6445],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6447,"children":6448},{"style":1041},[6449],{"type":998,"value":6412},{"type":993,"tag":1026,"props":6451,"children":6452},{"style":1069},[6453],{"type":998,"value":1244},{"type":993,"tag":1026,"props":6455,"children":6456},{"style":1041},[6457],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6459,"children":6460},{"style":1069},[6461],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6463,"children":6464},{"style":1041},[6465],{"type":998,"value":5232},{"type":993,"tag":1026,"props":6467,"children":6468},{"style":1032},[6469],{"type":998,"value":6470},"# Invalid: None\n",{"type":993,"tag":1026,"props":6472,"children":6473},{"class":1028,"line":155},[6474,6479,6483,6487,6491,6495,6499,6503],{"type":993,"tag":1026,"props":6475,"children":6476},{"style":1041},[6477],{"type":998,"value":6478},"result3 ",{"type":993,"tag":1026,"props":6480,"children":6481},{"style":1047},[6482],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6484,"children":6485},{"style":1041},[6486],{"type":998,"value":6412},{"type":993,"tag":1026,"props":6488,"children":6489},{"style":1069},[6490],{"type":998,"value":1832},{"type":993,"tag":1026,"props":6492,"children":6493},{"style":1041},[6494],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6496,"children":6497},{"style":1069},[6498],{"type":998,"value":1244},{"type":993,"tag":1026,"props":6500,"children":6501},{"style":1041},[6502],{"type":998,"value":5232},{"type":993,"tag":1026,"props":6504,"children":6505},{"style":1032},[6506],{"type":998,"value":6470},{"type":993,"tag":1026,"props":6508,"children":6509},{"class":1028,"line":164},[6510],{"type":993,"tag":1026,"props":6511,"children":6512},{"emptyLinePlaceholder":13},[6513],{"type":998,"value":1198},{"type":993,"tag":1026,"props":6515,"children":6516},{"class":1028,"line":173},[6517,6521,6525,6529,6534,6538,6543,6547,6551],{"type":993,"tag":1026,"props":6518,"children":6519},{"style":1069},[6520],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6522,"children":6523},{"style":1041},[6524],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6526,"children":6527},{"style":1047},[6528],{"type":998,"value":1224},{"type":993,"tag":1026,"props":6530,"children":6531},{"style":1058},[6532],{"type":998,"value":6533},"\"Valid access: ",{"type":993,"tag":1026,"props":6535,"children":6536},{"style":1069},[6537],{"type":998,"value":1234},{"type":993,"tag":1026,"props":6539,"children":6540},{"style":1041},[6541],{"type":998,"value":6542},"result1",{"type":993,"tag":1026,"props":6544,"children":6545},{"style":1069},[6546],{"type":998,"value":1254},{"type":993,"tag":1026,"props":6548,"children":6549},{"style":1058},[6550],{"type":998,"value":1259},{"type":993,"tag":1026,"props":6552,"children":6553},{"style":1041},[6554],{"type":998,"value":1095},{"type":993,"tag":1026,"props":6556,"children":6557},{"class":1028,"line":182},[6558,6562,6566,6570,6575,6579,6584,6588,6592],{"type":993,"tag":1026,"props":6559,"children":6560},{"style":1069},[6561],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6563,"children":6564},{"style":1041},[6565],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6567,"children":6568},{"style":1047},[6569],{"type":998,"value":1224},{"type":993,"tag":1026,"props":6571,"children":6572},{"style":1058},[6573],{"type":998,"value":6574},"\"Invalid access: ",{"type":993,"tag":1026,"props":6576,"children":6577},{"style":1069},[6578],{"type":998,"value":1234},{"type":993,"tag":1026,"props":6580,"children":6581},{"style":1041},[6582],{"type":998,"value":6583},"result2",{"type":993,"tag":1026,"props":6585,"children":6586},{"style":1069},[6587],{"type":998,"value":1254},{"type":993,"tag":1026,"props":6589,"children":6590},{"style":1058},[6591],{"type":998,"value":1259},{"type":993,"tag":1026,"props":6593,"children":6594},{"style":1041},[6595],{"type":998,"value":1095},{"type":993,"tag":1026,"props":6597,"children":6598},{"class":1028,"line":191},[6599,6603,6607,6611,6615,6619,6624,6628,6632],{"type":993,"tag":1026,"props":6600,"children":6601},{"style":1069},[6602],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6604,"children":6605},{"style":1041},[6606],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6608,"children":6609},{"style":1047},[6610],{"type":998,"value":1224},{"type":993,"tag":1026,"props":6612,"children":6613},{"style":1058},[6614],{"type":998,"value":6574},{"type":993,"tag":1026,"props":6616,"children":6617},{"style":1069},[6618],{"type":998,"value":1234},{"type":993,"tag":1026,"props":6620,"children":6621},{"style":1041},[6622],{"type":998,"value":6623},"result3",{"type":993,"tag":1026,"props":6625,"children":6626},{"style":1069},[6627],{"type":998,"value":1254},{"type":993,"tag":1026,"props":6629,"children":6630},{"style":1058},[6631],{"type":998,"value":1259},{"type":993,"tag":1026,"props":6633,"children":6634},{"style":1041},[6635],{"type":998,"value":1095},{"type":993,"tag":1484,"props":6637,"children":6639},{"id":6638},"tuple-iteration-patterns",[6640],{"type":998,"value":6641},"🔄 Tuple Iteration Patterns",{"type":993,"tag":1001,"props":6643,"children":6644},{},[6645],{"type":998,"value":6646},"While not strictly \"reading,\" iteration is a fundamental way to access all tuple elements systematically. Understanding iteration patterns helps you process tuple data efficiently.",{"type":993,"tag":1496,"props":6648,"children":6651},{"emoji":6649,"title":6650,"type":2600},"🔄","Tuple Iteration Benefits",[6652,6660,6683,6691,6726,6735],{"type":993,"tag":1001,"props":6653,"children":6654},{},[6655],{"type":993,"tag":1506,"props":6656,"children":6657},{},[6658],{"type":998,"value":6659},"Iteration Advantages:",{"type":993,"tag":1512,"props":6661,"children":6662},{},[6663,6668,6673,6678],{"type":993,"tag":1516,"props":6664,"children":6665},{},[6666],{"type":998,"value":6667},"Access all elements systematically",{"type":993,"tag":1516,"props":6669,"children":6670},{},[6671],{"type":998,"value":6672},"No index management required",{"type":993,"tag":1516,"props":6674,"children":6675},{},[6676],{"type":998,"value":6677},"Works with any tuple size",{"type":993,"tag":1516,"props":6679,"children":6680},{},[6681],{"type":998,"value":6682},"Supports enumerate for position tracking",{"type":993,"tag":1001,"props":6684,"children":6685},{},[6686],{"type":993,"tag":1506,"props":6687,"children":6688},{},[6689],{"type":998,"value":6690},"Common Patterns:",{"type":993,"tag":1512,"props":6692,"children":6693},{},[6694,6705,6716,6721],{"type":993,"tag":1516,"props":6695,"children":6696},{},[6697,6699],{"type":998,"value":6698},"Simple iteration: ",{"type":993,"tag":1022,"props":6700,"children":6702},{"className":6701},[],[6703],{"type":998,"value":6704},"for item in tuple:",{"type":993,"tag":1516,"props":6706,"children":6707},{},[6708,6710],{"type":998,"value":6709},"With indices: ",{"type":993,"tag":1022,"props":6711,"children":6713},{"className":6712},[],[6714],{"type":998,"value":6715},"for i, item in enumerate(tuple):",{"type":993,"tag":1516,"props":6717,"children":6718},{},[6719],{"type":998,"value":6720},"Conditional processing: filter during iteration",{"type":993,"tag":1516,"props":6722,"children":6723},{},[6724],{"type":998,"value":6725},"Nested iteration: for nested structures",{"type":993,"tag":1001,"props":6727,"children":6728},{},[6729,6733],{"type":993,"tag":1506,"props":6730,"children":6731},{},[6732],{"type":998,"value":1608},{"type":998,"value":6734}," Iteration is efficient and Pythonic",{"type":993,"tag":1001,"props":6736,"children":6737},{},[6738,6743],{"type":993,"tag":1506,"props":6739,"children":6740},{},[6741],{"type":998,"value":6742},"Flexibility:",{"type":998,"value":6744}," Combine with other operations for complex processing",{"type":993,"tag":1612,"props":6746,"children":6748},{"id":6747},"basic-tuple-iteration",[6749],{"type":998,"value":6750},"Basic Tuple Iteration",{"type":993,"tag":1012,"props":6752,"children":6753},{},[6754],{"type":993,"tag":1016,"props":6755,"children":6757},{"className":1018,"code":6756,"language":6,"meta":8,"style":8},"# Basic iteration\nstudent_grades = (\"A\", \"B\", \"A\", \"C\", \"B\")\ncoordinates = (10, 20, 30)\n\n# Simple iteration\nprint(\"Grades:\")\nfor grade in student_grades:\n    print(f\"Grade: {grade}\")\n\nprint(\"\\nCoordinates:\")\nfor coord in coordinates:\n    print(f\"Value: {coord}\")\n",[6758],{"type":993,"tag":1022,"props":6759,"children":6760},{"__ignoreMap":8},[6761,6769,6825,6864,6871,6879,6899,6921,6962,6969,6998,7019],{"type":993,"tag":1026,"props":6762,"children":6763},{"class":1028,"line":12},[6764],{"type":993,"tag":1026,"props":6765,"children":6766},{"style":1032},[6767],{"type":998,"value":6768},"# Basic iteration\n",{"type":993,"tag":1026,"props":6770,"children":6771},{"class":1028,"line":27},[6772,6777,6781,6785,6789,6793,6797,6801,6805,6809,6813,6817,6821],{"type":993,"tag":1026,"props":6773,"children":6774},{"style":1041},[6775],{"type":998,"value":6776},"student_grades ",{"type":993,"tag":1026,"props":6778,"children":6779},{"style":1047},[6780],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6782,"children":6783},{"style":1041},[6784],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6786,"children":6787},{"style":1058},[6788],{"type":998,"value":4798},{"type":993,"tag":1026,"props":6790,"children":6791},{"style":1041},[6792],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6794,"children":6795},{"style":1058},[6796],{"type":998,"value":4807},{"type":993,"tag":1026,"props":6798,"children":6799},{"style":1041},[6800],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6802,"children":6803},{"style":1058},[6804],{"type":998,"value":4798},{"type":993,"tag":1026,"props":6806,"children":6807},{"style":1041},[6808],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6810,"children":6811},{"style":1058},[6812],{"type":998,"value":4824},{"type":993,"tag":1026,"props":6814,"children":6815},{"style":1041},[6816],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6818,"children":6819},{"style":1058},[6820],{"type":998,"value":4807},{"type":993,"tag":1026,"props":6822,"children":6823},{"style":1041},[6824],{"type":998,"value":1095},{"type":993,"tag":1026,"props":6826,"children":6827},{"class":1028,"line":36},[6828,6832,6836,6840,6844,6848,6852,6856,6860],{"type":993,"tag":1026,"props":6829,"children":6830},{"style":1041},[6831],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6833,"children":6834},{"style":1047},[6835],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6837,"children":6838},{"style":1041},[6839],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6841,"children":6842},{"style":1069},[6843],{"type":998,"value":1116},{"type":993,"tag":1026,"props":6845,"children":6846},{"style":1041},[6847],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6849,"children":6850},{"style":1069},[6851],{"type":998,"value":1072},{"type":993,"tag":1026,"props":6853,"children":6854},{"style":1041},[6855],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6857,"children":6858},{"style":1069},[6859],{"type":998,"value":2049},{"type":993,"tag":1026,"props":6861,"children":6862},{"style":1041},[6863],{"type":998,"value":1095},{"type":993,"tag":1026,"props":6865,"children":6866},{"class":1028,"line":45},[6867],{"type":993,"tag":1026,"props":6868,"children":6869},{"emptyLinePlaceholder":13},[6870],{"type":998,"value":1198},{"type":993,"tag":1026,"props":6872,"children":6873},{"class":1028,"line":54},[6874],{"type":993,"tag":1026,"props":6875,"children":6876},{"style":1032},[6877],{"type":998,"value":6878},"# Simple iteration\n",{"type":993,"tag":1026,"props":6880,"children":6881},{"class":1028,"line":63},[6882,6886,6890,6895],{"type":993,"tag":1026,"props":6883,"children":6884},{"style":1069},[6885],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6887,"children":6888},{"style":1041},[6889],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6891,"children":6892},{"style":1058},[6893],{"type":998,"value":6894},"\"Grades:\"",{"type":993,"tag":1026,"props":6896,"children":6897},{"style":1041},[6898],{"type":998,"value":1095},{"type":993,"tag":1026,"props":6900,"children":6901},{"class":1028,"line":72},[6902,6907,6912,6916],{"type":993,"tag":1026,"props":6903,"children":6904},{"style":1047},[6905],{"type":998,"value":6906},"for",{"type":993,"tag":1026,"props":6908,"children":6909},{"style":1041},[6910],{"type":998,"value":6911}," grade ",{"type":993,"tag":1026,"props":6913,"children":6914},{"style":1047},[6915],{"type":998,"value":3868},{"type":993,"tag":1026,"props":6917,"children":6918},{"style":1041},[6919],{"type":998,"value":6920}," student_grades:\n",{"type":993,"tag":1026,"props":6922,"children":6923},{"class":1028,"line":81},[6924,6928,6932,6936,6941,6945,6950,6954,6958],{"type":993,"tag":1026,"props":6925,"children":6926},{"style":1069},[6927],{"type":998,"value":2390},{"type":993,"tag":1026,"props":6929,"children":6930},{"style":1041},[6931],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6933,"children":6934},{"style":1047},[6935],{"type":998,"value":1224},{"type":993,"tag":1026,"props":6937,"children":6938},{"style":1058},[6939],{"type":998,"value":6940},"\"Grade: ",{"type":993,"tag":1026,"props":6942,"children":6943},{"style":1069},[6944],{"type":998,"value":1234},{"type":993,"tag":1026,"props":6946,"children":6947},{"style":1041},[6948],{"type":998,"value":6949},"grade",{"type":993,"tag":1026,"props":6951,"children":6952},{"style":1069},[6953],{"type":998,"value":1254},{"type":993,"tag":1026,"props":6955,"children":6956},{"style":1058},[6957],{"type":998,"value":1259},{"type":993,"tag":1026,"props":6959,"children":6960},{"style":1041},[6961],{"type":998,"value":1095},{"type":993,"tag":1026,"props":6963,"children":6964},{"class":1028,"line":91},[6965],{"type":993,"tag":1026,"props":6966,"children":6967},{"emptyLinePlaceholder":13},[6968],{"type":998,"value":1198},{"type":993,"tag":1026,"props":6970,"children":6971},{"class":1028,"line":100},[6972,6976,6980,6984,6989,6994],{"type":993,"tag":1026,"props":6973,"children":6974},{"style":1069},[6975],{"type":998,"value":1214},{"type":993,"tag":1026,"props":6977,"children":6978},{"style":1041},[6979],{"type":998,"value":1219},{"type":993,"tag":1026,"props":6981,"children":6982},{"style":1058},[6983],{"type":998,"value":1259},{"type":993,"tag":1026,"props":6985,"children":6986},{"style":1069},[6987],{"type":998,"value":6988},"\\n",{"type":993,"tag":1026,"props":6990,"children":6991},{"style":1058},[6992],{"type":998,"value":6993},"Coordinates:\"",{"type":993,"tag":1026,"props":6995,"children":6996},{"style":1041},[6997],{"type":998,"value":1095},{"type":993,"tag":1026,"props":6999,"children":7000},{"class":1028,"line":109},[7001,7005,7010,7014],{"type":993,"tag":1026,"props":7002,"children":7003},{"style":1047},[7004],{"type":998,"value":6906},{"type":993,"tag":1026,"props":7006,"children":7007},{"style":1041},[7008],{"type":998,"value":7009}," coord ",{"type":993,"tag":1026,"props":7011,"children":7012},{"style":1047},[7013],{"type":998,"value":3868},{"type":993,"tag":1026,"props":7015,"children":7016},{"style":1041},[7017],{"type":998,"value":7018}," coordinates:\n",{"type":993,"tag":1026,"props":7020,"children":7021},{"class":1028,"line":118},[7022,7026,7030,7034,7039,7043,7048,7052,7056],{"type":993,"tag":1026,"props":7023,"children":7024},{"style":1069},[7025],{"type":998,"value":2390},{"type":993,"tag":1026,"props":7027,"children":7028},{"style":1041},[7029],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7031,"children":7032},{"style":1047},[7033],{"type":998,"value":1224},{"type":993,"tag":1026,"props":7035,"children":7036},{"style":1058},[7037],{"type":998,"value":7038},"\"Value: ",{"type":993,"tag":1026,"props":7040,"children":7041},{"style":1069},[7042],{"type":998,"value":1234},{"type":993,"tag":1026,"props":7044,"children":7045},{"style":1041},[7046],{"type":998,"value":7047},"coord",{"type":993,"tag":1026,"props":7049,"children":7050},{"style":1069},[7051],{"type":998,"value":1254},{"type":993,"tag":1026,"props":7053,"children":7054},{"style":1058},[7055],{"type":998,"value":1259},{"type":993,"tag":1026,"props":7057,"children":7058},{"style":1041},[7059],{"type":998,"value":1095},{"type":993,"tag":1612,"props":7061,"children":7063},{"id":7062},"indexed-iteration",[7064],{"type":998,"value":7065},"Indexed Iteration",{"type":993,"tag":1012,"props":7067,"children":7068},{},[7069],{"type":993,"tag":1016,"props":7070,"children":7072},{"className":1018,"code":7071,"language":6,"meta":8,"style":8},"# Iteration with indices\ncolors = (\"red\", \"green\", \"blue\", \"yellow\")\n\nprint(\"Colors with positions:\")\nfor index, color in enumerate(colors):\n    print(f\"Position {index}: {color}\")\n\n# 1 Starting enumerate from\nprint(\"\\nColors numbered from 1:\")\nfor number, color in enumerate(colors, 1):\n    print(f\"Color {number}: {color}\")\n",[7073],{"type":993,"tag":1022,"props":7074,"children":7075},{"__ignoreMap":8},[7076,7084,7131,7138,7158,7184,7243,7250,7258,7286,7319],{"type":993,"tag":1026,"props":7077,"children":7078},{"class":1028,"line":12},[7079],{"type":993,"tag":1026,"props":7080,"children":7081},{"style":1032},[7082],{"type":998,"value":7083},"# Iteration with indices\n",{"type":993,"tag":1026,"props":7085,"children":7086},{"class":1028,"line":27},[7087,7091,7095,7099,7103,7107,7111,7115,7119,7123,7127],{"type":993,"tag":1026,"props":7088,"children":7089},{"style":1041},[7090],{"type":998,"value":1146},{"type":993,"tag":1026,"props":7092,"children":7093},{"style":1047},[7094],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7096,"children":7097},{"style":1041},[7098],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7100,"children":7101},{"style":1058},[7102],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7104,"children":7105},{"style":1041},[7106],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7108,"children":7109},{"style":1058},[7110],{"type":998,"value":1168},{"type":993,"tag":1026,"props":7112,"children":7113},{"style":1041},[7114],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7116,"children":7117},{"style":1058},[7118],{"type":998,"value":1177},{"type":993,"tag":1026,"props":7120,"children":7121},{"style":1041},[7122],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7124,"children":7125},{"style":1058},[7126],{"type":998,"value":1186},{"type":993,"tag":1026,"props":7128,"children":7129},{"style":1041},[7130],{"type":998,"value":1095},{"type":993,"tag":1026,"props":7132,"children":7133},{"class":1028,"line":36},[7134],{"type":993,"tag":1026,"props":7135,"children":7136},{"emptyLinePlaceholder":13},[7137],{"type":998,"value":1198},{"type":993,"tag":1026,"props":7139,"children":7140},{"class":1028,"line":45},[7141,7145,7149,7154],{"type":993,"tag":1026,"props":7142,"children":7143},{"style":1069},[7144],{"type":998,"value":1214},{"type":993,"tag":1026,"props":7146,"children":7147},{"style":1041},[7148],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7150,"children":7151},{"style":1058},[7152],{"type":998,"value":7153},"\"Colors with positions:\"",{"type":993,"tag":1026,"props":7155,"children":7156},{"style":1041},[7157],{"type":998,"value":1095},{"type":993,"tag":1026,"props":7159,"children":7160},{"class":1028,"line":54},[7161,7165,7170,7174,7179],{"type":993,"tag":1026,"props":7162,"children":7163},{"style":1047},[7164],{"type":998,"value":6906},{"type":993,"tag":1026,"props":7166,"children":7167},{"style":1041},[7168],{"type":998,"value":7169}," index, color ",{"type":993,"tag":1026,"props":7171,"children":7172},{"style":1047},[7173],{"type":998,"value":3868},{"type":993,"tag":1026,"props":7175,"children":7176},{"style":1069},[7177],{"type":998,"value":7178}," enumerate",{"type":993,"tag":1026,"props":7180,"children":7181},{"style":1041},[7182],{"type":998,"value":7183},"(colors):\n",{"type":993,"tag":1026,"props":7185,"children":7186},{"class":1028,"line":63},[7187,7191,7195,7199,7204,7208,7213,7217,7222,7226,7231,7235,7239],{"type":993,"tag":1026,"props":7188,"children":7189},{"style":1069},[7190],{"type":998,"value":2390},{"type":993,"tag":1026,"props":7192,"children":7193},{"style":1041},[7194],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7196,"children":7197},{"style":1047},[7198],{"type":998,"value":1224},{"type":993,"tag":1026,"props":7200,"children":7201},{"style":1058},[7202],{"type":998,"value":7203},"\"Position ",{"type":993,"tag":1026,"props":7205,"children":7206},{"style":1069},[7207],{"type":998,"value":1234},{"type":993,"tag":1026,"props":7209,"children":7210},{"style":1041},[7211],{"type":998,"value":7212},"index",{"type":993,"tag":1026,"props":7214,"children":7215},{"style":1069},[7216],{"type":998,"value":1254},{"type":993,"tag":1026,"props":7218,"children":7219},{"style":1058},[7220],{"type":998,"value":7221},": ",{"type":993,"tag":1026,"props":7223,"children":7224},{"style":1069},[7225],{"type":998,"value":1234},{"type":993,"tag":1026,"props":7227,"children":7228},{"style":1041},[7229],{"type":998,"value":7230},"color",{"type":993,"tag":1026,"props":7232,"children":7233},{"style":1069},[7234],{"type":998,"value":1254},{"type":993,"tag":1026,"props":7236,"children":7237},{"style":1058},[7238],{"type":998,"value":1259},{"type":993,"tag":1026,"props":7240,"children":7241},{"style":1041},[7242],{"type":998,"value":1095},{"type":993,"tag":1026,"props":7244,"children":7245},{"class":1028,"line":72},[7246],{"type":993,"tag":1026,"props":7247,"children":7248},{"emptyLinePlaceholder":13},[7249],{"type":998,"value":1198},{"type":993,"tag":1026,"props":7251,"children":7252},{"class":1028,"line":81},[7253],{"type":993,"tag":1026,"props":7254,"children":7255},{"style":1032},[7256],{"type":998,"value":7257},"# 1 Starting enumerate from\n",{"type":993,"tag":1026,"props":7259,"children":7260},{"class":1028,"line":91},[7261,7265,7269,7273,7277,7282],{"type":993,"tag":1026,"props":7262,"children":7263},{"style":1069},[7264],{"type":998,"value":1214},{"type":993,"tag":1026,"props":7266,"children":7267},{"style":1041},[7268],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7270,"children":7271},{"style":1058},[7272],{"type":998,"value":1259},{"type":993,"tag":1026,"props":7274,"children":7275},{"style":1069},[7276],{"type":998,"value":6988},{"type":993,"tag":1026,"props":7278,"children":7279},{"style":1058},[7280],{"type":998,"value":7281},"Colors numbered from 1:\"",{"type":993,"tag":1026,"props":7283,"children":7284},{"style":1041},[7285],{"type":998,"value":1095},{"type":993,"tag":1026,"props":7287,"children":7288},{"class":1028,"line":100},[7289,7293,7298,7302,7306,7311,7315],{"type":993,"tag":1026,"props":7290,"children":7291},{"style":1047},[7292],{"type":998,"value":6906},{"type":993,"tag":1026,"props":7294,"children":7295},{"style":1041},[7296],{"type":998,"value":7297}," number, color ",{"type":993,"tag":1026,"props":7299,"children":7300},{"style":1047},[7301],{"type":998,"value":3868},{"type":993,"tag":1026,"props":7303,"children":7304},{"style":1069},[7305],{"type":998,"value":7178},{"type":993,"tag":1026,"props":7307,"children":7308},{"style":1041},[7309],{"type":998,"value":7310},"(colors, ",{"type":993,"tag":1026,"props":7312,"children":7313},{"style":1069},[7314],{"type":998,"value":1414},{"type":993,"tag":1026,"props":7316,"children":7317},{"style":1041},[7318],{"type":998,"value":6299},{"type":993,"tag":1026,"props":7320,"children":7321},{"class":1028,"line":109},[7322,7326,7330,7334,7339,7343,7348,7352,7356,7360,7364,7368,7372],{"type":993,"tag":1026,"props":7323,"children":7324},{"style":1069},[7325],{"type":998,"value":2390},{"type":993,"tag":1026,"props":7327,"children":7328},{"style":1041},[7329],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7331,"children":7332},{"style":1047},[7333],{"type":998,"value":1224},{"type":993,"tag":1026,"props":7335,"children":7336},{"style":1058},[7337],{"type":998,"value":7338},"\"Color ",{"type":993,"tag":1026,"props":7340,"children":7341},{"style":1069},[7342],{"type":998,"value":1234},{"type":993,"tag":1026,"props":7344,"children":7345},{"style":1041},[7346],{"type":998,"value":7347},"number",{"type":993,"tag":1026,"props":7349,"children":7350},{"style":1069},[7351],{"type":998,"value":1254},{"type":993,"tag":1026,"props":7353,"children":7354},{"style":1058},[7355],{"type":998,"value":7221},{"type":993,"tag":1026,"props":7357,"children":7358},{"style":1069},[7359],{"type":998,"value":1234},{"type":993,"tag":1026,"props":7361,"children":7362},{"style":1041},[7363],{"type":998,"value":7230},{"type":993,"tag":1026,"props":7365,"children":7366},{"style":1069},[7367],{"type":998,"value":1254},{"type":993,"tag":1026,"props":7369,"children":7370},{"style":1058},[7371],{"type":998,"value":1259},{"type":993,"tag":1026,"props":7373,"children":7374},{"style":1041},[7375],{"type":998,"value":1095},{"type":993,"tag":1612,"props":7377,"children":7379},{"id":7378},"conditional-iteration",[7380],{"type":998,"value":7381},"Conditional Iteration",{"type":993,"tag":1012,"props":7383,"children":7384},{},[7385],{"type":993,"tag":1016,"props":7386,"children":7388},{"className":1018,"code":7387,"language":6,"meta":8,"style":8},"# Conditional iteration\nmixed_data = (1, \"hello\", 3.14, True, \"world\", 42)\n\nprint(\"Numbers only:\")\nfor item in mixed_data:\n    if isinstance(item, (int, float)) and not isinstance(item, bool):\n        print(f\"Number: {item}\")\n\nprint(\"\\nStrings only:\")\nfor item in mixed_data:\n    if isinstance(item, str):\n        print(f\"String: {item}\")\n",[7389],{"type":993,"tag":1022,"props":7390,"children":7391},{"__ignoreMap":8},[7392,7400,7468,7475,7495,7516,7580,7622,7629,7657,7676,7700],{"type":993,"tag":1026,"props":7393,"children":7394},{"class":1028,"line":12},[7395],{"type":993,"tag":1026,"props":7396,"children":7397},{"style":1032},[7398],{"type":998,"value":7399},"# Conditional iteration\n",{"type":993,"tag":1026,"props":7401,"children":7402},{"class":1028,"line":27},[7403,7408,7412,7416,7420,7424,7429,7433,7438,7442,7446,7450,7455,7459,7464],{"type":993,"tag":1026,"props":7404,"children":7405},{"style":1041},[7406],{"type":998,"value":7407},"mixed_data ",{"type":993,"tag":1026,"props":7409,"children":7410},{"style":1047},[7411],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7413,"children":7414},{"style":1041},[7415],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7417,"children":7418},{"style":1069},[7419],{"type":998,"value":1414},{"type":993,"tag":1026,"props":7421,"children":7422},{"style":1041},[7423],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7425,"children":7426},{"style":1058},[7427],{"type":998,"value":7428},"\"hello\"",{"type":993,"tag":1026,"props":7430,"children":7431},{"style":1041},[7432],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7434,"children":7435},{"style":1069},[7436],{"type":998,"value":7437},"3.14",{"type":993,"tag":1026,"props":7439,"children":7440},{"style":1041},[7441],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7443,"children":7444},{"style":1069},[7445],{"type":998,"value":1691},{"type":993,"tag":1026,"props":7447,"children":7448},{"style":1041},[7449],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7451,"children":7452},{"style":1058},[7453],{"type":998,"value":7454},"\"world\"",{"type":993,"tag":1026,"props":7456,"children":7457},{"style":1041},[7458],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7460,"children":7461},{"style":1069},[7462],{"type":998,"value":7463},"42",{"type":993,"tag":1026,"props":7465,"children":7466},{"style":1041},[7467],{"type":998,"value":1095},{"type":993,"tag":1026,"props":7469,"children":7470},{"class":1028,"line":36},[7471],{"type":993,"tag":1026,"props":7472,"children":7473},{"emptyLinePlaceholder":13},[7474],{"type":998,"value":1198},{"type":993,"tag":1026,"props":7476,"children":7477},{"class":1028,"line":45},[7478,7482,7486,7491],{"type":993,"tag":1026,"props":7479,"children":7480},{"style":1069},[7481],{"type":998,"value":1214},{"type":993,"tag":1026,"props":7483,"children":7484},{"style":1041},[7485],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7487,"children":7488},{"style":1058},[7489],{"type":998,"value":7490},"\"Numbers only:\"",{"type":993,"tag":1026,"props":7492,"children":7493},{"style":1041},[7494],{"type":998,"value":1095},{"type":993,"tag":1026,"props":7496,"children":7497},{"class":1028,"line":54},[7498,7502,7507,7511],{"type":993,"tag":1026,"props":7499,"children":7500},{"style":1047},[7501],{"type":998,"value":6906},{"type":993,"tag":1026,"props":7503,"children":7504},{"style":1041},[7505],{"type":998,"value":7506}," item ",{"type":993,"tag":1026,"props":7508,"children":7509},{"style":1047},[7510],{"type":998,"value":3868},{"type":993,"tag":1026,"props":7512,"children":7513},{"style":1041},[7514],{"type":998,"value":7515}," mixed_data:\n",{"type":993,"tag":1026,"props":7517,"children":7518},{"class":1028,"line":63},[7519,7524,7529,7534,7539,7543,7548,7553,7558,7562,7566,7571,7576],{"type":993,"tag":1026,"props":7520,"children":7521},{"style":1047},[7522],{"type":998,"value":7523},"    if",{"type":993,"tag":1026,"props":7525,"children":7526},{"style":1069},[7527],{"type":998,"value":7528}," isinstance",{"type":993,"tag":1026,"props":7530,"children":7531},{"style":1041},[7532],{"type":998,"value":7533},"(item, (",{"type":993,"tag":1026,"props":7535,"children":7536},{"style":1069},[7537],{"type":998,"value":7538},"int",{"type":993,"tag":1026,"props":7540,"children":7541},{"style":1041},[7542],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7544,"children":7545},{"style":1069},[7546],{"type":998,"value":7547},"float",{"type":993,"tag":1026,"props":7549,"children":7550},{"style":1041},[7551],{"type":998,"value":7552},")) ",{"type":993,"tag":1026,"props":7554,"children":7555},{"style":1047},[7556],{"type":998,"value":7557},"and",{"type":993,"tag":1026,"props":7559,"children":7560},{"style":1047},[7561],{"type":998,"value":4270},{"type":993,"tag":1026,"props":7563,"children":7564},{"style":1069},[7565],{"type":998,"value":7528},{"type":993,"tag":1026,"props":7567,"children":7568},{"style":1041},[7569],{"type":998,"value":7570},"(item, ",{"type":993,"tag":1026,"props":7572,"children":7573},{"style":1069},[7574],{"type":998,"value":7575},"bool",{"type":993,"tag":1026,"props":7577,"children":7578},{"style":1041},[7579],{"type":998,"value":6299},{"type":993,"tag":1026,"props":7581,"children":7582},{"class":1028,"line":72},[7583,7588,7592,7596,7601,7605,7610,7614,7618],{"type":993,"tag":1026,"props":7584,"children":7585},{"style":1069},[7586],{"type":998,"value":7587},"        print",{"type":993,"tag":1026,"props":7589,"children":7590},{"style":1041},[7591],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7593,"children":7594},{"style":1047},[7595],{"type":998,"value":1224},{"type":993,"tag":1026,"props":7597,"children":7598},{"style":1058},[7599],{"type":998,"value":7600},"\"Number: ",{"type":993,"tag":1026,"props":7602,"children":7603},{"style":1069},[7604],{"type":998,"value":1234},{"type":993,"tag":1026,"props":7606,"children":7607},{"style":1041},[7608],{"type":998,"value":7609},"item",{"type":993,"tag":1026,"props":7611,"children":7612},{"style":1069},[7613],{"type":998,"value":1254},{"type":993,"tag":1026,"props":7615,"children":7616},{"style":1058},[7617],{"type":998,"value":1259},{"type":993,"tag":1026,"props":7619,"children":7620},{"style":1041},[7621],{"type":998,"value":1095},{"type":993,"tag":1026,"props":7623,"children":7624},{"class":1028,"line":81},[7625],{"type":993,"tag":1026,"props":7626,"children":7627},{"emptyLinePlaceholder":13},[7628],{"type":998,"value":1198},{"type":993,"tag":1026,"props":7630,"children":7631},{"class":1028,"line":91},[7632,7636,7640,7644,7648,7653],{"type":993,"tag":1026,"props":7633,"children":7634},{"style":1069},[7635],{"type":998,"value":1214},{"type":993,"tag":1026,"props":7637,"children":7638},{"style":1041},[7639],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7641,"children":7642},{"style":1058},[7643],{"type":998,"value":1259},{"type":993,"tag":1026,"props":7645,"children":7646},{"style":1069},[7647],{"type":998,"value":6988},{"type":993,"tag":1026,"props":7649,"children":7650},{"style":1058},[7651],{"type":998,"value":7652},"Strings only:\"",{"type":993,"tag":1026,"props":7654,"children":7655},{"style":1041},[7656],{"type":998,"value":1095},{"type":993,"tag":1026,"props":7658,"children":7659},{"class":1028,"line":100},[7660,7664,7668,7672],{"type":993,"tag":1026,"props":7661,"children":7662},{"style":1047},[7663],{"type":998,"value":6906},{"type":993,"tag":1026,"props":7665,"children":7666},{"style":1041},[7667],{"type":998,"value":7506},{"type":993,"tag":1026,"props":7669,"children":7670},{"style":1047},[7671],{"type":998,"value":3868},{"type":993,"tag":1026,"props":7673,"children":7674},{"style":1041},[7675],{"type":998,"value":7515},{"type":993,"tag":1026,"props":7677,"children":7678},{"class":1028,"line":109},[7679,7683,7687,7691,7696],{"type":993,"tag":1026,"props":7680,"children":7681},{"style":1047},[7682],{"type":998,"value":7523},{"type":993,"tag":1026,"props":7684,"children":7685},{"style":1069},[7686],{"type":998,"value":7528},{"type":993,"tag":1026,"props":7688,"children":7689},{"style":1041},[7690],{"type":998,"value":7570},{"type":993,"tag":1026,"props":7692,"children":7693},{"style":1069},[7694],{"type":998,"value":7695},"str",{"type":993,"tag":1026,"props":7697,"children":7698},{"style":1041},[7699],{"type":998,"value":6299},{"type":993,"tag":1026,"props":7701,"children":7702},{"class":1028,"line":118},[7703,7707,7711,7715,7720,7724,7728,7732,7736],{"type":993,"tag":1026,"props":7704,"children":7705},{"style":1069},[7706],{"type":998,"value":7587},{"type":993,"tag":1026,"props":7708,"children":7709},{"style":1041},[7710],{"type":998,"value":1219},{"type":993,"tag":1026,"props":7712,"children":7713},{"style":1047},[7714],{"type":998,"value":1224},{"type":993,"tag":1026,"props":7716,"children":7717},{"style":1058},[7718],{"type":998,"value":7719},"\"String: ",{"type":993,"tag":1026,"props":7721,"children":7722},{"style":1069},[7723],{"type":998,"value":1234},{"type":993,"tag":1026,"props":7725,"children":7726},{"style":1041},[7727],{"type":998,"value":7609},{"type":993,"tag":1026,"props":7729,"children":7730},{"style":1069},[7731],{"type":998,"value":1254},{"type":993,"tag":1026,"props":7733,"children":7734},{"style":1058},[7735],{"type":998,"value":1259},{"type":993,"tag":1026,"props":7737,"children":7738},{"style":1041},[7739],{"type":998,"value":1095},{"type":993,"tag":1484,"props":7741,"children":7743},{"id":7742},"tuple-reading-reference",[7744],{"type":998,"value":7745},"📋 Tuple Reading Reference",{"type":993,"tag":1001,"props":7747,"children":7748},{},[7749],{"type":998,"value":7750},"Common tuple reading operations and their use cases:",{"type":993,"tag":7752,"props":7753,"children":7754},"table",{},[7755,7784],{"type":993,"tag":7756,"props":7757,"children":7758},"thead",{},[7759],{"type":993,"tag":7760,"props":7761,"children":7762},"tr",{},[7763,7769,7774,7779],{"type":993,"tag":7764,"props":7765,"children":7766},"th",{},[7767],{"type":998,"value":7768},"Operation",{"type":993,"tag":7764,"props":7770,"children":7771},{},[7772],{"type":998,"value":7773},"Syntax",{"type":993,"tag":7764,"props":7775,"children":7776},{},[7777],{"type":998,"value":7778},"Purpose",{"type":993,"tag":7764,"props":7780,"children":7781},{},[7782],{"type":998,"value":7783},"Example",{"type":993,"tag":7785,"props":7786,"children":7787},"tbody",{},[7788,7823,7857,7890,7924,7958,7992],{"type":993,"tag":7760,"props":7789,"children":7790},{},[7791,7800,7809,7814],{"type":993,"tag":7792,"props":7793,"children":7794},"td",{},[7795],{"type":993,"tag":1506,"props":7796,"children":7797},{},[7798],{"type":998,"value":7799},"Index Access",{"type":993,"tag":7792,"props":7801,"children":7802},{},[7803],{"type":993,"tag":1022,"props":7804,"children":7806},{"className":7805},[],[7807],{"type":998,"value":7808},"tuple[i]",{"type":993,"tag":7792,"props":7810,"children":7811},{},[7812],{"type":998,"value":7813},"Get single element",{"type":993,"tag":7792,"props":7815,"children":7816},{},[7817],{"type":993,"tag":1022,"props":7818,"children":7820},{"className":7819},[],[7821],{"type":998,"value":7822},"point[0]",{"type":993,"tag":7760,"props":7824,"children":7825},{},[7826,7834,7843,7848],{"type":993,"tag":7792,"props":7827,"children":7828},{},[7829],{"type":993,"tag":1506,"props":7830,"children":7831},{},[7832],{"type":998,"value":7833},"Negative Index",{"type":993,"tag":7792,"props":7835,"children":7836},{},[7837],{"type":993,"tag":1022,"props":7838,"children":7840},{"className":7839},[],[7841],{"type":998,"value":7842},"tuple[-i]",{"type":993,"tag":7792,"props":7844,"children":7845},{},[7846],{"type":998,"value":7847},"Access from end",{"type":993,"tag":7792,"props":7849,"children":7850},{},[7851],{"type":993,"tag":1022,"props":7852,"children":7854},{"className":7853},[],[7855],{"type":998,"value":7856},"data[-1]",{"type":993,"tag":7760,"props":7858,"children":7859},{},[7860,7868,7876,7881],{"type":993,"tag":7792,"props":7861,"children":7862},{},[7863],{"type":993,"tag":1506,"props":7864,"children":7865},{},[7866],{"type":998,"value":7867},"Slicing",{"type":993,"tag":7792,"props":7869,"children":7870},{},[7871],{"type":993,"tag":1022,"props":7872,"children":7874},{"className":7873},[],[7875],{"type":998,"value":2621},{"type":993,"tag":7792,"props":7877,"children":7878},{},[7879],{"type":998,"value":7880},"Get subsequence",{"type":993,"tag":7792,"props":7882,"children":7883},{},[7884],{"type":993,"tag":1022,"props":7885,"children":7887},{"className":7886},[],[7888],{"type":998,"value":7889},"colors[1:3]",{"type":993,"tag":7760,"props":7891,"children":7892},{},[7893,7901,7910,7915],{"type":993,"tag":7792,"props":7894,"children":7895},{},[7896],{"type":993,"tag":1506,"props":7897,"children":7898},{},[7899],{"type":998,"value":7900},"Membership",{"type":993,"tag":7792,"props":7902,"children":7903},{},[7904],{"type":993,"tag":1022,"props":7905,"children":7907},{"className":7906},[],[7908],{"type":998,"value":7909},"item in tuple",{"type":993,"tag":7792,"props":7911,"children":7912},{},[7913],{"type":998,"value":7914},"Check existence",{"type":993,"tag":7792,"props":7916,"children":7917},{},[7918],{"type":993,"tag":1022,"props":7919,"children":7921},{"className":7920},[],[7922],{"type":998,"value":7923},"'red' in colors",{"type":993,"tag":7760,"props":7925,"children":7926},{},[7927,7935,7944,7949],{"type":993,"tag":7792,"props":7928,"children":7929},{},[7930],{"type":993,"tag":1506,"props":7931,"children":7932},{},[7933],{"type":998,"value":7934},"Find Position",{"type":993,"tag":7792,"props":7936,"children":7937},{},[7938],{"type":993,"tag":1022,"props":7939,"children":7941},{"className":7940},[],[7942],{"type":998,"value":7943},"tuple.index(item)",{"type":993,"tag":7792,"props":7945,"children":7946},{},[7947],{"type":998,"value":7948},"Get first index",{"type":993,"tag":7792,"props":7950,"children":7951},{},[7952],{"type":993,"tag":1022,"props":7953,"children":7955},{"className":7954},[],[7956],{"type":998,"value":7957},"names.index('Alice')",{"type":993,"tag":7760,"props":7959,"children":7960},{},[7961,7969,7978,7983],{"type":993,"tag":7792,"props":7962,"children":7963},{},[7964],{"type":993,"tag":1506,"props":7965,"children":7966},{},[7967],{"type":998,"value":7968},"Count Items",{"type":993,"tag":7792,"props":7970,"children":7971},{},[7972],{"type":993,"tag":1022,"props":7973,"children":7975},{"className":7974},[],[7976],{"type":998,"value":7977},"tuple.count(item)",{"type":993,"tag":7792,"props":7979,"children":7980},{},[7981],{"type":998,"value":7982},"Count occurrences",{"type":993,"tag":7792,"props":7984,"children":7985},{},[7986],{"type":993,"tag":1022,"props":7987,"children":7989},{"className":7988},[],[7990],{"type":998,"value":7991},"grades.count('A')",{"type":993,"tag":7760,"props":7993,"children":7994},{},[7995,8003,8012,8017],{"type":993,"tag":7792,"props":7996,"children":7997},{},[7998],{"type":993,"tag":1506,"props":7999,"children":8000},{},[8001],{"type":998,"value":8002},"Length",{"type":993,"tag":7792,"props":8004,"children":8005},{},[8006],{"type":993,"tag":1022,"props":8007,"children":8009},{"className":8008},[],[8010],{"type":998,"value":8011},"len(tuple)",{"type":993,"tag":7792,"props":8013,"children":8014},{},[8015],{"type":998,"value":8016},"Get size",{"type":993,"tag":7792,"props":8018,"children":8019},{},[8020],{"type":993,"tag":1022,"props":8021,"children":8023},{"className":8022},[],[8024],{"type":998,"value":8025},"len(coordinates)",{"type":993,"tag":1001,"props":8027,"children":8028},{},[8029],{"type":998,"value":8030},"Choose the appropriate reading method based on your specific data access needs.",{"type":993,"tag":1001,"props":8032,"children":8033},{},[8034,8036,8042,8044,8049],{"type":998,"value":8035},"Learn more about ",{"type":993,"tag":8037,"props":8038,"children":8039},"a",{"href":243},[8040],{"type":998,"value":8041},"for loops",{"type":998,"value":8043}," and ",{"type":993,"tag":8037,"props":8045,"children":8046},{"href":398},[8047],{"type":998,"value":8048},"changing tuples",{"type":998,"value":8050}," to work more effectively with tuple data.",{"type":993,"tag":8052,"props":8053,"children":8056},"exercise",{"hint":8054,"prompt":8055},"Use iteration to go through each record, then use indexing to access the grade field and check if it equals 'A'","Given a tuple of student records where each record is (name, age, grade), write code to find all students with grade 'A' and print their names and ages.",[8057],{"type":993,"tag":1016,"props":8058,"children":8060},{"className":1018,"code":8059,"language":6,"meta":8,"style":8},"students = (\n    (\"Alice\", 20, \"A\"),\n    (\"Bob\", 19, \"B\"),\n    (\"Carol\", 21, \"A\"),\n    (\"David\", 20, \"C\"),\n    (\"Eve\", 22, \"A\")\n)\n\n# TODO: Write your code here to find A-grade students\n",[8061],{"type":993,"tag":1022,"props":8062,"children":8063},{"__ignoreMap":8},[8064,8081,8114,8147,8180,8212,8245,8252,8259],{"type":993,"tag":1026,"props":8065,"children":8066},{"class":1028,"line":12},[8067,8072,8076],{"type":993,"tag":1026,"props":8068,"children":8069},{"style":1041},[8070],{"type":998,"value":8071},"students ",{"type":993,"tag":1026,"props":8073,"children":8074},{"style":1047},[8075],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8077,"children":8078},{"style":1041},[8079],{"type":998,"value":8080}," (\n",{"type":993,"tag":1026,"props":8082,"children":8083},{"class":1028,"line":27},[8084,8089,8093,8097,8101,8105,8109],{"type":993,"tag":1026,"props":8085,"children":8086},{"style":1041},[8087],{"type":998,"value":8088},"    (",{"type":993,"tag":1026,"props":8090,"children":8091},{"style":1058},[8092],{"type":998,"value":1061},{"type":993,"tag":1026,"props":8094,"children":8095},{"style":1041},[8096],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8098,"children":8099},{"style":1069},[8100],{"type":998,"value":1072},{"type":993,"tag":1026,"props":8102,"children":8103},{"style":1041},[8104],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8106,"children":8107},{"style":1058},[8108],{"type":998,"value":4798},{"type":993,"tag":1026,"props":8110,"children":8111},{"style":1041},[8112],{"type":998,"value":8113},"),\n",{"type":993,"tag":1026,"props":8115,"children":8116},{"class":1028,"line":36},[8117,8121,8126,8130,8135,8139,8143],{"type":993,"tag":1026,"props":8118,"children":8119},{"style":1041},[8120],{"type":998,"value":8088},{"type":993,"tag":1026,"props":8122,"children":8123},{"style":1058},[8124],{"type":998,"value":8125},"\"Bob\"",{"type":993,"tag":1026,"props":8127,"children":8128},{"style":1041},[8129],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8131,"children":8132},{"style":1069},[8133],{"type":998,"value":8134},"19",{"type":993,"tag":1026,"props":8136,"children":8137},{"style":1041},[8138],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8140,"children":8141},{"style":1058},[8142],{"type":998,"value":4807},{"type":993,"tag":1026,"props":8144,"children":8145},{"style":1041},[8146],{"type":998,"value":8113},{"type":993,"tag":1026,"props":8148,"children":8149},{"class":1028,"line":45},[8150,8154,8159,8163,8168,8172,8176],{"type":993,"tag":1026,"props":8151,"children":8152},{"style":1041},[8153],{"type":998,"value":8088},{"type":993,"tag":1026,"props":8155,"children":8156},{"style":1058},[8157],{"type":998,"value":8158},"\"Carol\"",{"type":993,"tag":1026,"props":8160,"children":8161},{"style":1041},[8162],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8164,"children":8165},{"style":1069},[8166],{"type":998,"value":8167},"21",{"type":993,"tag":1026,"props":8169,"children":8170},{"style":1041},[8171],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8173,"children":8174},{"style":1058},[8175],{"type":998,"value":4798},{"type":993,"tag":1026,"props":8177,"children":8178},{"style":1041},[8179],{"type":998,"value":8113},{"type":993,"tag":1026,"props":8181,"children":8182},{"class":1028,"line":54},[8183,8187,8192,8196,8200,8204,8208],{"type":993,"tag":1026,"props":8184,"children":8185},{"style":1041},[8186],{"type":998,"value":8088},{"type":993,"tag":1026,"props":8188,"children":8189},{"style":1058},[8190],{"type":998,"value":8191},"\"David\"",{"type":993,"tag":1026,"props":8193,"children":8194},{"style":1041},[8195],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8197,"children":8198},{"style":1069},[8199],{"type":998,"value":1072},{"type":993,"tag":1026,"props":8201,"children":8202},{"style":1041},[8203],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8205,"children":8206},{"style":1058},[8207],{"type":998,"value":4824},{"type":993,"tag":1026,"props":8209,"children":8210},{"style":1041},[8211],{"type":998,"value":8113},{"type":993,"tag":1026,"props":8213,"children":8214},{"class":1028,"line":63},[8215,8219,8224,8228,8233,8237,8241],{"type":993,"tag":1026,"props":8216,"children":8217},{"style":1041},[8218],{"type":998,"value":8088},{"type":993,"tag":1026,"props":8220,"children":8221},{"style":1058},[8222],{"type":998,"value":8223},"\"Eve\"",{"type":993,"tag":1026,"props":8225,"children":8226},{"style":1041},[8227],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8229,"children":8230},{"style":1069},[8231],{"type":998,"value":8232},"22",{"type":993,"tag":1026,"props":8234,"children":8235},{"style":1041},[8236],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8238,"children":8239},{"style":1058},[8240],{"type":998,"value":4798},{"type":993,"tag":1026,"props":8242,"children":8243},{"style":1041},[8244],{"type":998,"value":1095},{"type":993,"tag":1026,"props":8246,"children":8247},{"class":1028,"line":72},[8248],{"type":993,"tag":1026,"props":8249,"children":8250},{"style":1041},[8251],{"type":998,"value":1095},{"type":993,"tag":1026,"props":8253,"children":8254},{"class":1028,"line":81},[8255],{"type":993,"tag":1026,"props":8256,"children":8257},{"emptyLinePlaceholder":13},[8258],{"type":998,"value":1198},{"type":993,"tag":1026,"props":8260,"children":8261},{"class":1028,"line":91},[8262,8267,8272],{"type":993,"tag":1026,"props":8263,"children":8264},{"style":1032},[8265],{"type":998,"value":8266},"# ",{"type":993,"tag":1026,"props":8268,"children":8269},{"style":1047},[8270],{"type":998,"value":8271},"TODO",{"type":993,"tag":1026,"props":8273,"children":8274},{"style":1032},[8275],{"type":998,"value":8276},": Write your code here to find A-grade students\n",{"type":993,"tag":1612,"props":8278,"children":8280},{"id":8279},"solution-and-explanation",[8281],{"type":998,"value":8282},"Solution and Explanation 💡",{"type":993,"tag":8284,"props":8285,"children":8286},"details",{},[8287,8295,8702,8710],{"type":993,"tag":8288,"props":8289,"children":8292},"summary",{"className":8290},[8291],"cursor-pointer",[8293],{"type":998,"value":8294},"Click to see the complete solution",{"type":993,"tag":1012,"props":8296,"children":8297},{},[8298],{"type":993,"tag":1016,"props":8299,"children":8301},{"className":1018,"code":8300,"language":6,"meta":8,"style":8},"students = (\n    (\"Alice\", 20, \"A\"),\n    (\"Bob\", 19, \"B\"),\n    (\"Carol\", 21, \"A\"),\n    (\"David\", 20, \"C\"),\n    (\"Eve\", 22, \"A\")\n)\n\n# Find all students with grade 'A'\nprint(\"Students with grade 'A':\")\nfor student in students:\n    name = student[0]\n    age = student[1]\n    grade = student[2]\n    \n    if grade == \"A\":\n        print(f\"{name}, age {age}\")\n",[8302],{"type":993,"tag":1022,"props":8303,"children":8304},{"__ignoreMap":8},[8305,8320,8351,8382,8413,8444,8475,8482,8489,8497,8517,8538,8563,8587,8611,8619,8644],{"type":993,"tag":1026,"props":8306,"children":8307},{"class":1028,"line":12},[8308,8312,8316],{"type":993,"tag":1026,"props":8309,"children":8310},{"style":1041},[8311],{"type":998,"value":8071},{"type":993,"tag":1026,"props":8313,"children":8314},{"style":1047},[8315],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8317,"children":8318},{"style":1041},[8319],{"type":998,"value":8080},{"type":993,"tag":1026,"props":8321,"children":8322},{"class":1028,"line":27},[8323,8327,8331,8335,8339,8343,8347],{"type":993,"tag":1026,"props":8324,"children":8325},{"style":1041},[8326],{"type":998,"value":8088},{"type":993,"tag":1026,"props":8328,"children":8329},{"style":1058},[8330],{"type":998,"value":1061},{"type":993,"tag":1026,"props":8332,"children":8333},{"style":1041},[8334],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8336,"children":8337},{"style":1069},[8338],{"type":998,"value":1072},{"type":993,"tag":1026,"props":8340,"children":8341},{"style":1041},[8342],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8344,"children":8345},{"style":1058},[8346],{"type":998,"value":4798},{"type":993,"tag":1026,"props":8348,"children":8349},{"style":1041},[8350],{"type":998,"value":8113},{"type":993,"tag":1026,"props":8352,"children":8353},{"class":1028,"line":36},[8354,8358,8362,8366,8370,8374,8378],{"type":993,"tag":1026,"props":8355,"children":8356},{"style":1041},[8357],{"type":998,"value":8088},{"type":993,"tag":1026,"props":8359,"children":8360},{"style":1058},[8361],{"type":998,"value":8125},{"type":993,"tag":1026,"props":8363,"children":8364},{"style":1041},[8365],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8367,"children":8368},{"style":1069},[8369],{"type":998,"value":8134},{"type":993,"tag":1026,"props":8371,"children":8372},{"style":1041},[8373],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8375,"children":8376},{"style":1058},[8377],{"type":998,"value":4807},{"type":993,"tag":1026,"props":8379,"children":8380},{"style":1041},[8381],{"type":998,"value":8113},{"type":993,"tag":1026,"props":8383,"children":8384},{"class":1028,"line":45},[8385,8389,8393,8397,8401,8405,8409],{"type":993,"tag":1026,"props":8386,"children":8387},{"style":1041},[8388],{"type":998,"value":8088},{"type":993,"tag":1026,"props":8390,"children":8391},{"style":1058},[8392],{"type":998,"value":8158},{"type":993,"tag":1026,"props":8394,"children":8395},{"style":1041},[8396],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8398,"children":8399},{"style":1069},[8400],{"type":998,"value":8167},{"type":993,"tag":1026,"props":8402,"children":8403},{"style":1041},[8404],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8406,"children":8407},{"style":1058},[8408],{"type":998,"value":4798},{"type":993,"tag":1026,"props":8410,"children":8411},{"style":1041},[8412],{"type":998,"value":8113},{"type":993,"tag":1026,"props":8414,"children":8415},{"class":1028,"line":54},[8416,8420,8424,8428,8432,8436,8440],{"type":993,"tag":1026,"props":8417,"children":8418},{"style":1041},[8419],{"type":998,"value":8088},{"type":993,"tag":1026,"props":8421,"children":8422},{"style":1058},[8423],{"type":998,"value":8191},{"type":993,"tag":1026,"props":8425,"children":8426},{"style":1041},[8427],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8429,"children":8430},{"style":1069},[8431],{"type":998,"value":1072},{"type":993,"tag":1026,"props":8433,"children":8434},{"style":1041},[8435],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8437,"children":8438},{"style":1058},[8439],{"type":998,"value":4824},{"type":993,"tag":1026,"props":8441,"children":8442},{"style":1041},[8443],{"type":998,"value":8113},{"type":993,"tag":1026,"props":8445,"children":8446},{"class":1028,"line":63},[8447,8451,8455,8459,8463,8467,8471],{"type":993,"tag":1026,"props":8448,"children":8449},{"style":1041},[8450],{"type":998,"value":8088},{"type":993,"tag":1026,"props":8452,"children":8453},{"style":1058},[8454],{"type":998,"value":8223},{"type":993,"tag":1026,"props":8456,"children":8457},{"style":1041},[8458],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8460,"children":8461},{"style":1069},[8462],{"type":998,"value":8232},{"type":993,"tag":1026,"props":8464,"children":8465},{"style":1041},[8466],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8468,"children":8469},{"style":1058},[8470],{"type":998,"value":4798},{"type":993,"tag":1026,"props":8472,"children":8473},{"style":1041},[8474],{"type":998,"value":1095},{"type":993,"tag":1026,"props":8476,"children":8477},{"class":1028,"line":72},[8478],{"type":993,"tag":1026,"props":8479,"children":8480},{"style":1041},[8481],{"type":998,"value":1095},{"type":993,"tag":1026,"props":8483,"children":8484},{"class":1028,"line":81},[8485],{"type":993,"tag":1026,"props":8486,"children":8487},{"emptyLinePlaceholder":13},[8488],{"type":998,"value":1198},{"type":993,"tag":1026,"props":8490,"children":8491},{"class":1028,"line":91},[8492],{"type":993,"tag":1026,"props":8493,"children":8494},{"style":1032},[8495],{"type":998,"value":8496},"# Find all students with grade 'A'\n",{"type":993,"tag":1026,"props":8498,"children":8499},{"class":1028,"line":100},[8500,8504,8508,8513],{"type":993,"tag":1026,"props":8501,"children":8502},{"style":1069},[8503],{"type":998,"value":1214},{"type":993,"tag":1026,"props":8505,"children":8506},{"style":1041},[8507],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8509,"children":8510},{"style":1058},[8511],{"type":998,"value":8512},"\"Students with grade 'A':\"",{"type":993,"tag":1026,"props":8514,"children":8515},{"style":1041},[8516],{"type":998,"value":1095},{"type":993,"tag":1026,"props":8518,"children":8519},{"class":1028,"line":109},[8520,8524,8529,8533],{"type":993,"tag":1026,"props":8521,"children":8522},{"style":1047},[8523],{"type":998,"value":6906},{"type":993,"tag":1026,"props":8525,"children":8526},{"style":1041},[8527],{"type":998,"value":8528}," student ",{"type":993,"tag":1026,"props":8530,"children":8531},{"style":1047},[8532],{"type":998,"value":3868},{"type":993,"tag":1026,"props":8534,"children":8535},{"style":1041},[8536],{"type":998,"value":8537}," students:\n",{"type":993,"tag":1026,"props":8539,"children":8540},{"class":1028,"line":118},[8541,8546,8550,8555,8559],{"type":993,"tag":1026,"props":8542,"children":8543},{"style":1041},[8544],{"type":998,"value":8545},"    name ",{"type":993,"tag":1026,"props":8547,"children":8548},{"style":1047},[8549],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8551,"children":8552},{"style":1041},[8553],{"type":998,"value":8554}," student[",{"type":993,"tag":1026,"props":8556,"children":8557},{"style":1069},[8558],{"type":998,"value":1244},{"type":993,"tag":1026,"props":8560,"children":8561},{"style":1041},[8562],{"type":998,"value":2882},{"type":993,"tag":1026,"props":8564,"children":8565},{"class":1028,"line":127},[8566,8571,8575,8579,8583],{"type":993,"tag":1026,"props":8567,"children":8568},{"style":1041},[8569],{"type":998,"value":8570},"    age ",{"type":993,"tag":1026,"props":8572,"children":8573},{"style":1047},[8574],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8576,"children":8577},{"style":1041},[8578],{"type":998,"value":8554},{"type":993,"tag":1026,"props":8580,"children":8581},{"style":1069},[8582],{"type":998,"value":1414},{"type":993,"tag":1026,"props":8584,"children":8585},{"style":1041},[8586],{"type":998,"value":2882},{"type":993,"tag":1026,"props":8588,"children":8589},{"class":1028,"line":136},[8590,8595,8599,8603,8607],{"type":993,"tag":1026,"props":8591,"children":8592},{"style":1041},[8593],{"type":998,"value":8594},"    grade ",{"type":993,"tag":1026,"props":8596,"children":8597},{"style":1047},[8598],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8600,"children":8601},{"style":1041},[8602],{"type":998,"value":8554},{"type":993,"tag":1026,"props":8604,"children":8605},{"style":1069},[8606],{"type":998,"value":1832},{"type":993,"tag":1026,"props":8608,"children":8609},{"style":1041},[8610],{"type":998,"value":2882},{"type":993,"tag":1026,"props":8612,"children":8613},{"class":1028,"line":146},[8614],{"type":993,"tag":1026,"props":8615,"children":8616},{"style":1041},[8617],{"type":998,"value":8618},"    \n",{"type":993,"tag":1026,"props":8620,"children":8621},{"class":1028,"line":155},[8622,8626,8630,8635,8640],{"type":993,"tag":1026,"props":8623,"children":8624},{"style":1047},[8625],{"type":998,"value":7523},{"type":993,"tag":1026,"props":8627,"children":8628},{"style":1041},[8629],{"type":998,"value":6911},{"type":993,"tag":1026,"props":8631,"children":8632},{"style":1047},[8633],{"type":998,"value":8634},"==",{"type":993,"tag":1026,"props":8636,"children":8637},{"style":1058},[8638],{"type":998,"value":8639}," \"A\"",{"type":993,"tag":1026,"props":8641,"children":8642},{"style":1041},[8643],{"type":998,"value":2382},{"type":993,"tag":1026,"props":8645,"children":8646},{"class":1028,"line":164},[8647,8651,8655,8659,8663,8667,8672,8676,8681,8685,8690,8694,8698],{"type":993,"tag":1026,"props":8648,"children":8649},{"style":1069},[8650],{"type":998,"value":7587},{"type":993,"tag":1026,"props":8652,"children":8653},{"style":1041},[8654],{"type":998,"value":1219},{"type":993,"tag":1026,"props":8656,"children":8657},{"style":1047},[8658],{"type":998,"value":1224},{"type":993,"tag":1026,"props":8660,"children":8661},{"style":1058},[8662],{"type":998,"value":1259},{"type":993,"tag":1026,"props":8664,"children":8665},{"style":1069},[8666],{"type":998,"value":1234},{"type":993,"tag":1026,"props":8668,"children":8669},{"style":1041},[8670],{"type":998,"value":8671},"name",{"type":993,"tag":1026,"props":8673,"children":8674},{"style":1069},[8675],{"type":998,"value":1254},{"type":993,"tag":1026,"props":8677,"children":8678},{"style":1058},[8679],{"type":998,"value":8680},", age ",{"type":993,"tag":1026,"props":8682,"children":8683},{"style":1069},[8684],{"type":998,"value":1234},{"type":993,"tag":1026,"props":8686,"children":8687},{"style":1041},[8688],{"type":998,"value":8689},"age",{"type":993,"tag":1026,"props":8691,"children":8692},{"style":1069},[8693],{"type":998,"value":1254},{"type":993,"tag":1026,"props":8695,"children":8696},{"style":1058},[8697],{"type":998,"value":1259},{"type":993,"tag":1026,"props":8699,"children":8700},{"style":1041},[8701],{"type":998,"value":1095},{"type":993,"tag":1001,"props":8703,"children":8704},{},[8705],{"type":993,"tag":1506,"props":8706,"children":8707},{},[8708],{"type":998,"value":8709},"Key Learning Points:",{"type":993,"tag":1512,"props":8711,"children":8712},{},[8713,8733,8765,8784],{"type":993,"tag":1516,"props":8714,"children":8715},{},[8716,8718,8723,8725,8731],{"type":998,"value":8717},"📌 ",{"type":993,"tag":1506,"props":8719,"children":8720},{},[8721],{"type":998,"value":8722},"Tuple iteration",{"type":998,"value":8724},": Use ",{"type":993,"tag":1022,"props":8726,"children":8728},{"className":8727},[],[8729],{"type":998,"value":8730},"for student in students",{"type":998,"value":8732}," to go through each record",{"type":993,"tag":1516,"props":8734,"children":8735},{},[8736,8737,8742,8743,8749,8750,8756,8757,8763],{"type":998,"value":8717},{"type":993,"tag":1506,"props":8738,"children":8739},{},[8740],{"type":998,"value":8741},"Index access",{"type":998,"value":8724},{"type":993,"tag":1022,"props":8744,"children":8746},{"className":8745},[],[8747],{"type":998,"value":8748},"student[0]",{"type":998,"value":1066},{"type":993,"tag":1022,"props":8751,"children":8753},{"className":8752},[],[8754],{"type":998,"value":8755},"student[1]",{"type":998,"value":1066},{"type":993,"tag":1022,"props":8758,"children":8760},{"className":8759},[],[8761],{"type":998,"value":8762},"student[2]",{"type":998,"value":8764}," to get name, age, grade",{"type":993,"tag":1516,"props":8766,"children":8767},{},[8768,8769,8774,8776,8782],{"type":998,"value":8717},{"type":993,"tag":1506,"props":8770,"children":8771},{},[8772],{"type":998,"value":8773},"Conditional filtering",{"type":998,"value":8775},": Check ",{"type":993,"tag":1022,"props":8777,"children":8779},{"className":8778},[],[8780],{"type":998,"value":8781},"if grade == \"A\"",{"type":998,"value":8783}," to find matching students",{"type":993,"tag":1516,"props":8785,"children":8786},{},[8787,8788,8793],{"type":998,"value":8717},{"type":993,"tag":1506,"props":8789,"children":8790},{},[8791],{"type":998,"value":8792},"Data extraction",{"type":998,"value":8794},": Store individual elements in variables for clarity",{"type":993,"tag":1484,"props":8796,"children":8798},{"id":8797},"test-your-knowledge",[8799],{"type":998,"value":8800},"Test Your Knowledge",{"type":993,"tag":1001,"props":8802,"children":8803},{},[8804],{"type":998,"value":8805},"Test what you've learned about reading tuple data in Python:",{"type":993,"tag":8807,"props":8808,"children":8811},"redirect-button",{"label":8809,"url":8810},"Take Quiz","/tutorial-quiz/python/reading-tuple-data",[],{"type":993,"tag":1484,"props":8813,"children":8815},{"id":8814},"whats-next",[8816],{"type":998,"value":8817},"What's Next?",{"type":993,"tag":1001,"props":8819,"children":8820},{},[8821],{"type":998,"value":8822},"Now that you understand how to read tuple data, you're ready to learn about working with tuple immutability and creating modified versions. Understanding these concepts is crucial for effective tuple manipulation.",{"type":993,"tag":1001,"props":8824,"children":8825},{},[8826,8828,8832],{"type":998,"value":8827},"Ready to continue? Check out our lesson on ",{"type":993,"tag":8037,"props":8829,"children":8830},{"href":398},[8831],{"type":998,"value":399},{"type":998,"value":8833},".",{"type":993,"tag":8835,"props":8836,"children":8837},"style",{},[8838],{"type":998,"value":8839},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}html.app-dark-mode .shiki span {color: var(--shiki-app-dark-mode);background: var(--shiki-app-dark-mode-bg);font-style: var(--shiki-app-dark-mode-font-style);font-weight: var(--shiki-app-dark-mode-font-weight);text-decoration: var(--shiki-app-dark-mode-text-decoration);}",{"title":8,"searchDepth":36,"depth":36,"links":8841},[8842,8847,8852,8857,8862,8867,8870,8871],{"id":1486,"depth":27,"text":1489,"children":8843},[8844,8845,8846],{"id":1614,"depth":36,"text":1617},{"id":1949,"depth":36,"text":1952},{"id":2273,"depth":36,"text":2276},{"id":2579,"depth":27,"text":2582,"children":8848},[8849,8850,8851],{"id":2720,"depth":36,"text":2723},{"id":3101,"depth":36,"text":3104},{"id":3476,"depth":36,"text":3479},{"id":3834,"depth":27,"text":3837,"children":8853},[8854,8855,8856],{"id":3956,"depth":36,"text":3959},{"id":4409,"depth":36,"text":4412},{"id":4756,"depth":36,"text":4759},{"id":5240,"depth":27,"text":5243,"children":8858},[8859,8860,8861],{"id":5378,"depth":36,"text":5381},{"id":5788,"depth":36,"text":5791},{"id":6142,"depth":36,"text":6145},{"id":6638,"depth":27,"text":6641,"children":8863},[8864,8865,8866],{"id":6747,"depth":36,"text":6750},{"id":7062,"depth":36,"text":7065},{"id":7378,"depth":36,"text":7381},{"id":7742,"depth":27,"text":7745,"children":8868},[8869],{"id":8279,"depth":36,"text":8282},{"id":8797,"depth":27,"text":8800},{"id":8814,"depth":27,"text":8817},1782373739067]