[{"data":1,"prerenderedAt":9468},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/tuple-operations":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",[433],{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"body":989,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},{"type":990,"children":991,"toc":9443},"root",[992,1000,1006,1011,1330,1337,1342,1430,1435,1440,1835,1841,1846,2231,2237,2242,2902,2907,2913,2918,3001,3007,3012,3322,3328,3333,3810,3816,3821,4365,4371,4376,4459,4465,4470,5183,5189,5194,5804,5810,5815,5899,5905,5910,6784,6790,6795,7649,7655,7660,8073,8078,8326,8332,9373,9378,9384,9389,9396,9402,9415,9426,9437],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":437},[997],{"type":998,"value":999},"text","🔧 Tuple Operations",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Tuples are like lists that can't be changed. They help us store and organize data in a safe way. In this tutorial, we'll learn how to work with tuples using Python's built-in functions and operations.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Let's start with some simple examples:",{"type":993,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Simple tuple operations\nnumbers = (1, 2, 3, 4, 5)\n\n# Find how many items are in the tuple\nlength = len(numbers)\nprint(f\"Tuple has {length} numbers\")\n\n# Find biggest and smallest numbers\nbiggest = max(numbers)\nsmallest = min(numbers)\nprint(f\"Biggest number: {biggest}\")\nprint(f\"Smallest number: {smallest}\")\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1104,1112,1120,1142,1190,1197,1205,1226,1247,1289],{"type":993,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030],{"type":993,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1034],{"type":998,"value":1035},"# Simple tuple operations\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039,1045,1051,1056,1062,1067,1072,1076,1081,1085,1090,1094,1099],{"type":993,"tag":1026,"props":1040,"children":1042},{"style":1041},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1043],{"type":998,"value":1044},"numbers ",{"type":993,"tag":1026,"props":1046,"children":1048},{"style":1047},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1049],{"type":998,"value":1050},"=",{"type":993,"tag":1026,"props":1052,"children":1053},{"style":1041},[1054],{"type":998,"value":1055}," (",{"type":993,"tag":1026,"props":1057,"children":1059},{"style":1058},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1060],{"type":998,"value":1061},"1",{"type":993,"tag":1026,"props":1063,"children":1064},{"style":1041},[1065],{"type":998,"value":1066},", ",{"type":993,"tag":1026,"props":1068,"children":1069},{"style":1058},[1070],{"type":998,"value":1071},"2",{"type":993,"tag":1026,"props":1073,"children":1074},{"style":1041},[1075],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1077,"children":1078},{"style":1058},[1079],{"type":998,"value":1080},"3",{"type":993,"tag":1026,"props":1082,"children":1083},{"style":1041},[1084],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1086,"children":1087},{"style":1058},[1088],{"type":998,"value":1089},"4",{"type":993,"tag":1026,"props":1091,"children":1092},{"style":1041},[1093],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1095,"children":1096},{"style":1058},[1097],{"type":998,"value":1098},"5",{"type":993,"tag":1026,"props":1100,"children":1101},{"style":1041},[1102],{"type":998,"value":1103},")\n",{"type":993,"tag":1026,"props":1105,"children":1106},{"class":1028,"line":36},[1107],{"type":993,"tag":1026,"props":1108,"children":1109},{"emptyLinePlaceholder":13},[1110],{"type":998,"value":1111},"\n",{"type":993,"tag":1026,"props":1113,"children":1114},{"class":1028,"line":45},[1115],{"type":993,"tag":1026,"props":1116,"children":1117},{"style":1032},[1118],{"type":998,"value":1119},"# Find how many items are in the tuple\n",{"type":993,"tag":1026,"props":1121,"children":1122},{"class":1028,"line":54},[1123,1128,1132,1137],{"type":993,"tag":1026,"props":1124,"children":1125},{"style":1041},[1126],{"type":998,"value":1127},"length ",{"type":993,"tag":1026,"props":1129,"children":1130},{"style":1047},[1131],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1133,"children":1134},{"style":1058},[1135],{"type":998,"value":1136}," len",{"type":993,"tag":1026,"props":1138,"children":1139},{"style":1041},[1140],{"type":998,"value":1141},"(numbers)\n",{"type":993,"tag":1026,"props":1143,"children":1144},{"class":1028,"line":63},[1145,1150,1155,1160,1166,1171,1176,1181,1186],{"type":993,"tag":1026,"props":1146,"children":1147},{"style":1058},[1148],{"type":998,"value":1149},"print",{"type":993,"tag":1026,"props":1151,"children":1152},{"style":1041},[1153],{"type":998,"value":1154},"(",{"type":993,"tag":1026,"props":1156,"children":1157},{"style":1047},[1158],{"type":998,"value":1159},"f",{"type":993,"tag":1026,"props":1161,"children":1163},{"style":1162},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1164],{"type":998,"value":1165},"\"Tuple has ",{"type":993,"tag":1026,"props":1167,"children":1168},{"style":1058},[1169],{"type":998,"value":1170},"{",{"type":993,"tag":1026,"props":1172,"children":1173},{"style":1041},[1174],{"type":998,"value":1175},"length",{"type":993,"tag":1026,"props":1177,"children":1178},{"style":1058},[1179],{"type":998,"value":1180},"}",{"type":993,"tag":1026,"props":1182,"children":1183},{"style":1162},[1184],{"type":998,"value":1185}," numbers\"",{"type":993,"tag":1026,"props":1187,"children":1188},{"style":1041},[1189],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1191,"children":1192},{"class":1028,"line":72},[1193],{"type":993,"tag":1026,"props":1194,"children":1195},{"emptyLinePlaceholder":13},[1196],{"type":998,"value":1111},{"type":993,"tag":1026,"props":1198,"children":1199},{"class":1028,"line":81},[1200],{"type":993,"tag":1026,"props":1201,"children":1202},{"style":1032},[1203],{"type":998,"value":1204},"# Find biggest and smallest numbers\n",{"type":993,"tag":1026,"props":1206,"children":1207},{"class":1028,"line":91},[1208,1213,1217,1222],{"type":993,"tag":1026,"props":1209,"children":1210},{"style":1041},[1211],{"type":998,"value":1212},"biggest ",{"type":993,"tag":1026,"props":1214,"children":1215},{"style":1047},[1216],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1218,"children":1219},{"style":1058},[1220],{"type":998,"value":1221}," max",{"type":993,"tag":1026,"props":1223,"children":1224},{"style":1041},[1225],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1227,"children":1228},{"class":1028,"line":100},[1229,1234,1238,1243],{"type":993,"tag":1026,"props":1230,"children":1231},{"style":1041},[1232],{"type":998,"value":1233},"smallest ",{"type":993,"tag":1026,"props":1235,"children":1236},{"style":1047},[1237],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1239,"children":1240},{"style":1058},[1241],{"type":998,"value":1242}," min",{"type":993,"tag":1026,"props":1244,"children":1245},{"style":1041},[1246],{"type":998,"value":1141},{"type":993,"tag":1026,"props":1248,"children":1249},{"class":1028,"line":109},[1250,1254,1258,1262,1267,1271,1276,1280,1285],{"type":993,"tag":1026,"props":1251,"children":1252},{"style":1058},[1253],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1255,"children":1256},{"style":1041},[1257],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1259,"children":1260},{"style":1047},[1261],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1263,"children":1264},{"style":1162},[1265],{"type":998,"value":1266},"\"Biggest number: ",{"type":993,"tag":1026,"props":1268,"children":1269},{"style":1058},[1270],{"type":998,"value":1170},{"type":993,"tag":1026,"props":1272,"children":1273},{"style":1041},[1274],{"type":998,"value":1275},"biggest",{"type":993,"tag":1026,"props":1277,"children":1278},{"style":1058},[1279],{"type":998,"value":1180},{"type":993,"tag":1026,"props":1281,"children":1282},{"style":1162},[1283],{"type":998,"value":1284},"\"",{"type":993,"tag":1026,"props":1286,"children":1287},{"style":1041},[1288],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1290,"children":1291},{"class":1028,"line":118},[1292,1296,1300,1304,1309,1313,1318,1322,1326],{"type":993,"tag":1026,"props":1293,"children":1294},{"style":1058},[1295],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1297,"children":1298},{"style":1041},[1299],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1301,"children":1302},{"style":1047},[1303],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1305,"children":1306},{"style":1162},[1307],{"type":998,"value":1308},"\"Smallest number: ",{"type":993,"tag":1026,"props":1310,"children":1311},{"style":1058},[1312],{"type":998,"value":1170},{"type":993,"tag":1026,"props":1314,"children":1315},{"style":1041},[1316],{"type":998,"value":1317},"smallest",{"type":993,"tag":1026,"props":1319,"children":1320},{"style":1058},[1321],{"type":998,"value":1180},{"type":993,"tag":1026,"props":1323,"children":1324},{"style":1162},[1325],{"type":998,"value":1284},{"type":993,"tag":1026,"props":1327,"children":1328},{"style":1041},[1329],{"type":998,"value":1103},{"type":993,"tag":1331,"props":1332,"children":1334},"h2",{"id":1333},"built-in-functions-with-tuples",[1335],{"type":998,"value":1336},"🎯 Built-in Functions with Tuples",{"type":993,"tag":1001,"props":1338,"children":1339},{},[1340],{"type":998,"value":1341},"Python provides numerous built-in functions that work seamlessly with tuples, enabling efficient data analysis and manipulation.",{"type":993,"tag":1343,"props":1344,"children":1348},"info-box",{"emoji":1345,"title":1346,"type":1347},"🔧","Essential Built-in Functions","info",[1349,1358,1378,1386,1404,1412],{"type":993,"tag":1001,"props":1350,"children":1351},{},[1352],{"type":993,"tag":1353,"props":1354,"children":1355},"strong",{},[1356],{"type":998,"value":1357},"Mathematical Functions:",{"type":993,"tag":1359,"props":1360,"children":1361},"ul",{},[1362,1368,1373],{"type":993,"tag":1363,"props":1364,"children":1365},"li",{},[1366],{"type":998,"value":1367},"len(): Get tuple size",{"type":993,"tag":1363,"props":1369,"children":1370},{},[1371],{"type":998,"value":1372},"sum(): Calculate total of numeric elements",{"type":993,"tag":1363,"props":1374,"children":1375},{},[1376],{"type":998,"value":1377},"min()/max(): Find smallest/largest elements",{"type":993,"tag":1001,"props":1379,"children":1380},{},[1381],{"type":993,"tag":1353,"props":1382,"children":1383},{},[1384],{"type":998,"value":1385},"Type and Structure Functions:",{"type":993,"tag":1359,"props":1387,"children":1388},{},[1389,1394,1399],{"type":993,"tag":1363,"props":1390,"children":1391},{},[1392],{"type":998,"value":1393},"type(): Check object type",{"type":993,"tag":1363,"props":1395,"children":1396},{},[1397],{"type":998,"value":1398},"isinstance(): Verify tuple type",{"type":993,"tag":1363,"props":1400,"children":1401},{},[1402],{"type":998,"value":1403},"all()/any(): Boolean testing across elements",{"type":993,"tag":1001,"props":1405,"children":1406},{},[1407],{"type":993,"tag":1353,"props":1408,"children":1409},{},[1410],{"type":998,"value":1411},"Ordering Functions:",{"type":993,"tag":1359,"props":1413,"children":1414},{},[1415,1420,1425],{"type":993,"tag":1363,"props":1416,"children":1417},{},[1418],{"type":998,"value":1419},"sorted(): Create sorted tuple copy",{"type":993,"tag":1363,"props":1421,"children":1422},{},[1423],{"type":998,"value":1424},"reversed(): Reverse element order",{"type":993,"tag":1363,"props":1426,"children":1427},{},[1428],{"type":998,"value":1429},"zip(): Combine multiple tuples",{"type":993,"tag":1431,"props":1432,"children":1433},"h3",{"id":757},[1434],{"type":998,"value":755},{"type":993,"tag":1001,"props":1436,"children":1437},{},[1438],{"type":998,"value":1439},"Fundamental mathematical functions for numeric tuple analysis and computation.",{"type":993,"tag":1012,"props":1441,"children":1442},{},[1443],{"type":993,"tag":1016,"props":1444,"children":1446},{"className":1018,"code":1445,"language":6,"meta":8,"style":8},"# Basic math functions\nscores = (85, 92, 78, 96, 88)\n\ntotal = sum(scores)\naverage = total / len(scores)\nhighest = max(scores)\nlowest = min(scores)\n\nprint(f\"Scores: {scores}\")\nprint(f\"Total: {total}\")\nprint(f\"Average: {average:.1f}\")\nprint(f\"Highest: {highest}\")\nprint(f\"Lowest: {lowest}\")\n",[1447],{"type":993,"tag":1022,"props":1448,"children":1449},{"__ignoreMap":8},[1450,1458,1519,1526,1548,1578,1598,1618,1625,1666,1707,1753,1794],{"type":993,"tag":1026,"props":1451,"children":1452},{"class":1028,"line":12},[1453],{"type":993,"tag":1026,"props":1454,"children":1455},{"style":1032},[1456],{"type":998,"value":1457},"# Basic math functions\n",{"type":993,"tag":1026,"props":1459,"children":1460},{"class":1028,"line":27},[1461,1466,1470,1474,1479,1483,1488,1492,1497,1501,1506,1510,1515],{"type":993,"tag":1026,"props":1462,"children":1463},{"style":1041},[1464],{"type":998,"value":1465},"scores ",{"type":993,"tag":1026,"props":1467,"children":1468},{"style":1047},[1469],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1471,"children":1472},{"style":1041},[1473],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1475,"children":1476},{"style":1058},[1477],{"type":998,"value":1478},"85",{"type":993,"tag":1026,"props":1480,"children":1481},{"style":1041},[1482],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1484,"children":1485},{"style":1058},[1486],{"type":998,"value":1487},"92",{"type":993,"tag":1026,"props":1489,"children":1490},{"style":1041},[1491],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1493,"children":1494},{"style":1058},[1495],{"type":998,"value":1496},"78",{"type":993,"tag":1026,"props":1498,"children":1499},{"style":1041},[1500],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1502,"children":1503},{"style":1058},[1504],{"type":998,"value":1505},"96",{"type":993,"tag":1026,"props":1507,"children":1508},{"style":1041},[1509],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1511,"children":1512},{"style":1058},[1513],{"type":998,"value":1514},"88",{"type":993,"tag":1026,"props":1516,"children":1517},{"style":1041},[1518],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1520,"children":1521},{"class":1028,"line":36},[1522],{"type":993,"tag":1026,"props":1523,"children":1524},{"emptyLinePlaceholder":13},[1525],{"type":998,"value":1111},{"type":993,"tag":1026,"props":1527,"children":1528},{"class":1028,"line":45},[1529,1534,1538,1543],{"type":993,"tag":1026,"props":1530,"children":1531},{"style":1041},[1532],{"type":998,"value":1533},"total ",{"type":993,"tag":1026,"props":1535,"children":1536},{"style":1047},[1537],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1539,"children":1540},{"style":1058},[1541],{"type":998,"value":1542}," sum",{"type":993,"tag":1026,"props":1544,"children":1545},{"style":1041},[1546],{"type":998,"value":1547},"(scores)\n",{"type":993,"tag":1026,"props":1549,"children":1550},{"class":1028,"line":54},[1551,1556,1560,1565,1570,1574],{"type":993,"tag":1026,"props":1552,"children":1553},{"style":1041},[1554],{"type":998,"value":1555},"average ",{"type":993,"tag":1026,"props":1557,"children":1558},{"style":1047},[1559],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1561,"children":1562},{"style":1041},[1563],{"type":998,"value":1564}," total ",{"type":993,"tag":1026,"props":1566,"children":1567},{"style":1047},[1568],{"type":998,"value":1569},"/",{"type":993,"tag":1026,"props":1571,"children":1572},{"style":1058},[1573],{"type":998,"value":1136},{"type":993,"tag":1026,"props":1575,"children":1576},{"style":1041},[1577],{"type":998,"value":1547},{"type":993,"tag":1026,"props":1579,"children":1580},{"class":1028,"line":63},[1581,1586,1590,1594],{"type":993,"tag":1026,"props":1582,"children":1583},{"style":1041},[1584],{"type":998,"value":1585},"highest ",{"type":993,"tag":1026,"props":1587,"children":1588},{"style":1047},[1589],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1591,"children":1592},{"style":1058},[1593],{"type":998,"value":1221},{"type":993,"tag":1026,"props":1595,"children":1596},{"style":1041},[1597],{"type":998,"value":1547},{"type":993,"tag":1026,"props":1599,"children":1600},{"class":1028,"line":72},[1601,1606,1610,1614],{"type":993,"tag":1026,"props":1602,"children":1603},{"style":1041},[1604],{"type":998,"value":1605},"lowest ",{"type":993,"tag":1026,"props":1607,"children":1608},{"style":1047},[1609],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1611,"children":1612},{"style":1058},[1613],{"type":998,"value":1242},{"type":993,"tag":1026,"props":1615,"children":1616},{"style":1041},[1617],{"type":998,"value":1547},{"type":993,"tag":1026,"props":1619,"children":1620},{"class":1028,"line":81},[1621],{"type":993,"tag":1026,"props":1622,"children":1623},{"emptyLinePlaceholder":13},[1624],{"type":998,"value":1111},{"type":993,"tag":1026,"props":1626,"children":1627},{"class":1028,"line":91},[1628,1632,1636,1640,1645,1649,1654,1658,1662],{"type":993,"tag":1026,"props":1629,"children":1630},{"style":1058},[1631],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1633,"children":1634},{"style":1041},[1635],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1637,"children":1638},{"style":1047},[1639],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1641,"children":1642},{"style":1162},[1643],{"type":998,"value":1644},"\"Scores: ",{"type":993,"tag":1026,"props":1646,"children":1647},{"style":1058},[1648],{"type":998,"value":1170},{"type":993,"tag":1026,"props":1650,"children":1651},{"style":1041},[1652],{"type":998,"value":1653},"scores",{"type":993,"tag":1026,"props":1655,"children":1656},{"style":1058},[1657],{"type":998,"value":1180},{"type":993,"tag":1026,"props":1659,"children":1660},{"style":1162},[1661],{"type":998,"value":1284},{"type":993,"tag":1026,"props":1663,"children":1664},{"style":1041},[1665],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1667,"children":1668},{"class":1028,"line":100},[1669,1673,1677,1681,1686,1690,1695,1699,1703],{"type":993,"tag":1026,"props":1670,"children":1671},{"style":1058},[1672],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1674,"children":1675},{"style":1041},[1676],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1678,"children":1679},{"style":1047},[1680],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1682,"children":1683},{"style":1162},[1684],{"type":998,"value":1685},"\"Total: ",{"type":993,"tag":1026,"props":1687,"children":1688},{"style":1058},[1689],{"type":998,"value":1170},{"type":993,"tag":1026,"props":1691,"children":1692},{"style":1041},[1693],{"type":998,"value":1694},"total",{"type":993,"tag":1026,"props":1696,"children":1697},{"style":1058},[1698],{"type":998,"value":1180},{"type":993,"tag":1026,"props":1700,"children":1701},{"style":1162},[1702],{"type":998,"value":1284},{"type":993,"tag":1026,"props":1704,"children":1705},{"style":1041},[1706],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1708,"children":1709},{"class":1028,"line":109},[1710,1714,1718,1722,1727,1731,1736,1741,1745,1749],{"type":993,"tag":1026,"props":1711,"children":1712},{"style":1058},[1713],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1715,"children":1716},{"style":1041},[1717],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1719,"children":1720},{"style":1047},[1721],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1723,"children":1724},{"style":1162},[1725],{"type":998,"value":1726},"\"Average: ",{"type":993,"tag":1026,"props":1728,"children":1729},{"style":1058},[1730],{"type":998,"value":1170},{"type":993,"tag":1026,"props":1732,"children":1733},{"style":1041},[1734],{"type":998,"value":1735},"average",{"type":993,"tag":1026,"props":1737,"children":1738},{"style":1047},[1739],{"type":998,"value":1740},":.1f",{"type":993,"tag":1026,"props":1742,"children":1743},{"style":1058},[1744],{"type":998,"value":1180},{"type":993,"tag":1026,"props":1746,"children":1747},{"style":1162},[1748],{"type":998,"value":1284},{"type":993,"tag":1026,"props":1750,"children":1751},{"style":1041},[1752],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1754,"children":1755},{"class":1028,"line":118},[1756,1760,1764,1768,1773,1777,1782,1786,1790],{"type":993,"tag":1026,"props":1757,"children":1758},{"style":1058},[1759],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1761,"children":1762},{"style":1041},[1763],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1765,"children":1766},{"style":1047},[1767],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1769,"children":1770},{"style":1162},[1771],{"type":998,"value":1772},"\"Highest: ",{"type":993,"tag":1026,"props":1774,"children":1775},{"style":1058},[1776],{"type":998,"value":1170},{"type":993,"tag":1026,"props":1778,"children":1779},{"style":1041},[1780],{"type":998,"value":1781},"highest",{"type":993,"tag":1026,"props":1783,"children":1784},{"style":1058},[1785],{"type":998,"value":1180},{"type":993,"tag":1026,"props":1787,"children":1788},{"style":1162},[1789],{"type":998,"value":1284},{"type":993,"tag":1026,"props":1791,"children":1792},{"style":1041},[1793],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1795,"children":1796},{"class":1028,"line":127},[1797,1801,1805,1809,1814,1818,1823,1827,1831],{"type":993,"tag":1026,"props":1798,"children":1799},{"style":1058},[1800],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1802,"children":1803},{"style":1041},[1804],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1806,"children":1807},{"style":1047},[1808],{"type":998,"value":1159},{"type":993,"tag":1026,"props":1810,"children":1811},{"style":1162},[1812],{"type":998,"value":1813},"\"Lowest: ",{"type":993,"tag":1026,"props":1815,"children":1816},{"style":1058},[1817],{"type":998,"value":1170},{"type":993,"tag":1026,"props":1819,"children":1820},{"style":1041},[1821],{"type":998,"value":1822},"lowest",{"type":993,"tag":1026,"props":1824,"children":1825},{"style":1058},[1826],{"type":998,"value":1180},{"type":993,"tag":1026,"props":1828,"children":1829},{"style":1162},[1830],{"type":998,"value":1284},{"type":993,"tag":1026,"props":1832,"children":1833},{"style":1041},[1834],{"type":998,"value":1103},{"type":993,"tag":1431,"props":1836,"children":1838},{"id":1837},"boolean-testing-functions",[1839],{"type":998,"value":1840},"Boolean Testing Functions",{"type":993,"tag":1001,"props":1842,"children":1843},{},[1844],{"type":998,"value":1845},"Comprehensive boolean analysis using all() and any() for tuple-wide condition checking.",{"type":993,"tag":1012,"props":1847,"children":1848},{},[1849],{"type":993,"tag":1016,"props":1850,"children":1852},{"className":1018,"code":1851,"language":6,"meta":8,"style":8},"# Simple boolean tests\ntest_scores = (85, 92, 78, 96, 88)\n\n# Check if all scores are passing\nall_passing = all(score >= 70 for score in test_scores)\nprint(f\"All students passing (≥70): {all_passing}\")\n\n# Check if any scores are excellent\nany_excellent = any(score >= 95 for score in test_scores)\nprint(f\"Any excellent scores (≥95): {any_excellent}\")\n\n# Testing multiple conditions\nall_good = all(score >= 80 for score in test_scores)\nprint(f\"All good scores (≥80): {all_good}\")\n",[1853],{"type":993,"tag":1022,"props":1854,"children":1855},{"__ignoreMap":8},[1856,1864,1920,1927,1935,1987,2028,2035,2043,2089,2130,2137,2145,2190],{"type":993,"tag":1026,"props":1857,"children":1858},{"class":1028,"line":12},[1859],{"type":993,"tag":1026,"props":1860,"children":1861},{"style":1032},[1862],{"type":998,"value":1863},"# Simple boolean tests\n",{"type":993,"tag":1026,"props":1865,"children":1866},{"class":1028,"line":27},[1867,1872,1876,1880,1884,1888,1892,1896,1900,1904,1908,1912,1916],{"type":993,"tag":1026,"props":1868,"children":1869},{"style":1041},[1870],{"type":998,"value":1871},"test_scores ",{"type":993,"tag":1026,"props":1873,"children":1874},{"style":1047},[1875],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1877,"children":1878},{"style":1041},[1879],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1881,"children":1882},{"style":1058},[1883],{"type":998,"value":1478},{"type":993,"tag":1026,"props":1885,"children":1886},{"style":1041},[1887],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1889,"children":1890},{"style":1058},[1891],{"type":998,"value":1487},{"type":993,"tag":1026,"props":1893,"children":1894},{"style":1041},[1895],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1897,"children":1898},{"style":1058},[1899],{"type":998,"value":1496},{"type":993,"tag":1026,"props":1901,"children":1902},{"style":1041},[1903],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1905,"children":1906},{"style":1058},[1907],{"type":998,"value":1505},{"type":993,"tag":1026,"props":1909,"children":1910},{"style":1041},[1911],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1913,"children":1914},{"style":1058},[1915],{"type":998,"value":1514},{"type":993,"tag":1026,"props":1917,"children":1918},{"style":1041},[1919],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1921,"children":1922},{"class":1028,"line":36},[1923],{"type":993,"tag":1026,"props":1924,"children":1925},{"emptyLinePlaceholder":13},[1926],{"type":998,"value":1111},{"type":993,"tag":1026,"props":1928,"children":1929},{"class":1028,"line":45},[1930],{"type":993,"tag":1026,"props":1931,"children":1932},{"style":1032},[1933],{"type":998,"value":1934},"# Check if all scores are passing\n",{"type":993,"tag":1026,"props":1936,"children":1937},{"class":1028,"line":54},[1938,1943,1947,1952,1957,1962,1967,1972,1977,1982],{"type":993,"tag":1026,"props":1939,"children":1940},{"style":1041},[1941],{"type":998,"value":1942},"all_passing ",{"type":993,"tag":1026,"props":1944,"children":1945},{"style":1047},[1946],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1948,"children":1949},{"style":1058},[1950],{"type":998,"value":1951}," all",{"type":993,"tag":1026,"props":1953,"children":1954},{"style":1041},[1955],{"type":998,"value":1956},"(score ",{"type":993,"tag":1026,"props":1958,"children":1959},{"style":1047},[1960],{"type":998,"value":1961},">=",{"type":993,"tag":1026,"props":1963,"children":1964},{"style":1058},[1965],{"type":998,"value":1966}," 70",{"type":993,"tag":1026,"props":1968,"children":1969},{"style":1047},[1970],{"type":998,"value":1971}," for",{"type":993,"tag":1026,"props":1973,"children":1974},{"style":1041},[1975],{"type":998,"value":1976}," score ",{"type":993,"tag":1026,"props":1978,"children":1979},{"style":1047},[1980],{"type":998,"value":1981},"in",{"type":993,"tag":1026,"props":1983,"children":1984},{"style":1041},[1985],{"type":998,"value":1986}," test_scores)\n",{"type":993,"tag":1026,"props":1988,"children":1989},{"class":1028,"line":63},[1990,1994,1998,2002,2007,2011,2016,2020,2024],{"type":993,"tag":1026,"props":1991,"children":1992},{"style":1058},[1993],{"type":998,"value":1149},{"type":993,"tag":1026,"props":1995,"children":1996},{"style":1041},[1997],{"type":998,"value":1154},{"type":993,"tag":1026,"props":1999,"children":2000},{"style":1047},[2001],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2003,"children":2004},{"style":1162},[2005],{"type":998,"value":2006},"\"All students passing (≥70): ",{"type":993,"tag":1026,"props":2008,"children":2009},{"style":1058},[2010],{"type":998,"value":1170},{"type":993,"tag":1026,"props":2012,"children":2013},{"style":1041},[2014],{"type":998,"value":2015},"all_passing",{"type":993,"tag":1026,"props":2017,"children":2018},{"style":1058},[2019],{"type":998,"value":1180},{"type":993,"tag":1026,"props":2021,"children":2022},{"style":1162},[2023],{"type":998,"value":1284},{"type":993,"tag":1026,"props":2025,"children":2026},{"style":1041},[2027],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2029,"children":2030},{"class":1028,"line":72},[2031],{"type":993,"tag":1026,"props":2032,"children":2033},{"emptyLinePlaceholder":13},[2034],{"type":998,"value":1111},{"type":993,"tag":1026,"props":2036,"children":2037},{"class":1028,"line":81},[2038],{"type":993,"tag":1026,"props":2039,"children":2040},{"style":1032},[2041],{"type":998,"value":2042},"# Check if any scores are excellent\n",{"type":993,"tag":1026,"props":2044,"children":2045},{"class":1028,"line":91},[2046,2051,2055,2060,2064,2068,2073,2077,2081,2085],{"type":993,"tag":1026,"props":2047,"children":2048},{"style":1041},[2049],{"type":998,"value":2050},"any_excellent ",{"type":993,"tag":1026,"props":2052,"children":2053},{"style":1047},[2054],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2056,"children":2057},{"style":1058},[2058],{"type":998,"value":2059}," any",{"type":993,"tag":1026,"props":2061,"children":2062},{"style":1041},[2063],{"type":998,"value":1956},{"type":993,"tag":1026,"props":2065,"children":2066},{"style":1047},[2067],{"type":998,"value":1961},{"type":993,"tag":1026,"props":2069,"children":2070},{"style":1058},[2071],{"type":998,"value":2072}," 95",{"type":993,"tag":1026,"props":2074,"children":2075},{"style":1047},[2076],{"type":998,"value":1971},{"type":993,"tag":1026,"props":2078,"children":2079},{"style":1041},[2080],{"type":998,"value":1976},{"type":993,"tag":1026,"props":2082,"children":2083},{"style":1047},[2084],{"type":998,"value":1981},{"type":993,"tag":1026,"props":2086,"children":2087},{"style":1041},[2088],{"type":998,"value":1986},{"type":993,"tag":1026,"props":2090,"children":2091},{"class":1028,"line":100},[2092,2096,2100,2104,2109,2113,2118,2122,2126],{"type":993,"tag":1026,"props":2093,"children":2094},{"style":1058},[2095],{"type":998,"value":1149},{"type":993,"tag":1026,"props":2097,"children":2098},{"style":1041},[2099],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2101,"children":2102},{"style":1047},[2103],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2105,"children":2106},{"style":1162},[2107],{"type":998,"value":2108},"\"Any excellent scores (≥95): ",{"type":993,"tag":1026,"props":2110,"children":2111},{"style":1058},[2112],{"type":998,"value":1170},{"type":993,"tag":1026,"props":2114,"children":2115},{"style":1041},[2116],{"type":998,"value":2117},"any_excellent",{"type":993,"tag":1026,"props":2119,"children":2120},{"style":1058},[2121],{"type":998,"value":1180},{"type":993,"tag":1026,"props":2123,"children":2124},{"style":1162},[2125],{"type":998,"value":1284},{"type":993,"tag":1026,"props":2127,"children":2128},{"style":1041},[2129],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2131,"children":2132},{"class":1028,"line":109},[2133],{"type":993,"tag":1026,"props":2134,"children":2135},{"emptyLinePlaceholder":13},[2136],{"type":998,"value":1111},{"type":993,"tag":1026,"props":2138,"children":2139},{"class":1028,"line":118},[2140],{"type":993,"tag":1026,"props":2141,"children":2142},{"style":1032},[2143],{"type":998,"value":2144},"# Testing multiple conditions\n",{"type":993,"tag":1026,"props":2146,"children":2147},{"class":1028,"line":127},[2148,2153,2157,2161,2165,2169,2174,2178,2182,2186],{"type":993,"tag":1026,"props":2149,"children":2150},{"style":1041},[2151],{"type":998,"value":2152},"all_good ",{"type":993,"tag":1026,"props":2154,"children":2155},{"style":1047},[2156],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2158,"children":2159},{"style":1058},[2160],{"type":998,"value":1951},{"type":993,"tag":1026,"props":2162,"children":2163},{"style":1041},[2164],{"type":998,"value":1956},{"type":993,"tag":1026,"props":2166,"children":2167},{"style":1047},[2168],{"type":998,"value":1961},{"type":993,"tag":1026,"props":2170,"children":2171},{"style":1058},[2172],{"type":998,"value":2173}," 80",{"type":993,"tag":1026,"props":2175,"children":2176},{"style":1047},[2177],{"type":998,"value":1971},{"type":993,"tag":1026,"props":2179,"children":2180},{"style":1041},[2181],{"type":998,"value":1976},{"type":993,"tag":1026,"props":2183,"children":2184},{"style":1047},[2185],{"type":998,"value":1981},{"type":993,"tag":1026,"props":2187,"children":2188},{"style":1041},[2189],{"type":998,"value":1986},{"type":993,"tag":1026,"props":2191,"children":2192},{"class":1028,"line":136},[2193,2197,2201,2205,2210,2214,2219,2223,2227],{"type":993,"tag":1026,"props":2194,"children":2195},{"style":1058},[2196],{"type":998,"value":1149},{"type":993,"tag":1026,"props":2198,"children":2199},{"style":1041},[2200],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2202,"children":2203},{"style":1047},[2204],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2206,"children":2207},{"style":1162},[2208],{"type":998,"value":2209},"\"All good scores (≥80): ",{"type":993,"tag":1026,"props":2211,"children":2212},{"style":1058},[2213],{"type":998,"value":1170},{"type":993,"tag":1026,"props":2215,"children":2216},{"style":1041},[2217],{"type":998,"value":2218},"all_good",{"type":993,"tag":1026,"props":2220,"children":2221},{"style":1058},[2222],{"type":998,"value":1180},{"type":993,"tag":1026,"props":2224,"children":2225},{"style":1162},[2226],{"type":998,"value":1284},{"type":993,"tag":1026,"props":2228,"children":2229},{"style":1041},[2230],{"type":998,"value":1103},{"type":993,"tag":1431,"props":2232,"children":2234},{"id":2233},"type-checking-and-validation",[2235],{"type":998,"value":2236},"Type Checking and Validation",{"type":993,"tag":1001,"props":2238,"children":2239},{},[2240],{"type":998,"value":2241},"Robust type checking and data validation for tuple contents and structure.",{"type":993,"tag":1012,"props":2243,"children":2244},{},[2245],{"type":993,"tag":1016,"props":2246,"children":2248},{"className":1018,"code":2247,"language":6,"meta":8,"style":8},"# Check if something is a tuple\ndata1 = (1, 2, 3)\ndata2 = [1, 2, 3]  # This is a list\n\n# Check using isinstance\nis_tuple1 = isinstance(data1, tuple)\nis_tuple2 = isinstance(data2, tuple)\n\nprint(f\"Is data1 a tuple? {is_tuple1}\")\nprint(f\"Is data2 a tuple? {is_tuple2}\")\n\n# Number validation\ndef is_number_tuple(data):\n    if not isinstance(data, tuple):\n        return False\n    \n    for item in data:\n        if not isinstance(item, (int, float)):\n            return False\n    \n    return True\n\nnumbers = (1, 2, 3.14)\nmixed = (1, \"two\", 3)\n\nprint(f\"Is {numbers} all numbers? {is_number_tuple(numbers)}\")\nprint(f\"Is {mixed} all numbers? {is_number_tuple(mixed)}\")\n",[2249],{"type":993,"tag":1022,"props":2250,"children":2251},{"__ignoreMap":8},[2252,2260,2300,2347,2354,2362,2393,2422,2429,2470,2511,2518,2526,2545,2576,2589,2597,2619,2659,2671,2678,2691,2698,2738,2779,2786,2845],{"type":993,"tag":1026,"props":2253,"children":2254},{"class":1028,"line":12},[2255],{"type":993,"tag":1026,"props":2256,"children":2257},{"style":1032},[2258],{"type":998,"value":2259},"# Check if something is a tuple\n",{"type":993,"tag":1026,"props":2261,"children":2262},{"class":1028,"line":27},[2263,2268,2272,2276,2280,2284,2288,2292,2296],{"type":993,"tag":1026,"props":2264,"children":2265},{"style":1041},[2266],{"type":998,"value":2267},"data1 ",{"type":993,"tag":1026,"props":2269,"children":2270},{"style":1047},[2271],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2273,"children":2274},{"style":1041},[2275],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2277,"children":2278},{"style":1058},[2279],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2281,"children":2282},{"style":1041},[2283],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2285,"children":2286},{"style":1058},[2287],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2289,"children":2290},{"style":1041},[2291],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2293,"children":2294},{"style":1058},[2295],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2297,"children":2298},{"style":1041},[2299],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2301,"children":2302},{"class":1028,"line":36},[2303,2308,2312,2317,2321,2325,2329,2333,2337,2342],{"type":993,"tag":1026,"props":2304,"children":2305},{"style":1041},[2306],{"type":998,"value":2307},"data2 ",{"type":993,"tag":1026,"props":2309,"children":2310},{"style":1047},[2311],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2313,"children":2314},{"style":1041},[2315],{"type":998,"value":2316}," [",{"type":993,"tag":1026,"props":2318,"children":2319},{"style":1058},[2320],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2322,"children":2323},{"style":1041},[2324],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2326,"children":2327},{"style":1058},[2328],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2330,"children":2331},{"style":1041},[2332],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2334,"children":2335},{"style":1058},[2336],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2338,"children":2339},{"style":1041},[2340],{"type":998,"value":2341},"]  ",{"type":993,"tag":1026,"props":2343,"children":2344},{"style":1032},[2345],{"type":998,"value":2346},"# This is a list\n",{"type":993,"tag":1026,"props":2348,"children":2349},{"class":1028,"line":45},[2350],{"type":993,"tag":1026,"props":2351,"children":2352},{"emptyLinePlaceholder":13},[2353],{"type":998,"value":1111},{"type":993,"tag":1026,"props":2355,"children":2356},{"class":1028,"line":54},[2357],{"type":993,"tag":1026,"props":2358,"children":2359},{"style":1032},[2360],{"type":998,"value":2361},"# Check using isinstance\n",{"type":993,"tag":1026,"props":2363,"children":2364},{"class":1028,"line":63},[2365,2370,2374,2379,2384,2389],{"type":993,"tag":1026,"props":2366,"children":2367},{"style":1041},[2368],{"type":998,"value":2369},"is_tuple1 ",{"type":993,"tag":1026,"props":2371,"children":2372},{"style":1047},[2373],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2375,"children":2376},{"style":1058},[2377],{"type":998,"value":2378}," isinstance",{"type":993,"tag":1026,"props":2380,"children":2381},{"style":1041},[2382],{"type":998,"value":2383},"(data1, ",{"type":993,"tag":1026,"props":2385,"children":2386},{"style":1058},[2387],{"type":998,"value":2388},"tuple",{"type":993,"tag":1026,"props":2390,"children":2391},{"style":1041},[2392],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2394,"children":2395},{"class":1028,"line":72},[2396,2401,2405,2409,2414,2418],{"type":993,"tag":1026,"props":2397,"children":2398},{"style":1041},[2399],{"type":998,"value":2400},"is_tuple2 ",{"type":993,"tag":1026,"props":2402,"children":2403},{"style":1047},[2404],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2406,"children":2407},{"style":1058},[2408],{"type":998,"value":2378},{"type":993,"tag":1026,"props":2410,"children":2411},{"style":1041},[2412],{"type":998,"value":2413},"(data2, ",{"type":993,"tag":1026,"props":2415,"children":2416},{"style":1058},[2417],{"type":998,"value":2388},{"type":993,"tag":1026,"props":2419,"children":2420},{"style":1041},[2421],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2423,"children":2424},{"class":1028,"line":81},[2425],{"type":993,"tag":1026,"props":2426,"children":2427},{"emptyLinePlaceholder":13},[2428],{"type":998,"value":1111},{"type":993,"tag":1026,"props":2430,"children":2431},{"class":1028,"line":91},[2432,2436,2440,2444,2449,2453,2458,2462,2466],{"type":993,"tag":1026,"props":2433,"children":2434},{"style":1058},[2435],{"type":998,"value":1149},{"type":993,"tag":1026,"props":2437,"children":2438},{"style":1041},[2439],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2441,"children":2442},{"style":1047},[2443],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2445,"children":2446},{"style":1162},[2447],{"type":998,"value":2448},"\"Is data1 a tuple? ",{"type":993,"tag":1026,"props":2450,"children":2451},{"style":1058},[2452],{"type":998,"value":1170},{"type":993,"tag":1026,"props":2454,"children":2455},{"style":1041},[2456],{"type":998,"value":2457},"is_tuple1",{"type":993,"tag":1026,"props":2459,"children":2460},{"style":1058},[2461],{"type":998,"value":1180},{"type":993,"tag":1026,"props":2463,"children":2464},{"style":1162},[2465],{"type":998,"value":1284},{"type":993,"tag":1026,"props":2467,"children":2468},{"style":1041},[2469],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2471,"children":2472},{"class":1028,"line":100},[2473,2477,2481,2485,2490,2494,2499,2503,2507],{"type":993,"tag":1026,"props":2474,"children":2475},{"style":1058},[2476],{"type":998,"value":1149},{"type":993,"tag":1026,"props":2478,"children":2479},{"style":1041},[2480],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2482,"children":2483},{"style":1047},[2484],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2486,"children":2487},{"style":1162},[2488],{"type":998,"value":2489},"\"Is data2 a tuple? ",{"type":993,"tag":1026,"props":2491,"children":2492},{"style":1058},[2493],{"type":998,"value":1170},{"type":993,"tag":1026,"props":2495,"children":2496},{"style":1041},[2497],{"type":998,"value":2498},"is_tuple2",{"type":993,"tag":1026,"props":2500,"children":2501},{"style":1058},[2502],{"type":998,"value":1180},{"type":993,"tag":1026,"props":2504,"children":2505},{"style":1162},[2506],{"type":998,"value":1284},{"type":993,"tag":1026,"props":2508,"children":2509},{"style":1041},[2510],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2512,"children":2513},{"class":1028,"line":109},[2514],{"type":993,"tag":1026,"props":2515,"children":2516},{"emptyLinePlaceholder":13},[2517],{"type":998,"value":1111},{"type":993,"tag":1026,"props":2519,"children":2520},{"class":1028,"line":118},[2521],{"type":993,"tag":1026,"props":2522,"children":2523},{"style":1032},[2524],{"type":998,"value":2525},"# Number validation\n",{"type":993,"tag":1026,"props":2527,"children":2528},{"class":1028,"line":127},[2529,2534,2540],{"type":993,"tag":1026,"props":2530,"children":2531},{"style":1047},[2532],{"type":998,"value":2533},"def",{"type":993,"tag":1026,"props":2535,"children":2537},{"style":2536},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[2538],{"type":998,"value":2539}," is_number_tuple",{"type":993,"tag":1026,"props":2541,"children":2542},{"style":1041},[2543],{"type":998,"value":2544},"(data):\n",{"type":993,"tag":1026,"props":2546,"children":2547},{"class":1028,"line":136},[2548,2553,2558,2562,2567,2571],{"type":993,"tag":1026,"props":2549,"children":2550},{"style":1047},[2551],{"type":998,"value":2552},"    if",{"type":993,"tag":1026,"props":2554,"children":2555},{"style":1047},[2556],{"type":998,"value":2557}," not",{"type":993,"tag":1026,"props":2559,"children":2560},{"style":1058},[2561],{"type":998,"value":2378},{"type":993,"tag":1026,"props":2563,"children":2564},{"style":1041},[2565],{"type":998,"value":2566},"(data, ",{"type":993,"tag":1026,"props":2568,"children":2569},{"style":1058},[2570],{"type":998,"value":2388},{"type":993,"tag":1026,"props":2572,"children":2573},{"style":1041},[2574],{"type":998,"value":2575},"):\n",{"type":993,"tag":1026,"props":2577,"children":2578},{"class":1028,"line":146},[2579,2584],{"type":993,"tag":1026,"props":2580,"children":2581},{"style":1047},[2582],{"type":998,"value":2583},"        return",{"type":993,"tag":1026,"props":2585,"children":2586},{"style":1058},[2587],{"type":998,"value":2588}," False\n",{"type":993,"tag":1026,"props":2590,"children":2591},{"class":1028,"line":155},[2592],{"type":993,"tag":1026,"props":2593,"children":2594},{"style":1041},[2595],{"type":998,"value":2596},"    \n",{"type":993,"tag":1026,"props":2598,"children":2599},{"class":1028,"line":164},[2600,2605,2610,2614],{"type":993,"tag":1026,"props":2601,"children":2602},{"style":1047},[2603],{"type":998,"value":2604},"    for",{"type":993,"tag":1026,"props":2606,"children":2607},{"style":1041},[2608],{"type":998,"value":2609}," item ",{"type":993,"tag":1026,"props":2611,"children":2612},{"style":1047},[2613],{"type":998,"value":1981},{"type":993,"tag":1026,"props":2615,"children":2616},{"style":1041},[2617],{"type":998,"value":2618}," data:\n",{"type":993,"tag":1026,"props":2620,"children":2621},{"class":1028,"line":173},[2622,2627,2631,2635,2640,2645,2649,2654],{"type":993,"tag":1026,"props":2623,"children":2624},{"style":1047},[2625],{"type":998,"value":2626},"        if",{"type":993,"tag":1026,"props":2628,"children":2629},{"style":1047},[2630],{"type":998,"value":2557},{"type":993,"tag":1026,"props":2632,"children":2633},{"style":1058},[2634],{"type":998,"value":2378},{"type":993,"tag":1026,"props":2636,"children":2637},{"style":1041},[2638],{"type":998,"value":2639},"(item, (",{"type":993,"tag":1026,"props":2641,"children":2642},{"style":1058},[2643],{"type":998,"value":2644},"int",{"type":993,"tag":1026,"props":2646,"children":2647},{"style":1041},[2648],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2650,"children":2651},{"style":1058},[2652],{"type":998,"value":2653},"float",{"type":993,"tag":1026,"props":2655,"children":2656},{"style":1041},[2657],{"type":998,"value":2658},")):\n",{"type":993,"tag":1026,"props":2660,"children":2661},{"class":1028,"line":182},[2662,2667],{"type":993,"tag":1026,"props":2663,"children":2664},{"style":1047},[2665],{"type":998,"value":2666},"            return",{"type":993,"tag":1026,"props":2668,"children":2669},{"style":1058},[2670],{"type":998,"value":2588},{"type":993,"tag":1026,"props":2672,"children":2673},{"class":1028,"line":191},[2674],{"type":993,"tag":1026,"props":2675,"children":2676},{"style":1041},[2677],{"type":998,"value":2596},{"type":993,"tag":1026,"props":2679,"children":2680},{"class":1028,"line":201},[2681,2686],{"type":993,"tag":1026,"props":2682,"children":2683},{"style":1047},[2684],{"type":998,"value":2685},"    return",{"type":993,"tag":1026,"props":2687,"children":2688},{"style":1058},[2689],{"type":998,"value":2690}," True\n",{"type":993,"tag":1026,"props":2692,"children":2693},{"class":1028,"line":210},[2694],{"type":993,"tag":1026,"props":2695,"children":2696},{"emptyLinePlaceholder":13},[2697],{"type":998,"value":1111},{"type":993,"tag":1026,"props":2699,"children":2700},{"class":1028,"line":219},[2701,2705,2709,2713,2717,2721,2725,2729,2734],{"type":993,"tag":1026,"props":2702,"children":2703},{"style":1041},[2704],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2706,"children":2707},{"style":1047},[2708],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2710,"children":2711},{"style":1041},[2712],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2714,"children":2715},{"style":1058},[2716],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2718,"children":2719},{"style":1041},[2720],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2722,"children":2723},{"style":1058},[2724],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2726,"children":2727},{"style":1041},[2728],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2730,"children":2731},{"style":1058},[2732],{"type":998,"value":2733},"3.14",{"type":993,"tag":1026,"props":2735,"children":2736},{"style":1041},[2737],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2739,"children":2740},{"class":1028,"line":228},[2741,2746,2750,2754,2758,2762,2767,2771,2775],{"type":993,"tag":1026,"props":2742,"children":2743},{"style":1041},[2744],{"type":998,"value":2745},"mixed ",{"type":993,"tag":1026,"props":2747,"children":2748},{"style":1047},[2749],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2751,"children":2752},{"style":1041},[2753],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2755,"children":2756},{"style":1058},[2757],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2759,"children":2760},{"style":1041},[2761],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2763,"children":2764},{"style":1162},[2765],{"type":998,"value":2766},"\"two\"",{"type":993,"tag":1026,"props":2768,"children":2769},{"style":1041},[2770],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2772,"children":2773},{"style":1058},[2774],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2776,"children":2777},{"style":1041},[2778],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2780,"children":2781},{"class":1028,"line":238},[2782],{"type":993,"tag":1026,"props":2783,"children":2784},{"emptyLinePlaceholder":13},[2785],{"type":998,"value":1111},{"type":993,"tag":1026,"props":2787,"children":2788},{"class":1028,"line":247},[2789,2793,2797,2801,2806,2810,2815,2819,2824,2828,2833,2837,2841],{"type":993,"tag":1026,"props":2790,"children":2791},{"style":1058},[2792],{"type":998,"value":1149},{"type":993,"tag":1026,"props":2794,"children":2795},{"style":1041},[2796],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2798,"children":2799},{"style":1047},[2800],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2802,"children":2803},{"style":1162},[2804],{"type":998,"value":2805},"\"Is ",{"type":993,"tag":1026,"props":2807,"children":2808},{"style":1058},[2809],{"type":998,"value":1170},{"type":993,"tag":1026,"props":2811,"children":2812},{"style":1041},[2813],{"type":998,"value":2814},"numbers",{"type":993,"tag":1026,"props":2816,"children":2817},{"style":1058},[2818],{"type":998,"value":1180},{"type":993,"tag":1026,"props":2820,"children":2821},{"style":1162},[2822],{"type":998,"value":2823}," all numbers? ",{"type":993,"tag":1026,"props":2825,"children":2826},{"style":1058},[2827],{"type":998,"value":1170},{"type":993,"tag":1026,"props":2829,"children":2830},{"style":1041},[2831],{"type":998,"value":2832},"is_number_tuple(numbers)",{"type":993,"tag":1026,"props":2834,"children":2835},{"style":1058},[2836],{"type":998,"value":1180},{"type":993,"tag":1026,"props":2838,"children":2839},{"style":1162},[2840],{"type":998,"value":1284},{"type":993,"tag":1026,"props":2842,"children":2843},{"style":1041},[2844],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2846,"children":2847},{"class":1028,"line":256},[2848,2852,2856,2860,2864,2868,2873,2877,2881,2885,2890,2894,2898],{"type":993,"tag":1026,"props":2849,"children":2850},{"style":1058},[2851],{"type":998,"value":1149},{"type":993,"tag":1026,"props":2853,"children":2854},{"style":1041},[2855],{"type":998,"value":1154},{"type":993,"tag":1026,"props":2857,"children":2858},{"style":1047},[2859],{"type":998,"value":1159},{"type":993,"tag":1026,"props":2861,"children":2862},{"style":1162},[2863],{"type":998,"value":2805},{"type":993,"tag":1026,"props":2865,"children":2866},{"style":1058},[2867],{"type":998,"value":1170},{"type":993,"tag":1026,"props":2869,"children":2870},{"style":1041},[2871],{"type":998,"value":2872},"mixed",{"type":993,"tag":1026,"props":2874,"children":2875},{"style":1058},[2876],{"type":998,"value":1180},{"type":993,"tag":1026,"props":2878,"children":2879},{"style":1162},[2880],{"type":998,"value":2823},{"type":993,"tag":1026,"props":2882,"children":2883},{"style":1058},[2884],{"type":998,"value":1170},{"type":993,"tag":1026,"props":2886,"children":2887},{"style":1041},[2888],{"type":998,"value":2889},"is_number_tuple(mixed)",{"type":993,"tag":1026,"props":2891,"children":2892},{"style":1058},[2893],{"type":998,"value":1180},{"type":993,"tag":1026,"props":2895,"children":2896},{"style":1162},[2897],{"type":998,"value":1284},{"type":993,"tag":1026,"props":2899,"children":2900},{"style":1041},[2901],{"type":998,"value":1103},{"type":993,"tag":2903,"props":2904,"children":2906},"content-exercise",{":widget-view":2905,"category":6,"id":437},"true",[],{"type":993,"tag":1331,"props":2908,"children":2910},{"id":2909},"sorting-and-ordering-operations",[2911],{"type":998,"value":2912},"⚡ Sorting and Ordering Operations",{"type":993,"tag":1001,"props":2914,"children":2915},{},[2916],{"type":998,"value":2917},"Tuple sorting and ordering operations create new sorted sequences while preserving the original tuple's immutability.",{"type":993,"tag":1343,"props":2919,"children":2923},{"emoji":2920,"title":2921,"type":2922},"📊","Sorting Capabilities","success",[2924,2932,2949,2957,2975,2983],{"type":993,"tag":1001,"props":2925,"children":2926},{},[2927],{"type":993,"tag":1353,"props":2928,"children":2929},{},[2930],{"type":998,"value":2931},"Sorting Functions:",{"type":993,"tag":1359,"props":2933,"children":2934},{},[2935,2940,2944],{"type":993,"tag":1363,"props":2936,"children":2937},{},[2938],{"type":998,"value":2939},"sorted(): Create new sorted tuple",{"type":993,"tag":1363,"props":2941,"children":2942},{},[2943],{"type":998,"value":1424},{"type":993,"tag":1363,"props":2945,"children":2946},{},[2947],{"type":998,"value":2948},"Custom key functions for complex sorting",{"type":993,"tag":1001,"props":2950,"children":2951},{},[2952],{"type":993,"tag":1353,"props":2953,"children":2954},{},[2955],{"type":998,"value":2956},"Sorting Features:",{"type":993,"tag":1359,"props":2958,"children":2959},{},[2960,2965,2970],{"type":993,"tag":1363,"props":2961,"children":2962},{},[2963],{"type":998,"value":2964},"Maintains original tuple unchanged",{"type":993,"tag":1363,"props":2966,"children":2967},{},[2968],{"type":998,"value":2969},"Supports custom comparison functions",{"type":993,"tag":1363,"props":2971,"children":2972},{},[2973],{"type":998,"value":2974},"Works with mixed comparable types",{"type":993,"tag":1001,"props":2976,"children":2977},{},[2978],{"type":993,"tag":1353,"props":2979,"children":2980},{},[2981],{"type":998,"value":2982},"Common Applications:",{"type":993,"tag":1359,"props":2984,"children":2985},{},[2986,2991,2996],{"type":993,"tag":1363,"props":2987,"children":2988},{},[2989],{"type":998,"value":2990},"Data analysis and ranking",{"type":993,"tag":1363,"props":2992,"children":2993},{},[2994],{"type":998,"value":2995},"Alphabetical organization",{"type":993,"tag":1363,"props":2997,"children":2998},{},[2999],{"type":998,"value":3000},"Numeric ordering and statistics",{"type":993,"tag":1431,"props":3002,"children":3004},{"id":3003},"number-sorting",[3005],{"type":998,"value":3006},"Number Sorting",{"type":993,"tag":1001,"props":3008,"children":3009},{},[3010],{"type":998,"value":3011},"Basic sorting operations with numeric tuples.",{"type":993,"tag":1012,"props":3013,"children":3014},{},[3015],{"type":993,"tag":1016,"props":3016,"children":3018},{"className":1018,"code":3017,"language":6,"meta":8,"style":8},"# Sorting numbers\nnumbers = (64, 34, 25, 12, 22)\n\n# Sort in ascending order\nsorted_asc = tuple(sorted(numbers))\nprint(f\"Original: {numbers}\")\nprint(f\"Sorted ascending: {sorted_asc}\")\n\n# Sort in descending order\nsorted_desc = tuple(sorted(numbers, reverse=True))\nprint(f\"Sorted descending: {sorted_desc}\")\n",[3019],{"type":993,"tag":1022,"props":3020,"children":3021},{"__ignoreMap":8},[3022,3030,3090,3097,3105,3136,3176,3217,3224,3232,3281],{"type":993,"tag":1026,"props":3023,"children":3024},{"class":1028,"line":12},[3025],{"type":993,"tag":1026,"props":3026,"children":3027},{"style":1032},[3028],{"type":998,"value":3029},"# Sorting numbers\n",{"type":993,"tag":1026,"props":3031,"children":3032},{"class":1028,"line":27},[3033,3037,3041,3045,3050,3054,3059,3063,3068,3072,3077,3081,3086],{"type":993,"tag":1026,"props":3034,"children":3035},{"style":1041},[3036],{"type":998,"value":1044},{"type":993,"tag":1026,"props":3038,"children":3039},{"style":1047},[3040],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3042,"children":3043},{"style":1041},[3044],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3046,"children":3047},{"style":1058},[3048],{"type":998,"value":3049},"64",{"type":993,"tag":1026,"props":3051,"children":3052},{"style":1041},[3053],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3055,"children":3056},{"style":1058},[3057],{"type":998,"value":3058},"34",{"type":993,"tag":1026,"props":3060,"children":3061},{"style":1041},[3062],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3064,"children":3065},{"style":1058},[3066],{"type":998,"value":3067},"25",{"type":993,"tag":1026,"props":3069,"children":3070},{"style":1041},[3071],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3073,"children":3074},{"style":1058},[3075],{"type":998,"value":3076},"12",{"type":993,"tag":1026,"props":3078,"children":3079},{"style":1041},[3080],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3082,"children":3083},{"style":1058},[3084],{"type":998,"value":3085},"22",{"type":993,"tag":1026,"props":3087,"children":3088},{"style":1041},[3089],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3091,"children":3092},{"class":1028,"line":36},[3093],{"type":993,"tag":1026,"props":3094,"children":3095},{"emptyLinePlaceholder":13},[3096],{"type":998,"value":1111},{"type":993,"tag":1026,"props":3098,"children":3099},{"class":1028,"line":45},[3100],{"type":993,"tag":1026,"props":3101,"children":3102},{"style":1032},[3103],{"type":998,"value":3104},"# Sort in ascending order\n",{"type":993,"tag":1026,"props":3106,"children":3107},{"class":1028,"line":54},[3108,3113,3117,3122,3126,3131],{"type":993,"tag":1026,"props":3109,"children":3110},{"style":1041},[3111],{"type":998,"value":3112},"sorted_asc ",{"type":993,"tag":1026,"props":3114,"children":3115},{"style":1047},[3116],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3118,"children":3119},{"style":1058},[3120],{"type":998,"value":3121}," tuple",{"type":993,"tag":1026,"props":3123,"children":3124},{"style":1041},[3125],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3127,"children":3128},{"style":1058},[3129],{"type":998,"value":3130},"sorted",{"type":993,"tag":1026,"props":3132,"children":3133},{"style":1041},[3134],{"type":998,"value":3135},"(numbers))\n",{"type":993,"tag":1026,"props":3137,"children":3138},{"class":1028,"line":63},[3139,3143,3147,3151,3156,3160,3164,3168,3172],{"type":993,"tag":1026,"props":3140,"children":3141},{"style":1058},[3142],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3144,"children":3145},{"style":1041},[3146],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3148,"children":3149},{"style":1047},[3150],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3152,"children":3153},{"style":1162},[3154],{"type":998,"value":3155},"\"Original: ",{"type":993,"tag":1026,"props":3157,"children":3158},{"style":1058},[3159],{"type":998,"value":1170},{"type":993,"tag":1026,"props":3161,"children":3162},{"style":1041},[3163],{"type":998,"value":2814},{"type":993,"tag":1026,"props":3165,"children":3166},{"style":1058},[3167],{"type":998,"value":1180},{"type":993,"tag":1026,"props":3169,"children":3170},{"style":1162},[3171],{"type":998,"value":1284},{"type":993,"tag":1026,"props":3173,"children":3174},{"style":1041},[3175],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3177,"children":3178},{"class":1028,"line":72},[3179,3183,3187,3191,3196,3200,3205,3209,3213],{"type":993,"tag":1026,"props":3180,"children":3181},{"style":1058},[3182],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3184,"children":3185},{"style":1041},[3186],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3188,"children":3189},{"style":1047},[3190],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3192,"children":3193},{"style":1162},[3194],{"type":998,"value":3195},"\"Sorted ascending: ",{"type":993,"tag":1026,"props":3197,"children":3198},{"style":1058},[3199],{"type":998,"value":1170},{"type":993,"tag":1026,"props":3201,"children":3202},{"style":1041},[3203],{"type":998,"value":3204},"sorted_asc",{"type":993,"tag":1026,"props":3206,"children":3207},{"style":1058},[3208],{"type":998,"value":1180},{"type":993,"tag":1026,"props":3210,"children":3211},{"style":1162},[3212],{"type":998,"value":1284},{"type":993,"tag":1026,"props":3214,"children":3215},{"style":1041},[3216],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3218,"children":3219},{"class":1028,"line":81},[3220],{"type":993,"tag":1026,"props":3221,"children":3222},{"emptyLinePlaceholder":13},[3223],{"type":998,"value":1111},{"type":993,"tag":1026,"props":3225,"children":3226},{"class":1028,"line":91},[3227],{"type":993,"tag":1026,"props":3228,"children":3229},{"style":1032},[3230],{"type":998,"value":3231},"# Sort in descending order\n",{"type":993,"tag":1026,"props":3233,"children":3234},{"class":1028,"line":100},[3235,3240,3244,3248,3252,3256,3261,3267,3271,3276],{"type":993,"tag":1026,"props":3236,"children":3237},{"style":1041},[3238],{"type":998,"value":3239},"sorted_desc ",{"type":993,"tag":1026,"props":3241,"children":3242},{"style":1047},[3243],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3245,"children":3246},{"style":1058},[3247],{"type":998,"value":3121},{"type":993,"tag":1026,"props":3249,"children":3250},{"style":1041},[3251],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3253,"children":3254},{"style":1058},[3255],{"type":998,"value":3130},{"type":993,"tag":1026,"props":3257,"children":3258},{"style":1041},[3259],{"type":998,"value":3260},"(numbers, ",{"type":993,"tag":1026,"props":3262,"children":3264},{"style":3263},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[3265],{"type":998,"value":3266},"reverse",{"type":993,"tag":1026,"props":3268,"children":3269},{"style":1047},[3270],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3272,"children":3273},{"style":1058},[3274],{"type":998,"value":3275},"True",{"type":993,"tag":1026,"props":3277,"children":3278},{"style":1041},[3279],{"type":998,"value":3280},"))\n",{"type":993,"tag":1026,"props":3282,"children":3283},{"class":1028,"line":109},[3284,3288,3292,3296,3301,3305,3310,3314,3318],{"type":993,"tag":1026,"props":3285,"children":3286},{"style":1058},[3287],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3289,"children":3290},{"style":1041},[3291],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3293,"children":3294},{"style":1047},[3295],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3297,"children":3298},{"style":1162},[3299],{"type":998,"value":3300},"\"Sorted descending: ",{"type":993,"tag":1026,"props":3302,"children":3303},{"style":1058},[3304],{"type":998,"value":1170},{"type":993,"tag":1026,"props":3306,"children":3307},{"style":1041},[3308],{"type":998,"value":3309},"sorted_desc",{"type":993,"tag":1026,"props":3311,"children":3312},{"style":1058},[3313],{"type":998,"value":1180},{"type":993,"tag":1026,"props":3315,"children":3316},{"style":1162},[3317],{"type":998,"value":1284},{"type":993,"tag":1026,"props":3319,"children":3320},{"style":1041},[3321],{"type":998,"value":1103},{"type":993,"tag":1431,"props":3323,"children":3325},{"id":3324},"student-grade-sorting",[3326],{"type":998,"value":3327},"Student Grade Sorting",{"type":993,"tag":1001,"props":3329,"children":3330},{},[3331],{"type":998,"value":3332},"Sorting student records by different criteria.",{"type":993,"tag":1012,"props":3334,"children":3335},{},[3336],{"type":993,"tag":1016,"props":3337,"children":3339},{"className":1018,"code":3338,"language":6,"meta":8,"style":8},"# Sort students by grades\nstudents = (\n    (\"Alice\", 85),\n    (\"Bob\", 92),\n    (\"Carol\", 78),\n    (\"David\", 96)\n)\n\n# Sort by grade\nby_grade = tuple(sorted(students, key=lambda x: x[1]))\nprint(\"Students sorted by grade:\")\nfor name, grade in by_grade:\n    print(f\"{name}: {grade}\")\n\n# Sort by name\nby_name = tuple(sorted(students, key=lambda x: x[0]))\nprint(\"\\nStudents sorted by name:\")\nfor name, grade in by_name:\n    print(f\"{name}: {grade}\")\n",[3340],{"type":993,"tag":1022,"props":3341,"children":3342},{"__ignoreMap":8},[3343,3351,3368,3394,3418,3442,3466,3473,3480,3488,3541,3561,3583,3642,3649,3657,3706,3735,3755],{"type":993,"tag":1026,"props":3344,"children":3345},{"class":1028,"line":12},[3346],{"type":993,"tag":1026,"props":3347,"children":3348},{"style":1032},[3349],{"type":998,"value":3350},"# Sort students by grades\n",{"type":993,"tag":1026,"props":3352,"children":3353},{"class":1028,"line":27},[3354,3359,3363],{"type":993,"tag":1026,"props":3355,"children":3356},{"style":1041},[3357],{"type":998,"value":3358},"students ",{"type":993,"tag":1026,"props":3360,"children":3361},{"style":1047},[3362],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3364,"children":3365},{"style":1041},[3366],{"type":998,"value":3367}," (\n",{"type":993,"tag":1026,"props":3369,"children":3370},{"class":1028,"line":36},[3371,3376,3381,3385,3389],{"type":993,"tag":1026,"props":3372,"children":3373},{"style":1041},[3374],{"type":998,"value":3375},"    (",{"type":993,"tag":1026,"props":3377,"children":3378},{"style":1162},[3379],{"type":998,"value":3380},"\"Alice\"",{"type":993,"tag":1026,"props":3382,"children":3383},{"style":1041},[3384],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3386,"children":3387},{"style":1058},[3388],{"type":998,"value":1478},{"type":993,"tag":1026,"props":3390,"children":3391},{"style":1041},[3392],{"type":998,"value":3393},"),\n",{"type":993,"tag":1026,"props":3395,"children":3396},{"class":1028,"line":45},[3397,3401,3406,3410,3414],{"type":993,"tag":1026,"props":3398,"children":3399},{"style":1041},[3400],{"type":998,"value":3375},{"type":993,"tag":1026,"props":3402,"children":3403},{"style":1162},[3404],{"type":998,"value":3405},"\"Bob\"",{"type":993,"tag":1026,"props":3407,"children":3408},{"style":1041},[3409],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3411,"children":3412},{"style":1058},[3413],{"type":998,"value":1487},{"type":993,"tag":1026,"props":3415,"children":3416},{"style":1041},[3417],{"type":998,"value":3393},{"type":993,"tag":1026,"props":3419,"children":3420},{"class":1028,"line":54},[3421,3425,3430,3434,3438],{"type":993,"tag":1026,"props":3422,"children":3423},{"style":1041},[3424],{"type":998,"value":3375},{"type":993,"tag":1026,"props":3426,"children":3427},{"style":1162},[3428],{"type":998,"value":3429},"\"Carol\"",{"type":993,"tag":1026,"props":3431,"children":3432},{"style":1041},[3433],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3435,"children":3436},{"style":1058},[3437],{"type":998,"value":1496},{"type":993,"tag":1026,"props":3439,"children":3440},{"style":1041},[3441],{"type":998,"value":3393},{"type":993,"tag":1026,"props":3443,"children":3444},{"class":1028,"line":63},[3445,3449,3454,3458,3462],{"type":993,"tag":1026,"props":3446,"children":3447},{"style":1041},[3448],{"type":998,"value":3375},{"type":993,"tag":1026,"props":3450,"children":3451},{"style":1162},[3452],{"type":998,"value":3453},"\"David\"",{"type":993,"tag":1026,"props":3455,"children":3456},{"style":1041},[3457],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3459,"children":3460},{"style":1058},[3461],{"type":998,"value":1505},{"type":993,"tag":1026,"props":3463,"children":3464},{"style":1041},[3465],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3467,"children":3468},{"class":1028,"line":72},[3469],{"type":993,"tag":1026,"props":3470,"children":3471},{"style":1041},[3472],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3474,"children":3475},{"class":1028,"line":81},[3476],{"type":993,"tag":1026,"props":3477,"children":3478},{"emptyLinePlaceholder":13},[3479],{"type":998,"value":1111},{"type":993,"tag":1026,"props":3481,"children":3482},{"class":1028,"line":91},[3483],{"type":993,"tag":1026,"props":3484,"children":3485},{"style":1032},[3486],{"type":998,"value":3487},"# Sort by grade\n",{"type":993,"tag":1026,"props":3489,"children":3490},{"class":1028,"line":100},[3491,3496,3500,3504,3508,3512,3517,3522,3527,3532,3536],{"type":993,"tag":1026,"props":3492,"children":3493},{"style":1041},[3494],{"type":998,"value":3495},"by_grade ",{"type":993,"tag":1026,"props":3497,"children":3498},{"style":1047},[3499],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3501,"children":3502},{"style":1058},[3503],{"type":998,"value":3121},{"type":993,"tag":1026,"props":3505,"children":3506},{"style":1041},[3507],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3509,"children":3510},{"style":1058},[3511],{"type":998,"value":3130},{"type":993,"tag":1026,"props":3513,"children":3514},{"style":1041},[3515],{"type":998,"value":3516},"(students, ",{"type":993,"tag":1026,"props":3518,"children":3519},{"style":3263},[3520],{"type":998,"value":3521},"key",{"type":993,"tag":1026,"props":3523,"children":3524},{"style":1047},[3525],{"type":998,"value":3526},"=lambda",{"type":993,"tag":1026,"props":3528,"children":3529},{"style":1041},[3530],{"type":998,"value":3531}," x: x[",{"type":993,"tag":1026,"props":3533,"children":3534},{"style":1058},[3535],{"type":998,"value":1061},{"type":993,"tag":1026,"props":3537,"children":3538},{"style":1041},[3539],{"type":998,"value":3540},"]))\n",{"type":993,"tag":1026,"props":3542,"children":3543},{"class":1028,"line":109},[3544,3548,3552,3557],{"type":993,"tag":1026,"props":3545,"children":3546},{"style":1058},[3547],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3549,"children":3550},{"style":1041},[3551],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3553,"children":3554},{"style":1162},[3555],{"type":998,"value":3556},"\"Students sorted by grade:\"",{"type":993,"tag":1026,"props":3558,"children":3559},{"style":1041},[3560],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3562,"children":3563},{"class":1028,"line":118},[3564,3569,3574,3578],{"type":993,"tag":1026,"props":3565,"children":3566},{"style":1047},[3567],{"type":998,"value":3568},"for",{"type":993,"tag":1026,"props":3570,"children":3571},{"style":1041},[3572],{"type":998,"value":3573}," name, grade ",{"type":993,"tag":1026,"props":3575,"children":3576},{"style":1047},[3577],{"type":998,"value":1981},{"type":993,"tag":1026,"props":3579,"children":3580},{"style":1041},[3581],{"type":998,"value":3582}," by_grade:\n",{"type":993,"tag":1026,"props":3584,"children":3585},{"class":1028,"line":127},[3586,3591,3595,3599,3603,3607,3612,3616,3621,3625,3630,3634,3638],{"type":993,"tag":1026,"props":3587,"children":3588},{"style":1058},[3589],{"type":998,"value":3590},"    print",{"type":993,"tag":1026,"props":3592,"children":3593},{"style":1041},[3594],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3596,"children":3597},{"style":1047},[3598],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3600,"children":3601},{"style":1162},[3602],{"type":998,"value":1284},{"type":993,"tag":1026,"props":3604,"children":3605},{"style":1058},[3606],{"type":998,"value":1170},{"type":993,"tag":1026,"props":3608,"children":3609},{"style":1041},[3610],{"type":998,"value":3611},"name",{"type":993,"tag":1026,"props":3613,"children":3614},{"style":1058},[3615],{"type":998,"value":1180},{"type":993,"tag":1026,"props":3617,"children":3618},{"style":1162},[3619],{"type":998,"value":3620},": ",{"type":993,"tag":1026,"props":3622,"children":3623},{"style":1058},[3624],{"type":998,"value":1170},{"type":993,"tag":1026,"props":3626,"children":3627},{"style":1041},[3628],{"type":998,"value":3629},"grade",{"type":993,"tag":1026,"props":3631,"children":3632},{"style":1058},[3633],{"type":998,"value":1180},{"type":993,"tag":1026,"props":3635,"children":3636},{"style":1162},[3637],{"type":998,"value":1284},{"type":993,"tag":1026,"props":3639,"children":3640},{"style":1041},[3641],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3643,"children":3644},{"class":1028,"line":136},[3645],{"type":993,"tag":1026,"props":3646,"children":3647},{"emptyLinePlaceholder":13},[3648],{"type":998,"value":1111},{"type":993,"tag":1026,"props":3650,"children":3651},{"class":1028,"line":146},[3652],{"type":993,"tag":1026,"props":3653,"children":3654},{"style":1032},[3655],{"type":998,"value":3656},"# Sort by name\n",{"type":993,"tag":1026,"props":3658,"children":3659},{"class":1028,"line":155},[3660,3665,3669,3673,3677,3681,3685,3689,3693,3697,3702],{"type":993,"tag":1026,"props":3661,"children":3662},{"style":1041},[3663],{"type":998,"value":3664},"by_name ",{"type":993,"tag":1026,"props":3666,"children":3667},{"style":1047},[3668],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3670,"children":3671},{"style":1058},[3672],{"type":998,"value":3121},{"type":993,"tag":1026,"props":3674,"children":3675},{"style":1041},[3676],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3678,"children":3679},{"style":1058},[3680],{"type":998,"value":3130},{"type":993,"tag":1026,"props":3682,"children":3683},{"style":1041},[3684],{"type":998,"value":3516},{"type":993,"tag":1026,"props":3686,"children":3687},{"style":3263},[3688],{"type":998,"value":3521},{"type":993,"tag":1026,"props":3690,"children":3691},{"style":1047},[3692],{"type":998,"value":3526},{"type":993,"tag":1026,"props":3694,"children":3695},{"style":1041},[3696],{"type":998,"value":3531},{"type":993,"tag":1026,"props":3698,"children":3699},{"style":1058},[3700],{"type":998,"value":3701},"0",{"type":993,"tag":1026,"props":3703,"children":3704},{"style":1041},[3705],{"type":998,"value":3540},{"type":993,"tag":1026,"props":3707,"children":3708},{"class":1028,"line":164},[3709,3713,3717,3721,3726,3731],{"type":993,"tag":1026,"props":3710,"children":3711},{"style":1058},[3712],{"type":998,"value":1149},{"type":993,"tag":1026,"props":3714,"children":3715},{"style":1041},[3716],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3718,"children":3719},{"style":1162},[3720],{"type":998,"value":1284},{"type":993,"tag":1026,"props":3722,"children":3723},{"style":1058},[3724],{"type":998,"value":3725},"\\n",{"type":993,"tag":1026,"props":3727,"children":3728},{"style":1162},[3729],{"type":998,"value":3730},"Students sorted by name:\"",{"type":993,"tag":1026,"props":3732,"children":3733},{"style":1041},[3734],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3736,"children":3737},{"class":1028,"line":173},[3738,3742,3746,3750],{"type":993,"tag":1026,"props":3739,"children":3740},{"style":1047},[3741],{"type":998,"value":3568},{"type":993,"tag":1026,"props":3743,"children":3744},{"style":1041},[3745],{"type":998,"value":3573},{"type":993,"tag":1026,"props":3747,"children":3748},{"style":1047},[3749],{"type":998,"value":1981},{"type":993,"tag":1026,"props":3751,"children":3752},{"style":1041},[3753],{"type":998,"value":3754}," by_name:\n",{"type":993,"tag":1026,"props":3756,"children":3757},{"class":1028,"line":182},[3758,3762,3766,3770,3774,3778,3782,3786,3790,3794,3798,3802,3806],{"type":993,"tag":1026,"props":3759,"children":3760},{"style":1058},[3761],{"type":998,"value":3590},{"type":993,"tag":1026,"props":3763,"children":3764},{"style":1041},[3765],{"type":998,"value":1154},{"type":993,"tag":1026,"props":3767,"children":3768},{"style":1047},[3769],{"type":998,"value":1159},{"type":993,"tag":1026,"props":3771,"children":3772},{"style":1162},[3773],{"type":998,"value":1284},{"type":993,"tag":1026,"props":3775,"children":3776},{"style":1058},[3777],{"type":998,"value":1170},{"type":993,"tag":1026,"props":3779,"children":3780},{"style":1041},[3781],{"type":998,"value":3611},{"type":993,"tag":1026,"props":3783,"children":3784},{"style":1058},[3785],{"type":998,"value":1180},{"type":993,"tag":1026,"props":3787,"children":3788},{"style":1162},[3789],{"type":998,"value":3620},{"type":993,"tag":1026,"props":3791,"children":3792},{"style":1058},[3793],{"type":998,"value":1170},{"type":993,"tag":1026,"props":3795,"children":3796},{"style":1041},[3797],{"type":998,"value":3629},{"type":993,"tag":1026,"props":3799,"children":3800},{"style":1058},[3801],{"type":998,"value":1180},{"type":993,"tag":1026,"props":3803,"children":3804},{"style":1162},[3805],{"type":998,"value":1284},{"type":993,"tag":1026,"props":3807,"children":3808},{"style":1041},[3809],{"type":998,"value":1103},{"type":993,"tag":1431,"props":3811,"children":3813},{"id":3812},"advanced-sorting-with-key-functions",[3814],{"type":998,"value":3815},"Advanced Sorting with Key Functions",{"type":993,"tag":1001,"props":3817,"children":3818},{},[3819],{"type":998,"value":3820},"Custom sorting using key functions for complex data structures and criteria.",{"type":993,"tag":1012,"props":3822,"children":3823},{},[3824],{"type":993,"tag":1016,"props":3825,"children":3827},{"className":1018,"code":3826,"language":6,"meta":8,"style":8},"# Advanced sorting with key functions\nproducts = (\n    (\"Laptop\", 999.99, \"Electronics\"),\n    (\"Book\", 29.99, \"Education\"),\n    (\"Headphones\", 199.99, \"Electronics\"),\n    (\"Notebook\", 5.99, \"Office\")\n)\n\n# Sort by price\nby_price = tuple(sorted(products, key=lambda x: x[1]))\nprint(\"Products by price:\")\nfor name, price, category in by_price:\n    print(f\"  {name}: ${price:.2f}\")\n\n# Sort by category then price\nby_category_price = tuple(sorted(products, key=lambda x: (x[2], x[1])))\nprint(\"\\nBy category then price:\")\nfor name, price, category in by_category_price:\n    print(f\"  {category}: {name} (${price:.2f})\")\n",[3828],{"type":993,"tag":1022,"props":3829,"children":3830},{"__ignoreMap":8},[3831,3839,3855,3889,3923,3956,3990,3997,4004,4012,4061,4081,4102,4165,4172,4180,4239,4267,4287],{"type":993,"tag":1026,"props":3832,"children":3833},{"class":1028,"line":12},[3834],{"type":993,"tag":1026,"props":3835,"children":3836},{"style":1032},[3837],{"type":998,"value":3838},"# Advanced sorting with key functions\n",{"type":993,"tag":1026,"props":3840,"children":3841},{"class":1028,"line":27},[3842,3847,3851],{"type":993,"tag":1026,"props":3843,"children":3844},{"style":1041},[3845],{"type":998,"value":3846},"products ",{"type":993,"tag":1026,"props":3848,"children":3849},{"style":1047},[3850],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3852,"children":3853},{"style":1041},[3854],{"type":998,"value":3367},{"type":993,"tag":1026,"props":3856,"children":3857},{"class":1028,"line":36},[3858,3862,3867,3871,3876,3880,3885],{"type":993,"tag":1026,"props":3859,"children":3860},{"style":1041},[3861],{"type":998,"value":3375},{"type":993,"tag":1026,"props":3863,"children":3864},{"style":1162},[3865],{"type":998,"value":3866},"\"Laptop\"",{"type":993,"tag":1026,"props":3868,"children":3869},{"style":1041},[3870],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3872,"children":3873},{"style":1058},[3874],{"type":998,"value":3875},"999.99",{"type":993,"tag":1026,"props":3877,"children":3878},{"style":1041},[3879],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3881,"children":3882},{"style":1162},[3883],{"type":998,"value":3884},"\"Electronics\"",{"type":993,"tag":1026,"props":3886,"children":3887},{"style":1041},[3888],{"type":998,"value":3393},{"type":993,"tag":1026,"props":3890,"children":3891},{"class":1028,"line":45},[3892,3896,3901,3905,3910,3914,3919],{"type":993,"tag":1026,"props":3893,"children":3894},{"style":1041},[3895],{"type":998,"value":3375},{"type":993,"tag":1026,"props":3897,"children":3898},{"style":1162},[3899],{"type":998,"value":3900},"\"Book\"",{"type":993,"tag":1026,"props":3902,"children":3903},{"style":1041},[3904],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3906,"children":3907},{"style":1058},[3908],{"type":998,"value":3909},"29.99",{"type":993,"tag":1026,"props":3911,"children":3912},{"style":1041},[3913],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3915,"children":3916},{"style":1162},[3917],{"type":998,"value":3918},"\"Education\"",{"type":993,"tag":1026,"props":3920,"children":3921},{"style":1041},[3922],{"type":998,"value":3393},{"type":993,"tag":1026,"props":3924,"children":3925},{"class":1028,"line":54},[3926,3930,3935,3939,3944,3948,3952],{"type":993,"tag":1026,"props":3927,"children":3928},{"style":1041},[3929],{"type":998,"value":3375},{"type":993,"tag":1026,"props":3931,"children":3932},{"style":1162},[3933],{"type":998,"value":3934},"\"Headphones\"",{"type":993,"tag":1026,"props":3936,"children":3937},{"style":1041},[3938],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3940,"children":3941},{"style":1058},[3942],{"type":998,"value":3943},"199.99",{"type":993,"tag":1026,"props":3945,"children":3946},{"style":1041},[3947],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3949,"children":3950},{"style":1162},[3951],{"type":998,"value":3884},{"type":993,"tag":1026,"props":3953,"children":3954},{"style":1041},[3955],{"type":998,"value":3393},{"type":993,"tag":1026,"props":3957,"children":3958},{"class":1028,"line":63},[3959,3963,3968,3972,3977,3981,3986],{"type":993,"tag":1026,"props":3960,"children":3961},{"style":1041},[3962],{"type":998,"value":3375},{"type":993,"tag":1026,"props":3964,"children":3965},{"style":1162},[3966],{"type":998,"value":3967},"\"Notebook\"",{"type":993,"tag":1026,"props":3969,"children":3970},{"style":1041},[3971],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3973,"children":3974},{"style":1058},[3975],{"type":998,"value":3976},"5.99",{"type":993,"tag":1026,"props":3978,"children":3979},{"style":1041},[3980],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3982,"children":3983},{"style":1162},[3984],{"type":998,"value":3985},"\"Office\"",{"type":993,"tag":1026,"props":3987,"children":3988},{"style":1041},[3989],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3991,"children":3992},{"class":1028,"line":72},[3993],{"type":993,"tag":1026,"props":3994,"children":3995},{"style":1041},[3996],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3998,"children":3999},{"class":1028,"line":81},[4000],{"type":993,"tag":1026,"props":4001,"children":4002},{"emptyLinePlaceholder":13},[4003],{"type":998,"value":1111},{"type":993,"tag":1026,"props":4005,"children":4006},{"class":1028,"line":91},[4007],{"type":993,"tag":1026,"props":4008,"children":4009},{"style":1032},[4010],{"type":998,"value":4011},"# Sort by price\n",{"type":993,"tag":1026,"props":4013,"children":4014},{"class":1028,"line":100},[4015,4020,4024,4028,4032,4036,4041,4045,4049,4053,4057],{"type":993,"tag":1026,"props":4016,"children":4017},{"style":1041},[4018],{"type":998,"value":4019},"by_price ",{"type":993,"tag":1026,"props":4021,"children":4022},{"style":1047},[4023],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4025,"children":4026},{"style":1058},[4027],{"type":998,"value":3121},{"type":993,"tag":1026,"props":4029,"children":4030},{"style":1041},[4031],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4033,"children":4034},{"style":1058},[4035],{"type":998,"value":3130},{"type":993,"tag":1026,"props":4037,"children":4038},{"style":1041},[4039],{"type":998,"value":4040},"(products, ",{"type":993,"tag":1026,"props":4042,"children":4043},{"style":3263},[4044],{"type":998,"value":3521},{"type":993,"tag":1026,"props":4046,"children":4047},{"style":1047},[4048],{"type":998,"value":3526},{"type":993,"tag":1026,"props":4050,"children":4051},{"style":1041},[4052],{"type":998,"value":3531},{"type":993,"tag":1026,"props":4054,"children":4055},{"style":1058},[4056],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4058,"children":4059},{"style":1041},[4060],{"type":998,"value":3540},{"type":993,"tag":1026,"props":4062,"children":4063},{"class":1028,"line":109},[4064,4068,4072,4077],{"type":993,"tag":1026,"props":4065,"children":4066},{"style":1058},[4067],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4069,"children":4070},{"style":1041},[4071],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4073,"children":4074},{"style":1162},[4075],{"type":998,"value":4076},"\"Products by price:\"",{"type":993,"tag":1026,"props":4078,"children":4079},{"style":1041},[4080],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4082,"children":4083},{"class":1028,"line":118},[4084,4088,4093,4097],{"type":993,"tag":1026,"props":4085,"children":4086},{"style":1047},[4087],{"type":998,"value":3568},{"type":993,"tag":1026,"props":4089,"children":4090},{"style":1041},[4091],{"type":998,"value":4092}," name, price, category ",{"type":993,"tag":1026,"props":4094,"children":4095},{"style":1047},[4096],{"type":998,"value":1981},{"type":993,"tag":1026,"props":4098,"children":4099},{"style":1041},[4100],{"type":998,"value":4101}," by_price:\n",{"type":993,"tag":1026,"props":4103,"children":4104},{"class":1028,"line":127},[4105,4109,4113,4117,4122,4126,4130,4134,4139,4143,4148,4153,4157,4161],{"type":993,"tag":1026,"props":4106,"children":4107},{"style":1058},[4108],{"type":998,"value":3590},{"type":993,"tag":1026,"props":4110,"children":4111},{"style":1041},[4112],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4114,"children":4115},{"style":1047},[4116],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4118,"children":4119},{"style":1162},[4120],{"type":998,"value":4121},"\"  ",{"type":993,"tag":1026,"props":4123,"children":4124},{"style":1058},[4125],{"type":998,"value":1170},{"type":993,"tag":1026,"props":4127,"children":4128},{"style":1041},[4129],{"type":998,"value":3611},{"type":993,"tag":1026,"props":4131,"children":4132},{"style":1058},[4133],{"type":998,"value":1180},{"type":993,"tag":1026,"props":4135,"children":4136},{"style":1162},[4137],{"type":998,"value":4138},": $",{"type":993,"tag":1026,"props":4140,"children":4141},{"style":1058},[4142],{"type":998,"value":1170},{"type":993,"tag":1026,"props":4144,"children":4145},{"style":1041},[4146],{"type":998,"value":4147},"price",{"type":993,"tag":1026,"props":4149,"children":4150},{"style":1047},[4151],{"type":998,"value":4152},":.2f",{"type":993,"tag":1026,"props":4154,"children":4155},{"style":1058},[4156],{"type":998,"value":1180},{"type":993,"tag":1026,"props":4158,"children":4159},{"style":1162},[4160],{"type":998,"value":1284},{"type":993,"tag":1026,"props":4162,"children":4163},{"style":1041},[4164],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4166,"children":4167},{"class":1028,"line":136},[4168],{"type":993,"tag":1026,"props":4169,"children":4170},{"emptyLinePlaceholder":13},[4171],{"type":998,"value":1111},{"type":993,"tag":1026,"props":4173,"children":4174},{"class":1028,"line":146},[4175],{"type":993,"tag":1026,"props":4176,"children":4177},{"style":1032},[4178],{"type":998,"value":4179},"# Sort by category then price\n",{"type":993,"tag":1026,"props":4181,"children":4182},{"class":1028,"line":155},[4183,4188,4192,4196,4200,4204,4208,4212,4216,4221,4225,4230,4234],{"type":993,"tag":1026,"props":4184,"children":4185},{"style":1041},[4186],{"type":998,"value":4187},"by_category_price ",{"type":993,"tag":1026,"props":4189,"children":4190},{"style":1047},[4191],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4193,"children":4194},{"style":1058},[4195],{"type":998,"value":3121},{"type":993,"tag":1026,"props":4197,"children":4198},{"style":1041},[4199],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4201,"children":4202},{"style":1058},[4203],{"type":998,"value":3130},{"type":993,"tag":1026,"props":4205,"children":4206},{"style":1041},[4207],{"type":998,"value":4040},{"type":993,"tag":1026,"props":4209,"children":4210},{"style":3263},[4211],{"type":998,"value":3521},{"type":993,"tag":1026,"props":4213,"children":4214},{"style":1047},[4215],{"type":998,"value":3526},{"type":993,"tag":1026,"props":4217,"children":4218},{"style":1041},[4219],{"type":998,"value":4220}," x: (x[",{"type":993,"tag":1026,"props":4222,"children":4223},{"style":1058},[4224],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4226,"children":4227},{"style":1041},[4228],{"type":998,"value":4229},"], x[",{"type":993,"tag":1026,"props":4231,"children":4232},{"style":1058},[4233],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4235,"children":4236},{"style":1041},[4237],{"type":998,"value":4238},"])))\n",{"type":993,"tag":1026,"props":4240,"children":4241},{"class":1028,"line":164},[4242,4246,4250,4254,4258,4263],{"type":993,"tag":1026,"props":4243,"children":4244},{"style":1058},[4245],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4247,"children":4248},{"style":1041},[4249],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4251,"children":4252},{"style":1162},[4253],{"type":998,"value":1284},{"type":993,"tag":1026,"props":4255,"children":4256},{"style":1058},[4257],{"type":998,"value":3725},{"type":993,"tag":1026,"props":4259,"children":4260},{"style":1162},[4261],{"type":998,"value":4262},"By category then price:\"",{"type":993,"tag":1026,"props":4264,"children":4265},{"style":1041},[4266],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4268,"children":4269},{"class":1028,"line":173},[4270,4274,4278,4282],{"type":993,"tag":1026,"props":4271,"children":4272},{"style":1047},[4273],{"type":998,"value":3568},{"type":993,"tag":1026,"props":4275,"children":4276},{"style":1041},[4277],{"type":998,"value":4092},{"type":993,"tag":1026,"props":4279,"children":4280},{"style":1047},[4281],{"type":998,"value":1981},{"type":993,"tag":1026,"props":4283,"children":4284},{"style":1041},[4285],{"type":998,"value":4286}," by_category_price:\n",{"type":993,"tag":1026,"props":4288,"children":4289},{"class":1028,"line":182},[4290,4294,4298,4302,4306,4310,4315,4319,4323,4327,4331,4335,4340,4344,4348,4352,4356,4361],{"type":993,"tag":1026,"props":4291,"children":4292},{"style":1058},[4293],{"type":998,"value":3590},{"type":993,"tag":1026,"props":4295,"children":4296},{"style":1041},[4297],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4299,"children":4300},{"style":1047},[4301],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4303,"children":4304},{"style":1162},[4305],{"type":998,"value":4121},{"type":993,"tag":1026,"props":4307,"children":4308},{"style":1058},[4309],{"type":998,"value":1170},{"type":993,"tag":1026,"props":4311,"children":4312},{"style":1041},[4313],{"type":998,"value":4314},"category",{"type":993,"tag":1026,"props":4316,"children":4317},{"style":1058},[4318],{"type":998,"value":1180},{"type":993,"tag":1026,"props":4320,"children":4321},{"style":1162},[4322],{"type":998,"value":3620},{"type":993,"tag":1026,"props":4324,"children":4325},{"style":1058},[4326],{"type":998,"value":1170},{"type":993,"tag":1026,"props":4328,"children":4329},{"style":1041},[4330],{"type":998,"value":3611},{"type":993,"tag":1026,"props":4332,"children":4333},{"style":1058},[4334],{"type":998,"value":1180},{"type":993,"tag":1026,"props":4336,"children":4337},{"style":1162},[4338],{"type":998,"value":4339}," ($",{"type":993,"tag":1026,"props":4341,"children":4342},{"style":1058},[4343],{"type":998,"value":1170},{"type":993,"tag":1026,"props":4345,"children":4346},{"style":1041},[4347],{"type":998,"value":4147},{"type":993,"tag":1026,"props":4349,"children":4350},{"style":1047},[4351],{"type":998,"value":4152},{"type":993,"tag":1026,"props":4353,"children":4354},{"style":1058},[4355],{"type":998,"value":1180},{"type":993,"tag":1026,"props":4357,"children":4358},{"style":1162},[4359],{"type":998,"value":4360},")\"",{"type":993,"tag":1026,"props":4362,"children":4363},{"style":1041},[4364],{"type":998,"value":1103},{"type":993,"tag":1331,"props":4366,"children":4368},{"id":4367},"comparison-operations",[4369],{"type":998,"value":4370},"🚀 Comparison Operations",{"type":993,"tag":1001,"props":4372,"children":4373},{},[4374],{"type":998,"value":4375},"Tuple comparison operations enable sorting, equality testing, and ordering decisions.",{"type":993,"tag":1343,"props":4377,"children":4380},{"emoji":4378,"title":4379,"type":1347},"⚖️","Comparison Rules",[4381,4389,4407,4415,4433,4441],{"type":993,"tag":1001,"props":4382,"children":4383},{},[4384],{"type":993,"tag":1353,"props":4385,"children":4386},{},[4387],{"type":998,"value":4388},"Comparison Behavior:",{"type":993,"tag":1359,"props":4390,"children":4391},{},[4392,4397,4402],{"type":993,"tag":1363,"props":4393,"children":4394},{},[4395],{"type":998,"value":4396},"Element-by-element comparison from left to right",{"type":993,"tag":1363,"props":4398,"children":4399},{},[4400],{"type":998,"value":4401},"First differing element determines result",{"type":993,"tag":1363,"props":4403,"children":4404},{},[4405],{"type":998,"value":4406},"Shorter tuple is \"less than\" if all elements equal",{"type":993,"tag":1001,"props":4408,"children":4409},{},[4410],{"type":993,"tag":1353,"props":4411,"children":4412},{},[4413],{"type":998,"value":4414},"Comparison Operators:",{"type":993,"tag":1359,"props":4416,"children":4417},{},[4418,4423,4428],{"type":993,"tag":1363,"props":4419,"children":4420},{},[4421],{"type":998,"value":4422},"==, != for equality testing",{"type":993,"tag":1363,"props":4424,"children":4425},{},[4426],{"type":998,"value":4427},"\u003C, \u003C=, >, >= for ordering",{"type":993,"tag":1363,"props":4429,"children":4430},{},[4431],{"type":998,"value":4432},"Supports complex nested comparisons",{"type":993,"tag":1001,"props":4434,"children":4435},{},[4436],{"type":993,"tag":1353,"props":4437,"children":4438},{},[4439],{"type":998,"value":4440},"Practical Applications:",{"type":993,"tag":1359,"props":4442,"children":4443},{},[4444,4449,4454],{"type":993,"tag":1363,"props":4445,"children":4446},{},[4447],{"type":998,"value":4448},"Version number comparisons",{"type":993,"tag":1363,"props":4450,"children":4451},{},[4452],{"type":998,"value":4453},"Priority rankings",{"type":993,"tag":1363,"props":4455,"children":4456},{},[4457],{"type":998,"value":4458},"Data validation and testing",{"type":993,"tag":1431,"props":4460,"children":4462},{"id":4461},"equality-and-inequality-testing",[4463],{"type":998,"value":4464},"Equality and Inequality Testing",{"type":993,"tag":1001,"props":4466,"children":4467},{},[4468],{"type":998,"value":4469},"Comprehensive equality testing for tuple comparison and validation.",{"type":993,"tag":1012,"props":4471,"children":4472},{},[4473],{"type":993,"tag":1016,"props":4474,"children":4476},{"className":1018,"code":4475,"language":6,"meta":8,"style":8},"# Equality and inequality testing\ntuple1 = (1, 2, 3)\ntuple2 = (1, 2, 3)\ntuple3 = (1, 2, 4)\n\n# Basic equality\nprint(f\"tuple1 == tuple2: {tuple1 == tuple2}\")\nprint(f\"tuple1 == tuple3: {tuple1 == tuple3}\")\nprint(f\"tuple1 != tuple3: {tuple1 != tuple3}\")\n\n# Mixed data types\nmixed1 = (\"hello\", 42, True)\nmixed2 = (\"hello\", 42, True)\nprint(f\"mixed1 == mixed2: {mixed1 == mixed2}\")\n\n# Nested tuple equality\nnested1 = ((1, 2), (3, 4))\nnested2 = ((1, 2), (3, 4))\nnested3 = ((1, 2), (3, 5))\n\nprint(f\"nested1 == nested2: {nested1 == nested2}\")\nprint(f\"nested1 == nested3: {nested1 == nested3}\")\n",[4477],{"type":993,"tag":1022,"props":4478,"children":4479},{"__ignoreMap":8},[4480,4488,4528,4568,4608,4615,4623,4673,4722,4771,4778,4786,4828,4868,4917,4924,4932,4982,5030,5078,5085,5134],{"type":993,"tag":1026,"props":4481,"children":4482},{"class":1028,"line":12},[4483],{"type":993,"tag":1026,"props":4484,"children":4485},{"style":1032},[4486],{"type":998,"value":4487},"# Equality and inequality testing\n",{"type":993,"tag":1026,"props":4489,"children":4490},{"class":1028,"line":27},[4491,4496,4500,4504,4508,4512,4516,4520,4524],{"type":993,"tag":1026,"props":4492,"children":4493},{"style":1041},[4494],{"type":998,"value":4495},"tuple1 ",{"type":993,"tag":1026,"props":4497,"children":4498},{"style":1047},[4499],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4501,"children":4502},{"style":1041},[4503],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4505,"children":4506},{"style":1058},[4507],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4509,"children":4510},{"style":1041},[4511],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4513,"children":4514},{"style":1058},[4515],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4517,"children":4518},{"style":1041},[4519],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4521,"children":4522},{"style":1058},[4523],{"type":998,"value":1080},{"type":993,"tag":1026,"props":4525,"children":4526},{"style":1041},[4527],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4529,"children":4530},{"class":1028,"line":36},[4531,4536,4540,4544,4548,4552,4556,4560,4564],{"type":993,"tag":1026,"props":4532,"children":4533},{"style":1041},[4534],{"type":998,"value":4535},"tuple2 ",{"type":993,"tag":1026,"props":4537,"children":4538},{"style":1047},[4539],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4541,"children":4542},{"style":1041},[4543],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4545,"children":4546},{"style":1058},[4547],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4549,"children":4550},{"style":1041},[4551],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4553,"children":4554},{"style":1058},[4555],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4557,"children":4558},{"style":1041},[4559],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4561,"children":4562},{"style":1058},[4563],{"type":998,"value":1080},{"type":993,"tag":1026,"props":4565,"children":4566},{"style":1041},[4567],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4569,"children":4570},{"class":1028,"line":45},[4571,4576,4580,4584,4588,4592,4596,4600,4604],{"type":993,"tag":1026,"props":4572,"children":4573},{"style":1041},[4574],{"type":998,"value":4575},"tuple3 ",{"type":993,"tag":1026,"props":4577,"children":4578},{"style":1047},[4579],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4581,"children":4582},{"style":1041},[4583],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4585,"children":4586},{"style":1058},[4587],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4589,"children":4590},{"style":1041},[4591],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4593,"children":4594},{"style":1058},[4595],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4597,"children":4598},{"style":1041},[4599],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4601,"children":4602},{"style":1058},[4603],{"type":998,"value":1089},{"type":993,"tag":1026,"props":4605,"children":4606},{"style":1041},[4607],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4609,"children":4610},{"class":1028,"line":54},[4611],{"type":993,"tag":1026,"props":4612,"children":4613},{"emptyLinePlaceholder":13},[4614],{"type":998,"value":1111},{"type":993,"tag":1026,"props":4616,"children":4617},{"class":1028,"line":63},[4618],{"type":993,"tag":1026,"props":4619,"children":4620},{"style":1032},[4621],{"type":998,"value":4622},"# Basic equality\n",{"type":993,"tag":1026,"props":4624,"children":4625},{"class":1028,"line":72},[4626,4630,4634,4638,4643,4647,4651,4656,4661,4665,4669],{"type":993,"tag":1026,"props":4627,"children":4628},{"style":1058},[4629],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4631,"children":4632},{"style":1041},[4633],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4635,"children":4636},{"style":1047},[4637],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4639,"children":4640},{"style":1162},[4641],{"type":998,"value":4642},"\"tuple1 == tuple2: ",{"type":993,"tag":1026,"props":4644,"children":4645},{"style":1058},[4646],{"type":998,"value":1170},{"type":993,"tag":1026,"props":4648,"children":4649},{"style":1041},[4650],{"type":998,"value":4495},{"type":993,"tag":1026,"props":4652,"children":4653},{"style":1047},[4654],{"type":998,"value":4655},"==",{"type":993,"tag":1026,"props":4657,"children":4658},{"style":1041},[4659],{"type":998,"value":4660}," tuple2",{"type":993,"tag":1026,"props":4662,"children":4663},{"style":1058},[4664],{"type":998,"value":1180},{"type":993,"tag":1026,"props":4666,"children":4667},{"style":1162},[4668],{"type":998,"value":1284},{"type":993,"tag":1026,"props":4670,"children":4671},{"style":1041},[4672],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4674,"children":4675},{"class":1028,"line":81},[4676,4680,4684,4688,4693,4697,4701,4705,4710,4714,4718],{"type":993,"tag":1026,"props":4677,"children":4678},{"style":1058},[4679],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4681,"children":4682},{"style":1041},[4683],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4685,"children":4686},{"style":1047},[4687],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4689,"children":4690},{"style":1162},[4691],{"type":998,"value":4692},"\"tuple1 == tuple3: ",{"type":993,"tag":1026,"props":4694,"children":4695},{"style":1058},[4696],{"type":998,"value":1170},{"type":993,"tag":1026,"props":4698,"children":4699},{"style":1041},[4700],{"type":998,"value":4495},{"type":993,"tag":1026,"props":4702,"children":4703},{"style":1047},[4704],{"type":998,"value":4655},{"type":993,"tag":1026,"props":4706,"children":4707},{"style":1041},[4708],{"type":998,"value":4709}," tuple3",{"type":993,"tag":1026,"props":4711,"children":4712},{"style":1058},[4713],{"type":998,"value":1180},{"type":993,"tag":1026,"props":4715,"children":4716},{"style":1162},[4717],{"type":998,"value":1284},{"type":993,"tag":1026,"props":4719,"children":4720},{"style":1041},[4721],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4723,"children":4724},{"class":1028,"line":91},[4725,4729,4733,4737,4742,4746,4750,4755,4759,4763,4767],{"type":993,"tag":1026,"props":4726,"children":4727},{"style":1058},[4728],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4730,"children":4731},{"style":1041},[4732],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4734,"children":4735},{"style":1047},[4736],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4738,"children":4739},{"style":1162},[4740],{"type":998,"value":4741},"\"tuple1 != tuple3: ",{"type":993,"tag":1026,"props":4743,"children":4744},{"style":1058},[4745],{"type":998,"value":1170},{"type":993,"tag":1026,"props":4747,"children":4748},{"style":1041},[4749],{"type":998,"value":4495},{"type":993,"tag":1026,"props":4751,"children":4752},{"style":1047},[4753],{"type":998,"value":4754},"!=",{"type":993,"tag":1026,"props":4756,"children":4757},{"style":1041},[4758],{"type":998,"value":4709},{"type":993,"tag":1026,"props":4760,"children":4761},{"style":1058},[4762],{"type":998,"value":1180},{"type":993,"tag":1026,"props":4764,"children":4765},{"style":1162},[4766],{"type":998,"value":1284},{"type":993,"tag":1026,"props":4768,"children":4769},{"style":1041},[4770],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4772,"children":4773},{"class":1028,"line":100},[4774],{"type":993,"tag":1026,"props":4775,"children":4776},{"emptyLinePlaceholder":13},[4777],{"type":998,"value":1111},{"type":993,"tag":1026,"props":4779,"children":4780},{"class":1028,"line":109},[4781],{"type":993,"tag":1026,"props":4782,"children":4783},{"style":1032},[4784],{"type":998,"value":4785},"# Mixed data types\n",{"type":993,"tag":1026,"props":4787,"children":4788},{"class":1028,"line":118},[4789,4794,4798,4802,4807,4811,4816,4820,4824],{"type":993,"tag":1026,"props":4790,"children":4791},{"style":1041},[4792],{"type":998,"value":4793},"mixed1 ",{"type":993,"tag":1026,"props":4795,"children":4796},{"style":1047},[4797],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4799,"children":4800},{"style":1041},[4801],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4803,"children":4804},{"style":1162},[4805],{"type":998,"value":4806},"\"hello\"",{"type":993,"tag":1026,"props":4808,"children":4809},{"style":1041},[4810],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4812,"children":4813},{"style":1058},[4814],{"type":998,"value":4815},"42",{"type":993,"tag":1026,"props":4817,"children":4818},{"style":1041},[4819],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4821,"children":4822},{"style":1058},[4823],{"type":998,"value":3275},{"type":993,"tag":1026,"props":4825,"children":4826},{"style":1041},[4827],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4829,"children":4830},{"class":1028,"line":127},[4831,4836,4840,4844,4848,4852,4856,4860,4864],{"type":993,"tag":1026,"props":4832,"children":4833},{"style":1041},[4834],{"type":998,"value":4835},"mixed2 ",{"type":993,"tag":1026,"props":4837,"children":4838},{"style":1047},[4839],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4841,"children":4842},{"style":1041},[4843],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4845,"children":4846},{"style":1162},[4847],{"type":998,"value":4806},{"type":993,"tag":1026,"props":4849,"children":4850},{"style":1041},[4851],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4853,"children":4854},{"style":1058},[4855],{"type":998,"value":4815},{"type":993,"tag":1026,"props":4857,"children":4858},{"style":1041},[4859],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4861,"children":4862},{"style":1058},[4863],{"type":998,"value":3275},{"type":993,"tag":1026,"props":4865,"children":4866},{"style":1041},[4867],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4869,"children":4870},{"class":1028,"line":136},[4871,4875,4879,4883,4888,4892,4896,4900,4905,4909,4913],{"type":993,"tag":1026,"props":4872,"children":4873},{"style":1058},[4874],{"type":998,"value":1149},{"type":993,"tag":1026,"props":4876,"children":4877},{"style":1041},[4878],{"type":998,"value":1154},{"type":993,"tag":1026,"props":4880,"children":4881},{"style":1047},[4882],{"type":998,"value":1159},{"type":993,"tag":1026,"props":4884,"children":4885},{"style":1162},[4886],{"type":998,"value":4887},"\"mixed1 == mixed2: ",{"type":993,"tag":1026,"props":4889,"children":4890},{"style":1058},[4891],{"type":998,"value":1170},{"type":993,"tag":1026,"props":4893,"children":4894},{"style":1041},[4895],{"type":998,"value":4793},{"type":993,"tag":1026,"props":4897,"children":4898},{"style":1047},[4899],{"type":998,"value":4655},{"type":993,"tag":1026,"props":4901,"children":4902},{"style":1041},[4903],{"type":998,"value":4904}," mixed2",{"type":993,"tag":1026,"props":4906,"children":4907},{"style":1058},[4908],{"type":998,"value":1180},{"type":993,"tag":1026,"props":4910,"children":4911},{"style":1162},[4912],{"type":998,"value":1284},{"type":993,"tag":1026,"props":4914,"children":4915},{"style":1041},[4916],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4918,"children":4919},{"class":1028,"line":146},[4920],{"type":993,"tag":1026,"props":4921,"children":4922},{"emptyLinePlaceholder":13},[4923],{"type":998,"value":1111},{"type":993,"tag":1026,"props":4925,"children":4926},{"class":1028,"line":155},[4927],{"type":993,"tag":1026,"props":4928,"children":4929},{"style":1032},[4930],{"type":998,"value":4931},"# Nested tuple equality\n",{"type":993,"tag":1026,"props":4933,"children":4934},{"class":1028,"line":164},[4935,4940,4944,4949,4953,4957,4961,4966,4970,4974,4978],{"type":993,"tag":1026,"props":4936,"children":4937},{"style":1041},[4938],{"type":998,"value":4939},"nested1 ",{"type":993,"tag":1026,"props":4941,"children":4942},{"style":1047},[4943],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4945,"children":4946},{"style":1041},[4947],{"type":998,"value":4948}," ((",{"type":993,"tag":1026,"props":4950,"children":4951},{"style":1058},[4952],{"type":998,"value":1061},{"type":993,"tag":1026,"props":4954,"children":4955},{"style":1041},[4956],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4958,"children":4959},{"style":1058},[4960],{"type":998,"value":1071},{"type":993,"tag":1026,"props":4962,"children":4963},{"style":1041},[4964],{"type":998,"value":4965},"), (",{"type":993,"tag":1026,"props":4967,"children":4968},{"style":1058},[4969],{"type":998,"value":1080},{"type":993,"tag":1026,"props":4971,"children":4972},{"style":1041},[4973],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4975,"children":4976},{"style":1058},[4977],{"type":998,"value":1089},{"type":993,"tag":1026,"props":4979,"children":4980},{"style":1041},[4981],{"type":998,"value":3280},{"type":993,"tag":1026,"props":4983,"children":4984},{"class":1028,"line":173},[4985,4990,4994,4998,5002,5006,5010,5014,5018,5022,5026],{"type":993,"tag":1026,"props":4986,"children":4987},{"style":1041},[4988],{"type":998,"value":4989},"nested2 ",{"type":993,"tag":1026,"props":4991,"children":4992},{"style":1047},[4993],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4995,"children":4996},{"style":1041},[4997],{"type":998,"value":4948},{"type":993,"tag":1026,"props":4999,"children":5000},{"style":1058},[5001],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5003,"children":5004},{"style":1041},[5005],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5007,"children":5008},{"style":1058},[5009],{"type":998,"value":1071},{"type":993,"tag":1026,"props":5011,"children":5012},{"style":1041},[5013],{"type":998,"value":4965},{"type":993,"tag":1026,"props":5015,"children":5016},{"style":1058},[5017],{"type":998,"value":1080},{"type":993,"tag":1026,"props":5019,"children":5020},{"style":1041},[5021],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5023,"children":5024},{"style":1058},[5025],{"type":998,"value":1089},{"type":993,"tag":1026,"props":5027,"children":5028},{"style":1041},[5029],{"type":998,"value":3280},{"type":993,"tag":1026,"props":5031,"children":5032},{"class":1028,"line":182},[5033,5038,5042,5046,5050,5054,5058,5062,5066,5070,5074],{"type":993,"tag":1026,"props":5034,"children":5035},{"style":1041},[5036],{"type":998,"value":5037},"nested3 ",{"type":993,"tag":1026,"props":5039,"children":5040},{"style":1047},[5041],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5043,"children":5044},{"style":1041},[5045],{"type":998,"value":4948},{"type":993,"tag":1026,"props":5047,"children":5048},{"style":1058},[5049],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5051,"children":5052},{"style":1041},[5053],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5055,"children":5056},{"style":1058},[5057],{"type":998,"value":1071},{"type":993,"tag":1026,"props":5059,"children":5060},{"style":1041},[5061],{"type":998,"value":4965},{"type":993,"tag":1026,"props":5063,"children":5064},{"style":1058},[5065],{"type":998,"value":1080},{"type":993,"tag":1026,"props":5067,"children":5068},{"style":1041},[5069],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5071,"children":5072},{"style":1058},[5073],{"type":998,"value":1098},{"type":993,"tag":1026,"props":5075,"children":5076},{"style":1041},[5077],{"type":998,"value":3280},{"type":993,"tag":1026,"props":5079,"children":5080},{"class":1028,"line":191},[5081],{"type":993,"tag":1026,"props":5082,"children":5083},{"emptyLinePlaceholder":13},[5084],{"type":998,"value":1111},{"type":993,"tag":1026,"props":5086,"children":5087},{"class":1028,"line":201},[5088,5092,5096,5100,5105,5109,5113,5117,5122,5126,5130],{"type":993,"tag":1026,"props":5089,"children":5090},{"style":1058},[5091],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5093,"children":5094},{"style":1041},[5095],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5097,"children":5098},{"style":1047},[5099],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5101,"children":5102},{"style":1162},[5103],{"type":998,"value":5104},"\"nested1 == nested2: ",{"type":993,"tag":1026,"props":5106,"children":5107},{"style":1058},[5108],{"type":998,"value":1170},{"type":993,"tag":1026,"props":5110,"children":5111},{"style":1041},[5112],{"type":998,"value":4939},{"type":993,"tag":1026,"props":5114,"children":5115},{"style":1047},[5116],{"type":998,"value":4655},{"type":993,"tag":1026,"props":5118,"children":5119},{"style":1041},[5120],{"type":998,"value":5121}," nested2",{"type":993,"tag":1026,"props":5123,"children":5124},{"style":1058},[5125],{"type":998,"value":1180},{"type":993,"tag":1026,"props":5127,"children":5128},{"style":1162},[5129],{"type":998,"value":1284},{"type":993,"tag":1026,"props":5131,"children":5132},{"style":1041},[5133],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5135,"children":5136},{"class":1028,"line":210},[5137,5141,5145,5149,5154,5158,5162,5166,5171,5175,5179],{"type":993,"tag":1026,"props":5138,"children":5139},{"style":1058},[5140],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5142,"children":5143},{"style":1041},[5144],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5146,"children":5147},{"style":1047},[5148],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5150,"children":5151},{"style":1162},[5152],{"type":998,"value":5153},"\"nested1 == nested3: ",{"type":993,"tag":1026,"props":5155,"children":5156},{"style":1058},[5157],{"type":998,"value":1170},{"type":993,"tag":1026,"props":5159,"children":5160},{"style":1041},[5161],{"type":998,"value":4939},{"type":993,"tag":1026,"props":5163,"children":5164},{"style":1047},[5165],{"type":998,"value":4655},{"type":993,"tag":1026,"props":5167,"children":5168},{"style":1041},[5169],{"type":998,"value":5170}," nested3",{"type":993,"tag":1026,"props":5172,"children":5173},{"style":1058},[5174],{"type":998,"value":1180},{"type":993,"tag":1026,"props":5176,"children":5177},{"style":1162},[5178],{"type":998,"value":1284},{"type":993,"tag":1026,"props":5180,"children":5181},{"style":1041},[5182],{"type":998,"value":1103},{"type":993,"tag":1431,"props":5184,"children":5186},{"id":5185},"ordering-comparisons",[5187],{"type":998,"value":5188},"Ordering Comparisons",{"type":993,"tag":1001,"props":5190,"children":5191},{},[5192],{"type":998,"value":5193},"Tuple ordering using relational operators for ranking and sorting decisions.",{"type":993,"tag":1012,"props":5195,"children":5196},{},[5197],{"type":993,"tag":1016,"props":5198,"children":5200},{"className":1018,"code":5199,"language":6,"meta":8,"style":8},"# Ordering comparisons\nversion1 = (1, 2, 3)\nversion2 = (1, 2, 4)\nversion3 = (1, 3, 0)\nversion4 = (2, 0, 0)\n\n# Version comparison examples\nprint(\"Version comparisons:\")\nprint(f\"v1.2.3 \u003C v1.2.4: {version1 \u003C version2}\")\nprint(f\"v1.2.3 \u003C v1.3.0: {version1 \u003C version3}\")\nprint(f\"v1.2.3 \u003C v2.0.0: {version1 \u003C version4}\")\n\n# String comparisons\nnames1 = (\"Alice\", \"Bob\")\nnames2 = (\"Alice\", \"Charlie\")\nnames3 = (\"Bob\", \"Alice\")\n\nprint(f\"\\nName comparisons:\")\nprint(f\"('Alice', 'Bob') \u003C ('Alice', 'Charlie'): {names1 \u003C names2}\")\nprint(f\"('Alice', 'Bob') \u003C ('Bob', 'Alice'): {names1 \u003C names3}\")\n",[5201],{"type":993,"tag":1022,"props":5202,"children":5203},{"__ignoreMap":8},[5204,5212,5252,5292,5332,5372,5379,5387,5407,5457,5506,5555,5562,5570,5602,5635,5667,5674,5706,5755],{"type":993,"tag":1026,"props":5205,"children":5206},{"class":1028,"line":12},[5207],{"type":993,"tag":1026,"props":5208,"children":5209},{"style":1032},[5210],{"type":998,"value":5211},"# Ordering comparisons\n",{"type":993,"tag":1026,"props":5213,"children":5214},{"class":1028,"line":27},[5215,5220,5224,5228,5232,5236,5240,5244,5248],{"type":993,"tag":1026,"props":5216,"children":5217},{"style":1041},[5218],{"type":998,"value":5219},"version1 ",{"type":993,"tag":1026,"props":5221,"children":5222},{"style":1047},[5223],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5225,"children":5226},{"style":1041},[5227],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5229,"children":5230},{"style":1058},[5231],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5233,"children":5234},{"style":1041},[5235],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5237,"children":5238},{"style":1058},[5239],{"type":998,"value":1071},{"type":993,"tag":1026,"props":5241,"children":5242},{"style":1041},[5243],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5245,"children":5246},{"style":1058},[5247],{"type":998,"value":1080},{"type":993,"tag":1026,"props":5249,"children":5250},{"style":1041},[5251],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5253,"children":5254},{"class":1028,"line":36},[5255,5260,5264,5268,5272,5276,5280,5284,5288],{"type":993,"tag":1026,"props":5256,"children":5257},{"style":1041},[5258],{"type":998,"value":5259},"version2 ",{"type":993,"tag":1026,"props":5261,"children":5262},{"style":1047},[5263],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5265,"children":5266},{"style":1041},[5267],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5269,"children":5270},{"style":1058},[5271],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5273,"children":5274},{"style":1041},[5275],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5277,"children":5278},{"style":1058},[5279],{"type":998,"value":1071},{"type":993,"tag":1026,"props":5281,"children":5282},{"style":1041},[5283],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5285,"children":5286},{"style":1058},[5287],{"type":998,"value":1089},{"type":993,"tag":1026,"props":5289,"children":5290},{"style":1041},[5291],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5293,"children":5294},{"class":1028,"line":45},[5295,5300,5304,5308,5312,5316,5320,5324,5328],{"type":993,"tag":1026,"props":5296,"children":5297},{"style":1041},[5298],{"type":998,"value":5299},"version3 ",{"type":993,"tag":1026,"props":5301,"children":5302},{"style":1047},[5303],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5305,"children":5306},{"style":1041},[5307],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5309,"children":5310},{"style":1058},[5311],{"type":998,"value":1061},{"type":993,"tag":1026,"props":5313,"children":5314},{"style":1041},[5315],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5317,"children":5318},{"style":1058},[5319],{"type":998,"value":1080},{"type":993,"tag":1026,"props":5321,"children":5322},{"style":1041},[5323],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5325,"children":5326},{"style":1058},[5327],{"type":998,"value":3701},{"type":993,"tag":1026,"props":5329,"children":5330},{"style":1041},[5331],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5333,"children":5334},{"class":1028,"line":54},[5335,5340,5344,5348,5352,5356,5360,5364,5368],{"type":993,"tag":1026,"props":5336,"children":5337},{"style":1041},[5338],{"type":998,"value":5339},"version4 ",{"type":993,"tag":1026,"props":5341,"children":5342},{"style":1047},[5343],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5345,"children":5346},{"style":1041},[5347],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5349,"children":5350},{"style":1058},[5351],{"type":998,"value":1071},{"type":993,"tag":1026,"props":5353,"children":5354},{"style":1041},[5355],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5357,"children":5358},{"style":1058},[5359],{"type":998,"value":3701},{"type":993,"tag":1026,"props":5361,"children":5362},{"style":1041},[5363],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5365,"children":5366},{"style":1058},[5367],{"type":998,"value":3701},{"type":993,"tag":1026,"props":5369,"children":5370},{"style":1041},[5371],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5373,"children":5374},{"class":1028,"line":63},[5375],{"type":993,"tag":1026,"props":5376,"children":5377},{"emptyLinePlaceholder":13},[5378],{"type":998,"value":1111},{"type":993,"tag":1026,"props":5380,"children":5381},{"class":1028,"line":72},[5382],{"type":993,"tag":1026,"props":5383,"children":5384},{"style":1032},[5385],{"type":998,"value":5386},"# Version comparison examples\n",{"type":993,"tag":1026,"props":5388,"children":5389},{"class":1028,"line":81},[5390,5394,5398,5403],{"type":993,"tag":1026,"props":5391,"children":5392},{"style":1058},[5393],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5395,"children":5396},{"style":1041},[5397],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5399,"children":5400},{"style":1162},[5401],{"type":998,"value":5402},"\"Version comparisons:\"",{"type":993,"tag":1026,"props":5404,"children":5405},{"style":1041},[5406],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5408,"children":5409},{"class":1028,"line":91},[5410,5414,5418,5422,5427,5431,5435,5440,5445,5449,5453],{"type":993,"tag":1026,"props":5411,"children":5412},{"style":1058},[5413],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5415,"children":5416},{"style":1041},[5417],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5419,"children":5420},{"style":1047},[5421],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5423,"children":5424},{"style":1162},[5425],{"type":998,"value":5426},"\"v1.2.3 \u003C v1.2.4: ",{"type":993,"tag":1026,"props":5428,"children":5429},{"style":1058},[5430],{"type":998,"value":1170},{"type":993,"tag":1026,"props":5432,"children":5433},{"style":1041},[5434],{"type":998,"value":5219},{"type":993,"tag":1026,"props":5436,"children":5437},{"style":1047},[5438],{"type":998,"value":5439},"\u003C",{"type":993,"tag":1026,"props":5441,"children":5442},{"style":1041},[5443],{"type":998,"value":5444}," version2",{"type":993,"tag":1026,"props":5446,"children":5447},{"style":1058},[5448],{"type":998,"value":1180},{"type":993,"tag":1026,"props":5450,"children":5451},{"style":1162},[5452],{"type":998,"value":1284},{"type":993,"tag":1026,"props":5454,"children":5455},{"style":1041},[5456],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5458,"children":5459},{"class":1028,"line":100},[5460,5464,5468,5472,5477,5481,5485,5489,5494,5498,5502],{"type":993,"tag":1026,"props":5461,"children":5462},{"style":1058},[5463],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5465,"children":5466},{"style":1041},[5467],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5469,"children":5470},{"style":1047},[5471],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5473,"children":5474},{"style":1162},[5475],{"type":998,"value":5476},"\"v1.2.3 \u003C v1.3.0: ",{"type":993,"tag":1026,"props":5478,"children":5479},{"style":1058},[5480],{"type":998,"value":1170},{"type":993,"tag":1026,"props":5482,"children":5483},{"style":1041},[5484],{"type":998,"value":5219},{"type":993,"tag":1026,"props":5486,"children":5487},{"style":1047},[5488],{"type":998,"value":5439},{"type":993,"tag":1026,"props":5490,"children":5491},{"style":1041},[5492],{"type":998,"value":5493}," version3",{"type":993,"tag":1026,"props":5495,"children":5496},{"style":1058},[5497],{"type":998,"value":1180},{"type":993,"tag":1026,"props":5499,"children":5500},{"style":1162},[5501],{"type":998,"value":1284},{"type":993,"tag":1026,"props":5503,"children":5504},{"style":1041},[5505],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5507,"children":5508},{"class":1028,"line":109},[5509,5513,5517,5521,5526,5530,5534,5538,5543,5547,5551],{"type":993,"tag":1026,"props":5510,"children":5511},{"style":1058},[5512],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5514,"children":5515},{"style":1041},[5516],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5518,"children":5519},{"style":1047},[5520],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5522,"children":5523},{"style":1162},[5524],{"type":998,"value":5525},"\"v1.2.3 \u003C v2.0.0: ",{"type":993,"tag":1026,"props":5527,"children":5528},{"style":1058},[5529],{"type":998,"value":1170},{"type":993,"tag":1026,"props":5531,"children":5532},{"style":1041},[5533],{"type":998,"value":5219},{"type":993,"tag":1026,"props":5535,"children":5536},{"style":1047},[5537],{"type":998,"value":5439},{"type":993,"tag":1026,"props":5539,"children":5540},{"style":1041},[5541],{"type":998,"value":5542}," version4",{"type":993,"tag":1026,"props":5544,"children":5545},{"style":1058},[5546],{"type":998,"value":1180},{"type":993,"tag":1026,"props":5548,"children":5549},{"style":1162},[5550],{"type":998,"value":1284},{"type":993,"tag":1026,"props":5552,"children":5553},{"style":1041},[5554],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5556,"children":5557},{"class":1028,"line":118},[5558],{"type":993,"tag":1026,"props":5559,"children":5560},{"emptyLinePlaceholder":13},[5561],{"type":998,"value":1111},{"type":993,"tag":1026,"props":5563,"children":5564},{"class":1028,"line":127},[5565],{"type":993,"tag":1026,"props":5566,"children":5567},{"style":1032},[5568],{"type":998,"value":5569},"# String comparisons\n",{"type":993,"tag":1026,"props":5571,"children":5572},{"class":1028,"line":136},[5573,5578,5582,5586,5590,5594,5598],{"type":993,"tag":1026,"props":5574,"children":5575},{"style":1041},[5576],{"type":998,"value":5577},"names1 ",{"type":993,"tag":1026,"props":5579,"children":5580},{"style":1047},[5581],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5583,"children":5584},{"style":1041},[5585],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5587,"children":5588},{"style":1162},[5589],{"type":998,"value":3380},{"type":993,"tag":1026,"props":5591,"children":5592},{"style":1041},[5593],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5595,"children":5596},{"style":1162},[5597],{"type":998,"value":3405},{"type":993,"tag":1026,"props":5599,"children":5600},{"style":1041},[5601],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5603,"children":5604},{"class":1028,"line":146},[5605,5610,5614,5618,5622,5626,5631],{"type":993,"tag":1026,"props":5606,"children":5607},{"style":1041},[5608],{"type":998,"value":5609},"names2 ",{"type":993,"tag":1026,"props":5611,"children":5612},{"style":1047},[5613],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5615,"children":5616},{"style":1041},[5617],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5619,"children":5620},{"style":1162},[5621],{"type":998,"value":3380},{"type":993,"tag":1026,"props":5623,"children":5624},{"style":1041},[5625],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5627,"children":5628},{"style":1162},[5629],{"type":998,"value":5630},"\"Charlie\"",{"type":993,"tag":1026,"props":5632,"children":5633},{"style":1041},[5634],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5636,"children":5637},{"class":1028,"line":155},[5638,5643,5647,5651,5655,5659,5663],{"type":993,"tag":1026,"props":5639,"children":5640},{"style":1041},[5641],{"type":998,"value":5642},"names3 ",{"type":993,"tag":1026,"props":5644,"children":5645},{"style":1047},[5646],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5648,"children":5649},{"style":1041},[5650],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5652,"children":5653},{"style":1162},[5654],{"type":998,"value":3405},{"type":993,"tag":1026,"props":5656,"children":5657},{"style":1041},[5658],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5660,"children":5661},{"style":1162},[5662],{"type":998,"value":3380},{"type":993,"tag":1026,"props":5664,"children":5665},{"style":1041},[5666],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5668,"children":5669},{"class":1028,"line":164},[5670],{"type":993,"tag":1026,"props":5671,"children":5672},{"emptyLinePlaceholder":13},[5673],{"type":998,"value":1111},{"type":993,"tag":1026,"props":5675,"children":5676},{"class":1028,"line":173},[5677,5681,5685,5689,5693,5697,5702],{"type":993,"tag":1026,"props":5678,"children":5679},{"style":1058},[5680],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5682,"children":5683},{"style":1041},[5684],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5686,"children":5687},{"style":1047},[5688],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5690,"children":5691},{"style":1162},[5692],{"type":998,"value":1284},{"type":993,"tag":1026,"props":5694,"children":5695},{"style":1058},[5696],{"type":998,"value":3725},{"type":993,"tag":1026,"props":5698,"children":5699},{"style":1162},[5700],{"type":998,"value":5701},"Name comparisons:\"",{"type":993,"tag":1026,"props":5703,"children":5704},{"style":1041},[5705],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5707,"children":5708},{"class":1028,"line":182},[5709,5713,5717,5721,5726,5730,5734,5738,5743,5747,5751],{"type":993,"tag":1026,"props":5710,"children":5711},{"style":1058},[5712],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5714,"children":5715},{"style":1041},[5716],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5718,"children":5719},{"style":1047},[5720],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5722,"children":5723},{"style":1162},[5724],{"type":998,"value":5725},"\"('Alice', 'Bob') \u003C ('Alice', 'Charlie'): ",{"type":993,"tag":1026,"props":5727,"children":5728},{"style":1058},[5729],{"type":998,"value":1170},{"type":993,"tag":1026,"props":5731,"children":5732},{"style":1041},[5733],{"type":998,"value":5577},{"type":993,"tag":1026,"props":5735,"children":5736},{"style":1047},[5737],{"type":998,"value":5439},{"type":993,"tag":1026,"props":5739,"children":5740},{"style":1041},[5741],{"type":998,"value":5742}," names2",{"type":993,"tag":1026,"props":5744,"children":5745},{"style":1058},[5746],{"type":998,"value":1180},{"type":993,"tag":1026,"props":5748,"children":5749},{"style":1162},[5750],{"type":998,"value":1284},{"type":993,"tag":1026,"props":5752,"children":5753},{"style":1041},[5754],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5756,"children":5757},{"class":1028,"line":191},[5758,5762,5766,5770,5775,5779,5783,5787,5792,5796,5800],{"type":993,"tag":1026,"props":5759,"children":5760},{"style":1058},[5761],{"type":998,"value":1149},{"type":993,"tag":1026,"props":5763,"children":5764},{"style":1041},[5765],{"type":998,"value":1154},{"type":993,"tag":1026,"props":5767,"children":5768},{"style":1047},[5769],{"type":998,"value":1159},{"type":993,"tag":1026,"props":5771,"children":5772},{"style":1162},[5773],{"type":998,"value":5774},"\"('Alice', 'Bob') \u003C ('Bob', 'Alice'): ",{"type":993,"tag":1026,"props":5776,"children":5777},{"style":1058},[5778],{"type":998,"value":1170},{"type":993,"tag":1026,"props":5780,"children":5781},{"style":1041},[5782],{"type":998,"value":5577},{"type":993,"tag":1026,"props":5784,"children":5785},{"style":1047},[5786],{"type":998,"value":5439},{"type":993,"tag":1026,"props":5788,"children":5789},{"style":1041},[5790],{"type":998,"value":5791}," names3",{"type":993,"tag":1026,"props":5793,"children":5794},{"style":1058},[5795],{"type":998,"value":1180},{"type":993,"tag":1026,"props":5797,"children":5798},{"style":1162},[5799],{"type":998,"value":1284},{"type":993,"tag":1026,"props":5801,"children":5802},{"style":1041},[5803],{"type":998,"value":1103},{"type":993,"tag":1331,"props":5805,"children":5807},{"id":5806},"advanced-tuple-operations",[5808],{"type":998,"value":5809},"🌟 Advanced Tuple Operations",{"type":993,"tag":1001,"props":5811,"children":5812},{},[5813],{"type":998,"value":5814},"Advanced operations combine multiple techniques to solve complex data processing challenges efficiently and elegantly.",{"type":993,"tag":1343,"props":5816,"children":5820},{"emoji":5817,"title":5818,"type":5819},"🔬","Advanced Operation Guidelines","warning",[5821,5829,5847,5855,5873,5881],{"type":993,"tag":1001,"props":5822,"children":5823},{},[5824],{"type":993,"tag":1353,"props":5825,"children":5826},{},[5827],{"type":998,"value":5828},"Complexity Management:",{"type":993,"tag":1359,"props":5830,"children":5831},{},[5832,5837,5842],{"type":993,"tag":1363,"props":5833,"children":5834},{},[5835],{"type":998,"value":5836},"Break complex operations into smaller functions",{"type":993,"tag":1363,"props":5838,"children":5839},{},[5840],{"type":998,"value":5841},"Use descriptive variable names for clarity",{"type":993,"tag":1363,"props":5843,"children":5844},{},[5845],{"type":998,"value":5846},"Consider performance implications of nested operations",{"type":993,"tag":1001,"props":5848,"children":5849},{},[5850],{"type":993,"tag":1353,"props":5851,"children":5852},{},[5853],{"type":998,"value":5854},"Common Patterns:",{"type":993,"tag":1359,"props":5856,"children":5857},{},[5858,5863,5868],{"type":993,"tag":1363,"props":5859,"children":5860},{},[5861],{"type":998,"value":5862},"Functional programming approaches",{"type":993,"tag":1363,"props":5864,"children":5865},{},[5866],{"type":998,"value":5867},"Data transformation pipelines",{"type":993,"tag":1363,"props":5869,"children":5870},{},[5871],{"type":998,"value":5872},"Statistical analysis operations",{"type":993,"tag":1001,"props":5874,"children":5875},{},[5876],{"type":993,"tag":1353,"props":5877,"children":5878},{},[5879],{"type":998,"value":5880},"Best Practices:",{"type":993,"tag":1359,"props":5882,"children":5883},{},[5884,5889,5894],{"type":993,"tag":1363,"props":5885,"children":5886},{},[5887],{"type":998,"value":5888},"Profile performance for large datasets",{"type":993,"tag":1363,"props":5890,"children":5891},{},[5892],{"type":998,"value":5893},"Use appropriate data structures for the task",{"type":993,"tag":1363,"props":5895,"children":5896},{},[5897],{"type":998,"value":5898},"Document complex logic clearly",{"type":993,"tag":1431,"props":5900,"children":5902},{"id":5901},"statistical-operations",[5903],{"type":998,"value":5904},"Statistical Operations",{"type":993,"tag":1001,"props":5906,"children":5907},{},[5908],{"type":998,"value":5909},"Comprehensive statistical analysis using tuple operations for data insights.",{"type":993,"tag":1012,"props":5911,"children":5912},{},[5913],{"type":993,"tag":1016,"props":5914,"children":5916},{"className":1018,"code":5915,"language":6,"meta":8,"style":8},"# Statistical operations on tuples\ndef calculate_statistics(data):\n    \"\"\"Calculate comprehensive statistics for numeric tuple\"\"\"\n    if not data:\n        return {}\n    \n    # Basic statistics\n    n = len(data)\n    total = sum(data)\n    mean = total / n\n    \n    # Sorted data for median\n    sorted_data = tuple(sorted(data))\n    \n    # Median\n    if n % 2 == 0:\n        median = (sorted_data[n//2 - 1] + sorted_data[n//2]) / 2\n    else:\n        median = sorted_data[n//2]\n    \n    # Range and spread\n    data_range = max(data) - min(data)\n    \n    return {\n        'count': n,\n        'sum': total,\n        'mean': mean,\n        'median': median,\n        'min': min(data),\n        'max': max(data),\n        'range': data_range\n    }\n\n# Test data\ntest_scores = (85, 92, 78, 96, 88, 73, 91, 87, 94, 82)\n\nprint(\"Test Scores Statistics:\")\nscore_stats = calculate_statistics(test_scores)\nfor key, value in score_stats.items():\n    if isinstance(value, float):\n        print(f\"  {key}: {value:.2f}\")\n    else:\n        print(f\"  {key}: {value}\")\n",[5917],{"type":993,"tag":1022,"props":5918,"children":5919},{"__ignoreMap":8},[5920,5928,5944,5952,5967,5979,5986,5994,6015,6035,6060,6067,6075,6104,6111,6119,6156,6229,6241,6269,6276,6284,6318,6325,6337,6350,6363,6376,6389,6411,6432,6445,6453,6460,6468,6568,6575,6595,6612,6633,6657,6718,6729],{"type":993,"tag":1026,"props":5921,"children":5922},{"class":1028,"line":12},[5923],{"type":993,"tag":1026,"props":5924,"children":5925},{"style":1032},[5926],{"type":998,"value":5927},"# Statistical operations on tuples\n",{"type":993,"tag":1026,"props":5929,"children":5930},{"class":1028,"line":27},[5931,5935,5940],{"type":993,"tag":1026,"props":5932,"children":5933},{"style":1047},[5934],{"type":998,"value":2533},{"type":993,"tag":1026,"props":5936,"children":5937},{"style":2536},[5938],{"type":998,"value":5939}," calculate_statistics",{"type":993,"tag":1026,"props":5941,"children":5942},{"style":1041},[5943],{"type":998,"value":2544},{"type":993,"tag":1026,"props":5945,"children":5946},{"class":1028,"line":36},[5947],{"type":993,"tag":1026,"props":5948,"children":5949},{"style":1162},[5950],{"type":998,"value":5951},"    \"\"\"Calculate comprehensive statistics for numeric tuple\"\"\"\n",{"type":993,"tag":1026,"props":5953,"children":5954},{"class":1028,"line":45},[5955,5959,5963],{"type":993,"tag":1026,"props":5956,"children":5957},{"style":1047},[5958],{"type":998,"value":2552},{"type":993,"tag":1026,"props":5960,"children":5961},{"style":1047},[5962],{"type":998,"value":2557},{"type":993,"tag":1026,"props":5964,"children":5965},{"style":1041},[5966],{"type":998,"value":2618},{"type":993,"tag":1026,"props":5968,"children":5969},{"class":1028,"line":54},[5970,5974],{"type":993,"tag":1026,"props":5971,"children":5972},{"style":1047},[5973],{"type":998,"value":2583},{"type":993,"tag":1026,"props":5975,"children":5976},{"style":1041},[5977],{"type":998,"value":5978}," {}\n",{"type":993,"tag":1026,"props":5980,"children":5981},{"class":1028,"line":63},[5982],{"type":993,"tag":1026,"props":5983,"children":5984},{"style":1041},[5985],{"type":998,"value":2596},{"type":993,"tag":1026,"props":5987,"children":5988},{"class":1028,"line":72},[5989],{"type":993,"tag":1026,"props":5990,"children":5991},{"style":1032},[5992],{"type":998,"value":5993},"    # Basic statistics\n",{"type":993,"tag":1026,"props":5995,"children":5996},{"class":1028,"line":81},[5997,6002,6006,6010],{"type":993,"tag":1026,"props":5998,"children":5999},{"style":1041},[6000],{"type":998,"value":6001},"    n ",{"type":993,"tag":1026,"props":6003,"children":6004},{"style":1047},[6005],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6007,"children":6008},{"style":1058},[6009],{"type":998,"value":1136},{"type":993,"tag":1026,"props":6011,"children":6012},{"style":1041},[6013],{"type":998,"value":6014},"(data)\n",{"type":993,"tag":1026,"props":6016,"children":6017},{"class":1028,"line":91},[6018,6023,6027,6031],{"type":993,"tag":1026,"props":6019,"children":6020},{"style":1041},[6021],{"type":998,"value":6022},"    total ",{"type":993,"tag":1026,"props":6024,"children":6025},{"style":1047},[6026],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6028,"children":6029},{"style":1058},[6030],{"type":998,"value":1542},{"type":993,"tag":1026,"props":6032,"children":6033},{"style":1041},[6034],{"type":998,"value":6014},{"type":993,"tag":1026,"props":6036,"children":6037},{"class":1028,"line":100},[6038,6043,6047,6051,6055],{"type":993,"tag":1026,"props":6039,"children":6040},{"style":1041},[6041],{"type":998,"value":6042},"    mean ",{"type":993,"tag":1026,"props":6044,"children":6045},{"style":1047},[6046],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6048,"children":6049},{"style":1041},[6050],{"type":998,"value":1564},{"type":993,"tag":1026,"props":6052,"children":6053},{"style":1047},[6054],{"type":998,"value":1569},{"type":993,"tag":1026,"props":6056,"children":6057},{"style":1041},[6058],{"type":998,"value":6059}," n\n",{"type":993,"tag":1026,"props":6061,"children":6062},{"class":1028,"line":109},[6063],{"type":993,"tag":1026,"props":6064,"children":6065},{"style":1041},[6066],{"type":998,"value":2596},{"type":993,"tag":1026,"props":6068,"children":6069},{"class":1028,"line":118},[6070],{"type":993,"tag":1026,"props":6071,"children":6072},{"style":1032},[6073],{"type":998,"value":6074},"    # Sorted data for median\n",{"type":993,"tag":1026,"props":6076,"children":6077},{"class":1028,"line":127},[6078,6083,6087,6091,6095,6099],{"type":993,"tag":1026,"props":6079,"children":6080},{"style":1041},[6081],{"type":998,"value":6082},"    sorted_data ",{"type":993,"tag":1026,"props":6084,"children":6085},{"style":1047},[6086],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6088,"children":6089},{"style":1058},[6090],{"type":998,"value":3121},{"type":993,"tag":1026,"props":6092,"children":6093},{"style":1041},[6094],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6096,"children":6097},{"style":1058},[6098],{"type":998,"value":3130},{"type":993,"tag":1026,"props":6100,"children":6101},{"style":1041},[6102],{"type":998,"value":6103},"(data))\n",{"type":993,"tag":1026,"props":6105,"children":6106},{"class":1028,"line":136},[6107],{"type":993,"tag":1026,"props":6108,"children":6109},{"style":1041},[6110],{"type":998,"value":2596},{"type":993,"tag":1026,"props":6112,"children":6113},{"class":1028,"line":146},[6114],{"type":993,"tag":1026,"props":6115,"children":6116},{"style":1032},[6117],{"type":998,"value":6118},"    # Median\n",{"type":993,"tag":1026,"props":6120,"children":6121},{"class":1028,"line":155},[6122,6126,6131,6136,6141,6146,6151],{"type":993,"tag":1026,"props":6123,"children":6124},{"style":1047},[6125],{"type":998,"value":2552},{"type":993,"tag":1026,"props":6127,"children":6128},{"style":1041},[6129],{"type":998,"value":6130}," n ",{"type":993,"tag":1026,"props":6132,"children":6133},{"style":1047},[6134],{"type":998,"value":6135},"%",{"type":993,"tag":1026,"props":6137,"children":6138},{"style":1058},[6139],{"type":998,"value":6140}," 2",{"type":993,"tag":1026,"props":6142,"children":6143},{"style":1047},[6144],{"type":998,"value":6145}," ==",{"type":993,"tag":1026,"props":6147,"children":6148},{"style":1058},[6149],{"type":998,"value":6150}," 0",{"type":993,"tag":1026,"props":6152,"children":6153},{"style":1041},[6154],{"type":998,"value":6155},":\n",{"type":993,"tag":1026,"props":6157,"children":6158},{"class":1028,"line":164},[6159,6164,6168,6173,6178,6182,6187,6192,6197,6202,6207,6211,6215,6220,6224],{"type":993,"tag":1026,"props":6160,"children":6161},{"style":1041},[6162],{"type":998,"value":6163},"        median ",{"type":993,"tag":1026,"props":6165,"children":6166},{"style":1047},[6167],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6169,"children":6170},{"style":1041},[6171],{"type":998,"value":6172}," (sorted_data[n",{"type":993,"tag":1026,"props":6174,"children":6175},{"style":1047},[6176],{"type":998,"value":6177},"//",{"type":993,"tag":1026,"props":6179,"children":6180},{"style":1058},[6181],{"type":998,"value":1071},{"type":993,"tag":1026,"props":6183,"children":6184},{"style":1047},[6185],{"type":998,"value":6186}," -",{"type":993,"tag":1026,"props":6188,"children":6189},{"style":1058},[6190],{"type":998,"value":6191}," 1",{"type":993,"tag":1026,"props":6193,"children":6194},{"style":1041},[6195],{"type":998,"value":6196},"] ",{"type":993,"tag":1026,"props":6198,"children":6199},{"style":1047},[6200],{"type":998,"value":6201},"+",{"type":993,"tag":1026,"props":6203,"children":6204},{"style":1041},[6205],{"type":998,"value":6206}," sorted_data[n",{"type":993,"tag":1026,"props":6208,"children":6209},{"style":1047},[6210],{"type":998,"value":6177},{"type":993,"tag":1026,"props":6212,"children":6213},{"style":1058},[6214],{"type":998,"value":1071},{"type":993,"tag":1026,"props":6216,"children":6217},{"style":1041},[6218],{"type":998,"value":6219},"]) ",{"type":993,"tag":1026,"props":6221,"children":6222},{"style":1047},[6223],{"type":998,"value":1569},{"type":993,"tag":1026,"props":6225,"children":6226},{"style":1058},[6227],{"type":998,"value":6228}," 2\n",{"type":993,"tag":1026,"props":6230,"children":6231},{"class":1028,"line":173},[6232,6237],{"type":993,"tag":1026,"props":6233,"children":6234},{"style":1047},[6235],{"type":998,"value":6236},"    else",{"type":993,"tag":1026,"props":6238,"children":6239},{"style":1041},[6240],{"type":998,"value":6155},{"type":993,"tag":1026,"props":6242,"children":6243},{"class":1028,"line":182},[6244,6248,6252,6256,6260,6264],{"type":993,"tag":1026,"props":6245,"children":6246},{"style":1041},[6247],{"type":998,"value":6163},{"type":993,"tag":1026,"props":6249,"children":6250},{"style":1047},[6251],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6253,"children":6254},{"style":1041},[6255],{"type":998,"value":6206},{"type":993,"tag":1026,"props":6257,"children":6258},{"style":1047},[6259],{"type":998,"value":6177},{"type":993,"tag":1026,"props":6261,"children":6262},{"style":1058},[6263],{"type":998,"value":1071},{"type":993,"tag":1026,"props":6265,"children":6266},{"style":1041},[6267],{"type":998,"value":6268},"]\n",{"type":993,"tag":1026,"props":6270,"children":6271},{"class":1028,"line":191},[6272],{"type":993,"tag":1026,"props":6273,"children":6274},{"style":1041},[6275],{"type":998,"value":2596},{"type":993,"tag":1026,"props":6277,"children":6278},{"class":1028,"line":201},[6279],{"type":993,"tag":1026,"props":6280,"children":6281},{"style":1032},[6282],{"type":998,"value":6283},"    # Range and spread\n",{"type":993,"tag":1026,"props":6285,"children":6286},{"class":1028,"line":210},[6287,6292,6296,6300,6305,6310,6314],{"type":993,"tag":1026,"props":6288,"children":6289},{"style":1041},[6290],{"type":998,"value":6291},"    data_range ",{"type":993,"tag":1026,"props":6293,"children":6294},{"style":1047},[6295],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6297,"children":6298},{"style":1058},[6299],{"type":998,"value":1221},{"type":993,"tag":1026,"props":6301,"children":6302},{"style":1041},[6303],{"type":998,"value":6304},"(data) ",{"type":993,"tag":1026,"props":6306,"children":6307},{"style":1047},[6308],{"type":998,"value":6309},"-",{"type":993,"tag":1026,"props":6311,"children":6312},{"style":1058},[6313],{"type":998,"value":1242},{"type":993,"tag":1026,"props":6315,"children":6316},{"style":1041},[6317],{"type":998,"value":6014},{"type":993,"tag":1026,"props":6319,"children":6320},{"class":1028,"line":219},[6321],{"type":993,"tag":1026,"props":6322,"children":6323},{"style":1041},[6324],{"type":998,"value":2596},{"type":993,"tag":1026,"props":6326,"children":6327},{"class":1028,"line":228},[6328,6332],{"type":993,"tag":1026,"props":6329,"children":6330},{"style":1047},[6331],{"type":998,"value":2685},{"type":993,"tag":1026,"props":6333,"children":6334},{"style":1041},[6335],{"type":998,"value":6336}," {\n",{"type":993,"tag":1026,"props":6338,"children":6339},{"class":1028,"line":238},[6340,6345],{"type":993,"tag":1026,"props":6341,"children":6342},{"style":1162},[6343],{"type":998,"value":6344},"        'count'",{"type":993,"tag":1026,"props":6346,"children":6347},{"style":1041},[6348],{"type":998,"value":6349},": n,\n",{"type":993,"tag":1026,"props":6351,"children":6352},{"class":1028,"line":247},[6353,6358],{"type":993,"tag":1026,"props":6354,"children":6355},{"style":1162},[6356],{"type":998,"value":6357},"        'sum'",{"type":993,"tag":1026,"props":6359,"children":6360},{"style":1041},[6361],{"type":998,"value":6362},": total,\n",{"type":993,"tag":1026,"props":6364,"children":6365},{"class":1028,"line":256},[6366,6371],{"type":993,"tag":1026,"props":6367,"children":6368},{"style":1162},[6369],{"type":998,"value":6370},"        'mean'",{"type":993,"tag":1026,"props":6372,"children":6373},{"style":1041},[6374],{"type":998,"value":6375},": mean,\n",{"type":993,"tag":1026,"props":6377,"children":6378},{"class":1028,"line":265},[6379,6384],{"type":993,"tag":1026,"props":6380,"children":6381},{"style":1162},[6382],{"type":998,"value":6383},"        'median'",{"type":993,"tag":1026,"props":6385,"children":6386},{"style":1041},[6387],{"type":998,"value":6388},": median,\n",{"type":993,"tag":1026,"props":6390,"children":6391},{"class":1028,"line":274},[6392,6397,6401,6406],{"type":993,"tag":1026,"props":6393,"children":6394},{"style":1162},[6395],{"type":998,"value":6396},"        'min'",{"type":993,"tag":1026,"props":6398,"children":6399},{"style":1041},[6400],{"type":998,"value":3620},{"type":993,"tag":1026,"props":6402,"children":6403},{"style":1058},[6404],{"type":998,"value":6405},"min",{"type":993,"tag":1026,"props":6407,"children":6408},{"style":1041},[6409],{"type":998,"value":6410},"(data),\n",{"type":993,"tag":1026,"props":6412,"children":6413},{"class":1028,"line":284},[6414,6419,6423,6428],{"type":993,"tag":1026,"props":6415,"children":6416},{"style":1162},[6417],{"type":998,"value":6418},"        'max'",{"type":993,"tag":1026,"props":6420,"children":6421},{"style":1041},[6422],{"type":998,"value":3620},{"type":993,"tag":1026,"props":6424,"children":6425},{"style":1058},[6426],{"type":998,"value":6427},"max",{"type":993,"tag":1026,"props":6429,"children":6430},{"style":1041},[6431],{"type":998,"value":6410},{"type":993,"tag":1026,"props":6433,"children":6434},{"class":1028,"line":293},[6435,6440],{"type":993,"tag":1026,"props":6436,"children":6437},{"style":1162},[6438],{"type":998,"value":6439},"        'range'",{"type":993,"tag":1026,"props":6441,"children":6442},{"style":1041},[6443],{"type":998,"value":6444},": data_range\n",{"type":993,"tag":1026,"props":6446,"children":6447},{"class":1028,"line":302},[6448],{"type":993,"tag":1026,"props":6449,"children":6450},{"style":1041},[6451],{"type":998,"value":6452},"    }\n",{"type":993,"tag":1026,"props":6454,"children":6455},{"class":1028,"line":311},[6456],{"type":993,"tag":1026,"props":6457,"children":6458},{"emptyLinePlaceholder":13},[6459],{"type":998,"value":1111},{"type":993,"tag":1026,"props":6461,"children":6462},{"class":1028,"line":320},[6463],{"type":993,"tag":1026,"props":6464,"children":6465},{"style":1032},[6466],{"type":998,"value":6467},"# Test data\n",{"type":993,"tag":1026,"props":6469,"children":6470},{"class":1028,"line":329},[6471,6475,6479,6483,6487,6491,6495,6499,6503,6507,6511,6515,6519,6523,6528,6532,6537,6541,6546,6550,6555,6559,6564],{"type":993,"tag":1026,"props":6472,"children":6473},{"style":1041},[6474],{"type":998,"value":1871},{"type":993,"tag":1026,"props":6476,"children":6477},{"style":1047},[6478],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6480,"children":6481},{"style":1041},[6482],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6484,"children":6485},{"style":1058},[6486],{"type":998,"value":1478},{"type":993,"tag":1026,"props":6488,"children":6489},{"style":1041},[6490],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6492,"children":6493},{"style":1058},[6494],{"type":998,"value":1487},{"type":993,"tag":1026,"props":6496,"children":6497},{"style":1041},[6498],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6500,"children":6501},{"style":1058},[6502],{"type":998,"value":1496},{"type":993,"tag":1026,"props":6504,"children":6505},{"style":1041},[6506],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6508,"children":6509},{"style":1058},[6510],{"type":998,"value":1505},{"type":993,"tag":1026,"props":6512,"children":6513},{"style":1041},[6514],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6516,"children":6517},{"style":1058},[6518],{"type":998,"value":1514},{"type":993,"tag":1026,"props":6520,"children":6521},{"style":1041},[6522],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6524,"children":6525},{"style":1058},[6526],{"type":998,"value":6527},"73",{"type":993,"tag":1026,"props":6529,"children":6530},{"style":1041},[6531],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6533,"children":6534},{"style":1058},[6535],{"type":998,"value":6536},"91",{"type":993,"tag":1026,"props":6538,"children":6539},{"style":1041},[6540],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6542,"children":6543},{"style":1058},[6544],{"type":998,"value":6545},"87",{"type":993,"tag":1026,"props":6547,"children":6548},{"style":1041},[6549],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6551,"children":6552},{"style":1058},[6553],{"type":998,"value":6554},"94",{"type":993,"tag":1026,"props":6556,"children":6557},{"style":1041},[6558],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6560,"children":6561},{"style":1058},[6562],{"type":998,"value":6563},"82",{"type":993,"tag":1026,"props":6565,"children":6566},{"style":1041},[6567],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6569,"children":6570},{"class":1028,"line":338},[6571],{"type":993,"tag":1026,"props":6572,"children":6573},{"emptyLinePlaceholder":13},[6574],{"type":998,"value":1111},{"type":993,"tag":1026,"props":6576,"children":6577},{"class":1028,"line":347},[6578,6582,6586,6591],{"type":993,"tag":1026,"props":6579,"children":6580},{"style":1058},[6581],{"type":998,"value":1149},{"type":993,"tag":1026,"props":6583,"children":6584},{"style":1041},[6585],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6587,"children":6588},{"style":1162},[6589],{"type":998,"value":6590},"\"Test Scores Statistics:\"",{"type":993,"tag":1026,"props":6592,"children":6593},{"style":1041},[6594],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6596,"children":6597},{"class":1028,"line":356},[6598,6603,6607],{"type":993,"tag":1026,"props":6599,"children":6600},{"style":1041},[6601],{"type":998,"value":6602},"score_stats ",{"type":993,"tag":1026,"props":6604,"children":6605},{"style":1047},[6606],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6608,"children":6609},{"style":1041},[6610],{"type":998,"value":6611}," calculate_statistics(test_scores)\n",{"type":993,"tag":1026,"props":6613,"children":6614},{"class":1028,"line":365},[6615,6619,6624,6628],{"type":993,"tag":1026,"props":6616,"children":6617},{"style":1047},[6618],{"type":998,"value":3568},{"type":993,"tag":1026,"props":6620,"children":6621},{"style":1041},[6622],{"type":998,"value":6623}," key, value ",{"type":993,"tag":1026,"props":6625,"children":6626},{"style":1047},[6627],{"type":998,"value":1981},{"type":993,"tag":1026,"props":6629,"children":6630},{"style":1041},[6631],{"type":998,"value":6632}," score_stats.items():\n",{"type":993,"tag":1026,"props":6634,"children":6635},{"class":1028,"line":374},[6636,6640,6644,6649,6653],{"type":993,"tag":1026,"props":6637,"children":6638},{"style":1047},[6639],{"type":998,"value":2552},{"type":993,"tag":1026,"props":6641,"children":6642},{"style":1058},[6643],{"type":998,"value":2378},{"type":993,"tag":1026,"props":6645,"children":6646},{"style":1041},[6647],{"type":998,"value":6648},"(value, ",{"type":993,"tag":1026,"props":6650,"children":6651},{"style":1058},[6652],{"type":998,"value":2653},{"type":993,"tag":1026,"props":6654,"children":6655},{"style":1041},[6656],{"type":998,"value":2575},{"type":993,"tag":1026,"props":6658,"children":6659},{"class":1028,"line":384},[6660,6665,6669,6673,6677,6681,6685,6689,6693,6697,6702,6706,6710,6714],{"type":993,"tag":1026,"props":6661,"children":6662},{"style":1058},[6663],{"type":998,"value":6664},"        print",{"type":993,"tag":1026,"props":6666,"children":6667},{"style":1041},[6668],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6670,"children":6671},{"style":1047},[6672],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6674,"children":6675},{"style":1162},[6676],{"type":998,"value":4121},{"type":993,"tag":1026,"props":6678,"children":6679},{"style":1058},[6680],{"type":998,"value":1170},{"type":993,"tag":1026,"props":6682,"children":6683},{"style":1041},[6684],{"type":998,"value":3521},{"type":993,"tag":1026,"props":6686,"children":6687},{"style":1058},[6688],{"type":998,"value":1180},{"type":993,"tag":1026,"props":6690,"children":6691},{"style":1162},[6692],{"type":998,"value":3620},{"type":993,"tag":1026,"props":6694,"children":6695},{"style":1058},[6696],{"type":998,"value":1170},{"type":993,"tag":1026,"props":6698,"children":6699},{"style":1041},[6700],{"type":998,"value":6701},"value",{"type":993,"tag":1026,"props":6703,"children":6704},{"style":1047},[6705],{"type":998,"value":4152},{"type":993,"tag":1026,"props":6707,"children":6708},{"style":1058},[6709],{"type":998,"value":1180},{"type":993,"tag":1026,"props":6711,"children":6712},{"style":1162},[6713],{"type":998,"value":1284},{"type":993,"tag":1026,"props":6715,"children":6716},{"style":1041},[6717],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6719,"children":6720},{"class":1028,"line":393},[6721,6725],{"type":993,"tag":1026,"props":6722,"children":6723},{"style":1047},[6724],{"type":998,"value":6236},{"type":993,"tag":1026,"props":6726,"children":6727},{"style":1041},[6728],{"type":998,"value":6155},{"type":993,"tag":1026,"props":6730,"children":6731},{"class":1028,"line":402},[6732,6736,6740,6744,6748,6752,6756,6760,6764,6768,6772,6776,6780],{"type":993,"tag":1026,"props":6733,"children":6734},{"style":1058},[6735],{"type":998,"value":6664},{"type":993,"tag":1026,"props":6737,"children":6738},{"style":1041},[6739],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6741,"children":6742},{"style":1047},[6743],{"type":998,"value":1159},{"type":993,"tag":1026,"props":6745,"children":6746},{"style":1162},[6747],{"type":998,"value":4121},{"type":993,"tag":1026,"props":6749,"children":6750},{"style":1058},[6751],{"type":998,"value":1170},{"type":993,"tag":1026,"props":6753,"children":6754},{"style":1041},[6755],{"type":998,"value":3521},{"type":993,"tag":1026,"props":6757,"children":6758},{"style":1058},[6759],{"type":998,"value":1180},{"type":993,"tag":1026,"props":6761,"children":6762},{"style":1162},[6763],{"type":998,"value":3620},{"type":993,"tag":1026,"props":6765,"children":6766},{"style":1058},[6767],{"type":998,"value":1170},{"type":993,"tag":1026,"props":6769,"children":6770},{"style":1041},[6771],{"type":998,"value":6701},{"type":993,"tag":1026,"props":6773,"children":6774},{"style":1058},[6775],{"type":998,"value":1180},{"type":993,"tag":1026,"props":6777,"children":6778},{"style":1162},[6779],{"type":998,"value":1284},{"type":993,"tag":1026,"props":6781,"children":6782},{"style":1041},[6783],{"type":998,"value":1103},{"type":993,"tag":1431,"props":6785,"children":6787},{"id":6786},"data-transformation-pipelines",[6788],{"type":998,"value":6789},"Data Transformation Pipelines",{"type":993,"tag":1001,"props":6791,"children":6792},{},[6793],{"type":998,"value":6794},"Multi-step data transformation using functional programming approaches.",{"type":993,"tag":1012,"props":6796,"children":6797},{},[6798],{"type":993,"tag":1016,"props":6799,"children":6801},{"className":1018,"code":6800,"language":6,"meta":8,"style":8},"# Data transformation pipelines\ndef normalize_scores(scores):\n    \"\"\"Convert scores to 0-1 scale\"\"\"\n    if not scores:\n        return scores\n    min_score = min(scores)\n    max_score = max(scores)\n    if max_score == min_score:\n        return tuple(1.0 for _ in scores)\n    range_score = max_score - min_score\n    return tuple((score - min_score) / range_score for score in scores)\n\ndef filter_above_threshold(scores, threshold):\n    \"\"\"Filter values above threshold\"\"\"\n    return tuple(x for x in scores if x >= threshold)\n\ndef apply_curve(scores, curve_points):\n    \"\"\"Apply grade curve to scores\"\"\"\n    return tuple(min(score + curve_points, 100) for score in scores)\n\n# Process data pipeline\nraw_scores = (72, 85, 91, 68, 94, 77, 89, 82, 75, 88)\n\n# Step 1: Apply curve\ncurved = apply_curve(raw_scores, 5)\n\n# Step 2: Filter high scores\nhigh_scores = filter_above_threshold(curved, 80)\n\n# Step 3: Normalize\nnormalized = normalize_scores(high_scores)\n\nprint(f\"Raw scores: {raw_scores}\")\nprint(f\"After curve (+5): {curved}\")\nprint(f\"High scores (≥80): {high_scores}\")\nprint(f\"Normalized: {tuple(round(x, 3) for x in normalized)}\")\n",[6802],{"type":993,"tag":1022,"props":6803,"children":6804},{"__ignoreMap":8},[6805,6813,6830,6838,6854,6866,6886,6906,6927,6965,6990,7040,7047,7064,7072,7124,7131,7148,7156,7214,7221,7229,7330,7337,7345,7370,7377,7385,7411,7418,7426,7443,7450,7491,7532,7573],{"type":993,"tag":1026,"props":6806,"children":6807},{"class":1028,"line":12},[6808],{"type":993,"tag":1026,"props":6809,"children":6810},{"style":1032},[6811],{"type":998,"value":6812},"# Data transformation pipelines\n",{"type":993,"tag":1026,"props":6814,"children":6815},{"class":1028,"line":27},[6816,6820,6825],{"type":993,"tag":1026,"props":6817,"children":6818},{"style":1047},[6819],{"type":998,"value":2533},{"type":993,"tag":1026,"props":6821,"children":6822},{"style":2536},[6823],{"type":998,"value":6824}," normalize_scores",{"type":993,"tag":1026,"props":6826,"children":6827},{"style":1041},[6828],{"type":998,"value":6829},"(scores):\n",{"type":993,"tag":1026,"props":6831,"children":6832},{"class":1028,"line":36},[6833],{"type":993,"tag":1026,"props":6834,"children":6835},{"style":1162},[6836],{"type":998,"value":6837},"    \"\"\"Convert scores to 0-1 scale\"\"\"\n",{"type":993,"tag":1026,"props":6839,"children":6840},{"class":1028,"line":45},[6841,6845,6849],{"type":993,"tag":1026,"props":6842,"children":6843},{"style":1047},[6844],{"type":998,"value":2552},{"type":993,"tag":1026,"props":6846,"children":6847},{"style":1047},[6848],{"type":998,"value":2557},{"type":993,"tag":1026,"props":6850,"children":6851},{"style":1041},[6852],{"type":998,"value":6853}," scores:\n",{"type":993,"tag":1026,"props":6855,"children":6856},{"class":1028,"line":54},[6857,6861],{"type":993,"tag":1026,"props":6858,"children":6859},{"style":1047},[6860],{"type":998,"value":2583},{"type":993,"tag":1026,"props":6862,"children":6863},{"style":1041},[6864],{"type":998,"value":6865}," scores\n",{"type":993,"tag":1026,"props":6867,"children":6868},{"class":1028,"line":63},[6869,6874,6878,6882],{"type":993,"tag":1026,"props":6870,"children":6871},{"style":1041},[6872],{"type":998,"value":6873},"    min_score ",{"type":993,"tag":1026,"props":6875,"children":6876},{"style":1047},[6877],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6879,"children":6880},{"style":1058},[6881],{"type":998,"value":1242},{"type":993,"tag":1026,"props":6883,"children":6884},{"style":1041},[6885],{"type":998,"value":1547},{"type":993,"tag":1026,"props":6887,"children":6888},{"class":1028,"line":72},[6889,6894,6898,6902],{"type":993,"tag":1026,"props":6890,"children":6891},{"style":1041},[6892],{"type":998,"value":6893},"    max_score ",{"type":993,"tag":1026,"props":6895,"children":6896},{"style":1047},[6897],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6899,"children":6900},{"style":1058},[6901],{"type":998,"value":1221},{"type":993,"tag":1026,"props":6903,"children":6904},{"style":1041},[6905],{"type":998,"value":1547},{"type":993,"tag":1026,"props":6907,"children":6908},{"class":1028,"line":81},[6909,6913,6918,6922],{"type":993,"tag":1026,"props":6910,"children":6911},{"style":1047},[6912],{"type":998,"value":2552},{"type":993,"tag":1026,"props":6914,"children":6915},{"style":1041},[6916],{"type":998,"value":6917}," max_score ",{"type":993,"tag":1026,"props":6919,"children":6920},{"style":1047},[6921],{"type":998,"value":4655},{"type":993,"tag":1026,"props":6923,"children":6924},{"style":1041},[6925],{"type":998,"value":6926}," min_score:\n",{"type":993,"tag":1026,"props":6928,"children":6929},{"class":1028,"line":91},[6930,6934,6938,6942,6947,6951,6956,6960],{"type":993,"tag":1026,"props":6931,"children":6932},{"style":1047},[6933],{"type":998,"value":2583},{"type":993,"tag":1026,"props":6935,"children":6936},{"style":1058},[6937],{"type":998,"value":3121},{"type":993,"tag":1026,"props":6939,"children":6940},{"style":1041},[6941],{"type":998,"value":1154},{"type":993,"tag":1026,"props":6943,"children":6944},{"style":1058},[6945],{"type":998,"value":6946},"1.0",{"type":993,"tag":1026,"props":6948,"children":6949},{"style":1047},[6950],{"type":998,"value":1971},{"type":993,"tag":1026,"props":6952,"children":6953},{"style":1041},[6954],{"type":998,"value":6955}," _ ",{"type":993,"tag":1026,"props":6957,"children":6958},{"style":1047},[6959],{"type":998,"value":1981},{"type":993,"tag":1026,"props":6961,"children":6962},{"style":1041},[6963],{"type":998,"value":6964}," scores)\n",{"type":993,"tag":1026,"props":6966,"children":6967},{"class":1028,"line":100},[6968,6973,6977,6981,6985],{"type":993,"tag":1026,"props":6969,"children":6970},{"style":1041},[6971],{"type":998,"value":6972},"    range_score ",{"type":993,"tag":1026,"props":6974,"children":6975},{"style":1047},[6976],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6978,"children":6979},{"style":1041},[6980],{"type":998,"value":6917},{"type":993,"tag":1026,"props":6982,"children":6983},{"style":1047},[6984],{"type":998,"value":6309},{"type":993,"tag":1026,"props":6986,"children":6987},{"style":1041},[6988],{"type":998,"value":6989}," min_score\n",{"type":993,"tag":1026,"props":6991,"children":6992},{"class":1028,"line":109},[6993,6997,7001,7006,7010,7015,7019,7024,7028,7032,7036],{"type":993,"tag":1026,"props":6994,"children":6995},{"style":1047},[6996],{"type":998,"value":2685},{"type":993,"tag":1026,"props":6998,"children":6999},{"style":1058},[7000],{"type":998,"value":3121},{"type":993,"tag":1026,"props":7002,"children":7003},{"style":1041},[7004],{"type":998,"value":7005},"((score ",{"type":993,"tag":1026,"props":7007,"children":7008},{"style":1047},[7009],{"type":998,"value":6309},{"type":993,"tag":1026,"props":7011,"children":7012},{"style":1041},[7013],{"type":998,"value":7014}," min_score) ",{"type":993,"tag":1026,"props":7016,"children":7017},{"style":1047},[7018],{"type":998,"value":1569},{"type":993,"tag":1026,"props":7020,"children":7021},{"style":1041},[7022],{"type":998,"value":7023}," range_score ",{"type":993,"tag":1026,"props":7025,"children":7026},{"style":1047},[7027],{"type":998,"value":3568},{"type":993,"tag":1026,"props":7029,"children":7030},{"style":1041},[7031],{"type":998,"value":1976},{"type":993,"tag":1026,"props":7033,"children":7034},{"style":1047},[7035],{"type":998,"value":1981},{"type":993,"tag":1026,"props":7037,"children":7038},{"style":1041},[7039],{"type":998,"value":6964},{"type":993,"tag":1026,"props":7041,"children":7042},{"class":1028,"line":118},[7043],{"type":993,"tag":1026,"props":7044,"children":7045},{"emptyLinePlaceholder":13},[7046],{"type":998,"value":1111},{"type":993,"tag":1026,"props":7048,"children":7049},{"class":1028,"line":127},[7050,7054,7059],{"type":993,"tag":1026,"props":7051,"children":7052},{"style":1047},[7053],{"type":998,"value":2533},{"type":993,"tag":1026,"props":7055,"children":7056},{"style":2536},[7057],{"type":998,"value":7058}," filter_above_threshold",{"type":993,"tag":1026,"props":7060,"children":7061},{"style":1041},[7062],{"type":998,"value":7063},"(scores, threshold):\n",{"type":993,"tag":1026,"props":7065,"children":7066},{"class":1028,"line":136},[7067],{"type":993,"tag":1026,"props":7068,"children":7069},{"style":1162},[7070],{"type":998,"value":7071},"    \"\"\"Filter values above threshold\"\"\"\n",{"type":993,"tag":1026,"props":7073,"children":7074},{"class":1028,"line":146},[7075,7079,7083,7088,7092,7097,7101,7106,7111,7115,7119],{"type":993,"tag":1026,"props":7076,"children":7077},{"style":1047},[7078],{"type":998,"value":2685},{"type":993,"tag":1026,"props":7080,"children":7081},{"style":1058},[7082],{"type":998,"value":3121},{"type":993,"tag":1026,"props":7084,"children":7085},{"style":1041},[7086],{"type":998,"value":7087},"(x ",{"type":993,"tag":1026,"props":7089,"children":7090},{"style":1047},[7091],{"type":998,"value":3568},{"type":993,"tag":1026,"props":7093,"children":7094},{"style":1041},[7095],{"type":998,"value":7096}," x ",{"type":993,"tag":1026,"props":7098,"children":7099},{"style":1047},[7100],{"type":998,"value":1981},{"type":993,"tag":1026,"props":7102,"children":7103},{"style":1041},[7104],{"type":998,"value":7105}," scores ",{"type":993,"tag":1026,"props":7107,"children":7108},{"style":1047},[7109],{"type":998,"value":7110},"if",{"type":993,"tag":1026,"props":7112,"children":7113},{"style":1041},[7114],{"type":998,"value":7096},{"type":993,"tag":1026,"props":7116,"children":7117},{"style":1047},[7118],{"type":998,"value":1961},{"type":993,"tag":1026,"props":7120,"children":7121},{"style":1041},[7122],{"type":998,"value":7123}," threshold)\n",{"type":993,"tag":1026,"props":7125,"children":7126},{"class":1028,"line":155},[7127],{"type":993,"tag":1026,"props":7128,"children":7129},{"emptyLinePlaceholder":13},[7130],{"type":998,"value":1111},{"type":993,"tag":1026,"props":7132,"children":7133},{"class":1028,"line":164},[7134,7138,7143],{"type":993,"tag":1026,"props":7135,"children":7136},{"style":1047},[7137],{"type":998,"value":2533},{"type":993,"tag":1026,"props":7139,"children":7140},{"style":2536},[7141],{"type":998,"value":7142}," apply_curve",{"type":993,"tag":1026,"props":7144,"children":7145},{"style":1041},[7146],{"type":998,"value":7147},"(scores, curve_points):\n",{"type":993,"tag":1026,"props":7149,"children":7150},{"class":1028,"line":173},[7151],{"type":993,"tag":1026,"props":7152,"children":7153},{"style":1162},[7154],{"type":998,"value":7155},"    \"\"\"Apply grade curve to scores\"\"\"\n",{"type":993,"tag":1026,"props":7157,"children":7158},{"class":1028,"line":182},[7159,7163,7167,7171,7175,7179,7183,7188,7193,7198,7202,7206,7210],{"type":993,"tag":1026,"props":7160,"children":7161},{"style":1047},[7162],{"type":998,"value":2685},{"type":993,"tag":1026,"props":7164,"children":7165},{"style":1058},[7166],{"type":998,"value":3121},{"type":993,"tag":1026,"props":7168,"children":7169},{"style":1041},[7170],{"type":998,"value":1154},{"type":993,"tag":1026,"props":7172,"children":7173},{"style":1058},[7174],{"type":998,"value":6405},{"type":993,"tag":1026,"props":7176,"children":7177},{"style":1041},[7178],{"type":998,"value":1956},{"type":993,"tag":1026,"props":7180,"children":7181},{"style":1047},[7182],{"type":998,"value":6201},{"type":993,"tag":1026,"props":7184,"children":7185},{"style":1041},[7186],{"type":998,"value":7187}," curve_points, ",{"type":993,"tag":1026,"props":7189,"children":7190},{"style":1058},[7191],{"type":998,"value":7192},"100",{"type":993,"tag":1026,"props":7194,"children":7195},{"style":1041},[7196],{"type":998,"value":7197},") ",{"type":993,"tag":1026,"props":7199,"children":7200},{"style":1047},[7201],{"type":998,"value":3568},{"type":993,"tag":1026,"props":7203,"children":7204},{"style":1041},[7205],{"type":998,"value":1976},{"type":993,"tag":1026,"props":7207,"children":7208},{"style":1047},[7209],{"type":998,"value":1981},{"type":993,"tag":1026,"props":7211,"children":7212},{"style":1041},[7213],{"type":998,"value":6964},{"type":993,"tag":1026,"props":7215,"children":7216},{"class":1028,"line":191},[7217],{"type":993,"tag":1026,"props":7218,"children":7219},{"emptyLinePlaceholder":13},[7220],{"type":998,"value":1111},{"type":993,"tag":1026,"props":7222,"children":7223},{"class":1028,"line":201},[7224],{"type":993,"tag":1026,"props":7225,"children":7226},{"style":1032},[7227],{"type":998,"value":7228},"# Process data pipeline\n",{"type":993,"tag":1026,"props":7230,"children":7231},{"class":1028,"line":210},[7232,7237,7241,7245,7250,7254,7258,7262,7266,7270,7275,7279,7283,7287,7292,7296,7301,7305,7309,7313,7318,7322,7326],{"type":993,"tag":1026,"props":7233,"children":7234},{"style":1041},[7235],{"type":998,"value":7236},"raw_scores ",{"type":993,"tag":1026,"props":7238,"children":7239},{"style":1047},[7240],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7242,"children":7243},{"style":1041},[7244],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7246,"children":7247},{"style":1058},[7248],{"type":998,"value":7249},"72",{"type":993,"tag":1026,"props":7251,"children":7252},{"style":1041},[7253],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7255,"children":7256},{"style":1058},[7257],{"type":998,"value":1478},{"type":993,"tag":1026,"props":7259,"children":7260},{"style":1041},[7261],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7263,"children":7264},{"style":1058},[7265],{"type":998,"value":6536},{"type":993,"tag":1026,"props":7267,"children":7268},{"style":1041},[7269],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7271,"children":7272},{"style":1058},[7273],{"type":998,"value":7274},"68",{"type":993,"tag":1026,"props":7276,"children":7277},{"style":1041},[7278],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7280,"children":7281},{"style":1058},[7282],{"type":998,"value":6554},{"type":993,"tag":1026,"props":7284,"children":7285},{"style":1041},[7286],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7288,"children":7289},{"style":1058},[7290],{"type":998,"value":7291},"77",{"type":993,"tag":1026,"props":7293,"children":7294},{"style":1041},[7295],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7297,"children":7298},{"style":1058},[7299],{"type":998,"value":7300},"89",{"type":993,"tag":1026,"props":7302,"children":7303},{"style":1041},[7304],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7306,"children":7307},{"style":1058},[7308],{"type":998,"value":6563},{"type":993,"tag":1026,"props":7310,"children":7311},{"style":1041},[7312],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7314,"children":7315},{"style":1058},[7316],{"type":998,"value":7317},"75",{"type":993,"tag":1026,"props":7319,"children":7320},{"style":1041},[7321],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7323,"children":7324},{"style":1058},[7325],{"type":998,"value":1514},{"type":993,"tag":1026,"props":7327,"children":7328},{"style":1041},[7329],{"type":998,"value":1103},{"type":993,"tag":1026,"props":7331,"children":7332},{"class":1028,"line":219},[7333],{"type":993,"tag":1026,"props":7334,"children":7335},{"emptyLinePlaceholder":13},[7336],{"type":998,"value":1111},{"type":993,"tag":1026,"props":7338,"children":7339},{"class":1028,"line":228},[7340],{"type":993,"tag":1026,"props":7341,"children":7342},{"style":1032},[7343],{"type":998,"value":7344},"# Step 1: Apply curve\n",{"type":993,"tag":1026,"props":7346,"children":7347},{"class":1028,"line":238},[7348,7353,7357,7362,7366],{"type":993,"tag":1026,"props":7349,"children":7350},{"style":1041},[7351],{"type":998,"value":7352},"curved ",{"type":993,"tag":1026,"props":7354,"children":7355},{"style":1047},[7356],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7358,"children":7359},{"style":1041},[7360],{"type":998,"value":7361}," apply_curve(raw_scores, ",{"type":993,"tag":1026,"props":7363,"children":7364},{"style":1058},[7365],{"type":998,"value":1098},{"type":993,"tag":1026,"props":7367,"children":7368},{"style":1041},[7369],{"type":998,"value":1103},{"type":993,"tag":1026,"props":7371,"children":7372},{"class":1028,"line":247},[7373],{"type":993,"tag":1026,"props":7374,"children":7375},{"emptyLinePlaceholder":13},[7376],{"type":998,"value":1111},{"type":993,"tag":1026,"props":7378,"children":7379},{"class":1028,"line":256},[7380],{"type":993,"tag":1026,"props":7381,"children":7382},{"style":1032},[7383],{"type":998,"value":7384},"# Step 2: Filter high scores\n",{"type":993,"tag":1026,"props":7386,"children":7387},{"class":1028,"line":265},[7388,7393,7397,7402,7407],{"type":993,"tag":1026,"props":7389,"children":7390},{"style":1041},[7391],{"type":998,"value":7392},"high_scores ",{"type":993,"tag":1026,"props":7394,"children":7395},{"style":1047},[7396],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7398,"children":7399},{"style":1041},[7400],{"type":998,"value":7401}," filter_above_threshold(curved, ",{"type":993,"tag":1026,"props":7403,"children":7404},{"style":1058},[7405],{"type":998,"value":7406},"80",{"type":993,"tag":1026,"props":7408,"children":7409},{"style":1041},[7410],{"type":998,"value":1103},{"type":993,"tag":1026,"props":7412,"children":7413},{"class":1028,"line":274},[7414],{"type":993,"tag":1026,"props":7415,"children":7416},{"emptyLinePlaceholder":13},[7417],{"type":998,"value":1111},{"type":993,"tag":1026,"props":7419,"children":7420},{"class":1028,"line":284},[7421],{"type":993,"tag":1026,"props":7422,"children":7423},{"style":1032},[7424],{"type":998,"value":7425},"# Step 3: Normalize\n",{"type":993,"tag":1026,"props":7427,"children":7428},{"class":1028,"line":293},[7429,7434,7438],{"type":993,"tag":1026,"props":7430,"children":7431},{"style":1041},[7432],{"type":998,"value":7433},"normalized ",{"type":993,"tag":1026,"props":7435,"children":7436},{"style":1047},[7437],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7439,"children":7440},{"style":1041},[7441],{"type":998,"value":7442}," normalize_scores(high_scores)\n",{"type":993,"tag":1026,"props":7444,"children":7445},{"class":1028,"line":302},[7446],{"type":993,"tag":1026,"props":7447,"children":7448},{"emptyLinePlaceholder":13},[7449],{"type":998,"value":1111},{"type":993,"tag":1026,"props":7451,"children":7452},{"class":1028,"line":311},[7453,7457,7461,7465,7470,7474,7479,7483,7487],{"type":993,"tag":1026,"props":7454,"children":7455},{"style":1058},[7456],{"type":998,"value":1149},{"type":993,"tag":1026,"props":7458,"children":7459},{"style":1041},[7460],{"type":998,"value":1154},{"type":993,"tag":1026,"props":7462,"children":7463},{"style":1047},[7464],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7466,"children":7467},{"style":1162},[7468],{"type":998,"value":7469},"\"Raw scores: ",{"type":993,"tag":1026,"props":7471,"children":7472},{"style":1058},[7473],{"type":998,"value":1170},{"type":993,"tag":1026,"props":7475,"children":7476},{"style":1041},[7477],{"type":998,"value":7478},"raw_scores",{"type":993,"tag":1026,"props":7480,"children":7481},{"style":1058},[7482],{"type":998,"value":1180},{"type":993,"tag":1026,"props":7484,"children":7485},{"style":1162},[7486],{"type":998,"value":1284},{"type":993,"tag":1026,"props":7488,"children":7489},{"style":1041},[7490],{"type":998,"value":1103},{"type":993,"tag":1026,"props":7492,"children":7493},{"class":1028,"line":320},[7494,7498,7502,7506,7511,7515,7520,7524,7528],{"type":993,"tag":1026,"props":7495,"children":7496},{"style":1058},[7497],{"type":998,"value":1149},{"type":993,"tag":1026,"props":7499,"children":7500},{"style":1041},[7501],{"type":998,"value":1154},{"type":993,"tag":1026,"props":7503,"children":7504},{"style":1047},[7505],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7507,"children":7508},{"style":1162},[7509],{"type":998,"value":7510},"\"After curve (+5): ",{"type":993,"tag":1026,"props":7512,"children":7513},{"style":1058},[7514],{"type":998,"value":1170},{"type":993,"tag":1026,"props":7516,"children":7517},{"style":1041},[7518],{"type":998,"value":7519},"curved",{"type":993,"tag":1026,"props":7521,"children":7522},{"style":1058},[7523],{"type":998,"value":1180},{"type":993,"tag":1026,"props":7525,"children":7526},{"style":1162},[7527],{"type":998,"value":1284},{"type":993,"tag":1026,"props":7529,"children":7530},{"style":1041},[7531],{"type":998,"value":1103},{"type":993,"tag":1026,"props":7533,"children":7534},{"class":1028,"line":329},[7535,7539,7543,7547,7552,7556,7561,7565,7569],{"type":993,"tag":1026,"props":7536,"children":7537},{"style":1058},[7538],{"type":998,"value":1149},{"type":993,"tag":1026,"props":7540,"children":7541},{"style":1041},[7542],{"type":998,"value":1154},{"type":993,"tag":1026,"props":7544,"children":7545},{"style":1047},[7546],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7548,"children":7549},{"style":1162},[7550],{"type":998,"value":7551},"\"High scores (≥80): ",{"type":993,"tag":1026,"props":7553,"children":7554},{"style":1058},[7555],{"type":998,"value":1170},{"type":993,"tag":1026,"props":7557,"children":7558},{"style":1041},[7559],{"type":998,"value":7560},"high_scores",{"type":993,"tag":1026,"props":7562,"children":7563},{"style":1058},[7564],{"type":998,"value":1180},{"type":993,"tag":1026,"props":7566,"children":7567},{"style":1162},[7568],{"type":998,"value":1284},{"type":993,"tag":1026,"props":7570,"children":7571},{"style":1041},[7572],{"type":998,"value":1103},{"type":993,"tag":1026,"props":7574,"children":7575},{"class":1028,"line":338},[7576,7580,7584,7588,7593,7598,7602,7607,7612,7616,7620,7624,7628,7632,7637,7641,7645],{"type":993,"tag":1026,"props":7577,"children":7578},{"style":1058},[7579],{"type":998,"value":1149},{"type":993,"tag":1026,"props":7581,"children":7582},{"style":1041},[7583],{"type":998,"value":1154},{"type":993,"tag":1026,"props":7585,"children":7586},{"style":1047},[7587],{"type":998,"value":1159},{"type":993,"tag":1026,"props":7589,"children":7590},{"style":1162},[7591],{"type":998,"value":7592},"\"Normalized: ",{"type":993,"tag":1026,"props":7594,"children":7595},{"style":1058},[7596],{"type":998,"value":7597},"{tuple",{"type":993,"tag":1026,"props":7599,"children":7600},{"style":1041},[7601],{"type":998,"value":1154},{"type":993,"tag":1026,"props":7603,"children":7604},{"style":1058},[7605],{"type":998,"value":7606},"round",{"type":993,"tag":1026,"props":7608,"children":7609},{"style":1041},[7610],{"type":998,"value":7611},"(x, ",{"type":993,"tag":1026,"props":7613,"children":7614},{"style":1058},[7615],{"type":998,"value":1080},{"type":993,"tag":1026,"props":7617,"children":7618},{"style":1041},[7619],{"type":998,"value":7197},{"type":993,"tag":1026,"props":7621,"children":7622},{"style":1047},[7623],{"type":998,"value":3568},{"type":993,"tag":1026,"props":7625,"children":7626},{"style":1041},[7627],{"type":998,"value":7096},{"type":993,"tag":1026,"props":7629,"children":7630},{"style":1047},[7631],{"type":998,"value":1981},{"type":993,"tag":1026,"props":7633,"children":7634},{"style":1041},[7635],{"type":998,"value":7636}," normalized)",{"type":993,"tag":1026,"props":7638,"children":7639},{"style":1058},[7640],{"type":998,"value":1180},{"type":993,"tag":1026,"props":7642,"children":7643},{"style":1162},[7644],{"type":998,"value":1284},{"type":993,"tag":1026,"props":7646,"children":7647},{"style":1041},[7648],{"type":998,"value":1103},{"type":993,"tag":1331,"props":7650,"children":7652},{"id":7651},"tuple-operations-reference",[7653],{"type":998,"value":7654},"📚 Tuple Operations Reference",{"type":993,"tag":1001,"props":7656,"children":7657},{},[7658],{"type":998,"value":7659},"Comprehensive reference of tuple operations and their applications:",{"type":993,"tag":7661,"props":7662,"children":7663},"table",{},[7664,7693],{"type":993,"tag":7665,"props":7666,"children":7667},"thead",{},[7668],{"type":993,"tag":7669,"props":7670,"children":7671},"tr",{},[7672,7678,7683,7688],{"type":993,"tag":7673,"props":7674,"children":7675},"th",{},[7676],{"type":998,"value":7677},"Category",{"type":993,"tag":7673,"props":7679,"children":7680},{},[7681],{"type":998,"value":7682},"Operation",{"type":993,"tag":7673,"props":7684,"children":7685},{},[7686],{"type":998,"value":7687},"Syntax",{"type":993,"tag":7673,"props":7689,"children":7690},{},[7691],{"type":998,"value":7692},"Example",{"type":993,"tag":7694,"props":7695,"children":7696},"tbody",{},[7697,7740,7786,7826,7866,7913,7954,7994,8034],{"type":993,"tag":7669,"props":7698,"children":7699},{},[7700,7709,7714,7723],{"type":993,"tag":7701,"props":7702,"children":7703},"td",{},[7704],{"type":993,"tag":1353,"props":7705,"children":7706},{},[7707],{"type":998,"value":7708},"Math",{"type":993,"tag":7701,"props":7710,"children":7711},{},[7712],{"type":998,"value":7713},"Sum",{"type":993,"tag":7701,"props":7715,"children":7716},{},[7717],{"type":993,"tag":1022,"props":7718,"children":7720},{"className":7719},[],[7721],{"type":998,"value":7722},"sum(tuple)",{"type":993,"tag":7701,"props":7724,"children":7725},{},[7726,7732,7734],{"type":993,"tag":1022,"props":7727,"children":7729},{"className":7728},[],[7730],{"type":998,"value":7731},"sum((1,2,3))",{"type":998,"value":7733}," → ",{"type":993,"tag":1022,"props":7735,"children":7737},{"className":7736},[],[7738],{"type":998,"value":7739},"6",{"type":993,"tag":7669,"props":7741,"children":7742},{},[7743,7750,7755,7771],{"type":993,"tag":7701,"props":7744,"children":7745},{},[7746],{"type":993,"tag":1353,"props":7747,"children":7748},{},[7749],{"type":998,"value":7708},{"type":993,"tag":7701,"props":7751,"children":7752},{},[7753],{"type":998,"value":7754},"Min/Max",{"type":993,"tag":7701,"props":7756,"children":7757},{},[7758,7764,7765],{"type":993,"tag":1022,"props":7759,"children":7761},{"className":7760},[],[7762],{"type":998,"value":7763},"min(tuple)",{"type":998,"value":1066},{"type":993,"tag":1022,"props":7766,"children":7768},{"className":7767},[],[7769],{"type":998,"value":7770},"max(tuple)",{"type":993,"tag":7701,"props":7772,"children":7773},{},[7774,7780,7781],{"type":993,"tag":1022,"props":7775,"children":7777},{"className":7776},[],[7778],{"type":998,"value":7779},"max((1,5,3))",{"type":998,"value":7733},{"type":993,"tag":1022,"props":7782,"children":7784},{"className":7783},[],[7785],{"type":998,"value":1098},{"type":993,"tag":7669,"props":7787,"children":7788},{},[7789,7797,7802,7811],{"type":993,"tag":7701,"props":7790,"children":7791},{},[7792],{"type":993,"tag":1353,"props":7793,"children":7794},{},[7795],{"type":998,"value":7796},"Info",{"type":993,"tag":7701,"props":7798,"children":7799},{},[7800],{"type":998,"value":7801},"Length",{"type":993,"tag":7701,"props":7803,"children":7804},{},[7805],{"type":993,"tag":1022,"props":7806,"children":7808},{"className":7807},[],[7809],{"type":998,"value":7810},"len(tuple)",{"type":993,"tag":7701,"props":7812,"children":7813},{},[7814,7820,7821],{"type":993,"tag":1022,"props":7815,"children":7817},{"className":7816},[],[7818],{"type":998,"value":7819},"len((1,2,3))",{"type":998,"value":7733},{"type":993,"tag":1022,"props":7822,"children":7824},{"className":7823},[],[7825],{"type":998,"value":1080},{"type":993,"tag":7669,"props":7827,"children":7828},{},[7829,7837,7842,7851],{"type":993,"tag":7701,"props":7830,"children":7831},{},[7832],{"type":993,"tag":1353,"props":7833,"children":7834},{},[7835],{"type":998,"value":7836},"Test",{"type":993,"tag":7701,"props":7838,"children":7839},{},[7840],{"type":998,"value":7841},"Membership",{"type":993,"tag":7701,"props":7843,"children":7844},{},[7845],{"type":993,"tag":1022,"props":7846,"children":7848},{"className":7847},[],[7849],{"type":998,"value":7850},"item in tuple",{"type":993,"tag":7701,"props":7852,"children":7853},{},[7854,7860,7861],{"type":993,"tag":1022,"props":7855,"children":7857},{"className":7856},[],[7858],{"type":998,"value":7859},"2 in (1,2,3)",{"type":998,"value":7733},{"type":993,"tag":1022,"props":7862,"children":7864},{"className":7863},[],[7865],{"type":998,"value":3275},{"type":993,"tag":7669,"props":7867,"children":7868},{},[7869,7876,7881,7897],{"type":993,"tag":7701,"props":7870,"children":7871},{},[7872],{"type":993,"tag":1353,"props":7873,"children":7874},{},[7875],{"type":998,"value":7836},{"type":993,"tag":7701,"props":7877,"children":7878},{},[7879],{"type":998,"value":7880},"All/Any",{"type":993,"tag":7701,"props":7882,"children":7883},{},[7884,7890,7891],{"type":993,"tag":1022,"props":7885,"children":7887},{"className":7886},[],[7888],{"type":998,"value":7889},"all(tuple)",{"type":998,"value":1066},{"type":993,"tag":1022,"props":7892,"children":7894},{"className":7893},[],[7895],{"type":998,"value":7896},"any(tuple)",{"type":993,"tag":7701,"props":7898,"children":7899},{},[7900,7906,7907],{"type":993,"tag":1022,"props":7901,"children":7903},{"className":7902},[],[7904],{"type":998,"value":7905},"all((True,False))",{"type":998,"value":7733},{"type":993,"tag":1022,"props":7908,"children":7910},{"className":7909},[],[7911],{"type":998,"value":7912},"False",{"type":993,"tag":7669,"props":7914,"children":7915},{},[7916,7924,7929,7938],{"type":993,"tag":7701,"props":7917,"children":7918},{},[7919],{"type":993,"tag":1353,"props":7920,"children":7921},{},[7922],{"type":998,"value":7923},"Order",{"type":993,"tag":7701,"props":7925,"children":7926},{},[7927],{"type":998,"value":7928},"Sort",{"type":993,"tag":7701,"props":7930,"children":7931},{},[7932],{"type":993,"tag":1022,"props":7933,"children":7935},{"className":7934},[],[7936],{"type":998,"value":7937},"sorted(tuple)",{"type":993,"tag":7701,"props":7939,"children":7940},{},[7941,7947,7948],{"type":993,"tag":1022,"props":7942,"children":7944},{"className":7943},[],[7945],{"type":998,"value":7946},"sorted((3,1,2))",{"type":998,"value":7733},{"type":993,"tag":1022,"props":7949,"children":7951},{"className":7950},[],[7952],{"type":998,"value":7953},"(1,2,3)",{"type":993,"tag":7669,"props":7955,"children":7956},{},[7957,7964,7969,7978],{"type":993,"tag":7701,"props":7958,"children":7959},{},[7960],{"type":993,"tag":1353,"props":7961,"children":7962},{},[7963],{"type":998,"value":7923},{"type":993,"tag":7701,"props":7965,"children":7966},{},[7967],{"type":998,"value":7968},"Reverse",{"type":993,"tag":7701,"props":7970,"children":7971},{},[7972],{"type":993,"tag":1022,"props":7973,"children":7975},{"className":7974},[],[7976],{"type":998,"value":7977},"tuple(reversed(tuple))",{"type":993,"tag":7701,"props":7979,"children":7980},{},[7981,7987,7988],{"type":993,"tag":1022,"props":7982,"children":7984},{"className":7983},[],[7985],{"type":998,"value":7986},"tuple(reversed((1,2,3)))",{"type":998,"value":7733},{"type":993,"tag":1022,"props":7989,"children":7991},{"className":7990},[],[7992],{"type":998,"value":7993},"(3,2,1)",{"type":993,"tag":7669,"props":7995,"children":7996},{},[7997,8005,8010,8019],{"type":993,"tag":7701,"props":7998,"children":7999},{},[8000],{"type":993,"tag":1353,"props":8001,"children":8002},{},[8003],{"type":998,"value":8004},"Compare",{"type":993,"tag":7701,"props":8006,"children":8007},{},[8008],{"type":998,"value":8009},"Equality",{"type":993,"tag":7701,"props":8011,"children":8012},{},[8013],{"type":993,"tag":1022,"props":8014,"children":8016},{"className":8015},[],[8017],{"type":998,"value":8018},"tuple1 == tuple2",{"type":993,"tag":7701,"props":8020,"children":8021},{},[8022,8028,8029],{"type":993,"tag":1022,"props":8023,"children":8025},{"className":8024},[],[8026],{"type":998,"value":8027},"(1,2) == (1,2)",{"type":998,"value":7733},{"type":993,"tag":1022,"props":8030,"children":8032},{"className":8031},[],[8033],{"type":998,"value":3275},{"type":993,"tag":7669,"props":8035,"children":8036},{},[8037,8044,8049,8058],{"type":993,"tag":7701,"props":8038,"children":8039},{},[8040],{"type":993,"tag":1353,"props":8041,"children":8042},{},[8043],{"type":998,"value":8004},{"type":993,"tag":7701,"props":8045,"children":8046},{},[8047],{"type":998,"value":8048},"Ordering",{"type":993,"tag":7701,"props":8050,"children":8051},{},[8052],{"type":993,"tag":1022,"props":8053,"children":8055},{"className":8054},[],[8056],{"type":998,"value":8057},"tuple1 \u003C tuple2",{"type":993,"tag":7701,"props":8059,"children":8060},{},[8061,8067,8068],{"type":993,"tag":1022,"props":8062,"children":8064},{"className":8063},[],[8065],{"type":998,"value":8066},"(1,2) \u003C (1,3)",{"type":998,"value":7733},{"type":993,"tag":1022,"props":8069,"children":8071},{"className":8070},[],[8072],{"type":998,"value":3275},{"type":993,"tag":1001,"props":8074,"children":8075},{},[8076],{"type":998,"value":8077},"Choose the appropriate operation based on your data analysis and processing needs.",{"type":993,"tag":8079,"props":8080,"children":8083},"exercise",{"hint":8081,"prompt":8082},"Use multiple tuple operations including statistical calculations, filtering, sorting, and counting","Create a function that takes a tuple of student test scores and returns a comprehensive analysis including: average, letter grade distribution, top 3 scores, and percentage above class average.",[8084],{"type":993,"tag":1016,"props":8085,"children":8087},{"className":1018,"code":8086,"language":6,"meta":8,"style":8},"def analyze_class_performance(scores):\n    # TODO: Your comprehensive analysis function here\n    # Should return a dictionary with analysis results\n    pass\n\n# Test with class scores\nclass_scores = (78, 92, 85, 67, 94, 88, 76, 91, 83, 89, 72, 95, 87, 80, 93)\nanalysis = analyze_class_performance(class_scores)\nprint(analysis)\n",[8088],{"type":993,"tag":1022,"props":8089,"children":8090},{"__ignoreMap":8},[8091,8107,8125,8133,8141,8148,8156,8297,8314],{"type":993,"tag":1026,"props":8092,"children":8093},{"class":1028,"line":12},[8094,8098,8103],{"type":993,"tag":1026,"props":8095,"children":8096},{"style":1047},[8097],{"type":998,"value":2533},{"type":993,"tag":1026,"props":8099,"children":8100},{"style":2536},[8101],{"type":998,"value":8102}," analyze_class_performance",{"type":993,"tag":1026,"props":8104,"children":8105},{"style":1041},[8106],{"type":998,"value":6829},{"type":993,"tag":1026,"props":8108,"children":8109},{"class":1028,"line":27},[8110,8115,8120],{"type":993,"tag":1026,"props":8111,"children":8112},{"style":1032},[8113],{"type":998,"value":8114},"    # ",{"type":993,"tag":1026,"props":8116,"children":8117},{"style":1047},[8118],{"type":998,"value":8119},"TODO",{"type":993,"tag":1026,"props":8121,"children":8122},{"style":1032},[8123],{"type":998,"value":8124},": Your comprehensive analysis function here\n",{"type":993,"tag":1026,"props":8126,"children":8127},{"class":1028,"line":36},[8128],{"type":993,"tag":1026,"props":8129,"children":8130},{"style":1032},[8131],{"type":998,"value":8132},"    # Should return a dictionary with analysis results\n",{"type":993,"tag":1026,"props":8134,"children":8135},{"class":1028,"line":45},[8136],{"type":993,"tag":1026,"props":8137,"children":8138},{"style":1047},[8139],{"type":998,"value":8140},"    pass\n",{"type":993,"tag":1026,"props":8142,"children":8143},{"class":1028,"line":54},[8144],{"type":993,"tag":1026,"props":8145,"children":8146},{"emptyLinePlaceholder":13},[8147],{"type":998,"value":1111},{"type":993,"tag":1026,"props":8149,"children":8150},{"class":1028,"line":63},[8151],{"type":993,"tag":1026,"props":8152,"children":8153},{"style":1032},[8154],{"type":998,"value":8155},"# Test with class scores\n",{"type":993,"tag":1026,"props":8157,"children":8158},{"class":1028,"line":72},[8159,8164,8168,8172,8176,8180,8184,8188,8192,8196,8201,8205,8209,8213,8217,8221,8226,8230,8234,8238,8243,8247,8251,8255,8259,8263,8268,8272,8276,8280,8284,8288,8293],{"type":993,"tag":1026,"props":8160,"children":8161},{"style":1041},[8162],{"type":998,"value":8163},"class_scores ",{"type":993,"tag":1026,"props":8165,"children":8166},{"style":1047},[8167],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8169,"children":8170},{"style":1041},[8171],{"type":998,"value":1055},{"type":993,"tag":1026,"props":8173,"children":8174},{"style":1058},[8175],{"type":998,"value":1496},{"type":993,"tag":1026,"props":8177,"children":8178},{"style":1041},[8179],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8181,"children":8182},{"style":1058},[8183],{"type":998,"value":1487},{"type":993,"tag":1026,"props":8185,"children":8186},{"style":1041},[8187],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8189,"children":8190},{"style":1058},[8191],{"type":998,"value":1478},{"type":993,"tag":1026,"props":8193,"children":8194},{"style":1041},[8195],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8197,"children":8198},{"style":1058},[8199],{"type":998,"value":8200},"67",{"type":993,"tag":1026,"props":8202,"children":8203},{"style":1041},[8204],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8206,"children":8207},{"style":1058},[8208],{"type":998,"value":6554},{"type":993,"tag":1026,"props":8210,"children":8211},{"style":1041},[8212],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8214,"children":8215},{"style":1058},[8216],{"type":998,"value":1514},{"type":993,"tag":1026,"props":8218,"children":8219},{"style":1041},[8220],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8222,"children":8223},{"style":1058},[8224],{"type":998,"value":8225},"76",{"type":993,"tag":1026,"props":8227,"children":8228},{"style":1041},[8229],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8231,"children":8232},{"style":1058},[8233],{"type":998,"value":6536},{"type":993,"tag":1026,"props":8235,"children":8236},{"style":1041},[8237],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8239,"children":8240},{"style":1058},[8241],{"type":998,"value":8242},"83",{"type":993,"tag":1026,"props":8244,"children":8245},{"style":1041},[8246],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8248,"children":8249},{"style":1058},[8250],{"type":998,"value":7300},{"type":993,"tag":1026,"props":8252,"children":8253},{"style":1041},[8254],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8256,"children":8257},{"style":1058},[8258],{"type":998,"value":7249},{"type":993,"tag":1026,"props":8260,"children":8261},{"style":1041},[8262],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8264,"children":8265},{"style":1058},[8266],{"type":998,"value":8267},"95",{"type":993,"tag":1026,"props":8269,"children":8270},{"style":1041},[8271],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8273,"children":8274},{"style":1058},[8275],{"type":998,"value":6545},{"type":993,"tag":1026,"props":8277,"children":8278},{"style":1041},[8279],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8281,"children":8282},{"style":1058},[8283],{"type":998,"value":7406},{"type":993,"tag":1026,"props":8285,"children":8286},{"style":1041},[8287],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8289,"children":8290},{"style":1058},[8291],{"type":998,"value":8292},"93",{"type":993,"tag":1026,"props":8294,"children":8295},{"style":1041},[8296],{"type":998,"value":1103},{"type":993,"tag":1026,"props":8298,"children":8299},{"class":1028,"line":81},[8300,8305,8309],{"type":993,"tag":1026,"props":8301,"children":8302},{"style":1041},[8303],{"type":998,"value":8304},"analysis ",{"type":993,"tag":1026,"props":8306,"children":8307},{"style":1047},[8308],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8310,"children":8311},{"style":1041},[8312],{"type":998,"value":8313}," analyze_class_performance(class_scores)\n",{"type":993,"tag":1026,"props":8315,"children":8316},{"class":1028,"line":91},[8317,8321],{"type":993,"tag":1026,"props":8318,"children":8319},{"style":1058},[8320],{"type":998,"value":1149},{"type":993,"tag":1026,"props":8322,"children":8323},{"style":1041},[8324],{"type":998,"value":8325},"(analysis)\n",{"type":993,"tag":1431,"props":8327,"children":8329},{"id":8328},"solution-and-explanation",[8330],{"type":998,"value":8331},"Solution and Explanation 💡",{"type":993,"tag":8333,"props":8334,"children":8335},"details",{},[8336,8344,9287,9295],{"type":993,"tag":8337,"props":8338,"children":8341},"summary",{"className":8339},[8340],"cursor-pointer",[8342],{"type":998,"value":8343},"Click to see the complete solution",{"type":993,"tag":1012,"props":8345,"children":8346},{},[8347],{"type":993,"tag":1016,"props":8348,"children":8350},{"className":1018,"code":8349,"language":6,"meta":8,"style":8},"def analyze_class_performance(scores):\n    if not scores:\n        return {\"error\": \"No scores provided\"}\n    \n    # Basic statistics\n    average = sum(scores) / len(scores)\n    sorted_scores = tuple(sorted(scores, reverse=True))\n    top_3 = sorted_scores[:3]\n    \n    # Letter grade distribution\n    grade_counts = {\"A\": 0, \"B\": 0, \"C\": 0, \"D\": 0, \"F\": 0}\n    for score in scores:\n        if score >= 90:\n            grade_counts[\"A\"] += 1\n        elif score >= 80:\n            grade_counts[\"B\"] += 1\n        elif score >= 70:\n            grade_counts[\"C\"] += 1\n        elif score >= 60:\n            grade_counts[\"D\"] += 1\n        else:\n            grade_counts[\"F\"] += 1\n    \n    # Percentage above average\n    above_average_count = len([s for s in scores if s > average])\n    percent_above_avg = (above_average_count / len(scores)) * 100\n    \n    return {\n        \"average\": round(average, 1),\n        \"top_3_scores\": top_3,\n        \"grade_distribution\": grade_counts,\n        \"percent_above_average\": round(percent_above_avg, 1)\n    }\n\n# Test with class scores\nclass_scores = (78, 92, 85, 67, 94, 88, 76, 91, 83, 89, 72, 95, 87, 80, 93)\nanalysis = analyze_class_performance(class_scores)\nprint(analysis)\n",[8351],{"type":993,"tag":1022,"props":8352,"children":8353},{"__ignoreMap":8},[8354,8369,8384,8415,8422,8429,8462,8507,8532,8539,8547,8648,8667,8691,8717,8741,8764,8787,8810,8834,8857,8869,8892,8899,8907,8963,9003,9010,9021,9050,9063,9076,9105,9112,9119,9126,9261,9276],{"type":993,"tag":1026,"props":8355,"children":8356},{"class":1028,"line":12},[8357,8361,8365],{"type":993,"tag":1026,"props":8358,"children":8359},{"style":1047},[8360],{"type":998,"value":2533},{"type":993,"tag":1026,"props":8362,"children":8363},{"style":2536},[8364],{"type":998,"value":8102},{"type":993,"tag":1026,"props":8366,"children":8367},{"style":1041},[8368],{"type":998,"value":6829},{"type":993,"tag":1026,"props":8370,"children":8371},{"class":1028,"line":27},[8372,8376,8380],{"type":993,"tag":1026,"props":8373,"children":8374},{"style":1047},[8375],{"type":998,"value":2552},{"type":993,"tag":1026,"props":8377,"children":8378},{"style":1047},[8379],{"type":998,"value":2557},{"type":993,"tag":1026,"props":8381,"children":8382},{"style":1041},[8383],{"type":998,"value":6853},{"type":993,"tag":1026,"props":8385,"children":8386},{"class":1028,"line":36},[8387,8391,8396,8401,8405,8410],{"type":993,"tag":1026,"props":8388,"children":8389},{"style":1047},[8390],{"type":998,"value":2583},{"type":993,"tag":1026,"props":8392,"children":8393},{"style":1041},[8394],{"type":998,"value":8395}," {",{"type":993,"tag":1026,"props":8397,"children":8398},{"style":1162},[8399],{"type":998,"value":8400},"\"error\"",{"type":993,"tag":1026,"props":8402,"children":8403},{"style":1041},[8404],{"type":998,"value":3620},{"type":993,"tag":1026,"props":8406,"children":8407},{"style":1162},[8408],{"type":998,"value":8409},"\"No scores provided\"",{"type":993,"tag":1026,"props":8411,"children":8412},{"style":1041},[8413],{"type":998,"value":8414},"}\n",{"type":993,"tag":1026,"props":8416,"children":8417},{"class":1028,"line":45},[8418],{"type":993,"tag":1026,"props":8419,"children":8420},{"style":1041},[8421],{"type":998,"value":2596},{"type":993,"tag":1026,"props":8423,"children":8424},{"class":1028,"line":54},[8425],{"type":993,"tag":1026,"props":8426,"children":8427},{"style":1032},[8428],{"type":998,"value":5993},{"type":993,"tag":1026,"props":8430,"children":8431},{"class":1028,"line":63},[8432,8437,8441,8445,8450,8454,8458],{"type":993,"tag":1026,"props":8433,"children":8434},{"style":1041},[8435],{"type":998,"value":8436},"    average ",{"type":993,"tag":1026,"props":8438,"children":8439},{"style":1047},[8440],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8442,"children":8443},{"style":1058},[8444],{"type":998,"value":1542},{"type":993,"tag":1026,"props":8446,"children":8447},{"style":1041},[8448],{"type":998,"value":8449},"(scores) ",{"type":993,"tag":1026,"props":8451,"children":8452},{"style":1047},[8453],{"type":998,"value":1569},{"type":993,"tag":1026,"props":8455,"children":8456},{"style":1058},[8457],{"type":998,"value":1136},{"type":993,"tag":1026,"props":8459,"children":8460},{"style":1041},[8461],{"type":998,"value":1547},{"type":993,"tag":1026,"props":8463,"children":8464},{"class":1028,"line":72},[8465,8470,8474,8478,8482,8486,8491,8495,8499,8503],{"type":993,"tag":1026,"props":8466,"children":8467},{"style":1041},[8468],{"type":998,"value":8469},"    sorted_scores ",{"type":993,"tag":1026,"props":8471,"children":8472},{"style":1047},[8473],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8475,"children":8476},{"style":1058},[8477],{"type":998,"value":3121},{"type":993,"tag":1026,"props":8479,"children":8480},{"style":1041},[8481],{"type":998,"value":1154},{"type":993,"tag":1026,"props":8483,"children":8484},{"style":1058},[8485],{"type":998,"value":3130},{"type":993,"tag":1026,"props":8487,"children":8488},{"style":1041},[8489],{"type":998,"value":8490},"(scores, ",{"type":993,"tag":1026,"props":8492,"children":8493},{"style":3263},[8494],{"type":998,"value":3266},{"type":993,"tag":1026,"props":8496,"children":8497},{"style":1047},[8498],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8500,"children":8501},{"style":1058},[8502],{"type":998,"value":3275},{"type":993,"tag":1026,"props":8504,"children":8505},{"style":1041},[8506],{"type":998,"value":3280},{"type":993,"tag":1026,"props":8508,"children":8509},{"class":1028,"line":81},[8510,8515,8519,8524,8528],{"type":993,"tag":1026,"props":8511,"children":8512},{"style":1041},[8513],{"type":998,"value":8514},"    top_3 ",{"type":993,"tag":1026,"props":8516,"children":8517},{"style":1047},[8518],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8520,"children":8521},{"style":1041},[8522],{"type":998,"value":8523}," sorted_scores[:",{"type":993,"tag":1026,"props":8525,"children":8526},{"style":1058},[8527],{"type":998,"value":1080},{"type":993,"tag":1026,"props":8529,"children":8530},{"style":1041},[8531],{"type":998,"value":6268},{"type":993,"tag":1026,"props":8533,"children":8534},{"class":1028,"line":91},[8535],{"type":993,"tag":1026,"props":8536,"children":8537},{"style":1041},[8538],{"type":998,"value":2596},{"type":993,"tag":1026,"props":8540,"children":8541},{"class":1028,"line":100},[8542],{"type":993,"tag":1026,"props":8543,"children":8544},{"style":1032},[8545],{"type":998,"value":8546},"    # Letter grade distribution\n",{"type":993,"tag":1026,"props":8548,"children":8549},{"class":1028,"line":109},[8550,8555,8559,8563,8568,8572,8576,8580,8585,8589,8593,8597,8602,8606,8610,8614,8619,8623,8627,8631,8636,8640,8644],{"type":993,"tag":1026,"props":8551,"children":8552},{"style":1041},[8553],{"type":998,"value":8554},"    grade_counts ",{"type":993,"tag":1026,"props":8556,"children":8557},{"style":1047},[8558],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8560,"children":8561},{"style":1041},[8562],{"type":998,"value":8395},{"type":993,"tag":1026,"props":8564,"children":8565},{"style":1162},[8566],{"type":998,"value":8567},"\"A\"",{"type":993,"tag":1026,"props":8569,"children":8570},{"style":1041},[8571],{"type":998,"value":3620},{"type":993,"tag":1026,"props":8573,"children":8574},{"style":1058},[8575],{"type":998,"value":3701},{"type":993,"tag":1026,"props":8577,"children":8578},{"style":1041},[8579],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8581,"children":8582},{"style":1162},[8583],{"type":998,"value":8584},"\"B\"",{"type":993,"tag":1026,"props":8586,"children":8587},{"style":1041},[8588],{"type":998,"value":3620},{"type":993,"tag":1026,"props":8590,"children":8591},{"style":1058},[8592],{"type":998,"value":3701},{"type":993,"tag":1026,"props":8594,"children":8595},{"style":1041},[8596],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8598,"children":8599},{"style":1162},[8600],{"type":998,"value":8601},"\"C\"",{"type":993,"tag":1026,"props":8603,"children":8604},{"style":1041},[8605],{"type":998,"value":3620},{"type":993,"tag":1026,"props":8607,"children":8608},{"style":1058},[8609],{"type":998,"value":3701},{"type":993,"tag":1026,"props":8611,"children":8612},{"style":1041},[8613],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8615,"children":8616},{"style":1162},[8617],{"type":998,"value":8618},"\"D\"",{"type":993,"tag":1026,"props":8620,"children":8621},{"style":1041},[8622],{"type":998,"value":3620},{"type":993,"tag":1026,"props":8624,"children":8625},{"style":1058},[8626],{"type":998,"value":3701},{"type":993,"tag":1026,"props":8628,"children":8629},{"style":1041},[8630],{"type":998,"value":1066},{"type":993,"tag":1026,"props":8632,"children":8633},{"style":1162},[8634],{"type":998,"value":8635},"\"F\"",{"type":993,"tag":1026,"props":8637,"children":8638},{"style":1041},[8639],{"type":998,"value":3620},{"type":993,"tag":1026,"props":8641,"children":8642},{"style":1058},[8643],{"type":998,"value":3701},{"type":993,"tag":1026,"props":8645,"children":8646},{"style":1041},[8647],{"type":998,"value":8414},{"type":993,"tag":1026,"props":8649,"children":8650},{"class":1028,"line":118},[8651,8655,8659,8663],{"type":993,"tag":1026,"props":8652,"children":8653},{"style":1047},[8654],{"type":998,"value":2604},{"type":993,"tag":1026,"props":8656,"children":8657},{"style":1041},[8658],{"type":998,"value":1976},{"type":993,"tag":1026,"props":8660,"children":8661},{"style":1047},[8662],{"type":998,"value":1981},{"type":993,"tag":1026,"props":8664,"children":8665},{"style":1041},[8666],{"type":998,"value":6853},{"type":993,"tag":1026,"props":8668,"children":8669},{"class":1028,"line":127},[8670,8674,8678,8682,8687],{"type":993,"tag":1026,"props":8671,"children":8672},{"style":1047},[8673],{"type":998,"value":2626},{"type":993,"tag":1026,"props":8675,"children":8676},{"style":1041},[8677],{"type":998,"value":1976},{"type":993,"tag":1026,"props":8679,"children":8680},{"style":1047},[8681],{"type":998,"value":1961},{"type":993,"tag":1026,"props":8683,"children":8684},{"style":1058},[8685],{"type":998,"value":8686}," 90",{"type":993,"tag":1026,"props":8688,"children":8689},{"style":1041},[8690],{"type":998,"value":6155},{"type":993,"tag":1026,"props":8692,"children":8693},{"class":1028,"line":136},[8694,8699,8703,8707,8712],{"type":993,"tag":1026,"props":8695,"children":8696},{"style":1041},[8697],{"type":998,"value":8698},"            grade_counts[",{"type":993,"tag":1026,"props":8700,"children":8701},{"style":1162},[8702],{"type":998,"value":8567},{"type":993,"tag":1026,"props":8704,"children":8705},{"style":1041},[8706],{"type":998,"value":6196},{"type":993,"tag":1026,"props":8708,"children":8709},{"style":1047},[8710],{"type":998,"value":8711},"+=",{"type":993,"tag":1026,"props":8713,"children":8714},{"style":1058},[8715],{"type":998,"value":8716}," 1\n",{"type":993,"tag":1026,"props":8718,"children":8719},{"class":1028,"line":146},[8720,8725,8729,8733,8737],{"type":993,"tag":1026,"props":8721,"children":8722},{"style":1047},[8723],{"type":998,"value":8724},"        elif",{"type":993,"tag":1026,"props":8726,"children":8727},{"style":1041},[8728],{"type":998,"value":1976},{"type":993,"tag":1026,"props":8730,"children":8731},{"style":1047},[8732],{"type":998,"value":1961},{"type":993,"tag":1026,"props":8734,"children":8735},{"style":1058},[8736],{"type":998,"value":2173},{"type":993,"tag":1026,"props":8738,"children":8739},{"style":1041},[8740],{"type":998,"value":6155},{"type":993,"tag":1026,"props":8742,"children":8743},{"class":1028,"line":155},[8744,8748,8752,8756,8760],{"type":993,"tag":1026,"props":8745,"children":8746},{"style":1041},[8747],{"type":998,"value":8698},{"type":993,"tag":1026,"props":8749,"children":8750},{"style":1162},[8751],{"type":998,"value":8584},{"type":993,"tag":1026,"props":8753,"children":8754},{"style":1041},[8755],{"type":998,"value":6196},{"type":993,"tag":1026,"props":8757,"children":8758},{"style":1047},[8759],{"type":998,"value":8711},{"type":993,"tag":1026,"props":8761,"children":8762},{"style":1058},[8763],{"type":998,"value":8716},{"type":993,"tag":1026,"props":8765,"children":8766},{"class":1028,"line":164},[8767,8771,8775,8779,8783],{"type":993,"tag":1026,"props":8768,"children":8769},{"style":1047},[8770],{"type":998,"value":8724},{"type":993,"tag":1026,"props":8772,"children":8773},{"style":1041},[8774],{"type":998,"value":1976},{"type":993,"tag":1026,"props":8776,"children":8777},{"style":1047},[8778],{"type":998,"value":1961},{"type":993,"tag":1026,"props":8780,"children":8781},{"style":1058},[8782],{"type":998,"value":1966},{"type":993,"tag":1026,"props":8784,"children":8785},{"style":1041},[8786],{"type":998,"value":6155},{"type":993,"tag":1026,"props":8788,"children":8789},{"class":1028,"line":173},[8790,8794,8798,8802,8806],{"type":993,"tag":1026,"props":8791,"children":8792},{"style":1041},[8793],{"type":998,"value":8698},{"type":993,"tag":1026,"props":8795,"children":8796},{"style":1162},[8797],{"type":998,"value":8601},{"type":993,"tag":1026,"props":8799,"children":8800},{"style":1041},[8801],{"type":998,"value":6196},{"type":993,"tag":1026,"props":8803,"children":8804},{"style":1047},[8805],{"type":998,"value":8711},{"type":993,"tag":1026,"props":8807,"children":8808},{"style":1058},[8809],{"type":998,"value":8716},{"type":993,"tag":1026,"props":8811,"children":8812},{"class":1028,"line":182},[8813,8817,8821,8825,8830],{"type":993,"tag":1026,"props":8814,"children":8815},{"style":1047},[8816],{"type":998,"value":8724},{"type":993,"tag":1026,"props":8818,"children":8819},{"style":1041},[8820],{"type":998,"value":1976},{"type":993,"tag":1026,"props":8822,"children":8823},{"style":1047},[8824],{"type":998,"value":1961},{"type":993,"tag":1026,"props":8826,"children":8827},{"style":1058},[8828],{"type":998,"value":8829}," 60",{"type":993,"tag":1026,"props":8831,"children":8832},{"style":1041},[8833],{"type":998,"value":6155},{"type":993,"tag":1026,"props":8835,"children":8836},{"class":1028,"line":191},[8837,8841,8845,8849,8853],{"type":993,"tag":1026,"props":8838,"children":8839},{"style":1041},[8840],{"type":998,"value":8698},{"type":993,"tag":1026,"props":8842,"children":8843},{"style":1162},[8844],{"type":998,"value":8618},{"type":993,"tag":1026,"props":8846,"children":8847},{"style":1041},[8848],{"type":998,"value":6196},{"type":993,"tag":1026,"props":8850,"children":8851},{"style":1047},[8852],{"type":998,"value":8711},{"type":993,"tag":1026,"props":8854,"children":8855},{"style":1058},[8856],{"type":998,"value":8716},{"type":993,"tag":1026,"props":8858,"children":8859},{"class":1028,"line":201},[8860,8865],{"type":993,"tag":1026,"props":8861,"children":8862},{"style":1047},[8863],{"type":998,"value":8864},"        else",{"type":993,"tag":1026,"props":8866,"children":8867},{"style":1041},[8868],{"type":998,"value":6155},{"type":993,"tag":1026,"props":8870,"children":8871},{"class":1028,"line":210},[8872,8876,8880,8884,8888],{"type":993,"tag":1026,"props":8873,"children":8874},{"style":1041},[8875],{"type":998,"value":8698},{"type":993,"tag":1026,"props":8877,"children":8878},{"style":1162},[8879],{"type":998,"value":8635},{"type":993,"tag":1026,"props":8881,"children":8882},{"style":1041},[8883],{"type":998,"value":6196},{"type":993,"tag":1026,"props":8885,"children":8886},{"style":1047},[8887],{"type":998,"value":8711},{"type":993,"tag":1026,"props":8889,"children":8890},{"style":1058},[8891],{"type":998,"value":8716},{"type":993,"tag":1026,"props":8893,"children":8894},{"class":1028,"line":219},[8895],{"type":993,"tag":1026,"props":8896,"children":8897},{"style":1041},[8898],{"type":998,"value":2596},{"type":993,"tag":1026,"props":8900,"children":8901},{"class":1028,"line":228},[8902],{"type":993,"tag":1026,"props":8903,"children":8904},{"style":1032},[8905],{"type":998,"value":8906},"    # Percentage above average\n",{"type":993,"tag":1026,"props":8908,"children":8909},{"class":1028,"line":238},[8910,8915,8919,8923,8928,8932,8937,8941,8945,8949,8953,8958],{"type":993,"tag":1026,"props":8911,"children":8912},{"style":1041},[8913],{"type":998,"value":8914},"    above_average_count ",{"type":993,"tag":1026,"props":8916,"children":8917},{"style":1047},[8918],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8920,"children":8921},{"style":1058},[8922],{"type":998,"value":1136},{"type":993,"tag":1026,"props":8924,"children":8925},{"style":1041},[8926],{"type":998,"value":8927},"([s ",{"type":993,"tag":1026,"props":8929,"children":8930},{"style":1047},[8931],{"type":998,"value":3568},{"type":993,"tag":1026,"props":8933,"children":8934},{"style":1041},[8935],{"type":998,"value":8936}," s ",{"type":993,"tag":1026,"props":8938,"children":8939},{"style":1047},[8940],{"type":998,"value":1981},{"type":993,"tag":1026,"props":8942,"children":8943},{"style":1041},[8944],{"type":998,"value":7105},{"type":993,"tag":1026,"props":8946,"children":8947},{"style":1047},[8948],{"type":998,"value":7110},{"type":993,"tag":1026,"props":8950,"children":8951},{"style":1041},[8952],{"type":998,"value":8936},{"type":993,"tag":1026,"props":8954,"children":8955},{"style":1047},[8956],{"type":998,"value":8957},">",{"type":993,"tag":1026,"props":8959,"children":8960},{"style":1041},[8961],{"type":998,"value":8962}," average])\n",{"type":993,"tag":1026,"props":8964,"children":8965},{"class":1028,"line":247},[8966,8971,8975,8980,8984,8988,8993,8998],{"type":993,"tag":1026,"props":8967,"children":8968},{"style":1041},[8969],{"type":998,"value":8970},"    percent_above_avg ",{"type":993,"tag":1026,"props":8972,"children":8973},{"style":1047},[8974],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8976,"children":8977},{"style":1041},[8978],{"type":998,"value":8979}," (above_average_count ",{"type":993,"tag":1026,"props":8981,"children":8982},{"style":1047},[8983],{"type":998,"value":1569},{"type":993,"tag":1026,"props":8985,"children":8986},{"style":1058},[8987],{"type":998,"value":1136},{"type":993,"tag":1026,"props":8989,"children":8990},{"style":1041},[8991],{"type":998,"value":8992},"(scores)) ",{"type":993,"tag":1026,"props":8994,"children":8995},{"style":1047},[8996],{"type":998,"value":8997},"*",{"type":993,"tag":1026,"props":8999,"children":9000},{"style":1058},[9001],{"type":998,"value":9002}," 100\n",{"type":993,"tag":1026,"props":9004,"children":9005},{"class":1028,"line":256},[9006],{"type":993,"tag":1026,"props":9007,"children":9008},{"style":1041},[9009],{"type":998,"value":2596},{"type":993,"tag":1026,"props":9011,"children":9012},{"class":1028,"line":265},[9013,9017],{"type":993,"tag":1026,"props":9014,"children":9015},{"style":1047},[9016],{"type":998,"value":2685},{"type":993,"tag":1026,"props":9018,"children":9019},{"style":1041},[9020],{"type":998,"value":6336},{"type":993,"tag":1026,"props":9022,"children":9023},{"class":1028,"line":274},[9024,9029,9033,9037,9042,9046],{"type":993,"tag":1026,"props":9025,"children":9026},{"style":1162},[9027],{"type":998,"value":9028},"        \"average\"",{"type":993,"tag":1026,"props":9030,"children":9031},{"style":1041},[9032],{"type":998,"value":3620},{"type":993,"tag":1026,"props":9034,"children":9035},{"style":1058},[9036],{"type":998,"value":7606},{"type":993,"tag":1026,"props":9038,"children":9039},{"style":1041},[9040],{"type":998,"value":9041},"(average, ",{"type":993,"tag":1026,"props":9043,"children":9044},{"style":1058},[9045],{"type":998,"value":1061},{"type":993,"tag":1026,"props":9047,"children":9048},{"style":1041},[9049],{"type":998,"value":3393},{"type":993,"tag":1026,"props":9051,"children":9052},{"class":1028,"line":284},[9053,9058],{"type":993,"tag":1026,"props":9054,"children":9055},{"style":1162},[9056],{"type":998,"value":9057},"        \"top_3_scores\"",{"type":993,"tag":1026,"props":9059,"children":9060},{"style":1041},[9061],{"type":998,"value":9062},": top_3,\n",{"type":993,"tag":1026,"props":9064,"children":9065},{"class":1028,"line":293},[9066,9071],{"type":993,"tag":1026,"props":9067,"children":9068},{"style":1162},[9069],{"type":998,"value":9070},"        \"grade_distribution\"",{"type":993,"tag":1026,"props":9072,"children":9073},{"style":1041},[9074],{"type":998,"value":9075},": grade_counts,\n",{"type":993,"tag":1026,"props":9077,"children":9078},{"class":1028,"line":302},[9079,9084,9088,9092,9097,9101],{"type":993,"tag":1026,"props":9080,"children":9081},{"style":1162},[9082],{"type":998,"value":9083},"        \"percent_above_average\"",{"type":993,"tag":1026,"props":9085,"children":9086},{"style":1041},[9087],{"type":998,"value":3620},{"type":993,"tag":1026,"props":9089,"children":9090},{"style":1058},[9091],{"type":998,"value":7606},{"type":993,"tag":1026,"props":9093,"children":9094},{"style":1041},[9095],{"type":998,"value":9096},"(percent_above_avg, ",{"type":993,"tag":1026,"props":9098,"children":9099},{"style":1058},[9100],{"type":998,"value":1061},{"type":993,"tag":1026,"props":9102,"children":9103},{"style":1041},[9104],{"type":998,"value":1103},{"type":993,"tag":1026,"props":9106,"children":9107},{"class":1028,"line":311},[9108],{"type":993,"tag":1026,"props":9109,"children":9110},{"style":1041},[9111],{"type":998,"value":6452},{"type":993,"tag":1026,"props":9113,"children":9114},{"class":1028,"line":320},[9115],{"type":993,"tag":1026,"props":9116,"children":9117},{"emptyLinePlaceholder":13},[9118],{"type":998,"value":1111},{"type":993,"tag":1026,"props":9120,"children":9121},{"class":1028,"line":329},[9122],{"type":993,"tag":1026,"props":9123,"children":9124},{"style":1032},[9125],{"type":998,"value":8155},{"type":993,"tag":1026,"props":9127,"children":9128},{"class":1028,"line":338},[9129,9133,9137,9141,9145,9149,9153,9157,9161,9165,9169,9173,9177,9181,9185,9189,9193,9197,9201,9205,9209,9213,9217,9221,9225,9229,9233,9237,9241,9245,9249,9253,9257],{"type":993,"tag":1026,"props":9130,"children":9131},{"style":1041},[9132],{"type":998,"value":8163},{"type":993,"tag":1026,"props":9134,"children":9135},{"style":1047},[9136],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9138,"children":9139},{"style":1041},[9140],{"type":998,"value":1055},{"type":993,"tag":1026,"props":9142,"children":9143},{"style":1058},[9144],{"type":998,"value":1496},{"type":993,"tag":1026,"props":9146,"children":9147},{"style":1041},[9148],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9150,"children":9151},{"style":1058},[9152],{"type":998,"value":1487},{"type":993,"tag":1026,"props":9154,"children":9155},{"style":1041},[9156],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9158,"children":9159},{"style":1058},[9160],{"type":998,"value":1478},{"type":993,"tag":1026,"props":9162,"children":9163},{"style":1041},[9164],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9166,"children":9167},{"style":1058},[9168],{"type":998,"value":8200},{"type":993,"tag":1026,"props":9170,"children":9171},{"style":1041},[9172],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9174,"children":9175},{"style":1058},[9176],{"type":998,"value":6554},{"type":993,"tag":1026,"props":9178,"children":9179},{"style":1041},[9180],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9182,"children":9183},{"style":1058},[9184],{"type":998,"value":1514},{"type":993,"tag":1026,"props":9186,"children":9187},{"style":1041},[9188],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9190,"children":9191},{"style":1058},[9192],{"type":998,"value":8225},{"type":993,"tag":1026,"props":9194,"children":9195},{"style":1041},[9196],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9198,"children":9199},{"style":1058},[9200],{"type":998,"value":6536},{"type":993,"tag":1026,"props":9202,"children":9203},{"style":1041},[9204],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9206,"children":9207},{"style":1058},[9208],{"type":998,"value":8242},{"type":993,"tag":1026,"props":9210,"children":9211},{"style":1041},[9212],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9214,"children":9215},{"style":1058},[9216],{"type":998,"value":7300},{"type":993,"tag":1026,"props":9218,"children":9219},{"style":1041},[9220],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9222,"children":9223},{"style":1058},[9224],{"type":998,"value":7249},{"type":993,"tag":1026,"props":9226,"children":9227},{"style":1041},[9228],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9230,"children":9231},{"style":1058},[9232],{"type":998,"value":8267},{"type":993,"tag":1026,"props":9234,"children":9235},{"style":1041},[9236],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9238,"children":9239},{"style":1058},[9240],{"type":998,"value":6545},{"type":993,"tag":1026,"props":9242,"children":9243},{"style":1041},[9244],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9246,"children":9247},{"style":1058},[9248],{"type":998,"value":7406},{"type":993,"tag":1026,"props":9250,"children":9251},{"style":1041},[9252],{"type":998,"value":1066},{"type":993,"tag":1026,"props":9254,"children":9255},{"style":1058},[9256],{"type":998,"value":8292},{"type":993,"tag":1026,"props":9258,"children":9259},{"style":1041},[9260],{"type":998,"value":1103},{"type":993,"tag":1026,"props":9262,"children":9263},{"class":1028,"line":347},[9264,9268,9272],{"type":993,"tag":1026,"props":9265,"children":9266},{"style":1041},[9267],{"type":998,"value":8304},{"type":993,"tag":1026,"props":9269,"children":9270},{"style":1047},[9271],{"type":998,"value":1050},{"type":993,"tag":1026,"props":9273,"children":9274},{"style":1041},[9275],{"type":998,"value":8313},{"type":993,"tag":1026,"props":9277,"children":9278},{"class":1028,"line":356},[9279,9283],{"type":993,"tag":1026,"props":9280,"children":9281},{"style":1058},[9282],{"type":998,"value":1149},{"type":993,"tag":1026,"props":9284,"children":9285},{"style":1041},[9286],{"type":998,"value":8325},{"type":993,"tag":1001,"props":9288,"children":9289},{},[9290],{"type":993,"tag":1353,"props":9291,"children":9292},{},[9293],{"type":998,"value":9294},"Key Learning Points:",{"type":993,"tag":1359,"props":9296,"children":9297},{},[9298,9333,9344,9362],{"type":993,"tag":1363,"props":9299,"children":9300},{},[9301,9303,9308,9310,9316,9317,9323,9325,9331],{"type":998,"value":9302},"📌 ",{"type":993,"tag":1353,"props":9304,"children":9305},{},[9306],{"type":998,"value":9307},"Statistical calculations",{"type":998,"value":9309},": Use ",{"type":993,"tag":1022,"props":9311,"children":9313},{"className":9312},[],[9314],{"type":998,"value":9315},"sum()",{"type":998,"value":1066},{"type":993,"tag":1022,"props":9318,"children":9320},{"className":9319},[],[9321],{"type":998,"value":9322},"len()",{"type":998,"value":9324},", and ",{"type":993,"tag":1022,"props":9326,"children":9328},{"className":9327},[],[9329],{"type":998,"value":9330},"sorted()",{"type":998,"value":9332}," for basic analysis",{"type":993,"tag":1363,"props":9334,"children":9335},{},[9336,9337,9342],{"type":998,"value":9302},{"type":993,"tag":1353,"props":9338,"children":9339},{},[9340],{"type":998,"value":9341},"Grade classification",{"type":998,"value":9343},": Use conditional logic to categorize scores into letter grades",{"type":993,"tag":1363,"props":9345,"children":9346},{},[9347,9348,9353,9354,9360],{"type":998,"value":9302},{"type":993,"tag":1353,"props":9349,"children":9350},{},[9351],{"type":998,"value":9352},"List comprehension",{"type":998,"value":9309},{"type":993,"tag":1022,"props":9355,"children":9357},{"className":9356},[],[9358],{"type":998,"value":9359},"[s for s in scores if condition]",{"type":998,"value":9361}," to filter data",{"type":993,"tag":1363,"props":9363,"children":9364},{},[9365,9366,9371],{"type":998,"value":9302},{"type":993,"tag":1353,"props":9367,"children":9368},{},[9369],{"type":998,"value":9370},"Comprehensive analysis",{"type":998,"value":9372},": Combine multiple operations to create detailed insights",{"type":993,"tag":1001,"props":9374,"children":9375},{},[9376],{"type":998,"value":9377},"You've now mastered all the essential tuple operations! These techniques form the foundation for advanced data manipulation and analysis in Python.",{"type":993,"tag":1331,"props":9379,"children":9381},{"id":9380},"test-your-knowledge",[9382],{"type":998,"value":9383},"Test Your Knowledge",{"type":993,"tag":1001,"props":9385,"children":9386},{},[9387],{"type":998,"value":9388},"Test what you've learned about tuple operations in Python:",{"type":993,"tag":9390,"props":9391,"children":9395},"redirect-button",{"icon":9392,"label":9393,"url":9394},"pi pi-send","Take Quiz","/tutorial-quiz/python/tuple-operations",[],{"type":993,"tag":1331,"props":9397,"children":9399},{"id":9398},"whats-next",[9400],{"type":998,"value":9401},"What's Next?",{"type":993,"tag":1001,"props":9403,"children":9404},{},[9405,9407,9413],{"type":998,"value":9406},"Congratulations! You've completed the comprehensive Python Tuples section. You now understand tuple creation, access, manipulation, iteration, ",{"type":993,"tag":9408,"props":9409,"children":9410},"a",{"href":425},[9411],{"type":998,"value":9412},"merging",{"type":998,"value":9414},", and operations.",{"type":993,"tag":1001,"props":9416,"children":9417},{},[9418,9420,9424],{"type":998,"value":9419},"These skills prepare you for the next major data structure: ",{"type":993,"tag":1353,"props":9421,"children":9422},{},[9423],{"type":998,"value":444},{"type":998,"value":9425},". Sets offer unique element collections with powerful mathematical operations for data analysis and filtering.",{"type":993,"tag":1001,"props":9427,"children":9428},{},[9429,9431,9435],{"type":998,"value":9430},"Ready to continue? Explore our next section on ",{"type":993,"tag":9408,"props":9432,"children":9433},{"href":443},[9434],{"type":998,"value":444},{"type":998,"value":9436},".",{"type":993,"tag":9438,"props":9439,"children":9440},"style",{},[9441],{"type":998,"value":9442},"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":9444},[9445,9450,9455,9459,9463,9466,9467],{"id":1333,"depth":27,"text":1336,"children":9446},[9447,9448,9449],{"id":757,"depth":36,"text":755},{"id":1837,"depth":36,"text":1840},{"id":2233,"depth":36,"text":2236},{"id":2909,"depth":27,"text":2912,"children":9451},[9452,9453,9454],{"id":3003,"depth":36,"text":3006},{"id":3324,"depth":36,"text":3327},{"id":3812,"depth":36,"text":3815},{"id":4367,"depth":27,"text":4370,"children":9456},[9457,9458],{"id":4461,"depth":36,"text":4464},{"id":5185,"depth":36,"text":5188},{"id":5806,"depth":27,"text":5809,"children":9460},[9461,9462],{"id":5901,"depth":36,"text":5904},{"id":6786,"depth":36,"text":6789},{"id":7651,"depth":27,"text":7654,"children":9464},[9465],{"id":8328,"depth":36,"text":8331},{"id":9380,"depth":27,"text":9383},{"id":9398,"depth":27,"text":9401},1782373740039]