[{"data":1,"prerenderedAt":7070},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/creating-tuples":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",[379],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"body":989,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},{"type":990,"children":991,"toc":7038},"root",[992,1000,1015,1020,1309,1316,1321,1448,1455,1638,1644,1854,1860,2048,2054,2304,2310,2315,2403,2409,2689,2695,2914,2920,3102,3108,3120,3242,3248,3438,3444,3659,3665,3960,3965,3971,3976,4063,4069,4377,4383,4704,4710,5154,5160,5260,5266,5627,5633,6180,6186,6191,6429,6434,6453,6677,6683,6993,6999,7004,7010,7016,7021,7032],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":383},[997],{"type":998,"value":999},"text","🔧 Creating Tuples",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004,1006,1013],{"type":998,"value":1005},"Creating tuples in Python is straightforward and flexible. Tuples use parentheses ",{"type":993,"tag":1007,"props":1008,"children":1010},"code",{"className":1009},[],[1011],{"type":998,"value":1012},"()",{"type":998,"value":1014}," to group elements together, creating an immutable sequence that protects your data from accidental changes. Whether you're storing coordinates, database records, or configuration settings, understanding tuple creation is essential for effective Python programming.",{"type":993,"tag":1001,"props":1016,"children":1017},{},[1018],{"type":998,"value":1019},"Tuples are perfect when you need to group related data that shouldn't change after creation. Their immutability makes them reliable, memory-efficient, and suitable for use as dictionary keys.",{"type":993,"tag":1021,"props":1022,"children":1023},"code-try",{},[1024],{"type":993,"tag":1025,"props":1026,"children":1029},"pre",{"className":1027,"code":1028,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic tuple creation\npoint = (10, 20)\nperson = (\"Alice\", 25, \"Engineer\")\ncolors = (\"red\", \"green\", \"blue\")\n\nprint(f\"Point coordinates: {point}\")\nprint(f\"Person info: {person}\")\nprint(f\"Available colors: {colors}\")\n",[1030],{"type":993,"tag":1007,"props":1031,"children":1032},{"__ignoreMap":8},[1033,1044,1085,1129,1172,1180,1227,1268],{"type":993,"tag":1034,"props":1035,"children":1037},"span",{"class":1036,"line":12},"line",[1038],{"type":993,"tag":1034,"props":1039,"children":1041},{"style":1040},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1042],{"type":998,"value":1043},"# Basic tuple creation\n",{"type":993,"tag":1034,"props":1045,"children":1046},{"class":1036,"line":27},[1047,1053,1059,1064,1070,1075,1080],{"type":993,"tag":1034,"props":1048,"children":1050},{"style":1049},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1051],{"type":998,"value":1052},"point ",{"type":993,"tag":1034,"props":1054,"children":1056},{"style":1055},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1057],{"type":998,"value":1058},"=",{"type":993,"tag":1034,"props":1060,"children":1061},{"style":1049},[1062],{"type":998,"value":1063}," (",{"type":993,"tag":1034,"props":1065,"children":1067},{"style":1066},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1068],{"type":998,"value":1069},"10",{"type":993,"tag":1034,"props":1071,"children":1072},{"style":1049},[1073],{"type":998,"value":1074},", ",{"type":993,"tag":1034,"props":1076,"children":1077},{"style":1066},[1078],{"type":998,"value":1079},"20",{"type":993,"tag":1034,"props":1081,"children":1082},{"style":1049},[1083],{"type":998,"value":1084},")\n",{"type":993,"tag":1034,"props":1086,"children":1087},{"class":1036,"line":36},[1088,1093,1097,1101,1107,1111,1116,1120,1125],{"type":993,"tag":1034,"props":1089,"children":1090},{"style":1049},[1091],{"type":998,"value":1092},"person ",{"type":993,"tag":1034,"props":1094,"children":1095},{"style":1055},[1096],{"type":998,"value":1058},{"type":993,"tag":1034,"props":1098,"children":1099},{"style":1049},[1100],{"type":998,"value":1063},{"type":993,"tag":1034,"props":1102,"children":1104},{"style":1103},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1105],{"type":998,"value":1106},"\"Alice\"",{"type":993,"tag":1034,"props":1108,"children":1109},{"style":1049},[1110],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1112,"children":1113},{"style":1066},[1114],{"type":998,"value":1115},"25",{"type":993,"tag":1034,"props":1117,"children":1118},{"style":1049},[1119],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1121,"children":1122},{"style":1103},[1123],{"type":998,"value":1124},"\"Engineer\"",{"type":993,"tag":1034,"props":1126,"children":1127},{"style":1049},[1128],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1130,"children":1131},{"class":1036,"line":45},[1132,1137,1141,1145,1150,1154,1159,1163,1168],{"type":993,"tag":1034,"props":1133,"children":1134},{"style":1049},[1135],{"type":998,"value":1136},"colors ",{"type":993,"tag":1034,"props":1138,"children":1139},{"style":1055},[1140],{"type":998,"value":1058},{"type":993,"tag":1034,"props":1142,"children":1143},{"style":1049},[1144],{"type":998,"value":1063},{"type":993,"tag":1034,"props":1146,"children":1147},{"style":1103},[1148],{"type":998,"value":1149},"\"red\"",{"type":993,"tag":1034,"props":1151,"children":1152},{"style":1049},[1153],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1155,"children":1156},{"style":1103},[1157],{"type":998,"value":1158},"\"green\"",{"type":993,"tag":1034,"props":1160,"children":1161},{"style":1049},[1162],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1164,"children":1165},{"style":1103},[1166],{"type":998,"value":1167},"\"blue\"",{"type":993,"tag":1034,"props":1169,"children":1170},{"style":1049},[1171],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1173,"children":1174},{"class":1036,"line":54},[1175],{"type":993,"tag":1034,"props":1176,"children":1177},{"emptyLinePlaceholder":13},[1178],{"type":998,"value":1179},"\n",{"type":993,"tag":1034,"props":1181,"children":1182},{"class":1036,"line":63},[1183,1188,1193,1198,1203,1208,1213,1218,1223],{"type":993,"tag":1034,"props":1184,"children":1185},{"style":1066},[1186],{"type":998,"value":1187},"print",{"type":993,"tag":1034,"props":1189,"children":1190},{"style":1049},[1191],{"type":998,"value":1192},"(",{"type":993,"tag":1034,"props":1194,"children":1195},{"style":1055},[1196],{"type":998,"value":1197},"f",{"type":993,"tag":1034,"props":1199,"children":1200},{"style":1103},[1201],{"type":998,"value":1202},"\"Point coordinates: ",{"type":993,"tag":1034,"props":1204,"children":1205},{"style":1066},[1206],{"type":998,"value":1207},"{",{"type":993,"tag":1034,"props":1209,"children":1210},{"style":1049},[1211],{"type":998,"value":1212},"point",{"type":993,"tag":1034,"props":1214,"children":1215},{"style":1066},[1216],{"type":998,"value":1217},"}",{"type":993,"tag":1034,"props":1219,"children":1220},{"style":1103},[1221],{"type":998,"value":1222},"\"",{"type":993,"tag":1034,"props":1224,"children":1225},{"style":1049},[1226],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1228,"children":1229},{"class":1036,"line":72},[1230,1234,1238,1242,1247,1251,1256,1260,1264],{"type":993,"tag":1034,"props":1231,"children":1232},{"style":1066},[1233],{"type":998,"value":1187},{"type":993,"tag":1034,"props":1235,"children":1236},{"style":1049},[1237],{"type":998,"value":1192},{"type":993,"tag":1034,"props":1239,"children":1240},{"style":1055},[1241],{"type":998,"value":1197},{"type":993,"tag":1034,"props":1243,"children":1244},{"style":1103},[1245],{"type":998,"value":1246},"\"Person info: ",{"type":993,"tag":1034,"props":1248,"children":1249},{"style":1066},[1250],{"type":998,"value":1207},{"type":993,"tag":1034,"props":1252,"children":1253},{"style":1049},[1254],{"type":998,"value":1255},"person",{"type":993,"tag":1034,"props":1257,"children":1258},{"style":1066},[1259],{"type":998,"value":1217},{"type":993,"tag":1034,"props":1261,"children":1262},{"style":1103},[1263],{"type":998,"value":1222},{"type":993,"tag":1034,"props":1265,"children":1266},{"style":1049},[1267],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1269,"children":1270},{"class":1036,"line":81},[1271,1275,1279,1283,1288,1292,1297,1301,1305],{"type":993,"tag":1034,"props":1272,"children":1273},{"style":1066},[1274],{"type":998,"value":1187},{"type":993,"tag":1034,"props":1276,"children":1277},{"style":1049},[1278],{"type":998,"value":1192},{"type":993,"tag":1034,"props":1280,"children":1281},{"style":1055},[1282],{"type":998,"value":1197},{"type":993,"tag":1034,"props":1284,"children":1285},{"style":1103},[1286],{"type":998,"value":1287},"\"Available colors: ",{"type":993,"tag":1034,"props":1289,"children":1290},{"style":1066},[1291],{"type":998,"value":1207},{"type":993,"tag":1034,"props":1293,"children":1294},{"style":1049},[1295],{"type":998,"value":1296},"colors",{"type":993,"tag":1034,"props":1298,"children":1299},{"style":1066},[1300],{"type":998,"value":1217},{"type":993,"tag":1034,"props":1302,"children":1303},{"style":1103},[1304],{"type":998,"value":1222},{"type":993,"tag":1034,"props":1306,"children":1307},{"style":1049},[1308],{"type":998,"value":1084},{"type":993,"tag":1310,"props":1311,"children":1313},"h2",{"id":1312},"basic-tuple-syntax",[1314],{"type":998,"value":1315},"📝 Basic Tuple Syntax",{"type":993,"tag":1001,"props":1317,"children":1318},{},[1319],{"type":998,"value":1320},"The most common way to create tuples is using parentheses with comma-separated values. Python recognizes this pattern and automatically creates a tuple object.",{"type":993,"tag":1322,"props":1323,"children":1327},"info-box",{"emoji":1324,"title":1325,"type":1326},"📝","Tuple Creation Fundamentals","info",[1328,1337,1397,1405,1428,1438],{"type":993,"tag":1001,"props":1329,"children":1330},{},[1331],{"type":993,"tag":1332,"props":1333,"children":1334},"strong",{},[1335],{"type":998,"value":1336},"Basic Syntax:",{"type":993,"tag":1338,"props":1339,"children":1340},"ul",{},[1341,1353,1371,1384],{"type":993,"tag":1342,"props":1343,"children":1344},"li",{},[1345,1347],{"type":998,"value":1346},"Parentheses with comma-separated values: ",{"type":993,"tag":1007,"props":1348,"children":1350},{"className":1349},[],[1351],{"type":998,"value":1352},"(item1, item2, item3)",{"type":993,"tag":1342,"props":1354,"children":1355},{},[1356,1358,1363,1365],{"type":998,"value":1357},"Empty tuple: ",{"type":993,"tag":1007,"props":1359,"children":1361},{"className":1360},[],[1362],{"type":998,"value":1012},{"type":998,"value":1364}," or ",{"type":993,"tag":1007,"props":1366,"children":1368},{"className":1367},[],[1369],{"type":998,"value":1370},"tuple()",{"type":993,"tag":1342,"props":1372,"children":1373},{},[1374,1376,1382],{"type":998,"value":1375},"Single item tuple: ",{"type":993,"tag":1007,"props":1377,"children":1379},{"className":1378},[],[1380],{"type":998,"value":1381},"(item,)",{"type":998,"value":1383}," - comma is required",{"type":993,"tag":1342,"props":1385,"children":1386},{},[1387,1389,1395],{"type":998,"value":1388},"Without parentheses: ",{"type":993,"tag":1007,"props":1390,"children":1392},{"className":1391},[],[1393],{"type":998,"value":1394},"item1, item2, item3",{"type":998,"value":1396}," (tuple packing)",{"type":993,"tag":1001,"props":1398,"children":1399},{},[1400],{"type":993,"tag":1332,"props":1401,"children":1402},{},[1403],{"type":998,"value":1404},"Key Requirements:",{"type":993,"tag":1338,"props":1406,"children":1407},{},[1408,1413,1418,1423],{"type":993,"tag":1342,"props":1409,"children":1410},{},[1411],{"type":998,"value":1412},"Commas separate elements, not parentheses",{"type":993,"tag":1342,"props":1414,"children":1415},{},[1416],{"type":998,"value":1417},"Single-item tuples need trailing comma",{"type":993,"tag":1342,"props":1419,"children":1420},{},[1421],{"type":998,"value":1422},"Mixed data types allowed",{"type":993,"tag":1342,"props":1424,"children":1425},{},[1426],{"type":998,"value":1427},"Nested tuples supported",{"type":993,"tag":1001,"props":1429,"children":1430},{},[1431,1436],{"type":993,"tag":1332,"props":1432,"children":1433},{},[1434],{"type":998,"value":1435},"Memory Efficiency:",{"type":998,"value":1437}," Tuples use less memory than equivalent lists",{"type":993,"tag":1001,"props":1439,"children":1440},{},[1441,1446],{"type":993,"tag":1332,"props":1442,"children":1443},{},[1444],{"type":998,"value":1445},"Immutability:",{"type":998,"value":1447}," Once created, tuple contents cannot be changed",{"type":993,"tag":1449,"props":1450,"children":1452},"h3",{"id":1451},"standard-tuple-creation",[1453],{"type":998,"value":1454},"Standard Tuple Creation",{"type":993,"tag":1021,"props":1456,"children":1457},{},[1458],{"type":993,"tag":1025,"props":1459,"children":1461},{"className":1027,"code":1460,"language":6,"meta":8,"style":8},"# Standard tuple creation examples\ncoordinates = (5, 10)\nrgb_color = (255, 128, 0)\n\nprint(f\"Coordinates: {coordinates}\")\nprint(f\"RGB Color: {rgb_color}\")\n",[1462],{"type":993,"tag":1007,"props":1463,"children":1464},{"__ignoreMap":8},[1465,1473,1506,1549,1556,1597],{"type":993,"tag":1034,"props":1466,"children":1467},{"class":1036,"line":12},[1468],{"type":993,"tag":1034,"props":1469,"children":1470},{"style":1040},[1471],{"type":998,"value":1472},"# Standard tuple creation examples\n",{"type":993,"tag":1034,"props":1474,"children":1475},{"class":1036,"line":27},[1476,1481,1485,1489,1494,1498,1502],{"type":993,"tag":1034,"props":1477,"children":1478},{"style":1049},[1479],{"type":998,"value":1480},"coordinates ",{"type":993,"tag":1034,"props":1482,"children":1483},{"style":1055},[1484],{"type":998,"value":1058},{"type":993,"tag":1034,"props":1486,"children":1487},{"style":1049},[1488],{"type":998,"value":1063},{"type":993,"tag":1034,"props":1490,"children":1491},{"style":1066},[1492],{"type":998,"value":1493},"5",{"type":993,"tag":1034,"props":1495,"children":1496},{"style":1049},[1497],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1499,"children":1500},{"style":1066},[1501],{"type":998,"value":1069},{"type":993,"tag":1034,"props":1503,"children":1504},{"style":1049},[1505],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1507,"children":1508},{"class":1036,"line":36},[1509,1514,1518,1522,1527,1531,1536,1540,1545],{"type":993,"tag":1034,"props":1510,"children":1511},{"style":1049},[1512],{"type":998,"value":1513},"rgb_color ",{"type":993,"tag":1034,"props":1515,"children":1516},{"style":1055},[1517],{"type":998,"value":1058},{"type":993,"tag":1034,"props":1519,"children":1520},{"style":1049},[1521],{"type":998,"value":1063},{"type":993,"tag":1034,"props":1523,"children":1524},{"style":1066},[1525],{"type":998,"value":1526},"255",{"type":993,"tag":1034,"props":1528,"children":1529},{"style":1049},[1530],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1532,"children":1533},{"style":1066},[1534],{"type":998,"value":1535},"128",{"type":993,"tag":1034,"props":1537,"children":1538},{"style":1049},[1539],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1541,"children":1542},{"style":1066},[1543],{"type":998,"value":1544},"0",{"type":993,"tag":1034,"props":1546,"children":1547},{"style":1049},[1548],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1550,"children":1551},{"class":1036,"line":45},[1552],{"type":993,"tag":1034,"props":1553,"children":1554},{"emptyLinePlaceholder":13},[1555],{"type":998,"value":1179},{"type":993,"tag":1034,"props":1557,"children":1558},{"class":1036,"line":54},[1559,1563,1567,1571,1576,1580,1585,1589,1593],{"type":993,"tag":1034,"props":1560,"children":1561},{"style":1066},[1562],{"type":998,"value":1187},{"type":993,"tag":1034,"props":1564,"children":1565},{"style":1049},[1566],{"type":998,"value":1192},{"type":993,"tag":1034,"props":1568,"children":1569},{"style":1055},[1570],{"type":998,"value":1197},{"type":993,"tag":1034,"props":1572,"children":1573},{"style":1103},[1574],{"type":998,"value":1575},"\"Coordinates: ",{"type":993,"tag":1034,"props":1577,"children":1578},{"style":1066},[1579],{"type":998,"value":1207},{"type":993,"tag":1034,"props":1581,"children":1582},{"style":1049},[1583],{"type":998,"value":1584},"coordinates",{"type":993,"tag":1034,"props":1586,"children":1587},{"style":1066},[1588],{"type":998,"value":1217},{"type":993,"tag":1034,"props":1590,"children":1591},{"style":1103},[1592],{"type":998,"value":1222},{"type":993,"tag":1034,"props":1594,"children":1595},{"style":1049},[1596],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1598,"children":1599},{"class":1036,"line":63},[1600,1604,1608,1612,1617,1621,1626,1630,1634],{"type":993,"tag":1034,"props":1601,"children":1602},{"style":1066},[1603],{"type":998,"value":1187},{"type":993,"tag":1034,"props":1605,"children":1606},{"style":1049},[1607],{"type":998,"value":1192},{"type":993,"tag":1034,"props":1609,"children":1610},{"style":1055},[1611],{"type":998,"value":1197},{"type":993,"tag":1034,"props":1613,"children":1614},{"style":1103},[1615],{"type":998,"value":1616},"\"RGB Color: ",{"type":993,"tag":1034,"props":1618,"children":1619},{"style":1066},[1620],{"type":998,"value":1207},{"type":993,"tag":1034,"props":1622,"children":1623},{"style":1049},[1624],{"type":998,"value":1625},"rgb_color",{"type":993,"tag":1034,"props":1627,"children":1628},{"style":1066},[1629],{"type":998,"value":1217},{"type":993,"tag":1034,"props":1631,"children":1632},{"style":1103},[1633],{"type":998,"value":1222},{"type":993,"tag":1034,"props":1635,"children":1636},{"style":1049},[1637],{"type":998,"value":1084},{"type":993,"tag":1449,"props":1639,"children":1641},{"id":1640},"complex-data-grouping",[1642],{"type":998,"value":1643},"Complex Data Grouping",{"type":993,"tag":1021,"props":1645,"children":1646},{},[1647],{"type":993,"tag":1025,"props":1648,"children":1650},{"className":1027,"code":1649,"language":6,"meta":8,"style":8},"# Complex data organization\nstudent_record = (\"John\", 20, \"Computer Science\", 3.8)\nproduct_details = (\"Laptop\", 999.99, \"Electronics\", True)\n\nprint(f\"Student: {student_record}\")\nprint(f\"Product: {product_details}\")\n",[1651],{"type":993,"tag":1007,"props":1652,"children":1653},{"__ignoreMap":8},[1654,1662,1713,1765,1772,1813],{"type":993,"tag":1034,"props":1655,"children":1656},{"class":1036,"line":12},[1657],{"type":993,"tag":1034,"props":1658,"children":1659},{"style":1040},[1660],{"type":998,"value":1661},"# Complex data organization\n",{"type":993,"tag":1034,"props":1663,"children":1664},{"class":1036,"line":27},[1665,1670,1674,1678,1683,1687,1691,1695,1700,1704,1709],{"type":993,"tag":1034,"props":1666,"children":1667},{"style":1049},[1668],{"type":998,"value":1669},"student_record ",{"type":993,"tag":1034,"props":1671,"children":1672},{"style":1055},[1673],{"type":998,"value":1058},{"type":993,"tag":1034,"props":1675,"children":1676},{"style":1049},[1677],{"type":998,"value":1063},{"type":993,"tag":1034,"props":1679,"children":1680},{"style":1103},[1681],{"type":998,"value":1682},"\"John\"",{"type":993,"tag":1034,"props":1684,"children":1685},{"style":1049},[1686],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1688,"children":1689},{"style":1066},[1690],{"type":998,"value":1079},{"type":993,"tag":1034,"props":1692,"children":1693},{"style":1049},[1694],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1696,"children":1697},{"style":1103},[1698],{"type":998,"value":1699},"\"Computer Science\"",{"type":993,"tag":1034,"props":1701,"children":1702},{"style":1049},[1703],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1705,"children":1706},{"style":1066},[1707],{"type":998,"value":1708},"3.8",{"type":993,"tag":1034,"props":1710,"children":1711},{"style":1049},[1712],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1714,"children":1715},{"class":1036,"line":36},[1716,1721,1725,1729,1734,1738,1743,1747,1752,1756,1761],{"type":993,"tag":1034,"props":1717,"children":1718},{"style":1049},[1719],{"type":998,"value":1720},"product_details ",{"type":993,"tag":1034,"props":1722,"children":1723},{"style":1055},[1724],{"type":998,"value":1058},{"type":993,"tag":1034,"props":1726,"children":1727},{"style":1049},[1728],{"type":998,"value":1063},{"type":993,"tag":1034,"props":1730,"children":1731},{"style":1103},[1732],{"type":998,"value":1733},"\"Laptop\"",{"type":993,"tag":1034,"props":1735,"children":1736},{"style":1049},[1737],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1739,"children":1740},{"style":1066},[1741],{"type":998,"value":1742},"999.99",{"type":993,"tag":1034,"props":1744,"children":1745},{"style":1049},[1746],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1748,"children":1749},{"style":1103},[1750],{"type":998,"value":1751},"\"Electronics\"",{"type":993,"tag":1034,"props":1753,"children":1754},{"style":1049},[1755],{"type":998,"value":1074},{"type":993,"tag":1034,"props":1757,"children":1758},{"style":1066},[1759],{"type":998,"value":1760},"True",{"type":993,"tag":1034,"props":1762,"children":1763},{"style":1049},[1764],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1766,"children":1767},{"class":1036,"line":45},[1768],{"type":993,"tag":1034,"props":1769,"children":1770},{"emptyLinePlaceholder":13},[1771],{"type":998,"value":1179},{"type":993,"tag":1034,"props":1773,"children":1774},{"class":1036,"line":54},[1775,1779,1783,1787,1792,1796,1801,1805,1809],{"type":993,"tag":1034,"props":1776,"children":1777},{"style":1066},[1778],{"type":998,"value":1187},{"type":993,"tag":1034,"props":1780,"children":1781},{"style":1049},[1782],{"type":998,"value":1192},{"type":993,"tag":1034,"props":1784,"children":1785},{"style":1055},[1786],{"type":998,"value":1197},{"type":993,"tag":1034,"props":1788,"children":1789},{"style":1103},[1790],{"type":998,"value":1791},"\"Student: ",{"type":993,"tag":1034,"props":1793,"children":1794},{"style":1066},[1795],{"type":998,"value":1207},{"type":993,"tag":1034,"props":1797,"children":1798},{"style":1049},[1799],{"type":998,"value":1800},"student_record",{"type":993,"tag":1034,"props":1802,"children":1803},{"style":1066},[1804],{"type":998,"value":1217},{"type":993,"tag":1034,"props":1806,"children":1807},{"style":1103},[1808],{"type":998,"value":1222},{"type":993,"tag":1034,"props":1810,"children":1811},{"style":1049},[1812],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1814,"children":1815},{"class":1036,"line":63},[1816,1820,1824,1828,1833,1837,1842,1846,1850],{"type":993,"tag":1034,"props":1817,"children":1818},{"style":1066},[1819],{"type":998,"value":1187},{"type":993,"tag":1034,"props":1821,"children":1822},{"style":1049},[1823],{"type":998,"value":1192},{"type":993,"tag":1034,"props":1825,"children":1826},{"style":1055},[1827],{"type":998,"value":1197},{"type":993,"tag":1034,"props":1829,"children":1830},{"style":1103},[1831],{"type":998,"value":1832},"\"Product: ",{"type":993,"tag":1034,"props":1834,"children":1835},{"style":1066},[1836],{"type":998,"value":1207},{"type":993,"tag":1034,"props":1838,"children":1839},{"style":1049},[1840],{"type":998,"value":1841},"product_details",{"type":993,"tag":1034,"props":1843,"children":1844},{"style":1066},[1845],{"type":998,"value":1217},{"type":993,"tag":1034,"props":1847,"children":1848},{"style":1103},[1849],{"type":998,"value":1222},{"type":993,"tag":1034,"props":1851,"children":1852},{"style":1049},[1853],{"type":998,"value":1084},{"type":993,"tag":1449,"props":1855,"children":1857},{"id":1856},"empty-tuple-creation",[1858],{"type":998,"value":1859},"Empty Tuple Creation",{"type":993,"tag":1021,"props":1861,"children":1862},{},[1863],{"type":993,"tag":1025,"props":1864,"children":1866},{"className":1027,"code":1865,"language":6,"meta":8,"style":8},"# Empty tuple creation methods\nempty_tuple1 = ()\nempty_tuple2 = tuple()\n\nprint(f\"Empty tuple 1: {empty_tuple1}\")\nprint(f\"Empty tuple 2: {empty_tuple2}\")\nprint(f\"Length: {len(empty_tuple1)}\")\n",[1867],{"type":993,"tag":1007,"props":1868,"children":1869},{"__ignoreMap":8},[1870,1878,1895,1917,1924,1965,2006],{"type":993,"tag":1034,"props":1871,"children":1872},{"class":1036,"line":12},[1873],{"type":993,"tag":1034,"props":1874,"children":1875},{"style":1040},[1876],{"type":998,"value":1877},"# Empty tuple creation methods\n",{"type":993,"tag":1034,"props":1879,"children":1880},{"class":1036,"line":27},[1881,1886,1890],{"type":993,"tag":1034,"props":1882,"children":1883},{"style":1049},[1884],{"type":998,"value":1885},"empty_tuple1 ",{"type":993,"tag":1034,"props":1887,"children":1888},{"style":1055},[1889],{"type":998,"value":1058},{"type":993,"tag":1034,"props":1891,"children":1892},{"style":1049},[1893],{"type":998,"value":1894}," ()\n",{"type":993,"tag":1034,"props":1896,"children":1897},{"class":1036,"line":36},[1898,1903,1907,1912],{"type":993,"tag":1034,"props":1899,"children":1900},{"style":1049},[1901],{"type":998,"value":1902},"empty_tuple2 ",{"type":993,"tag":1034,"props":1904,"children":1905},{"style":1055},[1906],{"type":998,"value":1058},{"type":993,"tag":1034,"props":1908,"children":1909},{"style":1066},[1910],{"type":998,"value":1911}," tuple",{"type":993,"tag":1034,"props":1913,"children":1914},{"style":1049},[1915],{"type":998,"value":1916},"()\n",{"type":993,"tag":1034,"props":1918,"children":1919},{"class":1036,"line":45},[1920],{"type":993,"tag":1034,"props":1921,"children":1922},{"emptyLinePlaceholder":13},[1923],{"type":998,"value":1179},{"type":993,"tag":1034,"props":1925,"children":1926},{"class":1036,"line":54},[1927,1931,1935,1939,1944,1948,1953,1957,1961],{"type":993,"tag":1034,"props":1928,"children":1929},{"style":1066},[1930],{"type":998,"value":1187},{"type":993,"tag":1034,"props":1932,"children":1933},{"style":1049},[1934],{"type":998,"value":1192},{"type":993,"tag":1034,"props":1936,"children":1937},{"style":1055},[1938],{"type":998,"value":1197},{"type":993,"tag":1034,"props":1940,"children":1941},{"style":1103},[1942],{"type":998,"value":1943},"\"Empty tuple 1: ",{"type":993,"tag":1034,"props":1945,"children":1946},{"style":1066},[1947],{"type":998,"value":1207},{"type":993,"tag":1034,"props":1949,"children":1950},{"style":1049},[1951],{"type":998,"value":1952},"empty_tuple1",{"type":993,"tag":1034,"props":1954,"children":1955},{"style":1066},[1956],{"type":998,"value":1217},{"type":993,"tag":1034,"props":1958,"children":1959},{"style":1103},[1960],{"type":998,"value":1222},{"type":993,"tag":1034,"props":1962,"children":1963},{"style":1049},[1964],{"type":998,"value":1084},{"type":993,"tag":1034,"props":1966,"children":1967},{"class":1036,"line":63},[1968,1972,1976,1980,1985,1989,1994,1998,2002],{"type":993,"tag":1034,"props":1969,"children":1970},{"style":1066},[1971],{"type":998,"value":1187},{"type":993,"tag":1034,"props":1973,"children":1974},{"style":1049},[1975],{"type":998,"value":1192},{"type":993,"tag":1034,"props":1977,"children":1978},{"style":1055},[1979],{"type":998,"value":1197},{"type":993,"tag":1034,"props":1981,"children":1982},{"style":1103},[1983],{"type":998,"value":1984},"\"Empty tuple 2: ",{"type":993,"tag":1034,"props":1986,"children":1987},{"style":1066},[1988],{"type":998,"value":1207},{"type":993,"tag":1034,"props":1990,"children":1991},{"style":1049},[1992],{"type":998,"value":1993},"empty_tuple2",{"type":993,"tag":1034,"props":1995,"children":1996},{"style":1066},[1997],{"type":998,"value":1217},{"type":993,"tag":1034,"props":1999,"children":2000},{"style":1103},[2001],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2003,"children":2004},{"style":1049},[2005],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2007,"children":2008},{"class":1036,"line":72},[2009,2013,2017,2021,2026,2031,2036,2040,2044],{"type":993,"tag":1034,"props":2010,"children":2011},{"style":1066},[2012],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2014,"children":2015},{"style":1049},[2016],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2018,"children":2019},{"style":1055},[2020],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2022,"children":2023},{"style":1103},[2024],{"type":998,"value":2025},"\"Length: ",{"type":993,"tag":1034,"props":2027,"children":2028},{"style":1066},[2029],{"type":998,"value":2030},"{len",{"type":993,"tag":1034,"props":2032,"children":2033},{"style":1049},[2034],{"type":998,"value":2035},"(empty_tuple1)",{"type":993,"tag":1034,"props":2037,"children":2038},{"style":1066},[2039],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2041,"children":2042},{"style":1103},[2043],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2045,"children":2046},{"style":1049},[2047],{"type":998,"value":1084},{"type":993,"tag":1449,"props":2049,"children":2051},{"id":2050},"single-element-tuples",[2052],{"type":998,"value":2053},"Single Element Tuples",{"type":993,"tag":1021,"props":2055,"children":2056},{},[2057],{"type":993,"tag":1025,"props":2058,"children":2060},{"className":1027,"code":2059,"language":6,"meta":8,"style":8},"# Single element tuples - comma is crucial!\nsingle_item = (42,)  # This is a tuple\nnot_a_tuple = (42)   # This is just a number in parentheses\n\nprint(f\"Single item tuple: {single_item}\")\nprint(f\"Type: {type(single_item)}\")\nprint(f\"Not a tuple: {not_a_tuple}\")\nprint(f\"Type: {type(not_a_tuple)}\")\n",[2061],{"type":993,"tag":1007,"props":2062,"children":2063},{"__ignoreMap":8},[2064,2072,2103,2133,2140,2181,2223,2264],{"type":993,"tag":1034,"props":2065,"children":2066},{"class":1036,"line":12},[2067],{"type":993,"tag":1034,"props":2068,"children":2069},{"style":1040},[2070],{"type":998,"value":2071},"# Single element tuples - comma is crucial!\n",{"type":993,"tag":1034,"props":2073,"children":2074},{"class":1036,"line":27},[2075,2080,2084,2088,2093,2098],{"type":993,"tag":1034,"props":2076,"children":2077},{"style":1049},[2078],{"type":998,"value":2079},"single_item ",{"type":993,"tag":1034,"props":2081,"children":2082},{"style":1055},[2083],{"type":998,"value":1058},{"type":993,"tag":1034,"props":2085,"children":2086},{"style":1049},[2087],{"type":998,"value":1063},{"type":993,"tag":1034,"props":2089,"children":2090},{"style":1066},[2091],{"type":998,"value":2092},"42",{"type":993,"tag":1034,"props":2094,"children":2095},{"style":1049},[2096],{"type":998,"value":2097},",)  ",{"type":993,"tag":1034,"props":2099,"children":2100},{"style":1040},[2101],{"type":998,"value":2102},"# This is a tuple\n",{"type":993,"tag":1034,"props":2104,"children":2105},{"class":1036,"line":36},[2106,2111,2115,2119,2123,2128],{"type":993,"tag":1034,"props":2107,"children":2108},{"style":1049},[2109],{"type":998,"value":2110},"not_a_tuple ",{"type":993,"tag":1034,"props":2112,"children":2113},{"style":1055},[2114],{"type":998,"value":1058},{"type":993,"tag":1034,"props":2116,"children":2117},{"style":1049},[2118],{"type":998,"value":1063},{"type":993,"tag":1034,"props":2120,"children":2121},{"style":1066},[2122],{"type":998,"value":2092},{"type":993,"tag":1034,"props":2124,"children":2125},{"style":1049},[2126],{"type":998,"value":2127},")   ",{"type":993,"tag":1034,"props":2129,"children":2130},{"style":1040},[2131],{"type":998,"value":2132},"# This is just a number in parentheses\n",{"type":993,"tag":1034,"props":2134,"children":2135},{"class":1036,"line":45},[2136],{"type":993,"tag":1034,"props":2137,"children":2138},{"emptyLinePlaceholder":13},[2139],{"type":998,"value":1179},{"type":993,"tag":1034,"props":2141,"children":2142},{"class":1036,"line":54},[2143,2147,2151,2155,2160,2164,2169,2173,2177],{"type":993,"tag":1034,"props":2144,"children":2145},{"style":1066},[2146],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2148,"children":2149},{"style":1049},[2150],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2152,"children":2153},{"style":1055},[2154],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2156,"children":2157},{"style":1103},[2158],{"type":998,"value":2159},"\"Single item tuple: ",{"type":993,"tag":1034,"props":2161,"children":2162},{"style":1066},[2163],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2165,"children":2166},{"style":1049},[2167],{"type":998,"value":2168},"single_item",{"type":993,"tag":1034,"props":2170,"children":2171},{"style":1066},[2172],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2174,"children":2175},{"style":1103},[2176],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2178,"children":2179},{"style":1049},[2180],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2182,"children":2183},{"class":1036,"line":63},[2184,2188,2192,2196,2201,2206,2211,2215,2219],{"type":993,"tag":1034,"props":2185,"children":2186},{"style":1066},[2187],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2189,"children":2190},{"style":1049},[2191],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2193,"children":2194},{"style":1055},[2195],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2197,"children":2198},{"style":1103},[2199],{"type":998,"value":2200},"\"Type: ",{"type":993,"tag":1034,"props":2202,"children":2203},{"style":1066},[2204],{"type":998,"value":2205},"{type",{"type":993,"tag":1034,"props":2207,"children":2208},{"style":1049},[2209],{"type":998,"value":2210},"(single_item)",{"type":993,"tag":1034,"props":2212,"children":2213},{"style":1066},[2214],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2216,"children":2217},{"style":1103},[2218],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2220,"children":2221},{"style":1049},[2222],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2224,"children":2225},{"class":1036,"line":72},[2226,2230,2234,2238,2243,2247,2252,2256,2260],{"type":993,"tag":1034,"props":2227,"children":2228},{"style":1066},[2229],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2231,"children":2232},{"style":1049},[2233],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2235,"children":2236},{"style":1055},[2237],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2239,"children":2240},{"style":1103},[2241],{"type":998,"value":2242},"\"Not a tuple: ",{"type":993,"tag":1034,"props":2244,"children":2245},{"style":1066},[2246],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2248,"children":2249},{"style":1049},[2250],{"type":998,"value":2251},"not_a_tuple",{"type":993,"tag":1034,"props":2253,"children":2254},{"style":1066},[2255],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2257,"children":2258},{"style":1103},[2259],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2261,"children":2262},{"style":1049},[2263],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2265,"children":2266},{"class":1036,"line":81},[2267,2271,2275,2279,2283,2287,2292,2296,2300],{"type":993,"tag":1034,"props":2268,"children":2269},{"style":1066},[2270],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2272,"children":2273},{"style":1049},[2274],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2276,"children":2277},{"style":1055},[2278],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2280,"children":2281},{"style":1103},[2282],{"type":998,"value":2200},{"type":993,"tag":1034,"props":2284,"children":2285},{"style":1066},[2286],{"type":998,"value":2205},{"type":993,"tag":1034,"props":2288,"children":2289},{"style":1049},[2290],{"type":998,"value":2291},"(not_a_tuple)",{"type":993,"tag":1034,"props":2293,"children":2294},{"style":1066},[2295],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2297,"children":2298},{"style":1103},[2299],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2301,"children":2302},{"style":1049},[2303],{"type":998,"value":1084},{"type":993,"tag":1310,"props":2305,"children":2307},{"id":2306},"tuple-packing-without-parentheses",[2308],{"type":998,"value":2309},"📦 Tuple Packing (Without Parentheses)",{"type":993,"tag":1001,"props":2311,"children":2312},{},[2313],{"type":998,"value":2314},"Python allows tuple creation without parentheses through a feature called \"tuple packing.\" When you separate values with commas, Python automatically creates a tuple.",{"type":993,"tag":1322,"props":2316,"children":2320},{"emoji":2317,"title":2318,"type":2319},"📦","Tuple Packing Benefits","success",[2321,2329,2352,2360,2383,2393],{"type":993,"tag":1001,"props":2322,"children":2323},{},[2324],{"type":993,"tag":1332,"props":2325,"children":2326},{},[2327],{"type":998,"value":2328},"Automatic Creation:",{"type":993,"tag":1338,"props":2330,"children":2331},{},[2332,2337,2342,2347],{"type":993,"tag":1342,"props":2333,"children":2334},{},[2335],{"type":998,"value":2336},"Comma-separated values automatically form tuples",{"type":993,"tag":1342,"props":2338,"children":2339},{},[2340],{"type":998,"value":2341},"Parentheses optional in many contexts",{"type":993,"tag":1342,"props":2343,"children":2344},{},[2345],{"type":998,"value":2346},"Cleaner syntax for simple cases",{"type":993,"tag":1342,"props":2348,"children":2349},{},[2350],{"type":998,"value":2351},"Common in function returns and assignments",{"type":993,"tag":1001,"props":2353,"children":2354},{},[2355],{"type":993,"tag":1332,"props":2356,"children":2357},{},[2358],{"type":998,"value":2359},"Use Cases:",{"type":993,"tag":1338,"props":2361,"children":2362},{},[2363,2368,2373,2378],{"type":993,"tag":1342,"props":2364,"children":2365},{},[2366],{"type":998,"value":2367},"Multiple variable assignment",{"type":993,"tag":1342,"props":2369,"children":2370},{},[2371],{"type":998,"value":2372},"Function return values",{"type":993,"tag":1342,"props":2374,"children":2375},{},[2376],{"type":998,"value":2377},"Swapping variables",{"type":993,"tag":1342,"props":2379,"children":2380},{},[2381],{"type":998,"value":2382},"Coordinate definitions",{"type":993,"tag":1001,"props":2384,"children":2385},{},[2386,2391],{"type":993,"tag":1332,"props":2387,"children":2388},{},[2389],{"type":998,"value":2390},"Readability:",{"type":998,"value":2392}," Sometimes clearer without parentheses, sometimes with",{"type":993,"tag":1001,"props":2394,"children":2395},{},[2396,2401],{"type":993,"tag":1332,"props":2397,"children":2398},{},[2399],{"type":998,"value":2400},"Context Dependent:",{"type":998,"value":2402}," Parentheses recommended for clarity in complex expressions",{"type":993,"tag":1449,"props":2404,"children":2406},{"id":2405},"implicit-tuple-creation",[2407],{"type":998,"value":2408},"Implicit Tuple Creation",{"type":993,"tag":1021,"props":2410,"children":2411},{},[2412],{"type":993,"tag":1025,"props":2413,"children":2415},{"className":1027,"code":2414,"language":6,"meta":8,"style":8},"# Tuple packing without parentheses\npoint = 15, 25\nperson = \"Bob\", 30, \"Designer\"\ndimensions = 100, 200, 50\n\nprint(f\"Point: {point}\")\nprint(f\"Person: {person}\")\nprint(f\"Dimensions: {dimensions}\")\nprint(f\"Type: {type(point)}\")\n",[2416],{"type":993,"tag":1007,"props":2417,"children":2418},{"__ignoreMap":8},[2419,2427,2452,2486,2521,2528,2568,2608,2649],{"type":993,"tag":1034,"props":2420,"children":2421},{"class":1036,"line":12},[2422],{"type":993,"tag":1034,"props":2423,"children":2424},{"style":1040},[2425],{"type":998,"value":2426},"# Tuple packing without parentheses\n",{"type":993,"tag":1034,"props":2428,"children":2429},{"class":1036,"line":27},[2430,2434,2438,2443,2447],{"type":993,"tag":1034,"props":2431,"children":2432},{"style":1049},[2433],{"type":998,"value":1052},{"type":993,"tag":1034,"props":2435,"children":2436},{"style":1055},[2437],{"type":998,"value":1058},{"type":993,"tag":1034,"props":2439,"children":2440},{"style":1066},[2441],{"type":998,"value":2442}," 15",{"type":993,"tag":1034,"props":2444,"children":2445},{"style":1049},[2446],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2448,"children":2449},{"style":1066},[2450],{"type":998,"value":2451},"25\n",{"type":993,"tag":1034,"props":2453,"children":2454},{"class":1036,"line":36},[2455,2459,2463,2468,2472,2477,2481],{"type":993,"tag":1034,"props":2456,"children":2457},{"style":1049},[2458],{"type":998,"value":1092},{"type":993,"tag":1034,"props":2460,"children":2461},{"style":1055},[2462],{"type":998,"value":1058},{"type":993,"tag":1034,"props":2464,"children":2465},{"style":1103},[2466],{"type":998,"value":2467}," \"Bob\"",{"type":993,"tag":1034,"props":2469,"children":2470},{"style":1049},[2471],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2473,"children":2474},{"style":1066},[2475],{"type":998,"value":2476},"30",{"type":993,"tag":1034,"props":2478,"children":2479},{"style":1049},[2480],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2482,"children":2483},{"style":1103},[2484],{"type":998,"value":2485},"\"Designer\"\n",{"type":993,"tag":1034,"props":2487,"children":2488},{"class":1036,"line":45},[2489,2494,2498,2503,2507,2512,2516],{"type":993,"tag":1034,"props":2490,"children":2491},{"style":1049},[2492],{"type":998,"value":2493},"dimensions ",{"type":993,"tag":1034,"props":2495,"children":2496},{"style":1055},[2497],{"type":998,"value":1058},{"type":993,"tag":1034,"props":2499,"children":2500},{"style":1066},[2501],{"type":998,"value":2502}," 100",{"type":993,"tag":1034,"props":2504,"children":2505},{"style":1049},[2506],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2508,"children":2509},{"style":1066},[2510],{"type":998,"value":2511},"200",{"type":993,"tag":1034,"props":2513,"children":2514},{"style":1049},[2515],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2517,"children":2518},{"style":1066},[2519],{"type":998,"value":2520},"50\n",{"type":993,"tag":1034,"props":2522,"children":2523},{"class":1036,"line":54},[2524],{"type":993,"tag":1034,"props":2525,"children":2526},{"emptyLinePlaceholder":13},[2527],{"type":998,"value":1179},{"type":993,"tag":1034,"props":2529,"children":2530},{"class":1036,"line":63},[2531,2535,2539,2543,2548,2552,2556,2560,2564],{"type":993,"tag":1034,"props":2532,"children":2533},{"style":1066},[2534],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2536,"children":2537},{"style":1049},[2538],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2540,"children":2541},{"style":1055},[2542],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2544,"children":2545},{"style":1103},[2546],{"type":998,"value":2547},"\"Point: ",{"type":993,"tag":1034,"props":2549,"children":2550},{"style":1066},[2551],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2553,"children":2554},{"style":1049},[2555],{"type":998,"value":1212},{"type":993,"tag":1034,"props":2557,"children":2558},{"style":1066},[2559],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2561,"children":2562},{"style":1103},[2563],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2565,"children":2566},{"style":1049},[2567],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2569,"children":2570},{"class":1036,"line":72},[2571,2575,2579,2583,2588,2592,2596,2600,2604],{"type":993,"tag":1034,"props":2572,"children":2573},{"style":1066},[2574],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2576,"children":2577},{"style":1049},[2578],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2580,"children":2581},{"style":1055},[2582],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2584,"children":2585},{"style":1103},[2586],{"type":998,"value":2587},"\"Person: ",{"type":993,"tag":1034,"props":2589,"children":2590},{"style":1066},[2591],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2593,"children":2594},{"style":1049},[2595],{"type":998,"value":1255},{"type":993,"tag":1034,"props":2597,"children":2598},{"style":1066},[2599],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2601,"children":2602},{"style":1103},[2603],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2605,"children":2606},{"style":1049},[2607],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2609,"children":2610},{"class":1036,"line":81},[2611,2615,2619,2623,2628,2632,2637,2641,2645],{"type":993,"tag":1034,"props":2612,"children":2613},{"style":1066},[2614],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2616,"children":2617},{"style":1049},[2618],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2620,"children":2621},{"style":1055},[2622],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2624,"children":2625},{"style":1103},[2626],{"type":998,"value":2627},"\"Dimensions: ",{"type":993,"tag":1034,"props":2629,"children":2630},{"style":1066},[2631],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2633,"children":2634},{"style":1049},[2635],{"type":998,"value":2636},"dimensions",{"type":993,"tag":1034,"props":2638,"children":2639},{"style":1066},[2640],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2642,"children":2643},{"style":1103},[2644],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2646,"children":2647},{"style":1049},[2648],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2650,"children":2651},{"class":1036,"line":91},[2652,2656,2660,2664,2668,2672,2677,2681,2685],{"type":993,"tag":1034,"props":2653,"children":2654},{"style":1066},[2655],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2657,"children":2658},{"style":1049},[2659],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2661,"children":2662},{"style":1055},[2663],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2665,"children":2666},{"style":1103},[2667],{"type":998,"value":2200},{"type":993,"tag":1034,"props":2669,"children":2670},{"style":1066},[2671],{"type":998,"value":2205},{"type":993,"tag":1034,"props":2673,"children":2674},{"style":1049},[2675],{"type":998,"value":2676},"(point)",{"type":993,"tag":1034,"props":2678,"children":2679},{"style":1066},[2680],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2682,"children":2683},{"style":1103},[2684],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2686,"children":2687},{"style":1049},[2688],{"type":998,"value":1084},{"type":993,"tag":1449,"props":2690,"children":2692},{"id":2691},"multiple-assignment",[2693],{"type":998,"value":2694},"Multiple Assignment",{"type":993,"tag":1021,"props":2696,"children":2697},{},[2698],{"type":993,"tag":1025,"props":2699,"children":2701},{"className":1027,"code":2700,"language":6,"meta":8,"style":8},"# Basic multiple assignment\nx, y = 10, 20\nname, age, job = \"Carol\", 28, \"Developer\"\n\nprint(f\"Coordinates: x={x}, y={y}\")\nprint(f\"Person: {name}, {age}, {job}\")\n",[2702],{"type":993,"tag":1007,"props":2703,"children":2704},{"__ignoreMap":8},[2705,2713,2739,2774,2781,2840],{"type":993,"tag":1034,"props":2706,"children":2707},{"class":1036,"line":12},[2708],{"type":993,"tag":1034,"props":2709,"children":2710},{"style":1040},[2711],{"type":998,"value":2712},"# Basic multiple assignment\n",{"type":993,"tag":1034,"props":2714,"children":2715},{"class":1036,"line":27},[2716,2721,2725,2730,2734],{"type":993,"tag":1034,"props":2717,"children":2718},{"style":1049},[2719],{"type":998,"value":2720},"x, y ",{"type":993,"tag":1034,"props":2722,"children":2723},{"style":1055},[2724],{"type":998,"value":1058},{"type":993,"tag":1034,"props":2726,"children":2727},{"style":1066},[2728],{"type":998,"value":2729}," 10",{"type":993,"tag":1034,"props":2731,"children":2732},{"style":1049},[2733],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2735,"children":2736},{"style":1066},[2737],{"type":998,"value":2738},"20\n",{"type":993,"tag":1034,"props":2740,"children":2741},{"class":1036,"line":36},[2742,2747,2751,2756,2760,2765,2769],{"type":993,"tag":1034,"props":2743,"children":2744},{"style":1049},[2745],{"type":998,"value":2746},"name, age, job ",{"type":993,"tag":1034,"props":2748,"children":2749},{"style":1055},[2750],{"type":998,"value":1058},{"type":993,"tag":1034,"props":2752,"children":2753},{"style":1103},[2754],{"type":998,"value":2755}," \"Carol\"",{"type":993,"tag":1034,"props":2757,"children":2758},{"style":1049},[2759],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2761,"children":2762},{"style":1066},[2763],{"type":998,"value":2764},"28",{"type":993,"tag":1034,"props":2766,"children":2767},{"style":1049},[2768],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2770,"children":2771},{"style":1103},[2772],{"type":998,"value":2773},"\"Developer\"\n",{"type":993,"tag":1034,"props":2775,"children":2776},{"class":1036,"line":45},[2777],{"type":993,"tag":1034,"props":2778,"children":2779},{"emptyLinePlaceholder":13},[2780],{"type":998,"value":1179},{"type":993,"tag":1034,"props":2782,"children":2783},{"class":1036,"line":54},[2784,2788,2792,2796,2801,2805,2810,2814,2819,2823,2828,2832,2836],{"type":993,"tag":1034,"props":2785,"children":2786},{"style":1066},[2787],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2789,"children":2790},{"style":1049},[2791],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2793,"children":2794},{"style":1055},[2795],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2797,"children":2798},{"style":1103},[2799],{"type":998,"value":2800},"\"Coordinates: x=",{"type":993,"tag":1034,"props":2802,"children":2803},{"style":1066},[2804],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2806,"children":2807},{"style":1049},[2808],{"type":998,"value":2809},"x",{"type":993,"tag":1034,"props":2811,"children":2812},{"style":1066},[2813],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2815,"children":2816},{"style":1103},[2817],{"type":998,"value":2818},", y=",{"type":993,"tag":1034,"props":2820,"children":2821},{"style":1066},[2822],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2824,"children":2825},{"style":1049},[2826],{"type":998,"value":2827},"y",{"type":993,"tag":1034,"props":2829,"children":2830},{"style":1066},[2831],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2833,"children":2834},{"style":1103},[2835],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2837,"children":2838},{"style":1049},[2839],{"type":998,"value":1084},{"type":993,"tag":1034,"props":2841,"children":2842},{"class":1036,"line":63},[2843,2847,2851,2855,2859,2863,2868,2872,2876,2880,2885,2889,2893,2897,2902,2906,2910],{"type":993,"tag":1034,"props":2844,"children":2845},{"style":1066},[2846],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2848,"children":2849},{"style":1049},[2850],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2852,"children":2853},{"style":1055},[2854],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2856,"children":2857},{"style":1103},[2858],{"type":998,"value":2587},{"type":993,"tag":1034,"props":2860,"children":2861},{"style":1066},[2862],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2864,"children":2865},{"style":1049},[2866],{"type":998,"value":2867},"name",{"type":993,"tag":1034,"props":2869,"children":2870},{"style":1066},[2871],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2873,"children":2874},{"style":1103},[2875],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2877,"children":2878},{"style":1066},[2879],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2881,"children":2882},{"style":1049},[2883],{"type":998,"value":2884},"age",{"type":993,"tag":1034,"props":2886,"children":2887},{"style":1066},[2888],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2890,"children":2891},{"style":1103},[2892],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2894,"children":2895},{"style":1066},[2896],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2898,"children":2899},{"style":1049},[2900],{"type":998,"value":2901},"job",{"type":993,"tag":1034,"props":2903,"children":2904},{"style":1066},[2905],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2907,"children":2908},{"style":1103},[2909],{"type":998,"value":1222},{"type":993,"tag":1034,"props":2911,"children":2912},{"style":1049},[2913],{"type":998,"value":1084},{"type":993,"tag":1449,"props":2915,"children":2917},{"id":2916},"variable-swapping",[2918],{"type":998,"value":2919},"Variable Swapping",{"type":993,"tag":1021,"props":2921,"children":2922},{},[2923],{"type":993,"tag":1025,"props":2924,"children":2926},{"className":1027,"code":2925,"language":6,"meta":8,"style":8},"# Variable swapping technique\na, b = 5, 15\nprint(f\"Before swap: a={a}, b={b}\")\n\na, b = b, a\nprint(f\"After swap: a={a}, b={b}\")\n",[2927],{"type":993,"tag":1007,"props":2928,"children":2929},{"__ignoreMap":8},[2930,2938,2964,3023,3030,3046],{"type":993,"tag":1034,"props":2931,"children":2932},{"class":1036,"line":12},[2933],{"type":993,"tag":1034,"props":2934,"children":2935},{"style":1040},[2936],{"type":998,"value":2937},"# Variable swapping technique\n",{"type":993,"tag":1034,"props":2939,"children":2940},{"class":1036,"line":27},[2941,2946,2950,2955,2959],{"type":993,"tag":1034,"props":2942,"children":2943},{"style":1049},[2944],{"type":998,"value":2945},"a, b ",{"type":993,"tag":1034,"props":2947,"children":2948},{"style":1055},[2949],{"type":998,"value":1058},{"type":993,"tag":1034,"props":2951,"children":2952},{"style":1066},[2953],{"type":998,"value":2954}," 5",{"type":993,"tag":1034,"props":2956,"children":2957},{"style":1049},[2958],{"type":998,"value":1074},{"type":993,"tag":1034,"props":2960,"children":2961},{"style":1066},[2962],{"type":998,"value":2963},"15\n",{"type":993,"tag":1034,"props":2965,"children":2966},{"class":1036,"line":36},[2967,2971,2975,2979,2984,2988,2993,2997,3002,3006,3011,3015,3019],{"type":993,"tag":1034,"props":2968,"children":2969},{"style":1066},[2970],{"type":998,"value":1187},{"type":993,"tag":1034,"props":2972,"children":2973},{"style":1049},[2974],{"type":998,"value":1192},{"type":993,"tag":1034,"props":2976,"children":2977},{"style":1055},[2978],{"type":998,"value":1197},{"type":993,"tag":1034,"props":2980,"children":2981},{"style":1103},[2982],{"type":998,"value":2983},"\"Before swap: a=",{"type":993,"tag":1034,"props":2985,"children":2986},{"style":1066},[2987],{"type":998,"value":1207},{"type":993,"tag":1034,"props":2989,"children":2990},{"style":1049},[2991],{"type":998,"value":2992},"a",{"type":993,"tag":1034,"props":2994,"children":2995},{"style":1066},[2996],{"type":998,"value":1217},{"type":993,"tag":1034,"props":2998,"children":2999},{"style":1103},[3000],{"type":998,"value":3001},", b=",{"type":993,"tag":1034,"props":3003,"children":3004},{"style":1066},[3005],{"type":998,"value":1207},{"type":993,"tag":1034,"props":3007,"children":3008},{"style":1049},[3009],{"type":998,"value":3010},"b",{"type":993,"tag":1034,"props":3012,"children":3013},{"style":1066},[3014],{"type":998,"value":1217},{"type":993,"tag":1034,"props":3016,"children":3017},{"style":1103},[3018],{"type":998,"value":1222},{"type":993,"tag":1034,"props":3020,"children":3021},{"style":1049},[3022],{"type":998,"value":1084},{"type":993,"tag":1034,"props":3024,"children":3025},{"class":1036,"line":45},[3026],{"type":993,"tag":1034,"props":3027,"children":3028},{"emptyLinePlaceholder":13},[3029],{"type":998,"value":1179},{"type":993,"tag":1034,"props":3031,"children":3032},{"class":1036,"line":54},[3033,3037,3041],{"type":993,"tag":1034,"props":3034,"children":3035},{"style":1049},[3036],{"type":998,"value":2945},{"type":993,"tag":1034,"props":3038,"children":3039},{"style":1055},[3040],{"type":998,"value":1058},{"type":993,"tag":1034,"props":3042,"children":3043},{"style":1049},[3044],{"type":998,"value":3045}," b, a\n",{"type":993,"tag":1034,"props":3047,"children":3048},{"class":1036,"line":63},[3049,3053,3057,3061,3066,3070,3074,3078,3082,3086,3090,3094,3098],{"type":993,"tag":1034,"props":3050,"children":3051},{"style":1066},[3052],{"type":998,"value":1187},{"type":993,"tag":1034,"props":3054,"children":3055},{"style":1049},[3056],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3058,"children":3059},{"style":1055},[3060],{"type":998,"value":1197},{"type":993,"tag":1034,"props":3062,"children":3063},{"style":1103},[3064],{"type":998,"value":3065},"\"After swap: a=",{"type":993,"tag":1034,"props":3067,"children":3068},{"style":1066},[3069],{"type":998,"value":1207},{"type":993,"tag":1034,"props":3071,"children":3072},{"style":1049},[3073],{"type":998,"value":2992},{"type":993,"tag":1034,"props":3075,"children":3076},{"style":1066},[3077],{"type":998,"value":1217},{"type":993,"tag":1034,"props":3079,"children":3080},{"style":1103},[3081],{"type":998,"value":3001},{"type":993,"tag":1034,"props":3083,"children":3084},{"style":1066},[3085],{"type":998,"value":1207},{"type":993,"tag":1034,"props":3087,"children":3088},{"style":1049},[3089],{"type":998,"value":3010},{"type":993,"tag":1034,"props":3091,"children":3092},{"style":1066},[3093],{"type":998,"value":1217},{"type":993,"tag":1034,"props":3095,"children":3096},{"style":1103},[3097],{"type":998,"value":1222},{"type":993,"tag":1034,"props":3099,"children":3100},{"style":1049},[3101],{"type":998,"value":1084},{"type":993,"tag":1310,"props":3103,"children":3105},{"id":3104},"creating-tuples-from-other-data-types",[3106],{"type":998,"value":3107},"🔄 Creating Tuples from Other Data Types",{"type":993,"tag":1001,"props":3109,"children":3110},{},[3111,3113,3118],{"type":998,"value":3112},"You can create tuples from existing sequences like lists, strings, and ranges using the ",{"type":993,"tag":1007,"props":3114,"children":3116},{"className":3115},[],[3117],{"type":998,"value":1370},{"type":998,"value":3119}," constructor function.",{"type":993,"tag":1322,"props":3121,"children":3125},{"emoji":3122,"title":3123,"type":3124},"🔄","Tuple Constructor Guidelines","warning",[3126,3134,3168,3176,3223,3232],{"type":993,"tag":1001,"props":3127,"children":3128},{},[3129],{"type":993,"tag":1332,"props":3130,"children":3131},{},[3132],{"type":998,"value":3133},"Constructor Usage:",{"type":993,"tag":1338,"props":3135,"children":3136},{},[3137,3147,3158,3163],{"type":993,"tag":1342,"props":3138,"children":3139},{},[3140,3145],{"type":993,"tag":1007,"props":3141,"children":3143},{"className":3142},[],[3144],{"type":998,"value":1370},{"type":998,"value":3146}," creates empty tuple",{"type":993,"tag":1342,"props":3148,"children":3149},{},[3150,3156],{"type":993,"tag":1007,"props":3151,"children":3153},{"className":3152},[],[3154],{"type":998,"value":3155},"tuple(iterable)",{"type":998,"value":3157}," converts sequences to tuples",{"type":993,"tag":1342,"props":3159,"children":3160},{},[3161],{"type":998,"value":3162},"Works with lists, strings, ranges, sets",{"type":993,"tag":1342,"props":3164,"children":3165},{},[3166],{"type":998,"value":3167},"Creates new tuple (doesn't modify original)",{"type":993,"tag":1001,"props":3169,"children":3170},{},[3171],{"type":993,"tag":1332,"props":3172,"children":3173},{},[3174],{"type":998,"value":3175},"Common Conversions:",{"type":993,"tag":1338,"props":3177,"children":3178},{},[3179,3190,3201,3212],{"type":993,"tag":1342,"props":3180,"children":3181},{},[3182,3184],{"type":998,"value":3183},"List to tuple: ",{"type":993,"tag":1007,"props":3185,"children":3187},{"className":3186},[],[3188],{"type":998,"value":3189},"tuple([1, 2, 3])",{"type":993,"tag":1342,"props":3191,"children":3192},{},[3193,3195],{"type":998,"value":3194},"String to tuple: ",{"type":993,"tag":1007,"props":3196,"children":3198},{"className":3197},[],[3199],{"type":998,"value":3200},"tuple(\"hello\")",{"type":993,"tag":1342,"props":3202,"children":3203},{},[3204,3206],{"type":998,"value":3205},"Range to tuple: ",{"type":993,"tag":1007,"props":3207,"children":3209},{"className":3208},[],[3210],{"type":998,"value":3211},"tuple(range(5))",{"type":993,"tag":1342,"props":3213,"children":3214},{},[3215,3217],{"type":998,"value":3216},"Set to tuple: ",{"type":993,"tag":1007,"props":3218,"children":3220},{"className":3219},[],[3221],{"type":998,"value":3222},"tuple({1, 2, 3})",{"type":993,"tag":1001,"props":3224,"children":3225},{},[3226,3230],{"type":993,"tag":1332,"props":3227,"children":3228},{},[3229],{"type":998,"value":1445},{"type":998,"value":3231}," Converting mutable types creates immutable tuple",{"type":993,"tag":1001,"props":3233,"children":3234},{},[3235,3240],{"type":993,"tag":1332,"props":3236,"children":3237},{},[3238],{"type":998,"value":3239},"Performance:",{"type":998,"value":3241}," Constructor method slightly slower than literal syntax",{"type":993,"tag":1449,"props":3243,"children":3245},{"id":3244},"list-to-tuple-conversion",[3246],{"type":998,"value":3247},"List to Tuple Conversion",{"type":993,"tag":1021,"props":3249,"children":3250},{},[3251],{"type":993,"tag":1025,"props":3252,"children":3254},{"className":1027,"code":3253,"language":6,"meta":8,"style":8},"# Converting lists to tuples\nnumbers_list = [1, 2, 3, 4, 5]\nnumbers_tuple = tuple(numbers_list)\n\nprint(f\"Original list: {numbers_list}\")\nprint(f\"Converted tuple: {numbers_tuple}\")\n",[3255],{"type":993,"tag":1007,"props":3256,"children":3257},{"__ignoreMap":8},[3258,3266,3328,3349,3356,3397],{"type":993,"tag":1034,"props":3259,"children":3260},{"class":1036,"line":12},[3261],{"type":993,"tag":1034,"props":3262,"children":3263},{"style":1040},[3264],{"type":998,"value":3265},"# Converting lists to tuples\n",{"type":993,"tag":1034,"props":3267,"children":3268},{"class":1036,"line":27},[3269,3274,3278,3283,3288,3292,3297,3301,3306,3310,3315,3319,3323],{"type":993,"tag":1034,"props":3270,"children":3271},{"style":1049},[3272],{"type":998,"value":3273},"numbers_list ",{"type":993,"tag":1034,"props":3275,"children":3276},{"style":1055},[3277],{"type":998,"value":1058},{"type":993,"tag":1034,"props":3279,"children":3280},{"style":1049},[3281],{"type":998,"value":3282}," [",{"type":993,"tag":1034,"props":3284,"children":3285},{"style":1066},[3286],{"type":998,"value":3287},"1",{"type":993,"tag":1034,"props":3289,"children":3290},{"style":1049},[3291],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3293,"children":3294},{"style":1066},[3295],{"type":998,"value":3296},"2",{"type":993,"tag":1034,"props":3298,"children":3299},{"style":1049},[3300],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3302,"children":3303},{"style":1066},[3304],{"type":998,"value":3305},"3",{"type":993,"tag":1034,"props":3307,"children":3308},{"style":1049},[3309],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3311,"children":3312},{"style":1066},[3313],{"type":998,"value":3314},"4",{"type":993,"tag":1034,"props":3316,"children":3317},{"style":1049},[3318],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3320,"children":3321},{"style":1066},[3322],{"type":998,"value":1493},{"type":993,"tag":1034,"props":3324,"children":3325},{"style":1049},[3326],{"type":998,"value":3327},"]\n",{"type":993,"tag":1034,"props":3329,"children":3330},{"class":1036,"line":36},[3331,3336,3340,3344],{"type":993,"tag":1034,"props":3332,"children":3333},{"style":1049},[3334],{"type":998,"value":3335},"numbers_tuple ",{"type":993,"tag":1034,"props":3337,"children":3338},{"style":1055},[3339],{"type":998,"value":1058},{"type":993,"tag":1034,"props":3341,"children":3342},{"style":1066},[3343],{"type":998,"value":1911},{"type":993,"tag":1034,"props":3345,"children":3346},{"style":1049},[3347],{"type":998,"value":3348},"(numbers_list)\n",{"type":993,"tag":1034,"props":3350,"children":3351},{"class":1036,"line":45},[3352],{"type":993,"tag":1034,"props":3353,"children":3354},{"emptyLinePlaceholder":13},[3355],{"type":998,"value":1179},{"type":993,"tag":1034,"props":3357,"children":3358},{"class":1036,"line":54},[3359,3363,3367,3371,3376,3380,3385,3389,3393],{"type":993,"tag":1034,"props":3360,"children":3361},{"style":1066},[3362],{"type":998,"value":1187},{"type":993,"tag":1034,"props":3364,"children":3365},{"style":1049},[3366],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3368,"children":3369},{"style":1055},[3370],{"type":998,"value":1197},{"type":993,"tag":1034,"props":3372,"children":3373},{"style":1103},[3374],{"type":998,"value":3375},"\"Original list: ",{"type":993,"tag":1034,"props":3377,"children":3378},{"style":1066},[3379],{"type":998,"value":1207},{"type":993,"tag":1034,"props":3381,"children":3382},{"style":1049},[3383],{"type":998,"value":3384},"numbers_list",{"type":993,"tag":1034,"props":3386,"children":3387},{"style":1066},[3388],{"type":998,"value":1217},{"type":993,"tag":1034,"props":3390,"children":3391},{"style":1103},[3392],{"type":998,"value":1222},{"type":993,"tag":1034,"props":3394,"children":3395},{"style":1049},[3396],{"type":998,"value":1084},{"type":993,"tag":1034,"props":3398,"children":3399},{"class":1036,"line":63},[3400,3404,3408,3412,3417,3421,3426,3430,3434],{"type":993,"tag":1034,"props":3401,"children":3402},{"style":1066},[3403],{"type":998,"value":1187},{"type":993,"tag":1034,"props":3405,"children":3406},{"style":1049},[3407],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3409,"children":3410},{"style":1055},[3411],{"type":998,"value":1197},{"type":993,"tag":1034,"props":3413,"children":3414},{"style":1103},[3415],{"type":998,"value":3416},"\"Converted tuple: ",{"type":993,"tag":1034,"props":3418,"children":3419},{"style":1066},[3420],{"type":998,"value":1207},{"type":993,"tag":1034,"props":3422,"children":3423},{"style":1049},[3424],{"type":998,"value":3425},"numbers_tuple",{"type":993,"tag":1034,"props":3427,"children":3428},{"style":1066},[3429],{"type":998,"value":1217},{"type":993,"tag":1034,"props":3431,"children":3432},{"style":1103},[3433],{"type":998,"value":1222},{"type":993,"tag":1034,"props":3435,"children":3436},{"style":1049},[3437],{"type":998,"value":1084},{"type":993,"tag":1449,"props":3439,"children":3441},{"id":3440},"string-and-data-conversion",[3442],{"type":998,"value":3443},"String and Data Conversion",{"type":993,"tag":1021,"props":3445,"children":3446},{},[3447],{"type":993,"tag":1025,"props":3448,"children":3450},{"className":1027,"code":3449,"language":6,"meta":8,"style":8},"# String and data conversions\nnames_list = [\"Alice\", \"Bob\", \"Carol\"]\nnames_tuple = tuple(names_list)\n\nword = \"Python\"\nchar_tuple = tuple(word)\n\nprint(f\"Names tuple: {names_tuple}\")\nprint(f\"Character tuple: {char_tuple}\")\n",[3451],{"type":993,"tag":1007,"props":3452,"children":3453},{"__ignoreMap":8},[3454,3462,3504,3525,3532,3549,3570,3577,3618],{"type":993,"tag":1034,"props":3455,"children":3456},{"class":1036,"line":12},[3457],{"type":993,"tag":1034,"props":3458,"children":3459},{"style":1040},[3460],{"type":998,"value":3461},"# String and data conversions\n",{"type":993,"tag":1034,"props":3463,"children":3464},{"class":1036,"line":27},[3465,3470,3474,3478,3482,3486,3491,3495,3500],{"type":993,"tag":1034,"props":3466,"children":3467},{"style":1049},[3468],{"type":998,"value":3469},"names_list ",{"type":993,"tag":1034,"props":3471,"children":3472},{"style":1055},[3473],{"type":998,"value":1058},{"type":993,"tag":1034,"props":3475,"children":3476},{"style":1049},[3477],{"type":998,"value":3282},{"type":993,"tag":1034,"props":3479,"children":3480},{"style":1103},[3481],{"type":998,"value":1106},{"type":993,"tag":1034,"props":3483,"children":3484},{"style":1049},[3485],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3487,"children":3488},{"style":1103},[3489],{"type":998,"value":3490},"\"Bob\"",{"type":993,"tag":1034,"props":3492,"children":3493},{"style":1049},[3494],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3496,"children":3497},{"style":1103},[3498],{"type":998,"value":3499},"\"Carol\"",{"type":993,"tag":1034,"props":3501,"children":3502},{"style":1049},[3503],{"type":998,"value":3327},{"type":993,"tag":1034,"props":3505,"children":3506},{"class":1036,"line":36},[3507,3512,3516,3520],{"type":993,"tag":1034,"props":3508,"children":3509},{"style":1049},[3510],{"type":998,"value":3511},"names_tuple ",{"type":993,"tag":1034,"props":3513,"children":3514},{"style":1055},[3515],{"type":998,"value":1058},{"type":993,"tag":1034,"props":3517,"children":3518},{"style":1066},[3519],{"type":998,"value":1911},{"type":993,"tag":1034,"props":3521,"children":3522},{"style":1049},[3523],{"type":998,"value":3524},"(names_list)\n",{"type":993,"tag":1034,"props":3526,"children":3527},{"class":1036,"line":45},[3528],{"type":993,"tag":1034,"props":3529,"children":3530},{"emptyLinePlaceholder":13},[3531],{"type":998,"value":1179},{"type":993,"tag":1034,"props":3533,"children":3534},{"class":1036,"line":54},[3535,3540,3544],{"type":993,"tag":1034,"props":3536,"children":3537},{"style":1049},[3538],{"type":998,"value":3539},"word ",{"type":993,"tag":1034,"props":3541,"children":3542},{"style":1055},[3543],{"type":998,"value":1058},{"type":993,"tag":1034,"props":3545,"children":3546},{"style":1103},[3547],{"type":998,"value":3548}," \"Python\"\n",{"type":993,"tag":1034,"props":3550,"children":3551},{"class":1036,"line":63},[3552,3557,3561,3565],{"type":993,"tag":1034,"props":3553,"children":3554},{"style":1049},[3555],{"type":998,"value":3556},"char_tuple ",{"type":993,"tag":1034,"props":3558,"children":3559},{"style":1055},[3560],{"type":998,"value":1058},{"type":993,"tag":1034,"props":3562,"children":3563},{"style":1066},[3564],{"type":998,"value":1911},{"type":993,"tag":1034,"props":3566,"children":3567},{"style":1049},[3568],{"type":998,"value":3569},"(word)\n",{"type":993,"tag":1034,"props":3571,"children":3572},{"class":1036,"line":72},[3573],{"type":993,"tag":1034,"props":3574,"children":3575},{"emptyLinePlaceholder":13},[3576],{"type":998,"value":1179},{"type":993,"tag":1034,"props":3578,"children":3579},{"class":1036,"line":81},[3580,3584,3588,3592,3597,3601,3606,3610,3614],{"type":993,"tag":1034,"props":3581,"children":3582},{"style":1066},[3583],{"type":998,"value":1187},{"type":993,"tag":1034,"props":3585,"children":3586},{"style":1049},[3587],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3589,"children":3590},{"style":1055},[3591],{"type":998,"value":1197},{"type":993,"tag":1034,"props":3593,"children":3594},{"style":1103},[3595],{"type":998,"value":3596},"\"Names tuple: ",{"type":993,"tag":1034,"props":3598,"children":3599},{"style":1066},[3600],{"type":998,"value":1207},{"type":993,"tag":1034,"props":3602,"children":3603},{"style":1049},[3604],{"type":998,"value":3605},"names_tuple",{"type":993,"tag":1034,"props":3607,"children":3608},{"style":1066},[3609],{"type":998,"value":1217},{"type":993,"tag":1034,"props":3611,"children":3612},{"style":1103},[3613],{"type":998,"value":1222},{"type":993,"tag":1034,"props":3615,"children":3616},{"style":1049},[3617],{"type":998,"value":1084},{"type":993,"tag":1034,"props":3619,"children":3620},{"class":1036,"line":91},[3621,3625,3629,3633,3638,3642,3647,3651,3655],{"type":993,"tag":1034,"props":3622,"children":3623},{"style":1066},[3624],{"type":998,"value":1187},{"type":993,"tag":1034,"props":3626,"children":3627},{"style":1049},[3628],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3630,"children":3631},{"style":1055},[3632],{"type":998,"value":1197},{"type":993,"tag":1034,"props":3634,"children":3635},{"style":1103},[3636],{"type":998,"value":3637},"\"Character tuple: ",{"type":993,"tag":1034,"props":3639,"children":3640},{"style":1066},[3641],{"type":998,"value":1207},{"type":993,"tag":1034,"props":3643,"children":3644},{"style":1049},[3645],{"type":998,"value":3646},"char_tuple",{"type":993,"tag":1034,"props":3648,"children":3649},{"style":1066},[3650],{"type":998,"value":1217},{"type":993,"tag":1034,"props":3652,"children":3653},{"style":1103},[3654],{"type":998,"value":1222},{"type":993,"tag":1034,"props":3656,"children":3657},{"style":1049},[3658],{"type":998,"value":1084},{"type":993,"tag":1449,"props":3660,"children":3662},{"id":3661},"range-to-tuple-conversion",[3663],{"type":998,"value":3664},"Range to Tuple Conversion",{"type":993,"tag":1021,"props":3666,"children":3667},{},[3668],{"type":993,"tag":1025,"props":3669,"children":3671},{"className":1027,"code":3670,"language":6,"meta":8,"style":8},"# Converting ranges to tuples\nrange_tuple = tuple(range(5))\neven_numbers = tuple(range(0, 10, 2))\ncountdown = tuple(range(10, 0, -1))\n\nprint(f\"Range tuple: {range_tuple}\")\nprint(f\"Even numbers: {even_numbers}\")\nprint(f\"Countdown: {countdown}\")\n",[3672],{"type":993,"tag":1007,"props":3673,"children":3674},{"__ignoreMap":8},[3675,3683,3721,3773,3830,3837,3878,3919],{"type":993,"tag":1034,"props":3676,"children":3677},{"class":1036,"line":12},[3678],{"type":993,"tag":1034,"props":3679,"children":3680},{"style":1040},[3681],{"type":998,"value":3682},"# Converting ranges to tuples\n",{"type":993,"tag":1034,"props":3684,"children":3685},{"class":1036,"line":27},[3686,3691,3695,3699,3703,3708,3712,3716],{"type":993,"tag":1034,"props":3687,"children":3688},{"style":1049},[3689],{"type":998,"value":3690},"range_tuple ",{"type":993,"tag":1034,"props":3692,"children":3693},{"style":1055},[3694],{"type":998,"value":1058},{"type":993,"tag":1034,"props":3696,"children":3697},{"style":1066},[3698],{"type":998,"value":1911},{"type":993,"tag":1034,"props":3700,"children":3701},{"style":1049},[3702],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3704,"children":3705},{"style":1066},[3706],{"type":998,"value":3707},"range",{"type":993,"tag":1034,"props":3709,"children":3710},{"style":1049},[3711],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3713,"children":3714},{"style":1066},[3715],{"type":998,"value":1493},{"type":993,"tag":1034,"props":3717,"children":3718},{"style":1049},[3719],{"type":998,"value":3720},"))\n",{"type":993,"tag":1034,"props":3722,"children":3723},{"class":1036,"line":36},[3724,3729,3733,3737,3741,3745,3749,3753,3757,3761,3765,3769],{"type":993,"tag":1034,"props":3725,"children":3726},{"style":1049},[3727],{"type":998,"value":3728},"even_numbers ",{"type":993,"tag":1034,"props":3730,"children":3731},{"style":1055},[3732],{"type":998,"value":1058},{"type":993,"tag":1034,"props":3734,"children":3735},{"style":1066},[3736],{"type":998,"value":1911},{"type":993,"tag":1034,"props":3738,"children":3739},{"style":1049},[3740],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3742,"children":3743},{"style":1066},[3744],{"type":998,"value":3707},{"type":993,"tag":1034,"props":3746,"children":3747},{"style":1049},[3748],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3750,"children":3751},{"style":1066},[3752],{"type":998,"value":1544},{"type":993,"tag":1034,"props":3754,"children":3755},{"style":1049},[3756],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3758,"children":3759},{"style":1066},[3760],{"type":998,"value":1069},{"type":993,"tag":1034,"props":3762,"children":3763},{"style":1049},[3764],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3766,"children":3767},{"style":1066},[3768],{"type":998,"value":3296},{"type":993,"tag":1034,"props":3770,"children":3771},{"style":1049},[3772],{"type":998,"value":3720},{"type":993,"tag":1034,"props":3774,"children":3775},{"class":1036,"line":45},[3776,3781,3785,3789,3793,3797,3801,3805,3809,3813,3817,3822,3826],{"type":993,"tag":1034,"props":3777,"children":3778},{"style":1049},[3779],{"type":998,"value":3780},"countdown ",{"type":993,"tag":1034,"props":3782,"children":3783},{"style":1055},[3784],{"type":998,"value":1058},{"type":993,"tag":1034,"props":3786,"children":3787},{"style":1066},[3788],{"type":998,"value":1911},{"type":993,"tag":1034,"props":3790,"children":3791},{"style":1049},[3792],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3794,"children":3795},{"style":1066},[3796],{"type":998,"value":3707},{"type":993,"tag":1034,"props":3798,"children":3799},{"style":1049},[3800],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3802,"children":3803},{"style":1066},[3804],{"type":998,"value":1069},{"type":993,"tag":1034,"props":3806,"children":3807},{"style":1049},[3808],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3810,"children":3811},{"style":1066},[3812],{"type":998,"value":1544},{"type":993,"tag":1034,"props":3814,"children":3815},{"style":1049},[3816],{"type":998,"value":1074},{"type":993,"tag":1034,"props":3818,"children":3819},{"style":1055},[3820],{"type":998,"value":3821},"-",{"type":993,"tag":1034,"props":3823,"children":3824},{"style":1066},[3825],{"type":998,"value":3287},{"type":993,"tag":1034,"props":3827,"children":3828},{"style":1049},[3829],{"type":998,"value":3720},{"type":993,"tag":1034,"props":3831,"children":3832},{"class":1036,"line":54},[3833],{"type":993,"tag":1034,"props":3834,"children":3835},{"emptyLinePlaceholder":13},[3836],{"type":998,"value":1179},{"type":993,"tag":1034,"props":3838,"children":3839},{"class":1036,"line":63},[3840,3844,3848,3852,3857,3861,3866,3870,3874],{"type":993,"tag":1034,"props":3841,"children":3842},{"style":1066},[3843],{"type":998,"value":1187},{"type":993,"tag":1034,"props":3845,"children":3846},{"style":1049},[3847],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3849,"children":3850},{"style":1055},[3851],{"type":998,"value":1197},{"type":993,"tag":1034,"props":3853,"children":3854},{"style":1103},[3855],{"type":998,"value":3856},"\"Range tuple: ",{"type":993,"tag":1034,"props":3858,"children":3859},{"style":1066},[3860],{"type":998,"value":1207},{"type":993,"tag":1034,"props":3862,"children":3863},{"style":1049},[3864],{"type":998,"value":3865},"range_tuple",{"type":993,"tag":1034,"props":3867,"children":3868},{"style":1066},[3869],{"type":998,"value":1217},{"type":993,"tag":1034,"props":3871,"children":3872},{"style":1103},[3873],{"type":998,"value":1222},{"type":993,"tag":1034,"props":3875,"children":3876},{"style":1049},[3877],{"type":998,"value":1084},{"type":993,"tag":1034,"props":3879,"children":3880},{"class":1036,"line":72},[3881,3885,3889,3893,3898,3902,3907,3911,3915],{"type":993,"tag":1034,"props":3882,"children":3883},{"style":1066},[3884],{"type":998,"value":1187},{"type":993,"tag":1034,"props":3886,"children":3887},{"style":1049},[3888],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3890,"children":3891},{"style":1055},[3892],{"type":998,"value":1197},{"type":993,"tag":1034,"props":3894,"children":3895},{"style":1103},[3896],{"type":998,"value":3897},"\"Even numbers: ",{"type":993,"tag":1034,"props":3899,"children":3900},{"style":1066},[3901],{"type":998,"value":1207},{"type":993,"tag":1034,"props":3903,"children":3904},{"style":1049},[3905],{"type":998,"value":3906},"even_numbers",{"type":993,"tag":1034,"props":3908,"children":3909},{"style":1066},[3910],{"type":998,"value":1217},{"type":993,"tag":1034,"props":3912,"children":3913},{"style":1103},[3914],{"type":998,"value":1222},{"type":993,"tag":1034,"props":3916,"children":3917},{"style":1049},[3918],{"type":998,"value":1084},{"type":993,"tag":1034,"props":3920,"children":3921},{"class":1036,"line":81},[3922,3926,3930,3934,3939,3943,3948,3952,3956],{"type":993,"tag":1034,"props":3923,"children":3924},{"style":1066},[3925],{"type":998,"value":1187},{"type":993,"tag":1034,"props":3927,"children":3928},{"style":1049},[3929],{"type":998,"value":1192},{"type":993,"tag":1034,"props":3931,"children":3932},{"style":1055},[3933],{"type":998,"value":1197},{"type":993,"tag":1034,"props":3935,"children":3936},{"style":1103},[3937],{"type":998,"value":3938},"\"Countdown: ",{"type":993,"tag":1034,"props":3940,"children":3941},{"style":1066},[3942],{"type":998,"value":1207},{"type":993,"tag":1034,"props":3944,"children":3945},{"style":1049},[3946],{"type":998,"value":3947},"countdown",{"type":993,"tag":1034,"props":3949,"children":3950},{"style":1066},[3951],{"type":998,"value":1217},{"type":993,"tag":1034,"props":3953,"children":3954},{"style":1103},[3955],{"type":998,"value":1222},{"type":993,"tag":1034,"props":3957,"children":3958},{"style":1049},[3959],{"type":998,"value":1084},{"type":993,"tag":3961,"props":3962,"children":3964},"content-exercise",{":widget-view":3963,"category":6,"id":383},"true",[],{"type":993,"tag":1310,"props":3966,"children":3968},{"id":3967},"mixed-data-types-in-tuples",[3969],{"type":998,"value":3970},"🎨 Mixed Data Types in Tuples",{"type":993,"tag":1001,"props":3972,"children":3973},{},[3974],{"type":998,"value":3975},"Tuples can contain elements of different data types, making them perfect for storing heterogeneous data like database records or configuration settings.",{"type":993,"tag":1322,"props":3977,"children":3980},{"emoji":3978,"title":3979,"type":1326},"🎨","Mixed Data Type Capabilities",[3981,3989,4012,4020,4043,4053],{"type":993,"tag":1001,"props":3982,"children":3983},{},[3984],{"type":993,"tag":1332,"props":3985,"children":3986},{},[3987],{"type":998,"value":3988},"Type Flexibility:",{"type":993,"tag":1338,"props":3990,"children":3991},{},[3992,3997,4002,4007],{"type":993,"tag":1342,"props":3993,"children":3994},{},[3995],{"type":998,"value":3996},"Numbers, strings, booleans in same tuple",{"type":993,"tag":1342,"props":3998,"children":3999},{},[4000],{"type":998,"value":4001},"Lists, dictionaries, other tuples as elements",{"type":993,"tag":1342,"props":4003,"children":4004},{},[4005],{"type":998,"value":4006},"Functions and objects as elements",{"type":993,"tag":1342,"props":4008,"children":4009},{},[4010],{"type":998,"value":4011},"None values supported",{"type":993,"tag":1001,"props":4013,"children":4014},{},[4015],{"type":993,"tag":1332,"props":4016,"children":4017},{},[4018],{"type":998,"value":4019},"Practical Applications:",{"type":993,"tag":1338,"props":4021,"children":4022},{},[4023,4028,4033,4038],{"type":993,"tag":1342,"props":4024,"children":4025},{},[4026],{"type":998,"value":4027},"Database records with mixed fields",{"type":993,"tag":1342,"props":4029,"children":4030},{},[4031],{"type":998,"value":4032},"Configuration settings",{"type":993,"tag":1342,"props":4034,"children":4035},{},[4036],{"type":998,"value":4037},"API response data",{"type":993,"tag":1342,"props":4039,"children":4040},{},[4041],{"type":998,"value":4042},"Structured data representation",{"type":993,"tag":1001,"props":4044,"children":4045},{},[4046,4051],{"type":993,"tag":1332,"props":4047,"children":4048},{},[4049],{"type":998,"value":4050},"Nested Structures:",{"type":998,"value":4052}," Tuples can contain other tuples and complex objects",{"type":993,"tag":1001,"props":4054,"children":4055},{},[4056,4061],{"type":993,"tag":1332,"props":4057,"children":4058},{},[4059],{"type":998,"value":4060},"Type Safety:",{"type":998,"value":4062}," Each element maintains its original type",{"type":993,"tag":1449,"props":4064,"children":4066},{"id":4065},"heterogeneous-data-storage",[4067],{"type":998,"value":4068},"Heterogeneous Data Storage",{"type":993,"tag":1021,"props":4070,"children":4071},{},[4072],{"type":993,"tag":1025,"props":4073,"children":4075},{"className":1027,"code":4074,"language":6,"meta":8,"style":8},"# Mixed data types in tuples\nemployee = (\"Alice Johnson\", 28, True, 75000.50)\nproduct = (\"Laptop\", 999.99, [\"Electronics\", \"Computers\"], True)\nconfig = (\"localhost\", 8080, False, None)\n\nprint(f\"Employee: {employee}\")\nprint(f\"Product: {product}\")\nprint(f\"Config: {config}\")\n",[4076],{"type":993,"tag":1007,"props":4077,"children":4078},{"__ignoreMap":8},[4079,4087,4137,4196,4248,4255,4296,4336],{"type":993,"tag":1034,"props":4080,"children":4081},{"class":1036,"line":12},[4082],{"type":993,"tag":1034,"props":4083,"children":4084},{"style":1040},[4085],{"type":998,"value":4086},"# Mixed data types in tuples\n",{"type":993,"tag":1034,"props":4088,"children":4089},{"class":1036,"line":27},[4090,4095,4099,4103,4108,4112,4116,4120,4124,4128,4133],{"type":993,"tag":1034,"props":4091,"children":4092},{"style":1049},[4093],{"type":998,"value":4094},"employee ",{"type":993,"tag":1034,"props":4096,"children":4097},{"style":1055},[4098],{"type":998,"value":1058},{"type":993,"tag":1034,"props":4100,"children":4101},{"style":1049},[4102],{"type":998,"value":1063},{"type":993,"tag":1034,"props":4104,"children":4105},{"style":1103},[4106],{"type":998,"value":4107},"\"Alice Johnson\"",{"type":993,"tag":1034,"props":4109,"children":4110},{"style":1049},[4111],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4113,"children":4114},{"style":1066},[4115],{"type":998,"value":2764},{"type":993,"tag":1034,"props":4117,"children":4118},{"style":1049},[4119],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4121,"children":4122},{"style":1066},[4123],{"type":998,"value":1760},{"type":993,"tag":1034,"props":4125,"children":4126},{"style":1049},[4127],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4129,"children":4130},{"style":1066},[4131],{"type":998,"value":4132},"75000.50",{"type":993,"tag":1034,"props":4134,"children":4135},{"style":1049},[4136],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4138,"children":4139},{"class":1036,"line":36},[4140,4145,4149,4153,4157,4161,4165,4170,4174,4178,4183,4188,4192],{"type":993,"tag":1034,"props":4141,"children":4142},{"style":1049},[4143],{"type":998,"value":4144},"product ",{"type":993,"tag":1034,"props":4146,"children":4147},{"style":1055},[4148],{"type":998,"value":1058},{"type":993,"tag":1034,"props":4150,"children":4151},{"style":1049},[4152],{"type":998,"value":1063},{"type":993,"tag":1034,"props":4154,"children":4155},{"style":1103},[4156],{"type":998,"value":1733},{"type":993,"tag":1034,"props":4158,"children":4159},{"style":1049},[4160],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4162,"children":4163},{"style":1066},[4164],{"type":998,"value":1742},{"type":993,"tag":1034,"props":4166,"children":4167},{"style":1049},[4168],{"type":998,"value":4169},", [",{"type":993,"tag":1034,"props":4171,"children":4172},{"style":1103},[4173],{"type":998,"value":1751},{"type":993,"tag":1034,"props":4175,"children":4176},{"style":1049},[4177],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4179,"children":4180},{"style":1103},[4181],{"type":998,"value":4182},"\"Computers\"",{"type":993,"tag":1034,"props":4184,"children":4185},{"style":1049},[4186],{"type":998,"value":4187},"], ",{"type":993,"tag":1034,"props":4189,"children":4190},{"style":1066},[4191],{"type":998,"value":1760},{"type":993,"tag":1034,"props":4193,"children":4194},{"style":1049},[4195],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4197,"children":4198},{"class":1036,"line":45},[4199,4204,4208,4212,4217,4221,4226,4230,4235,4239,4244],{"type":993,"tag":1034,"props":4200,"children":4201},{"style":1049},[4202],{"type":998,"value":4203},"config ",{"type":993,"tag":1034,"props":4205,"children":4206},{"style":1055},[4207],{"type":998,"value":1058},{"type":993,"tag":1034,"props":4209,"children":4210},{"style":1049},[4211],{"type":998,"value":1063},{"type":993,"tag":1034,"props":4213,"children":4214},{"style":1103},[4215],{"type":998,"value":4216},"\"localhost\"",{"type":993,"tag":1034,"props":4218,"children":4219},{"style":1049},[4220],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4222,"children":4223},{"style":1066},[4224],{"type":998,"value":4225},"8080",{"type":993,"tag":1034,"props":4227,"children":4228},{"style":1049},[4229],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4231,"children":4232},{"style":1066},[4233],{"type":998,"value":4234},"False",{"type":993,"tag":1034,"props":4236,"children":4237},{"style":1049},[4238],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4240,"children":4241},{"style":1066},[4242],{"type":998,"value":4243},"None",{"type":993,"tag":1034,"props":4245,"children":4246},{"style":1049},[4247],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4249,"children":4250},{"class":1036,"line":54},[4251],{"type":993,"tag":1034,"props":4252,"children":4253},{"emptyLinePlaceholder":13},[4254],{"type":998,"value":1179},{"type":993,"tag":1034,"props":4256,"children":4257},{"class":1036,"line":63},[4258,4262,4266,4270,4275,4279,4284,4288,4292],{"type":993,"tag":1034,"props":4259,"children":4260},{"style":1066},[4261],{"type":998,"value":1187},{"type":993,"tag":1034,"props":4263,"children":4264},{"style":1049},[4265],{"type":998,"value":1192},{"type":993,"tag":1034,"props":4267,"children":4268},{"style":1055},[4269],{"type":998,"value":1197},{"type":993,"tag":1034,"props":4271,"children":4272},{"style":1103},[4273],{"type":998,"value":4274},"\"Employee: ",{"type":993,"tag":1034,"props":4276,"children":4277},{"style":1066},[4278],{"type":998,"value":1207},{"type":993,"tag":1034,"props":4280,"children":4281},{"style":1049},[4282],{"type":998,"value":4283},"employee",{"type":993,"tag":1034,"props":4285,"children":4286},{"style":1066},[4287],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4289,"children":4290},{"style":1103},[4291],{"type":998,"value":1222},{"type":993,"tag":1034,"props":4293,"children":4294},{"style":1049},[4295],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4297,"children":4298},{"class":1036,"line":72},[4299,4303,4307,4311,4315,4319,4324,4328,4332],{"type":993,"tag":1034,"props":4300,"children":4301},{"style":1066},[4302],{"type":998,"value":1187},{"type":993,"tag":1034,"props":4304,"children":4305},{"style":1049},[4306],{"type":998,"value":1192},{"type":993,"tag":1034,"props":4308,"children":4309},{"style":1055},[4310],{"type":998,"value":1197},{"type":993,"tag":1034,"props":4312,"children":4313},{"style":1103},[4314],{"type":998,"value":1832},{"type":993,"tag":1034,"props":4316,"children":4317},{"style":1066},[4318],{"type":998,"value":1207},{"type":993,"tag":1034,"props":4320,"children":4321},{"style":1049},[4322],{"type":998,"value":4323},"product",{"type":993,"tag":1034,"props":4325,"children":4326},{"style":1066},[4327],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4329,"children":4330},{"style":1103},[4331],{"type":998,"value":1222},{"type":993,"tag":1034,"props":4333,"children":4334},{"style":1049},[4335],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4337,"children":4338},{"class":1036,"line":81},[4339,4343,4347,4351,4356,4360,4365,4369,4373],{"type":993,"tag":1034,"props":4340,"children":4341},{"style":1066},[4342],{"type":998,"value":1187},{"type":993,"tag":1034,"props":4344,"children":4345},{"style":1049},[4346],{"type":998,"value":1192},{"type":993,"tag":1034,"props":4348,"children":4349},{"style":1055},[4350],{"type":998,"value":1197},{"type":993,"tag":1034,"props":4352,"children":4353},{"style":1103},[4354],{"type":998,"value":4355},"\"Config: ",{"type":993,"tag":1034,"props":4357,"children":4358},{"style":1066},[4359],{"type":998,"value":1207},{"type":993,"tag":1034,"props":4361,"children":4362},{"style":1049},[4363],{"type":998,"value":4364},"config",{"type":993,"tag":1034,"props":4366,"children":4367},{"style":1066},[4368],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4370,"children":4371},{"style":1103},[4372],{"type":998,"value":1222},{"type":993,"tag":1034,"props":4374,"children":4375},{"style":1049},[4376],{"type":998,"value":1084},{"type":993,"tag":1449,"props":4378,"children":4380},{"id":4379},"type-preservation-and-access",[4381],{"type":998,"value":4382},"Type Preservation and Access",{"type":993,"tag":1021,"props":4384,"children":4385},{},[4386],{"type":993,"tag":1025,"props":4387,"children":4389},{"className":1027,"code":4388,"language":6,"meta":8,"style":8},"# Accessing different types and checking preservation\nemployee = (\"Alice Johnson\", 28, True, 75000.50)\nname, age, is_active, salary = employee\n\nprint(f\"Name: {name} (type: {type(name)})\")\nprint(f\"Age: {age} (type: {type(age)})\")\nprint(f\"Active: {is_active} (type: {type(is_active)})\")\nprint(f\"Salary: {salary} (type: {type(salary)})\")\n",[4390],{"type":993,"tag":1007,"props":4391,"children":4392},{"__ignoreMap":8},[4393,4401,4448,4465,4472,4531,4588,4646],{"type":993,"tag":1034,"props":4394,"children":4395},{"class":1036,"line":12},[4396],{"type":993,"tag":1034,"props":4397,"children":4398},{"style":1040},[4399],{"type":998,"value":4400},"# Accessing different types and checking preservation\n",{"type":993,"tag":1034,"props":4402,"children":4403},{"class":1036,"line":27},[4404,4408,4412,4416,4420,4424,4428,4432,4436,4440,4444],{"type":993,"tag":1034,"props":4405,"children":4406},{"style":1049},[4407],{"type":998,"value":4094},{"type":993,"tag":1034,"props":4409,"children":4410},{"style":1055},[4411],{"type":998,"value":1058},{"type":993,"tag":1034,"props":4413,"children":4414},{"style":1049},[4415],{"type":998,"value":1063},{"type":993,"tag":1034,"props":4417,"children":4418},{"style":1103},[4419],{"type":998,"value":4107},{"type":993,"tag":1034,"props":4421,"children":4422},{"style":1049},[4423],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4425,"children":4426},{"style":1066},[4427],{"type":998,"value":2764},{"type":993,"tag":1034,"props":4429,"children":4430},{"style":1049},[4431],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4433,"children":4434},{"style":1066},[4435],{"type":998,"value":1760},{"type":993,"tag":1034,"props":4437,"children":4438},{"style":1049},[4439],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4441,"children":4442},{"style":1066},[4443],{"type":998,"value":4132},{"type":993,"tag":1034,"props":4445,"children":4446},{"style":1049},[4447],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4449,"children":4450},{"class":1036,"line":36},[4451,4456,4460],{"type":993,"tag":1034,"props":4452,"children":4453},{"style":1049},[4454],{"type":998,"value":4455},"name, age, is_active, salary ",{"type":993,"tag":1034,"props":4457,"children":4458},{"style":1055},[4459],{"type":998,"value":1058},{"type":993,"tag":1034,"props":4461,"children":4462},{"style":1049},[4463],{"type":998,"value":4464}," employee\n",{"type":993,"tag":1034,"props":4466,"children":4467},{"class":1036,"line":45},[4468],{"type":993,"tag":1034,"props":4469,"children":4470},{"emptyLinePlaceholder":13},[4471],{"type":998,"value":1179},{"type":993,"tag":1034,"props":4473,"children":4474},{"class":1036,"line":54},[4475,4479,4483,4487,4492,4496,4500,4504,4509,4513,4518,4522,4527],{"type":993,"tag":1034,"props":4476,"children":4477},{"style":1066},[4478],{"type":998,"value":1187},{"type":993,"tag":1034,"props":4480,"children":4481},{"style":1049},[4482],{"type":998,"value":1192},{"type":993,"tag":1034,"props":4484,"children":4485},{"style":1055},[4486],{"type":998,"value":1197},{"type":993,"tag":1034,"props":4488,"children":4489},{"style":1103},[4490],{"type":998,"value":4491},"\"Name: ",{"type":993,"tag":1034,"props":4493,"children":4494},{"style":1066},[4495],{"type":998,"value":1207},{"type":993,"tag":1034,"props":4497,"children":4498},{"style":1049},[4499],{"type":998,"value":2867},{"type":993,"tag":1034,"props":4501,"children":4502},{"style":1066},[4503],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4505,"children":4506},{"style":1103},[4507],{"type":998,"value":4508}," (type: ",{"type":993,"tag":1034,"props":4510,"children":4511},{"style":1066},[4512],{"type":998,"value":2205},{"type":993,"tag":1034,"props":4514,"children":4515},{"style":1049},[4516],{"type":998,"value":4517},"(name)",{"type":993,"tag":1034,"props":4519,"children":4520},{"style":1066},[4521],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4523,"children":4524},{"style":1103},[4525],{"type":998,"value":4526},")\"",{"type":993,"tag":1034,"props":4528,"children":4529},{"style":1049},[4530],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4532,"children":4533},{"class":1036,"line":63},[4534,4538,4542,4546,4551,4555,4559,4563,4567,4571,4576,4580,4584],{"type":993,"tag":1034,"props":4535,"children":4536},{"style":1066},[4537],{"type":998,"value":1187},{"type":993,"tag":1034,"props":4539,"children":4540},{"style":1049},[4541],{"type":998,"value":1192},{"type":993,"tag":1034,"props":4543,"children":4544},{"style":1055},[4545],{"type":998,"value":1197},{"type":993,"tag":1034,"props":4547,"children":4548},{"style":1103},[4549],{"type":998,"value":4550},"\"Age: ",{"type":993,"tag":1034,"props":4552,"children":4553},{"style":1066},[4554],{"type":998,"value":1207},{"type":993,"tag":1034,"props":4556,"children":4557},{"style":1049},[4558],{"type":998,"value":2884},{"type":993,"tag":1034,"props":4560,"children":4561},{"style":1066},[4562],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4564,"children":4565},{"style":1103},[4566],{"type":998,"value":4508},{"type":993,"tag":1034,"props":4568,"children":4569},{"style":1066},[4570],{"type":998,"value":2205},{"type":993,"tag":1034,"props":4572,"children":4573},{"style":1049},[4574],{"type":998,"value":4575},"(age)",{"type":993,"tag":1034,"props":4577,"children":4578},{"style":1066},[4579],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4581,"children":4582},{"style":1103},[4583],{"type":998,"value":4526},{"type":993,"tag":1034,"props":4585,"children":4586},{"style":1049},[4587],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4589,"children":4590},{"class":1036,"line":72},[4591,4595,4599,4603,4608,4612,4617,4621,4625,4629,4634,4638,4642],{"type":993,"tag":1034,"props":4592,"children":4593},{"style":1066},[4594],{"type":998,"value":1187},{"type":993,"tag":1034,"props":4596,"children":4597},{"style":1049},[4598],{"type":998,"value":1192},{"type":993,"tag":1034,"props":4600,"children":4601},{"style":1055},[4602],{"type":998,"value":1197},{"type":993,"tag":1034,"props":4604,"children":4605},{"style":1103},[4606],{"type":998,"value":4607},"\"Active: ",{"type":993,"tag":1034,"props":4609,"children":4610},{"style":1066},[4611],{"type":998,"value":1207},{"type":993,"tag":1034,"props":4613,"children":4614},{"style":1049},[4615],{"type":998,"value":4616},"is_active",{"type":993,"tag":1034,"props":4618,"children":4619},{"style":1066},[4620],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4622,"children":4623},{"style":1103},[4624],{"type":998,"value":4508},{"type":993,"tag":1034,"props":4626,"children":4627},{"style":1066},[4628],{"type":998,"value":2205},{"type":993,"tag":1034,"props":4630,"children":4631},{"style":1049},[4632],{"type":998,"value":4633},"(is_active)",{"type":993,"tag":1034,"props":4635,"children":4636},{"style":1066},[4637],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4639,"children":4640},{"style":1103},[4641],{"type":998,"value":4526},{"type":993,"tag":1034,"props":4643,"children":4644},{"style":1049},[4645],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4647,"children":4648},{"class":1036,"line":81},[4649,4653,4657,4661,4666,4670,4675,4679,4683,4687,4692,4696,4700],{"type":993,"tag":1034,"props":4650,"children":4651},{"style":1066},[4652],{"type":998,"value":1187},{"type":993,"tag":1034,"props":4654,"children":4655},{"style":1049},[4656],{"type":998,"value":1192},{"type":993,"tag":1034,"props":4658,"children":4659},{"style":1055},[4660],{"type":998,"value":1197},{"type":993,"tag":1034,"props":4662,"children":4663},{"style":1103},[4664],{"type":998,"value":4665},"\"Salary: ",{"type":993,"tag":1034,"props":4667,"children":4668},{"style":1066},[4669],{"type":998,"value":1207},{"type":993,"tag":1034,"props":4671,"children":4672},{"style":1049},[4673],{"type":998,"value":4674},"salary",{"type":993,"tag":1034,"props":4676,"children":4677},{"style":1066},[4678],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4680,"children":4681},{"style":1103},[4682],{"type":998,"value":4508},{"type":993,"tag":1034,"props":4684,"children":4685},{"style":1066},[4686],{"type":998,"value":2205},{"type":993,"tag":1034,"props":4688,"children":4689},{"style":1049},[4690],{"type":998,"value":4691},"(salary)",{"type":993,"tag":1034,"props":4693,"children":4694},{"style":1066},[4695],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4697,"children":4698},{"style":1103},[4699],{"type":998,"value":4526},{"type":993,"tag":1034,"props":4701,"children":4702},{"style":1049},[4703],{"type":998,"value":1084},{"type":993,"tag":1449,"props":4705,"children":4707},{"id":4706},"nested-tuple-structures",[4708],{"type":998,"value":4709},"Nested Tuple Structures",{"type":993,"tag":1021,"props":4711,"children":4712},{},[4713],{"type":993,"tag":1025,"props":4714,"children":4716},{"className":1027,"code":4715,"language":6,"meta":8,"style":8},"# Nested tuples\npoint_3d = (10, 20, 30)\nline = ((0, 0), (10, 10))\ntriangle = ((0, 0), (5, 0), (2.5, 4.33))\n\nprint(f\"3D Point: {point_3d}\")\nprint(f\"Line: {line}\")\nprint(f\"Triangle: {triangle}\")\n\n# Accessing nested elements\nstart_point, end_point = line\nprint(f\"Start: {start_point}, End: {end_point}\")\nprint(f\"Start X: {start_point[0]}\")\n",[4717],{"type":993,"tag":1007,"props":4718,"children":4719},{"__ignoreMap":8},[4720,4728,4768,4818,4884,4891,4932,4972,5013,5020,5028,5045,5104],{"type":993,"tag":1034,"props":4721,"children":4722},{"class":1036,"line":12},[4723],{"type":993,"tag":1034,"props":4724,"children":4725},{"style":1040},[4726],{"type":998,"value":4727},"# Nested tuples\n",{"type":993,"tag":1034,"props":4729,"children":4730},{"class":1036,"line":27},[4731,4736,4740,4744,4748,4752,4756,4760,4764],{"type":993,"tag":1034,"props":4732,"children":4733},{"style":1049},[4734],{"type":998,"value":4735},"point_3d ",{"type":993,"tag":1034,"props":4737,"children":4738},{"style":1055},[4739],{"type":998,"value":1058},{"type":993,"tag":1034,"props":4741,"children":4742},{"style":1049},[4743],{"type":998,"value":1063},{"type":993,"tag":1034,"props":4745,"children":4746},{"style":1066},[4747],{"type":998,"value":1069},{"type":993,"tag":1034,"props":4749,"children":4750},{"style":1049},[4751],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4753,"children":4754},{"style":1066},[4755],{"type":998,"value":1079},{"type":993,"tag":1034,"props":4757,"children":4758},{"style":1049},[4759],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4761,"children":4762},{"style":1066},[4763],{"type":998,"value":2476},{"type":993,"tag":1034,"props":4765,"children":4766},{"style":1049},[4767],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4769,"children":4770},{"class":1036,"line":36},[4771,4776,4780,4785,4789,4793,4797,4802,4806,4810,4814],{"type":993,"tag":1034,"props":4772,"children":4773},{"style":1049},[4774],{"type":998,"value":4775},"line ",{"type":993,"tag":1034,"props":4777,"children":4778},{"style":1055},[4779],{"type":998,"value":1058},{"type":993,"tag":1034,"props":4781,"children":4782},{"style":1049},[4783],{"type":998,"value":4784}," ((",{"type":993,"tag":1034,"props":4786,"children":4787},{"style":1066},[4788],{"type":998,"value":1544},{"type":993,"tag":1034,"props":4790,"children":4791},{"style":1049},[4792],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4794,"children":4795},{"style":1066},[4796],{"type":998,"value":1544},{"type":993,"tag":1034,"props":4798,"children":4799},{"style":1049},[4800],{"type":998,"value":4801},"), (",{"type":993,"tag":1034,"props":4803,"children":4804},{"style":1066},[4805],{"type":998,"value":1069},{"type":993,"tag":1034,"props":4807,"children":4808},{"style":1049},[4809],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4811,"children":4812},{"style":1066},[4813],{"type":998,"value":1069},{"type":993,"tag":1034,"props":4815,"children":4816},{"style":1049},[4817],{"type":998,"value":3720},{"type":993,"tag":1034,"props":4819,"children":4820},{"class":1036,"line":45},[4821,4826,4830,4834,4838,4842,4846,4850,4854,4858,4862,4866,4871,4875,4880],{"type":993,"tag":1034,"props":4822,"children":4823},{"style":1049},[4824],{"type":998,"value":4825},"triangle ",{"type":993,"tag":1034,"props":4827,"children":4828},{"style":1055},[4829],{"type":998,"value":1058},{"type":993,"tag":1034,"props":4831,"children":4832},{"style":1049},[4833],{"type":998,"value":4784},{"type":993,"tag":1034,"props":4835,"children":4836},{"style":1066},[4837],{"type":998,"value":1544},{"type":993,"tag":1034,"props":4839,"children":4840},{"style":1049},[4841],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4843,"children":4844},{"style":1066},[4845],{"type":998,"value":1544},{"type":993,"tag":1034,"props":4847,"children":4848},{"style":1049},[4849],{"type":998,"value":4801},{"type":993,"tag":1034,"props":4851,"children":4852},{"style":1066},[4853],{"type":998,"value":1493},{"type":993,"tag":1034,"props":4855,"children":4856},{"style":1049},[4857],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4859,"children":4860},{"style":1066},[4861],{"type":998,"value":1544},{"type":993,"tag":1034,"props":4863,"children":4864},{"style":1049},[4865],{"type":998,"value":4801},{"type":993,"tag":1034,"props":4867,"children":4868},{"style":1066},[4869],{"type":998,"value":4870},"2.5",{"type":993,"tag":1034,"props":4872,"children":4873},{"style":1049},[4874],{"type":998,"value":1074},{"type":993,"tag":1034,"props":4876,"children":4877},{"style":1066},[4878],{"type":998,"value":4879},"4.33",{"type":993,"tag":1034,"props":4881,"children":4882},{"style":1049},[4883],{"type":998,"value":3720},{"type":993,"tag":1034,"props":4885,"children":4886},{"class":1036,"line":54},[4887],{"type":993,"tag":1034,"props":4888,"children":4889},{"emptyLinePlaceholder":13},[4890],{"type":998,"value":1179},{"type":993,"tag":1034,"props":4892,"children":4893},{"class":1036,"line":63},[4894,4898,4902,4906,4911,4915,4920,4924,4928],{"type":993,"tag":1034,"props":4895,"children":4896},{"style":1066},[4897],{"type":998,"value":1187},{"type":993,"tag":1034,"props":4899,"children":4900},{"style":1049},[4901],{"type":998,"value":1192},{"type":993,"tag":1034,"props":4903,"children":4904},{"style":1055},[4905],{"type":998,"value":1197},{"type":993,"tag":1034,"props":4907,"children":4908},{"style":1103},[4909],{"type":998,"value":4910},"\"3D Point: ",{"type":993,"tag":1034,"props":4912,"children":4913},{"style":1066},[4914],{"type":998,"value":1207},{"type":993,"tag":1034,"props":4916,"children":4917},{"style":1049},[4918],{"type":998,"value":4919},"point_3d",{"type":993,"tag":1034,"props":4921,"children":4922},{"style":1066},[4923],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4925,"children":4926},{"style":1103},[4927],{"type":998,"value":1222},{"type":993,"tag":1034,"props":4929,"children":4930},{"style":1049},[4931],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4933,"children":4934},{"class":1036,"line":72},[4935,4939,4943,4947,4952,4956,4960,4964,4968],{"type":993,"tag":1034,"props":4936,"children":4937},{"style":1066},[4938],{"type":998,"value":1187},{"type":993,"tag":1034,"props":4940,"children":4941},{"style":1049},[4942],{"type":998,"value":1192},{"type":993,"tag":1034,"props":4944,"children":4945},{"style":1055},[4946],{"type":998,"value":1197},{"type":993,"tag":1034,"props":4948,"children":4949},{"style":1103},[4950],{"type":998,"value":4951},"\"Line: ",{"type":993,"tag":1034,"props":4953,"children":4954},{"style":1066},[4955],{"type":998,"value":1207},{"type":993,"tag":1034,"props":4957,"children":4958},{"style":1049},[4959],{"type":998,"value":1036},{"type":993,"tag":1034,"props":4961,"children":4962},{"style":1066},[4963],{"type":998,"value":1217},{"type":993,"tag":1034,"props":4965,"children":4966},{"style":1103},[4967],{"type":998,"value":1222},{"type":993,"tag":1034,"props":4969,"children":4970},{"style":1049},[4971],{"type":998,"value":1084},{"type":993,"tag":1034,"props":4973,"children":4974},{"class":1036,"line":81},[4975,4979,4983,4987,4992,4996,5001,5005,5009],{"type":993,"tag":1034,"props":4976,"children":4977},{"style":1066},[4978],{"type":998,"value":1187},{"type":993,"tag":1034,"props":4980,"children":4981},{"style":1049},[4982],{"type":998,"value":1192},{"type":993,"tag":1034,"props":4984,"children":4985},{"style":1055},[4986],{"type":998,"value":1197},{"type":993,"tag":1034,"props":4988,"children":4989},{"style":1103},[4990],{"type":998,"value":4991},"\"Triangle: ",{"type":993,"tag":1034,"props":4993,"children":4994},{"style":1066},[4995],{"type":998,"value":1207},{"type":993,"tag":1034,"props":4997,"children":4998},{"style":1049},[4999],{"type":998,"value":5000},"triangle",{"type":993,"tag":1034,"props":5002,"children":5003},{"style":1066},[5004],{"type":998,"value":1217},{"type":993,"tag":1034,"props":5006,"children":5007},{"style":1103},[5008],{"type":998,"value":1222},{"type":993,"tag":1034,"props":5010,"children":5011},{"style":1049},[5012],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5014,"children":5015},{"class":1036,"line":91},[5016],{"type":993,"tag":1034,"props":5017,"children":5018},{"emptyLinePlaceholder":13},[5019],{"type":998,"value":1179},{"type":993,"tag":1034,"props":5021,"children":5022},{"class":1036,"line":100},[5023],{"type":993,"tag":1034,"props":5024,"children":5025},{"style":1040},[5026],{"type":998,"value":5027},"# Accessing nested elements\n",{"type":993,"tag":1034,"props":5029,"children":5030},{"class":1036,"line":109},[5031,5036,5040],{"type":993,"tag":1034,"props":5032,"children":5033},{"style":1049},[5034],{"type":998,"value":5035},"start_point, end_point ",{"type":993,"tag":1034,"props":5037,"children":5038},{"style":1055},[5039],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5041,"children":5042},{"style":1049},[5043],{"type":998,"value":5044}," line\n",{"type":993,"tag":1034,"props":5046,"children":5047},{"class":1036,"line":118},[5048,5052,5056,5060,5065,5069,5074,5078,5083,5087,5092,5096,5100],{"type":993,"tag":1034,"props":5049,"children":5050},{"style":1066},[5051],{"type":998,"value":1187},{"type":993,"tag":1034,"props":5053,"children":5054},{"style":1049},[5055],{"type":998,"value":1192},{"type":993,"tag":1034,"props":5057,"children":5058},{"style":1055},[5059],{"type":998,"value":1197},{"type":993,"tag":1034,"props":5061,"children":5062},{"style":1103},[5063],{"type":998,"value":5064},"\"Start: ",{"type":993,"tag":1034,"props":5066,"children":5067},{"style":1066},[5068],{"type":998,"value":1207},{"type":993,"tag":1034,"props":5070,"children":5071},{"style":1049},[5072],{"type":998,"value":5073},"start_point",{"type":993,"tag":1034,"props":5075,"children":5076},{"style":1066},[5077],{"type":998,"value":1217},{"type":993,"tag":1034,"props":5079,"children":5080},{"style":1103},[5081],{"type":998,"value":5082},", End: ",{"type":993,"tag":1034,"props":5084,"children":5085},{"style":1066},[5086],{"type":998,"value":1207},{"type":993,"tag":1034,"props":5088,"children":5089},{"style":1049},[5090],{"type":998,"value":5091},"end_point",{"type":993,"tag":1034,"props":5093,"children":5094},{"style":1066},[5095],{"type":998,"value":1217},{"type":993,"tag":1034,"props":5097,"children":5098},{"style":1103},[5099],{"type":998,"value":1222},{"type":993,"tag":1034,"props":5101,"children":5102},{"style":1049},[5103],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5105,"children":5106},{"class":1036,"line":127},[5107,5111,5115,5119,5124,5128,5133,5137,5142,5146,5150],{"type":993,"tag":1034,"props":5108,"children":5109},{"style":1066},[5110],{"type":998,"value":1187},{"type":993,"tag":1034,"props":5112,"children":5113},{"style":1049},[5114],{"type":998,"value":1192},{"type":993,"tag":1034,"props":5116,"children":5117},{"style":1055},[5118],{"type":998,"value":1197},{"type":993,"tag":1034,"props":5120,"children":5121},{"style":1103},[5122],{"type":998,"value":5123},"\"Start X: ",{"type":993,"tag":1034,"props":5125,"children":5126},{"style":1066},[5127],{"type":998,"value":1207},{"type":993,"tag":1034,"props":5129,"children":5130},{"style":1049},[5131],{"type":998,"value":5132},"start_point[",{"type":993,"tag":1034,"props":5134,"children":5135},{"style":1066},[5136],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5138,"children":5139},{"style":1049},[5140],{"type":998,"value":5141},"]",{"type":993,"tag":1034,"props":5143,"children":5144},{"style":1066},[5145],{"type":998,"value":1217},{"type":993,"tag":1034,"props":5147,"children":5148},{"style":1103},[5149],{"type":998,"value":1222},{"type":993,"tag":1034,"props":5151,"children":5152},{"style":1049},[5153],{"type":998,"value":1084},{"type":993,"tag":1310,"props":5155,"children":5157},{"id":5156},"tuple-creation-best-practices",[5158],{"type":998,"value":5159},"⭐ Tuple Creation Best Practices",{"type":993,"tag":1322,"props":5161,"children":5164},{"emoji":5162,"title":5163,"type":2319},"⭐","Tuple Creation Best Practices",[5165,5173,5196,5203,5240,5250],{"type":993,"tag":1001,"props":5166,"children":5167},{},[5168],{"type":993,"tag":1332,"props":5169,"children":5170},{},[5171],{"type":998,"value":5172},"Code Quality:",{"type":993,"tag":1338,"props":5174,"children":5175},{},[5176,5181,5186,5191],{"type":993,"tag":1342,"props":5177,"children":5178},{},[5179],{"type":998,"value":5180},"Use descriptive variable names",{"type":993,"tag":1342,"props":5182,"children":5183},{},[5184],{"type":998,"value":5185},"Include parentheses for clarity in complex expressions",{"type":993,"tag":1342,"props":5187,"children":5188},{},[5189],{"type":998,"value":5190},"Group related data logically",{"type":993,"tag":1342,"props":5192,"children":5193},{},[5194],{"type":998,"value":5195},"Document tuple structure for complex data",{"type":993,"tag":1001,"props":5197,"children":5198},{},[5199],{"type":993,"tag":1332,"props":5200,"children":5201},{},[5202],{"type":998,"value":3239},{"type":993,"tag":1338,"props":5204,"children":5205},{},[5206,5225,5230,5235],{"type":993,"tag":1342,"props":5207,"children":5208},{},[5209,5211,5216,5218,5223],{"type":998,"value":5210},"Use literal syntax ",{"type":993,"tag":1007,"props":5212,"children":5214},{"className":5213},[],[5215],{"type":998,"value":1012},{"type":998,"value":5217}," over ",{"type":993,"tag":1007,"props":5219,"children":5221},{"className":5220},[],[5222],{"type":998,"value":1370},{"type":998,"value":5224}," when possible",{"type":993,"tag":1342,"props":5226,"children":5227},{},[5228],{"type":998,"value":5229},"Consider named tuples for complex structures",{"type":993,"tag":1342,"props":5231,"children":5232},{},[5233],{"type":998,"value":5234},"Cache frequently used tuples",{"type":993,"tag":1342,"props":5236,"children":5237},{},[5238],{"type":998,"value":5239},"Use tuples for immutable data",{"type":993,"tag":1001,"props":5241,"children":5242},{},[5243,5248],{"type":993,"tag":1332,"props":5244,"children":5245},{},[5246],{"type":998,"value":5247},"Maintainability:",{"type":998,"value":5249}," Clear tuple structure makes code easier to understand",{"type":993,"tag":1001,"props":5251,"children":5252},{},[5253,5258],{"type":993,"tag":1332,"props":5254,"children":5255},{},[5256],{"type":998,"value":5257},"Documentation:",{"type":998,"value":5259}," Comment complex tuple structures for team collaboration",{"type":993,"tag":1449,"props":5261,"children":5263},{"id":5262},"descriptive-tuple-creation",[5264],{"type":998,"value":5265},"Descriptive Tuple Creation",{"type":993,"tag":1021,"props":5267,"children":5268},{},[5269],{"type":993,"tag":1025,"props":5270,"children":5272},{"className":1027,"code":5271,"language":6,"meta":8,"style":8},"# Good tuple creation practices\n# Clear, descriptive names\nuser_profile = (\"john_doe\", \"john@email.com\", 25, True)\nscreen_resolution = (1920, 1080)\nrgb_red = (255, 0, 0)\n\n# Documented complex structures\n# Format: (name, price, category, in_stock, ratings)\nproduct_info = (\"Gaming Laptop\", 1299.99, \"Electronics\", True, 4.5)\n\nprint(f\"User: {user_profile}\")\nprint(f\"Resolution: {screen_resolution}\")\nprint(f\"Product: {product_info}\")\n",[5273],{"type":993,"tag":1007,"props":5274,"children":5275},{"__ignoreMap":8},[5276,5284,5292,5342,5376,5416,5423,5431,5439,5498,5505,5546,5587],{"type":993,"tag":1034,"props":5277,"children":5278},{"class":1036,"line":12},[5279],{"type":993,"tag":1034,"props":5280,"children":5281},{"style":1040},[5282],{"type":998,"value":5283},"# Good tuple creation practices\n",{"type":993,"tag":1034,"props":5285,"children":5286},{"class":1036,"line":27},[5287],{"type":993,"tag":1034,"props":5288,"children":5289},{"style":1040},[5290],{"type":998,"value":5291},"# Clear, descriptive names\n",{"type":993,"tag":1034,"props":5293,"children":5294},{"class":1036,"line":36},[5295,5300,5304,5308,5313,5317,5322,5326,5330,5334,5338],{"type":993,"tag":1034,"props":5296,"children":5297},{"style":1049},[5298],{"type":998,"value":5299},"user_profile ",{"type":993,"tag":1034,"props":5301,"children":5302},{"style":1055},[5303],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5305,"children":5306},{"style":1049},[5307],{"type":998,"value":1063},{"type":993,"tag":1034,"props":5309,"children":5310},{"style":1103},[5311],{"type":998,"value":5312},"\"john_doe\"",{"type":993,"tag":1034,"props":5314,"children":5315},{"style":1049},[5316],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5318,"children":5319},{"style":1103},[5320],{"type":998,"value":5321},"\"john@email.com\"",{"type":993,"tag":1034,"props":5323,"children":5324},{"style":1049},[5325],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5327,"children":5328},{"style":1066},[5329],{"type":998,"value":1115},{"type":993,"tag":1034,"props":5331,"children":5332},{"style":1049},[5333],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5335,"children":5336},{"style":1066},[5337],{"type":998,"value":1760},{"type":993,"tag":1034,"props":5339,"children":5340},{"style":1049},[5341],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5343,"children":5344},{"class":1036,"line":45},[5345,5350,5354,5358,5363,5367,5372],{"type":993,"tag":1034,"props":5346,"children":5347},{"style":1049},[5348],{"type":998,"value":5349},"screen_resolution ",{"type":993,"tag":1034,"props":5351,"children":5352},{"style":1055},[5353],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5355,"children":5356},{"style":1049},[5357],{"type":998,"value":1063},{"type":993,"tag":1034,"props":5359,"children":5360},{"style":1066},[5361],{"type":998,"value":5362},"1920",{"type":993,"tag":1034,"props":5364,"children":5365},{"style":1049},[5366],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5368,"children":5369},{"style":1066},[5370],{"type":998,"value":5371},"1080",{"type":993,"tag":1034,"props":5373,"children":5374},{"style":1049},[5375],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5377,"children":5378},{"class":1036,"line":54},[5379,5384,5388,5392,5396,5400,5404,5408,5412],{"type":993,"tag":1034,"props":5380,"children":5381},{"style":1049},[5382],{"type":998,"value":5383},"rgb_red ",{"type":993,"tag":1034,"props":5385,"children":5386},{"style":1055},[5387],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5389,"children":5390},{"style":1049},[5391],{"type":998,"value":1063},{"type":993,"tag":1034,"props":5393,"children":5394},{"style":1066},[5395],{"type":998,"value":1526},{"type":993,"tag":1034,"props":5397,"children":5398},{"style":1049},[5399],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5401,"children":5402},{"style":1066},[5403],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5405,"children":5406},{"style":1049},[5407],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5409,"children":5410},{"style":1066},[5411],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5413,"children":5414},{"style":1049},[5415],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5417,"children":5418},{"class":1036,"line":63},[5419],{"type":993,"tag":1034,"props":5420,"children":5421},{"emptyLinePlaceholder":13},[5422],{"type":998,"value":1179},{"type":993,"tag":1034,"props":5424,"children":5425},{"class":1036,"line":72},[5426],{"type":993,"tag":1034,"props":5427,"children":5428},{"style":1040},[5429],{"type":998,"value":5430},"# Documented complex structures\n",{"type":993,"tag":1034,"props":5432,"children":5433},{"class":1036,"line":81},[5434],{"type":993,"tag":1034,"props":5435,"children":5436},{"style":1040},[5437],{"type":998,"value":5438},"# Format: (name, price, category, in_stock, ratings)\n",{"type":993,"tag":1034,"props":5440,"children":5441},{"class":1036,"line":91},[5442,5447,5451,5455,5460,5464,5469,5473,5477,5481,5485,5489,5494],{"type":993,"tag":1034,"props":5443,"children":5444},{"style":1049},[5445],{"type":998,"value":5446},"product_info ",{"type":993,"tag":1034,"props":5448,"children":5449},{"style":1055},[5450],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5452,"children":5453},{"style":1049},[5454],{"type":998,"value":1063},{"type":993,"tag":1034,"props":5456,"children":5457},{"style":1103},[5458],{"type":998,"value":5459},"\"Gaming Laptop\"",{"type":993,"tag":1034,"props":5461,"children":5462},{"style":1049},[5463],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5465,"children":5466},{"style":1066},[5467],{"type":998,"value":5468},"1299.99",{"type":993,"tag":1034,"props":5470,"children":5471},{"style":1049},[5472],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5474,"children":5475},{"style":1103},[5476],{"type":998,"value":1751},{"type":993,"tag":1034,"props":5478,"children":5479},{"style":1049},[5480],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5482,"children":5483},{"style":1066},[5484],{"type":998,"value":1760},{"type":993,"tag":1034,"props":5486,"children":5487},{"style":1049},[5488],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5490,"children":5491},{"style":1066},[5492],{"type":998,"value":5493},"4.5",{"type":993,"tag":1034,"props":5495,"children":5496},{"style":1049},[5497],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5499,"children":5500},{"class":1036,"line":100},[5501],{"type":993,"tag":1034,"props":5502,"children":5503},{"emptyLinePlaceholder":13},[5504],{"type":998,"value":1179},{"type":993,"tag":1034,"props":5506,"children":5507},{"class":1036,"line":109},[5508,5512,5516,5520,5525,5529,5534,5538,5542],{"type":993,"tag":1034,"props":5509,"children":5510},{"style":1066},[5511],{"type":998,"value":1187},{"type":993,"tag":1034,"props":5513,"children":5514},{"style":1049},[5515],{"type":998,"value":1192},{"type":993,"tag":1034,"props":5517,"children":5518},{"style":1055},[5519],{"type":998,"value":1197},{"type":993,"tag":1034,"props":5521,"children":5522},{"style":1103},[5523],{"type":998,"value":5524},"\"User: ",{"type":993,"tag":1034,"props":5526,"children":5527},{"style":1066},[5528],{"type":998,"value":1207},{"type":993,"tag":1034,"props":5530,"children":5531},{"style":1049},[5532],{"type":998,"value":5533},"user_profile",{"type":993,"tag":1034,"props":5535,"children":5536},{"style":1066},[5537],{"type":998,"value":1217},{"type":993,"tag":1034,"props":5539,"children":5540},{"style":1103},[5541],{"type":998,"value":1222},{"type":993,"tag":1034,"props":5543,"children":5544},{"style":1049},[5545],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5547,"children":5548},{"class":1036,"line":118},[5549,5553,5557,5561,5566,5570,5575,5579,5583],{"type":993,"tag":1034,"props":5550,"children":5551},{"style":1066},[5552],{"type":998,"value":1187},{"type":993,"tag":1034,"props":5554,"children":5555},{"style":1049},[5556],{"type":998,"value":1192},{"type":993,"tag":1034,"props":5558,"children":5559},{"style":1055},[5560],{"type":998,"value":1197},{"type":993,"tag":1034,"props":5562,"children":5563},{"style":1103},[5564],{"type":998,"value":5565},"\"Resolution: ",{"type":993,"tag":1034,"props":5567,"children":5568},{"style":1066},[5569],{"type":998,"value":1207},{"type":993,"tag":1034,"props":5571,"children":5572},{"style":1049},[5573],{"type":998,"value":5574},"screen_resolution",{"type":993,"tag":1034,"props":5576,"children":5577},{"style":1066},[5578],{"type":998,"value":1217},{"type":993,"tag":1034,"props":5580,"children":5581},{"style":1103},[5582],{"type":998,"value":1222},{"type":993,"tag":1034,"props":5584,"children":5585},{"style":1049},[5586],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5588,"children":5589},{"class":1036,"line":127},[5590,5594,5598,5602,5606,5610,5615,5619,5623],{"type":993,"tag":1034,"props":5591,"children":5592},{"style":1066},[5593],{"type":998,"value":1187},{"type":993,"tag":1034,"props":5595,"children":5596},{"style":1049},[5597],{"type":998,"value":1192},{"type":993,"tag":1034,"props":5599,"children":5600},{"style":1055},[5601],{"type":998,"value":1197},{"type":993,"tag":1034,"props":5603,"children":5604},{"style":1103},[5605],{"type":998,"value":1832},{"type":993,"tag":1034,"props":5607,"children":5608},{"style":1066},[5609],{"type":998,"value":1207},{"type":993,"tag":1034,"props":5611,"children":5612},{"style":1049},[5613],{"type":998,"value":5614},"product_info",{"type":993,"tag":1034,"props":5616,"children":5617},{"style":1066},[5618],{"type":998,"value":1217},{"type":993,"tag":1034,"props":5620,"children":5621},{"style":1103},[5622],{"type":998,"value":1222},{"type":993,"tag":1034,"props":5624,"children":5625},{"style":1049},[5626],{"type":998,"value":1084},{"type":993,"tag":1449,"props":5628,"children":5630},{"id":5629},"common-tuple-patterns",[5631],{"type":998,"value":5632},"Common Tuple Patterns",{"type":993,"tag":1021,"props":5634,"children":5635},{},[5636],{"type":993,"tag":1025,"props":5637,"children":5639},{"className":1027,"code":5638,"language":6,"meta":8,"style":8},"# Common tuple patterns\n# Coordinates\norigin = (0, 0)\ndestination = (100, 50)\n\n# RGB colors\nred = (255, 0, 0)\ngreen = (0, 255, 0)\nblue = (0, 0, 255)\n\n# Database-like records\nstudents = [\n    (\"Alice\", 20, \"Computer Science\"),\n    (\"Bob\", 19, \"Mathematics\"),\n    (\"Carol\", 21, \"Physics\")\n]\n\nprint(f\"Route: {origin} to {destination}\")\nprint(f\"Colors: {red}, {green}, {blue}\")\nprint(f\"Students: {students}\")\n",[5640],{"type":993,"tag":1007,"props":5641,"children":5642},{"__ignoreMap":8},[5643,5651,5659,5691,5725,5732,5740,5780,5820,5860,5867,5875,5892,5925,5958,5991,5998,6005,6064,6139],{"type":993,"tag":1034,"props":5644,"children":5645},{"class":1036,"line":12},[5646],{"type":993,"tag":1034,"props":5647,"children":5648},{"style":1040},[5649],{"type":998,"value":5650},"# Common tuple patterns\n",{"type":993,"tag":1034,"props":5652,"children":5653},{"class":1036,"line":27},[5654],{"type":993,"tag":1034,"props":5655,"children":5656},{"style":1040},[5657],{"type":998,"value":5658},"# Coordinates\n",{"type":993,"tag":1034,"props":5660,"children":5661},{"class":1036,"line":36},[5662,5667,5671,5675,5679,5683,5687],{"type":993,"tag":1034,"props":5663,"children":5664},{"style":1049},[5665],{"type":998,"value":5666},"origin ",{"type":993,"tag":1034,"props":5668,"children":5669},{"style":1055},[5670],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5672,"children":5673},{"style":1049},[5674],{"type":998,"value":1063},{"type":993,"tag":1034,"props":5676,"children":5677},{"style":1066},[5678],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5680,"children":5681},{"style":1049},[5682],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5684,"children":5685},{"style":1066},[5686],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5688,"children":5689},{"style":1049},[5690],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5692,"children":5693},{"class":1036,"line":45},[5694,5699,5703,5707,5712,5716,5721],{"type":993,"tag":1034,"props":5695,"children":5696},{"style":1049},[5697],{"type":998,"value":5698},"destination ",{"type":993,"tag":1034,"props":5700,"children":5701},{"style":1055},[5702],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5704,"children":5705},{"style":1049},[5706],{"type":998,"value":1063},{"type":993,"tag":1034,"props":5708,"children":5709},{"style":1066},[5710],{"type":998,"value":5711},"100",{"type":993,"tag":1034,"props":5713,"children":5714},{"style":1049},[5715],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5717,"children":5718},{"style":1066},[5719],{"type":998,"value":5720},"50",{"type":993,"tag":1034,"props":5722,"children":5723},{"style":1049},[5724],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5726,"children":5727},{"class":1036,"line":54},[5728],{"type":993,"tag":1034,"props":5729,"children":5730},{"emptyLinePlaceholder":13},[5731],{"type":998,"value":1179},{"type":993,"tag":1034,"props":5733,"children":5734},{"class":1036,"line":63},[5735],{"type":993,"tag":1034,"props":5736,"children":5737},{"style":1040},[5738],{"type":998,"value":5739},"# RGB colors\n",{"type":993,"tag":1034,"props":5741,"children":5742},{"class":1036,"line":72},[5743,5748,5752,5756,5760,5764,5768,5772,5776],{"type":993,"tag":1034,"props":5744,"children":5745},{"style":1049},[5746],{"type":998,"value":5747},"red ",{"type":993,"tag":1034,"props":5749,"children":5750},{"style":1055},[5751],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5753,"children":5754},{"style":1049},[5755],{"type":998,"value":1063},{"type":993,"tag":1034,"props":5757,"children":5758},{"style":1066},[5759],{"type":998,"value":1526},{"type":993,"tag":1034,"props":5761,"children":5762},{"style":1049},[5763],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5765,"children":5766},{"style":1066},[5767],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5769,"children":5770},{"style":1049},[5771],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5773,"children":5774},{"style":1066},[5775],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5777,"children":5778},{"style":1049},[5779],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5781,"children":5782},{"class":1036,"line":81},[5783,5788,5792,5796,5800,5804,5808,5812,5816],{"type":993,"tag":1034,"props":5784,"children":5785},{"style":1049},[5786],{"type":998,"value":5787},"green ",{"type":993,"tag":1034,"props":5789,"children":5790},{"style":1055},[5791],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5793,"children":5794},{"style":1049},[5795],{"type":998,"value":1063},{"type":993,"tag":1034,"props":5797,"children":5798},{"style":1066},[5799],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5801,"children":5802},{"style":1049},[5803],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5805,"children":5806},{"style":1066},[5807],{"type":998,"value":1526},{"type":993,"tag":1034,"props":5809,"children":5810},{"style":1049},[5811],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5813,"children":5814},{"style":1066},[5815],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5817,"children":5818},{"style":1049},[5819],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5821,"children":5822},{"class":1036,"line":91},[5823,5828,5832,5836,5840,5844,5848,5852,5856],{"type":993,"tag":1034,"props":5824,"children":5825},{"style":1049},[5826],{"type":998,"value":5827},"blue ",{"type":993,"tag":1034,"props":5829,"children":5830},{"style":1055},[5831],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5833,"children":5834},{"style":1049},[5835],{"type":998,"value":1063},{"type":993,"tag":1034,"props":5837,"children":5838},{"style":1066},[5839],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5841,"children":5842},{"style":1049},[5843],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5845,"children":5846},{"style":1066},[5847],{"type":998,"value":1544},{"type":993,"tag":1034,"props":5849,"children":5850},{"style":1049},[5851],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5853,"children":5854},{"style":1066},[5855],{"type":998,"value":1526},{"type":993,"tag":1034,"props":5857,"children":5858},{"style":1049},[5859],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5861,"children":5862},{"class":1036,"line":100},[5863],{"type":993,"tag":1034,"props":5864,"children":5865},{"emptyLinePlaceholder":13},[5866],{"type":998,"value":1179},{"type":993,"tag":1034,"props":5868,"children":5869},{"class":1036,"line":109},[5870],{"type":993,"tag":1034,"props":5871,"children":5872},{"style":1040},[5873],{"type":998,"value":5874},"# Database-like records\n",{"type":993,"tag":1034,"props":5876,"children":5877},{"class":1036,"line":118},[5878,5883,5887],{"type":993,"tag":1034,"props":5879,"children":5880},{"style":1049},[5881],{"type":998,"value":5882},"students ",{"type":993,"tag":1034,"props":5884,"children":5885},{"style":1055},[5886],{"type":998,"value":1058},{"type":993,"tag":1034,"props":5888,"children":5889},{"style":1049},[5890],{"type":998,"value":5891}," [\n",{"type":993,"tag":1034,"props":5893,"children":5894},{"class":1036,"line":127},[5895,5900,5904,5908,5912,5916,5920],{"type":993,"tag":1034,"props":5896,"children":5897},{"style":1049},[5898],{"type":998,"value":5899},"    (",{"type":993,"tag":1034,"props":5901,"children":5902},{"style":1103},[5903],{"type":998,"value":1106},{"type":993,"tag":1034,"props":5905,"children":5906},{"style":1049},[5907],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5909,"children":5910},{"style":1066},[5911],{"type":998,"value":1079},{"type":993,"tag":1034,"props":5913,"children":5914},{"style":1049},[5915],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5917,"children":5918},{"style":1103},[5919],{"type":998,"value":1699},{"type":993,"tag":1034,"props":5921,"children":5922},{"style":1049},[5923],{"type":998,"value":5924},"),\n",{"type":993,"tag":1034,"props":5926,"children":5927},{"class":1036,"line":136},[5928,5932,5936,5940,5945,5949,5954],{"type":993,"tag":1034,"props":5929,"children":5930},{"style":1049},[5931],{"type":998,"value":5899},{"type":993,"tag":1034,"props":5933,"children":5934},{"style":1103},[5935],{"type":998,"value":3490},{"type":993,"tag":1034,"props":5937,"children":5938},{"style":1049},[5939],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5941,"children":5942},{"style":1066},[5943],{"type":998,"value":5944},"19",{"type":993,"tag":1034,"props":5946,"children":5947},{"style":1049},[5948],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5950,"children":5951},{"style":1103},[5952],{"type":998,"value":5953},"\"Mathematics\"",{"type":993,"tag":1034,"props":5955,"children":5956},{"style":1049},[5957],{"type":998,"value":5924},{"type":993,"tag":1034,"props":5959,"children":5960},{"class":1036,"line":146},[5961,5965,5969,5973,5978,5982,5987],{"type":993,"tag":1034,"props":5962,"children":5963},{"style":1049},[5964],{"type":998,"value":5899},{"type":993,"tag":1034,"props":5966,"children":5967},{"style":1103},[5968],{"type":998,"value":3499},{"type":993,"tag":1034,"props":5970,"children":5971},{"style":1049},[5972],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5974,"children":5975},{"style":1066},[5976],{"type":998,"value":5977},"21",{"type":993,"tag":1034,"props":5979,"children":5980},{"style":1049},[5981],{"type":998,"value":1074},{"type":993,"tag":1034,"props":5983,"children":5984},{"style":1103},[5985],{"type":998,"value":5986},"\"Physics\"",{"type":993,"tag":1034,"props":5988,"children":5989},{"style":1049},[5990],{"type":998,"value":1084},{"type":993,"tag":1034,"props":5992,"children":5993},{"class":1036,"line":155},[5994],{"type":993,"tag":1034,"props":5995,"children":5996},{"style":1049},[5997],{"type":998,"value":3327},{"type":993,"tag":1034,"props":5999,"children":6000},{"class":1036,"line":164},[6001],{"type":993,"tag":1034,"props":6002,"children":6003},{"emptyLinePlaceholder":13},[6004],{"type":998,"value":1179},{"type":993,"tag":1034,"props":6006,"children":6007},{"class":1036,"line":173},[6008,6012,6016,6020,6025,6029,6034,6038,6043,6047,6052,6056,6060],{"type":993,"tag":1034,"props":6009,"children":6010},{"style":1066},[6011],{"type":998,"value":1187},{"type":993,"tag":1034,"props":6013,"children":6014},{"style":1049},[6015],{"type":998,"value":1192},{"type":993,"tag":1034,"props":6017,"children":6018},{"style":1055},[6019],{"type":998,"value":1197},{"type":993,"tag":1034,"props":6021,"children":6022},{"style":1103},[6023],{"type":998,"value":6024},"\"Route: ",{"type":993,"tag":1034,"props":6026,"children":6027},{"style":1066},[6028],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6030,"children":6031},{"style":1049},[6032],{"type":998,"value":6033},"origin",{"type":993,"tag":1034,"props":6035,"children":6036},{"style":1066},[6037],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6039,"children":6040},{"style":1103},[6041],{"type":998,"value":6042}," to ",{"type":993,"tag":1034,"props":6044,"children":6045},{"style":1066},[6046],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6048,"children":6049},{"style":1049},[6050],{"type":998,"value":6051},"destination",{"type":993,"tag":1034,"props":6053,"children":6054},{"style":1066},[6055],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6057,"children":6058},{"style":1103},[6059],{"type":998,"value":1222},{"type":993,"tag":1034,"props":6061,"children":6062},{"style":1049},[6063],{"type":998,"value":1084},{"type":993,"tag":1034,"props":6065,"children":6066},{"class":1036,"line":182},[6067,6071,6075,6079,6084,6088,6093,6097,6101,6105,6110,6114,6118,6122,6127,6131,6135],{"type":993,"tag":1034,"props":6068,"children":6069},{"style":1066},[6070],{"type":998,"value":1187},{"type":993,"tag":1034,"props":6072,"children":6073},{"style":1049},[6074],{"type":998,"value":1192},{"type":993,"tag":1034,"props":6076,"children":6077},{"style":1055},[6078],{"type":998,"value":1197},{"type":993,"tag":1034,"props":6080,"children":6081},{"style":1103},[6082],{"type":998,"value":6083},"\"Colors: ",{"type":993,"tag":1034,"props":6085,"children":6086},{"style":1066},[6087],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6089,"children":6090},{"style":1049},[6091],{"type":998,"value":6092},"red",{"type":993,"tag":1034,"props":6094,"children":6095},{"style":1066},[6096],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6098,"children":6099},{"style":1103},[6100],{"type":998,"value":1074},{"type":993,"tag":1034,"props":6102,"children":6103},{"style":1066},[6104],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6106,"children":6107},{"style":1049},[6108],{"type":998,"value":6109},"green",{"type":993,"tag":1034,"props":6111,"children":6112},{"style":1066},[6113],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6115,"children":6116},{"style":1103},[6117],{"type":998,"value":1074},{"type":993,"tag":1034,"props":6119,"children":6120},{"style":1066},[6121],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6123,"children":6124},{"style":1049},[6125],{"type":998,"value":6126},"blue",{"type":993,"tag":1034,"props":6128,"children":6129},{"style":1066},[6130],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6132,"children":6133},{"style":1103},[6134],{"type":998,"value":1222},{"type":993,"tag":1034,"props":6136,"children":6137},{"style":1049},[6138],{"type":998,"value":1084},{"type":993,"tag":1034,"props":6140,"children":6141},{"class":1036,"line":191},[6142,6146,6150,6154,6159,6163,6168,6172,6176],{"type":993,"tag":1034,"props":6143,"children":6144},{"style":1066},[6145],{"type":998,"value":1187},{"type":993,"tag":1034,"props":6147,"children":6148},{"style":1049},[6149],{"type":998,"value":1192},{"type":993,"tag":1034,"props":6151,"children":6152},{"style":1055},[6153],{"type":998,"value":1197},{"type":993,"tag":1034,"props":6155,"children":6156},{"style":1103},[6157],{"type":998,"value":6158},"\"Students: ",{"type":993,"tag":1034,"props":6160,"children":6161},{"style":1066},[6162],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6164,"children":6165},{"style":1049},[6166],{"type":998,"value":6167},"students",{"type":993,"tag":1034,"props":6169,"children":6170},{"style":1066},[6171],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6173,"children":6174},{"style":1103},[6175],{"type":998,"value":1222},{"type":993,"tag":1034,"props":6177,"children":6178},{"style":1049},[6179],{"type":998,"value":1084},{"type":993,"tag":1310,"props":6181,"children":6183},{"id":6182},"tuple-creation-reference",[6184],{"type":998,"value":6185},"📋 Tuple Creation Reference",{"type":993,"tag":1001,"props":6187,"children":6188},{},[6189],{"type":998,"value":6190},"Common tuple creation methods and their use cases:",{"type":993,"tag":6192,"props":6193,"children":6194},"table",{},[6195,6224],{"type":993,"tag":6196,"props":6197,"children":6198},"thead",{},[6199],{"type":993,"tag":6200,"props":6201,"children":6202},"tr",{},[6203,6209,6214,6219],{"type":993,"tag":6204,"props":6205,"children":6206},"th",{},[6207],{"type":998,"value":6208},"Method",{"type":993,"tag":6204,"props":6210,"children":6211},{},[6212],{"type":998,"value":6213},"Syntax",{"type":993,"tag":6204,"props":6215,"children":6216},{},[6217],{"type":998,"value":6218},"Use Case",{"type":993,"tag":6204,"props":6220,"children":6221},{},[6222],{"type":998,"value":6223},"Example",{"type":993,"tag":6225,"props":6226,"children":6227},"tbody",{},[6228,6263,6297,6330,6363,6395],{"type":993,"tag":6200,"props":6229,"children":6230},{},[6231,6240,6249,6254],{"type":993,"tag":6232,"props":6233,"children":6234},"td",{},[6235],{"type":993,"tag":1332,"props":6236,"children":6237},{},[6238],{"type":998,"value":6239},"Literal",{"type":993,"tag":6232,"props":6241,"children":6242},{},[6243],{"type":993,"tag":1007,"props":6244,"children":6246},{"className":6245},[],[6247],{"type":998,"value":6248},"(a, b, c)",{"type":993,"tag":6232,"props":6250,"children":6251},{},[6252],{"type":998,"value":6253},"Standard creation",{"type":993,"tag":6232,"props":6255,"children":6256},{},[6257],{"type":993,"tag":1007,"props":6258,"children":6260},{"className":6259},[],[6261],{"type":998,"value":6262},"(1, 2, 3)",{"type":993,"tag":6200,"props":6264,"children":6265},{},[6266,6274,6283,6288],{"type":993,"tag":6232,"props":6267,"children":6268},{},[6269],{"type":993,"tag":1332,"props":6270,"children":6271},{},[6272],{"type":998,"value":6273},"Packing",{"type":993,"tag":6232,"props":6275,"children":6276},{},[6277],{"type":993,"tag":1007,"props":6278,"children":6280},{"className":6279},[],[6281],{"type":998,"value":6282},"a, b, c",{"type":993,"tag":6232,"props":6284,"children":6285},{},[6286],{"type":998,"value":6287},"Simple assignment",{"type":993,"tag":6232,"props":6289,"children":6290},{},[6291],{"type":993,"tag":1007,"props":6292,"children":6294},{"className":6293},[],[6295],{"type":998,"value":6296},"x, y = 10, 20",{"type":993,"tag":6200,"props":6298,"children":6299},{},[6300,6308,6316,6321],{"type":993,"tag":6232,"props":6301,"children":6302},{},[6303],{"type":993,"tag":1332,"props":6304,"children":6305},{},[6306],{"type":998,"value":6307},"Empty",{"type":993,"tag":6232,"props":6309,"children":6310},{},[6311],{"type":993,"tag":1007,"props":6312,"children":6314},{"className":6313},[],[6315],{"type":998,"value":1012},{"type":993,"tag":6232,"props":6317,"children":6318},{},[6319],{"type":998,"value":6320},"Initialization",{"type":993,"tag":6232,"props":6322,"children":6323},{},[6324],{"type":993,"tag":1007,"props":6325,"children":6327},{"className":6326},[],[6328],{"type":998,"value":6329},"empty = ()",{"type":993,"tag":6200,"props":6331,"children":6332},{},[6333,6341,6349,6354],{"type":993,"tag":6232,"props":6334,"children":6335},{},[6336],{"type":993,"tag":1332,"props":6337,"children":6338},{},[6339],{"type":998,"value":6340},"Single",{"type":993,"tag":6232,"props":6342,"children":6343},{},[6344],{"type":993,"tag":1007,"props":6345,"children":6347},{"className":6346},[],[6348],{"type":998,"value":1381},{"type":993,"tag":6232,"props":6350,"children":6351},{},[6352],{"type":998,"value":6353},"One element",{"type":993,"tag":6232,"props":6355,"children":6356},{},[6357],{"type":993,"tag":1007,"props":6358,"children":6360},{"className":6359},[],[6361],{"type":998,"value":6362},"single = (42,)",{"type":993,"tag":6200,"props":6364,"children":6365},{},[6366,6374,6382,6387],{"type":993,"tag":6232,"props":6367,"children":6368},{},[6369],{"type":993,"tag":1332,"props":6370,"children":6371},{},[6372],{"type":998,"value":6373},"Constructor",{"type":993,"tag":6232,"props":6375,"children":6376},{},[6377],{"type":993,"tag":1007,"props":6378,"children":6380},{"className":6379},[],[6381],{"type":998,"value":3155},{"type":993,"tag":6232,"props":6383,"children":6384},{},[6385],{"type":998,"value":6386},"From sequences",{"type":993,"tag":6232,"props":6388,"children":6389},{},[6390],{"type":993,"tag":1007,"props":6391,"children":6393},{"className":6392},[],[6394],{"type":998,"value":3189},{"type":993,"tag":6200,"props":6396,"children":6397},{},[6398,6406,6415,6420],{"type":993,"tag":6232,"props":6399,"children":6400},{},[6401],{"type":993,"tag":1332,"props":6402,"children":6403},{},[6404],{"type":998,"value":6405},"Nested",{"type":993,"tag":6232,"props":6407,"children":6408},{},[6409],{"type":993,"tag":1007,"props":6410,"children":6412},{"className":6411},[],[6413],{"type":998,"value":6414},"((a, b), (c, d))",{"type":993,"tag":6232,"props":6416,"children":6417},{},[6418],{"type":998,"value":6419},"Complex structures",{"type":993,"tag":6232,"props":6421,"children":6422},{},[6423],{"type":993,"tag":1007,"props":6424,"children":6426},{"className":6425},[],[6427],{"type":998,"value":6428},"((0, 0), (1, 1))",{"type":993,"tag":1001,"props":6430,"children":6431},{},[6432],{"type":998,"value":6433},"Choose the method that best expresses your intent and maintains code clarity.",{"type":993,"tag":1001,"props":6435,"children":6436},{},[6437,6439,6444,6446,6451],{"type":998,"value":6438},"Learn more about ",{"type":993,"tag":2992,"props":6440,"children":6441},{"href":389},[6442],{"type":998,"value":6443},"reading tuple data",{"type":998,"value":6445}," and ",{"type":993,"tag":2992,"props":6447,"children":6448},{"href":243},[6449],{"type":998,"value":6450},"for loops",{"type":998,"value":6452}," to work effectively with the tuples you create.",{"type":993,"tag":6454,"props":6455,"children":6458},"exercise",{"hint":6456,"prompt":6457},"Use parentheses to create a tuple with three elements, then access them by index","Create a tuple with your name, age, and favorite color. Print each element separately.",[6459],{"type":993,"tag":1025,"props":6460,"children":6462},{"className":1027,"code":6461,"language":6,"meta":8,"style":8},"# TODO: Create a tuple with your information\nmy_info = # TODO: Your tuple here (name, age, favorite_color)\n\n# TODO: Print each element\nprint(f\"Name: {my_info[0]}\")\nprint(f\"Age: {my_info[1]}\")  \nprint(f\"Favorite color: {my_info[2]}\")\n",[6463],{"type":993,"tag":1007,"props":6464,"children":6465},{"__ignoreMap":8},[6466,6484,6510,6517,6533,6581,6629],{"type":993,"tag":1034,"props":6467,"children":6468},{"class":1036,"line":12},[6469,6474,6479],{"type":993,"tag":1034,"props":6470,"children":6471},{"style":1040},[6472],{"type":998,"value":6473},"# ",{"type":993,"tag":1034,"props":6475,"children":6476},{"style":1055},[6477],{"type":998,"value":6478},"TODO",{"type":993,"tag":1034,"props":6480,"children":6481},{"style":1040},[6482],{"type":998,"value":6483},": Create a tuple with your information\n",{"type":993,"tag":1034,"props":6485,"children":6486},{"class":1036,"line":27},[6487,6492,6496,6501,6505],{"type":993,"tag":1034,"props":6488,"children":6489},{"style":1049},[6490],{"type":998,"value":6491},"my_info ",{"type":993,"tag":1034,"props":6493,"children":6494},{"style":1055},[6495],{"type":998,"value":1058},{"type":993,"tag":1034,"props":6497,"children":6498},{"style":1040},[6499],{"type":998,"value":6500}," # ",{"type":993,"tag":1034,"props":6502,"children":6503},{"style":1055},[6504],{"type":998,"value":6478},{"type":993,"tag":1034,"props":6506,"children":6507},{"style":1040},[6508],{"type":998,"value":6509},": Your tuple here (name, age, favorite_color)\n",{"type":993,"tag":1034,"props":6511,"children":6512},{"class":1036,"line":36},[6513],{"type":993,"tag":1034,"props":6514,"children":6515},{"emptyLinePlaceholder":13},[6516],{"type":998,"value":1179},{"type":993,"tag":1034,"props":6518,"children":6519},{"class":1036,"line":45},[6520,6524,6528],{"type":993,"tag":1034,"props":6521,"children":6522},{"style":1040},[6523],{"type":998,"value":6473},{"type":993,"tag":1034,"props":6525,"children":6526},{"style":1055},[6527],{"type":998,"value":6478},{"type":993,"tag":1034,"props":6529,"children":6530},{"style":1040},[6531],{"type":998,"value":6532},": Print each element\n",{"type":993,"tag":1034,"props":6534,"children":6535},{"class":1036,"line":54},[6536,6540,6544,6548,6552,6556,6561,6565,6569,6573,6577],{"type":993,"tag":1034,"props":6537,"children":6538},{"style":1066},[6539],{"type":998,"value":1187},{"type":993,"tag":1034,"props":6541,"children":6542},{"style":1049},[6543],{"type":998,"value":1192},{"type":993,"tag":1034,"props":6545,"children":6546},{"style":1055},[6547],{"type":998,"value":1197},{"type":993,"tag":1034,"props":6549,"children":6550},{"style":1103},[6551],{"type":998,"value":4491},{"type":993,"tag":1034,"props":6553,"children":6554},{"style":1066},[6555],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6557,"children":6558},{"style":1049},[6559],{"type":998,"value":6560},"my_info[",{"type":993,"tag":1034,"props":6562,"children":6563},{"style":1066},[6564],{"type":998,"value":1544},{"type":993,"tag":1034,"props":6566,"children":6567},{"style":1049},[6568],{"type":998,"value":5141},{"type":993,"tag":1034,"props":6570,"children":6571},{"style":1066},[6572],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6574,"children":6575},{"style":1103},[6576],{"type":998,"value":1222},{"type":993,"tag":1034,"props":6578,"children":6579},{"style":1049},[6580],{"type":998,"value":1084},{"type":993,"tag":1034,"props":6582,"children":6583},{"class":1036,"line":63},[6584,6588,6592,6596,6600,6604,6608,6612,6616,6620,6624],{"type":993,"tag":1034,"props":6585,"children":6586},{"style":1066},[6587],{"type":998,"value":1187},{"type":993,"tag":1034,"props":6589,"children":6590},{"style":1049},[6591],{"type":998,"value":1192},{"type":993,"tag":1034,"props":6593,"children":6594},{"style":1055},[6595],{"type":998,"value":1197},{"type":993,"tag":1034,"props":6597,"children":6598},{"style":1103},[6599],{"type":998,"value":4550},{"type":993,"tag":1034,"props":6601,"children":6602},{"style":1066},[6603],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6605,"children":6606},{"style":1049},[6607],{"type":998,"value":6560},{"type":993,"tag":1034,"props":6609,"children":6610},{"style":1066},[6611],{"type":998,"value":3287},{"type":993,"tag":1034,"props":6613,"children":6614},{"style":1049},[6615],{"type":998,"value":5141},{"type":993,"tag":1034,"props":6617,"children":6618},{"style":1066},[6619],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6621,"children":6622},{"style":1103},[6623],{"type":998,"value":1222},{"type":993,"tag":1034,"props":6625,"children":6626},{"style":1049},[6627],{"type":998,"value":6628},")  \n",{"type":993,"tag":1034,"props":6630,"children":6631},{"class":1036,"line":72},[6632,6636,6640,6644,6649,6653,6657,6661,6665,6669,6673],{"type":993,"tag":1034,"props":6633,"children":6634},{"style":1066},[6635],{"type":998,"value":1187},{"type":993,"tag":1034,"props":6637,"children":6638},{"style":1049},[6639],{"type":998,"value":1192},{"type":993,"tag":1034,"props":6641,"children":6642},{"style":1055},[6643],{"type":998,"value":1197},{"type":993,"tag":1034,"props":6645,"children":6646},{"style":1103},[6647],{"type":998,"value":6648},"\"Favorite color: ",{"type":993,"tag":1034,"props":6650,"children":6651},{"style":1066},[6652],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6654,"children":6655},{"style":1049},[6656],{"type":998,"value":6560},{"type":993,"tag":1034,"props":6658,"children":6659},{"style":1066},[6660],{"type":998,"value":3296},{"type":993,"tag":1034,"props":6662,"children":6663},{"style":1049},[6664],{"type":998,"value":5141},{"type":993,"tag":1034,"props":6666,"children":6667},{"style":1066},[6668],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6670,"children":6671},{"style":1103},[6672],{"type":998,"value":1222},{"type":993,"tag":1034,"props":6674,"children":6675},{"style":1049},[6676],{"type":998,"value":1084},{"type":993,"tag":1449,"props":6678,"children":6680},{"id":6679},"solution-and-explanation",[6681],{"type":998,"value":6682},"Solution and Explanation 💡",{"type":993,"tag":6684,"props":6685,"children":6686},"details",{},[6687,6695,6908,6916],{"type":993,"tag":6688,"props":6689,"children":6692},"summary",{"className":6690},[6691],"cursor-pointer",[6693],{"type":998,"value":6694},"Click to see the complete solution",{"type":993,"tag":1021,"props":6696,"children":6697},{},[6698],{"type":993,"tag":1025,"props":6699,"children":6701},{"className":1027,"code":6700,"language":6,"meta":8,"style":8},"# Create a tuple with your information\nmy_info = (\"Alice\", 25, \"blue\")\n\n# Print each element\nprint(f\"Name: {my_info[0]}\")\nprint(f\"Age: {my_info[1]}\")  \nprint(f\"Favorite color: {my_info[2]}\")\n",[6702],{"type":993,"tag":1007,"props":6703,"children":6704},{"__ignoreMap":8},[6705,6713,6752,6759,6767,6814,6861],{"type":993,"tag":1034,"props":6706,"children":6707},{"class":1036,"line":12},[6708],{"type":993,"tag":1034,"props":6709,"children":6710},{"style":1040},[6711],{"type":998,"value":6712},"# Create a tuple with your information\n",{"type":993,"tag":1034,"props":6714,"children":6715},{"class":1036,"line":27},[6716,6720,6724,6728,6732,6736,6740,6744,6748],{"type":993,"tag":1034,"props":6717,"children":6718},{"style":1049},[6719],{"type":998,"value":6491},{"type":993,"tag":1034,"props":6721,"children":6722},{"style":1055},[6723],{"type":998,"value":1058},{"type":993,"tag":1034,"props":6725,"children":6726},{"style":1049},[6727],{"type":998,"value":1063},{"type":993,"tag":1034,"props":6729,"children":6730},{"style":1103},[6731],{"type":998,"value":1106},{"type":993,"tag":1034,"props":6733,"children":6734},{"style":1049},[6735],{"type":998,"value":1074},{"type":993,"tag":1034,"props":6737,"children":6738},{"style":1066},[6739],{"type":998,"value":1115},{"type":993,"tag":1034,"props":6741,"children":6742},{"style":1049},[6743],{"type":998,"value":1074},{"type":993,"tag":1034,"props":6745,"children":6746},{"style":1103},[6747],{"type":998,"value":1167},{"type":993,"tag":1034,"props":6749,"children":6750},{"style":1049},[6751],{"type":998,"value":1084},{"type":993,"tag":1034,"props":6753,"children":6754},{"class":1036,"line":36},[6755],{"type":993,"tag":1034,"props":6756,"children":6757},{"emptyLinePlaceholder":13},[6758],{"type":998,"value":1179},{"type":993,"tag":1034,"props":6760,"children":6761},{"class":1036,"line":45},[6762],{"type":993,"tag":1034,"props":6763,"children":6764},{"style":1040},[6765],{"type":998,"value":6766},"# Print each element\n",{"type":993,"tag":1034,"props":6768,"children":6769},{"class":1036,"line":54},[6770,6774,6778,6782,6786,6790,6794,6798,6802,6806,6810],{"type":993,"tag":1034,"props":6771,"children":6772},{"style":1066},[6773],{"type":998,"value":1187},{"type":993,"tag":1034,"props":6775,"children":6776},{"style":1049},[6777],{"type":998,"value":1192},{"type":993,"tag":1034,"props":6779,"children":6780},{"style":1055},[6781],{"type":998,"value":1197},{"type":993,"tag":1034,"props":6783,"children":6784},{"style":1103},[6785],{"type":998,"value":4491},{"type":993,"tag":1034,"props":6787,"children":6788},{"style":1066},[6789],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6791,"children":6792},{"style":1049},[6793],{"type":998,"value":6560},{"type":993,"tag":1034,"props":6795,"children":6796},{"style":1066},[6797],{"type":998,"value":1544},{"type":993,"tag":1034,"props":6799,"children":6800},{"style":1049},[6801],{"type":998,"value":5141},{"type":993,"tag":1034,"props":6803,"children":6804},{"style":1066},[6805],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6807,"children":6808},{"style":1103},[6809],{"type":998,"value":1222},{"type":993,"tag":1034,"props":6811,"children":6812},{"style":1049},[6813],{"type":998,"value":1084},{"type":993,"tag":1034,"props":6815,"children":6816},{"class":1036,"line":63},[6817,6821,6825,6829,6833,6837,6841,6845,6849,6853,6857],{"type":993,"tag":1034,"props":6818,"children":6819},{"style":1066},[6820],{"type":998,"value":1187},{"type":993,"tag":1034,"props":6822,"children":6823},{"style":1049},[6824],{"type":998,"value":1192},{"type":993,"tag":1034,"props":6826,"children":6827},{"style":1055},[6828],{"type":998,"value":1197},{"type":993,"tag":1034,"props":6830,"children":6831},{"style":1103},[6832],{"type":998,"value":4550},{"type":993,"tag":1034,"props":6834,"children":6835},{"style":1066},[6836],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6838,"children":6839},{"style":1049},[6840],{"type":998,"value":6560},{"type":993,"tag":1034,"props":6842,"children":6843},{"style":1066},[6844],{"type":998,"value":3287},{"type":993,"tag":1034,"props":6846,"children":6847},{"style":1049},[6848],{"type":998,"value":5141},{"type":993,"tag":1034,"props":6850,"children":6851},{"style":1066},[6852],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6854,"children":6855},{"style":1103},[6856],{"type":998,"value":1222},{"type":993,"tag":1034,"props":6858,"children":6859},{"style":1049},[6860],{"type":998,"value":6628},{"type":993,"tag":1034,"props":6862,"children":6863},{"class":1036,"line":72},[6864,6868,6872,6876,6880,6884,6888,6892,6896,6900,6904],{"type":993,"tag":1034,"props":6865,"children":6866},{"style":1066},[6867],{"type":998,"value":1187},{"type":993,"tag":1034,"props":6869,"children":6870},{"style":1049},[6871],{"type":998,"value":1192},{"type":993,"tag":1034,"props":6873,"children":6874},{"style":1055},[6875],{"type":998,"value":1197},{"type":993,"tag":1034,"props":6877,"children":6878},{"style":1103},[6879],{"type":998,"value":6648},{"type":993,"tag":1034,"props":6881,"children":6882},{"style":1066},[6883],{"type":998,"value":1207},{"type":993,"tag":1034,"props":6885,"children":6886},{"style":1049},[6887],{"type":998,"value":6560},{"type":993,"tag":1034,"props":6889,"children":6890},{"style":1066},[6891],{"type":998,"value":3296},{"type":993,"tag":1034,"props":6893,"children":6894},{"style":1049},[6895],{"type":998,"value":5141},{"type":993,"tag":1034,"props":6897,"children":6898},{"style":1066},[6899],{"type":998,"value":1217},{"type":993,"tag":1034,"props":6901,"children":6902},{"style":1103},[6903],{"type":998,"value":1222},{"type":993,"tag":1034,"props":6905,"children":6906},{"style":1049},[6907],{"type":998,"value":1084},{"type":993,"tag":1001,"props":6909,"children":6910},{},[6911],{"type":993,"tag":1332,"props":6912,"children":6913},{},[6914],{"type":998,"value":6915},"Key Learning Points:",{"type":993,"tag":1338,"props":6917,"children":6918},{},[6919,6938,6971,6982],{"type":993,"tag":1342,"props":6920,"children":6921},{},[6922,6924,6929,6931,6936],{"type":998,"value":6923},"📌 ",{"type":993,"tag":1332,"props":6925,"children":6926},{},[6927],{"type":998,"value":6928},"Tuple creation",{"type":998,"value":6930},": Use parentheses ",{"type":993,"tag":1007,"props":6932,"children":6934},{"className":6933},[],[6935],{"type":998,"value":1012},{"type":998,"value":6937}," to create tuples with multiple elements",{"type":993,"tag":1342,"props":6939,"children":6940},{},[6941,6942,6947,6949,6955,6956,6962,6963,6969],{"type":998,"value":6923},{"type":993,"tag":1332,"props":6943,"children":6944},{},[6945],{"type":998,"value":6946},"Index access",{"type":998,"value":6948},": Access elements using square brackets ",{"type":993,"tag":1007,"props":6950,"children":6952},{"className":6951},[],[6953],{"type":998,"value":6954},"[0]",{"type":998,"value":1074},{"type":993,"tag":1007,"props":6957,"children":6959},{"className":6958},[],[6960],{"type":998,"value":6961},"[1]",{"type":998,"value":1074},{"type":993,"tag":1007,"props":6964,"children":6966},{"className":6965},[],[6967],{"type":998,"value":6968},"[2]",{"type":998,"value":6970},", etc.",{"type":993,"tag":1342,"props":6972,"children":6973},{},[6974,6975,6980],{"type":998,"value":6923},{"type":993,"tag":1332,"props":6976,"children":6977},{},[6978],{"type":998,"value":6979},"Mixed types",{"type":998,"value":6981},": Tuples can store different data types (strings, numbers, etc.)",{"type":993,"tag":1342,"props":6983,"children":6984},{},[6985,6986,6991],{"type":998,"value":6923},{"type":993,"tag":1332,"props":6987,"children":6988},{},[6989],{"type":998,"value":6990},"Immutable",{"type":998,"value":6992},": Once created, tuple elements cannot be changed",{"type":993,"tag":1310,"props":6994,"children":6996},{"id":6995},"test-your-knowledge",[6997],{"type":998,"value":6998},"Test Your Knowledge",{"type":993,"tag":1001,"props":7000,"children":7001},{},[7002],{"type":998,"value":7003},"Test what you've learned about creating tuples in Python:",{"type":993,"tag":7005,"props":7006,"children":7009},"redirect-button",{"label":7007,"url":7008},"Take Quiz","/tutorial-quiz/python/creating-tuples",[],{"type":993,"tag":1310,"props":7011,"children":7013},{"id":7012},"whats-next",[7014],{"type":998,"value":7015},"What's Next?",{"type":993,"tag":1001,"props":7017,"children":7018},{},[7019],{"type":998,"value":7020},"Now that you know how to create tuples, you're ready to learn how to access and work with tuple data. Understanding tuple access patterns is essential for effective tuple usage.",{"type":993,"tag":1001,"props":7022,"children":7023},{},[7024,7026,7030],{"type":998,"value":7025},"Ready to continue? Check out our lesson on ",{"type":993,"tag":2992,"props":7027,"children":7028},{"href":389},[7029],{"type":998,"value":390},{"type":998,"value":7031},".",{"type":993,"tag":7033,"props":7034,"children":7035},"style",{},[7036],{"type":998,"value":7037},"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":7039},[7040,7046,7051,7056,7061,7065,7068,7069],{"id":1312,"depth":27,"text":1315,"children":7041},[7042,7043,7044,7045],{"id":1451,"depth":36,"text":1454},{"id":1640,"depth":36,"text":1643},{"id":1856,"depth":36,"text":1859},{"id":2050,"depth":36,"text":2053},{"id":2306,"depth":27,"text":2309,"children":7047},[7048,7049,7050],{"id":2405,"depth":36,"text":2408},{"id":2691,"depth":36,"text":2694},{"id":2916,"depth":36,"text":2919},{"id":3104,"depth":27,"text":3107,"children":7052},[7053,7054,7055],{"id":3244,"depth":36,"text":3247},{"id":3440,"depth":36,"text":3443},{"id":3661,"depth":36,"text":3664},{"id":3967,"depth":27,"text":3970,"children":7057},[7058,7059,7060],{"id":4065,"depth":36,"text":4068},{"id":4379,"depth":36,"text":4382},{"id":4706,"depth":36,"text":4709},{"id":5156,"depth":27,"text":5159,"children":7062},[7063,7064],{"id":5262,"depth":36,"text":5265},{"id":5629,"depth":36,"text":5632},{"id":6182,"depth":27,"text":6185,"children":7066},[7067],{"id":6679,"depth":36,"text":6682},{"id":6995,"depth":27,"text":6998},{"id":7012,"depth":27,"text":7015},1782373738828]