[{"data":1,"prerenderedAt":9108},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/essential-list-tools":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},"/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",[360],{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"body":989,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},{"type":990,"children":991,"toc":9073},"root",[992,1001,1007,1012,1605,1612,1617,1751,1758,2037,2043,2270,2276,2582,2588,2601,2705,2711,2941,2947,3237,3243,3494,3499,3505,3517,3624,3630,3810,3816,4040,4046,4291,4297,4317,4412,4418,4680,4686,4946,4952,5227,5233,5239,5550,5556,6032,6420,6426,7151,7157,7162,7615,7620,7626,7632,8141,8147,8467,8473,8917,9015,9028,9034,9039,9045,9051,9056,9067],{"type":993,"tag":994,"props":995,"children":997},"element","h1",{"id":996},"️-essential-list-tools",[998],{"type":999,"value":1000},"text","🛠️ Essential List Tools",{"type":993,"tag":1002,"props":1003,"children":1004},"p",{},[1005],{"type":999,"value":1006},"Python provides a rich collection of built-in functions and tools that make working with lists more efficient and elegant. These essential tools can transform complex list operations into simple, readable code. From mathematical functions to advanced filtering and mapping techniques, mastering these tools will significantly improve your Python programming skills.",{"type":993,"tag":1002,"props":1008,"children":1009},{},[1010],{"type":999,"value":1011},"Understanding these tools enables you to write more Pythonic code and solve complex data processing tasks with minimal effort.",{"type":993,"tag":1013,"props":1014,"children":1015},"code-try",{},[1016],{"type":993,"tag":1017,"props":1018,"children":1021},"pre",{"className":1019,"code":1020,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Essential list tools overview\nnumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\nwords = [\"apple\", \"banana\", \"cherry\", \"date\"]\n\n# Mathematical functions\nprint(\"Sum:\", sum(numbers))\nprint(\"Max:\", max(numbers))\nprint(\"Min:\", min(numbers))\n\n# Filtering and mapping\nevens = list(filter(lambda x: x % 2 == 0, numbers))\nprint(\"Even numbers:\", evens)\n\nlengths = list(map(len, words))\nprint(\"Word lengths:\", lengths)\n\n# Checking conditions\nprint(\"All positive:\", all(x > 0 for x in numbers))\nprint(\"Any > 5:\", any(x > 5 for x in numbers))\n",[1022],{"type":993,"tag":1023,"props":1024,"children":1025},"code",{"__ignoreMap":8},[1026,1037,1150,1203,1211,1219,1251,1280,1309,1316,1324,1389,1410,1417,1456,1477,1484,1492,1551],{"type":993,"tag":1027,"props":1028,"children":1030},"span",{"class":1029,"line":12},"line",[1031],{"type":993,"tag":1027,"props":1032,"children":1034},{"style":1033},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1035],{"type":999,"value":1036},"# Essential list tools overview\n",{"type":993,"tag":1027,"props":1038,"children":1039},{"class":1029,"line":27},[1040,1046,1052,1057,1063,1068,1073,1077,1082,1086,1091,1095,1100,1104,1109,1113,1118,1122,1127,1131,1136,1140,1145],{"type":993,"tag":1027,"props":1041,"children":1043},{"style":1042},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1044],{"type":999,"value":1045},"numbers ",{"type":993,"tag":1027,"props":1047,"children":1049},{"style":1048},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1050],{"type":999,"value":1051},"=",{"type":993,"tag":1027,"props":1053,"children":1054},{"style":1042},[1055],{"type":999,"value":1056}," [",{"type":993,"tag":1027,"props":1058,"children":1060},{"style":1059},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1061],{"type":999,"value":1062},"1",{"type":993,"tag":1027,"props":1064,"children":1065},{"style":1042},[1066],{"type":999,"value":1067},", ",{"type":993,"tag":1027,"props":1069,"children":1070},{"style":1059},[1071],{"type":999,"value":1072},"2",{"type":993,"tag":1027,"props":1074,"children":1075},{"style":1042},[1076],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1078,"children":1079},{"style":1059},[1080],{"type":999,"value":1081},"3",{"type":993,"tag":1027,"props":1083,"children":1084},{"style":1042},[1085],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1087,"children":1088},{"style":1059},[1089],{"type":999,"value":1090},"4",{"type":993,"tag":1027,"props":1092,"children":1093},{"style":1042},[1094],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1096,"children":1097},{"style":1059},[1098],{"type":999,"value":1099},"5",{"type":993,"tag":1027,"props":1101,"children":1102},{"style":1042},[1103],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1105,"children":1106},{"style":1059},[1107],{"type":999,"value":1108},"6",{"type":993,"tag":1027,"props":1110,"children":1111},{"style":1042},[1112],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1114,"children":1115},{"style":1059},[1116],{"type":999,"value":1117},"7",{"type":993,"tag":1027,"props":1119,"children":1120},{"style":1042},[1121],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1123,"children":1124},{"style":1059},[1125],{"type":999,"value":1126},"8",{"type":993,"tag":1027,"props":1128,"children":1129},{"style":1042},[1130],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1132,"children":1133},{"style":1059},[1134],{"type":999,"value":1135},"9",{"type":993,"tag":1027,"props":1137,"children":1138},{"style":1042},[1139],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1141,"children":1142},{"style":1059},[1143],{"type":999,"value":1144},"10",{"type":993,"tag":1027,"props":1146,"children":1147},{"style":1042},[1148],{"type":999,"value":1149},"]\n",{"type":993,"tag":1027,"props":1151,"children":1152},{"class":1029,"line":36},[1153,1158,1162,1166,1172,1176,1181,1185,1190,1194,1199],{"type":993,"tag":1027,"props":1154,"children":1155},{"style":1042},[1156],{"type":999,"value":1157},"words ",{"type":993,"tag":1027,"props":1159,"children":1160},{"style":1048},[1161],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1163,"children":1164},{"style":1042},[1165],{"type":999,"value":1056},{"type":993,"tag":1027,"props":1167,"children":1169},{"style":1168},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1170],{"type":999,"value":1171},"\"apple\"",{"type":993,"tag":1027,"props":1173,"children":1174},{"style":1042},[1175],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1177,"children":1178},{"style":1168},[1179],{"type":999,"value":1180},"\"banana\"",{"type":993,"tag":1027,"props":1182,"children":1183},{"style":1042},[1184],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1186,"children":1187},{"style":1168},[1188],{"type":999,"value":1189},"\"cherry\"",{"type":993,"tag":1027,"props":1191,"children":1192},{"style":1042},[1193],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1195,"children":1196},{"style":1168},[1197],{"type":999,"value":1198},"\"date\"",{"type":993,"tag":1027,"props":1200,"children":1201},{"style":1042},[1202],{"type":999,"value":1149},{"type":993,"tag":1027,"props":1204,"children":1205},{"class":1029,"line":45},[1206],{"type":993,"tag":1027,"props":1207,"children":1208},{"emptyLinePlaceholder":13},[1209],{"type":999,"value":1210},"\n",{"type":993,"tag":1027,"props":1212,"children":1213},{"class":1029,"line":54},[1214],{"type":993,"tag":1027,"props":1215,"children":1216},{"style":1033},[1217],{"type":999,"value":1218},"# Mathematical functions\n",{"type":993,"tag":1027,"props":1220,"children":1221},{"class":1029,"line":63},[1222,1227,1232,1237,1241,1246],{"type":993,"tag":1027,"props":1223,"children":1224},{"style":1059},[1225],{"type":999,"value":1226},"print",{"type":993,"tag":1027,"props":1228,"children":1229},{"style":1042},[1230],{"type":999,"value":1231},"(",{"type":993,"tag":1027,"props":1233,"children":1234},{"style":1168},[1235],{"type":999,"value":1236},"\"Sum:\"",{"type":993,"tag":1027,"props":1238,"children":1239},{"style":1042},[1240],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1242,"children":1243},{"style":1059},[1244],{"type":999,"value":1245},"sum",{"type":993,"tag":1027,"props":1247,"children":1248},{"style":1042},[1249],{"type":999,"value":1250},"(numbers))\n",{"type":993,"tag":1027,"props":1252,"children":1253},{"class":1029,"line":72},[1254,1258,1262,1267,1271,1276],{"type":993,"tag":1027,"props":1255,"children":1256},{"style":1059},[1257],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1259,"children":1260},{"style":1042},[1261],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1263,"children":1264},{"style":1168},[1265],{"type":999,"value":1266},"\"Max:\"",{"type":993,"tag":1027,"props":1268,"children":1269},{"style":1042},[1270],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1272,"children":1273},{"style":1059},[1274],{"type":999,"value":1275},"max",{"type":993,"tag":1027,"props":1277,"children":1278},{"style":1042},[1279],{"type":999,"value":1250},{"type":993,"tag":1027,"props":1281,"children":1282},{"class":1029,"line":81},[1283,1287,1291,1296,1300,1305],{"type":993,"tag":1027,"props":1284,"children":1285},{"style":1059},[1286],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1288,"children":1289},{"style":1042},[1290],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1292,"children":1293},{"style":1168},[1294],{"type":999,"value":1295},"\"Min:\"",{"type":993,"tag":1027,"props":1297,"children":1298},{"style":1042},[1299],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1301,"children":1302},{"style":1059},[1303],{"type":999,"value":1304},"min",{"type":993,"tag":1027,"props":1306,"children":1307},{"style":1042},[1308],{"type":999,"value":1250},{"type":993,"tag":1027,"props":1310,"children":1311},{"class":1029,"line":91},[1312],{"type":993,"tag":1027,"props":1313,"children":1314},{"emptyLinePlaceholder":13},[1315],{"type":999,"value":1210},{"type":993,"tag":1027,"props":1317,"children":1318},{"class":1029,"line":100},[1319],{"type":993,"tag":1027,"props":1320,"children":1321},{"style":1033},[1322],{"type":999,"value":1323},"# Filtering and mapping\n",{"type":993,"tag":1027,"props":1325,"children":1326},{"class":1029,"line":109},[1327,1332,1336,1341,1345,1350,1354,1359,1364,1369,1374,1379,1384],{"type":993,"tag":1027,"props":1328,"children":1329},{"style":1042},[1330],{"type":999,"value":1331},"evens ",{"type":993,"tag":1027,"props":1333,"children":1334},{"style":1048},[1335],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1337,"children":1338},{"style":1059},[1339],{"type":999,"value":1340}," list",{"type":993,"tag":1027,"props":1342,"children":1343},{"style":1042},[1344],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1346,"children":1347},{"style":1059},[1348],{"type":999,"value":1349},"filter",{"type":993,"tag":1027,"props":1351,"children":1352},{"style":1042},[1353],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1355,"children":1356},{"style":1048},[1357],{"type":999,"value":1358},"lambda",{"type":993,"tag":1027,"props":1360,"children":1361},{"style":1042},[1362],{"type":999,"value":1363}," x: x ",{"type":993,"tag":1027,"props":1365,"children":1366},{"style":1048},[1367],{"type":999,"value":1368},"%",{"type":993,"tag":1027,"props":1370,"children":1371},{"style":1059},[1372],{"type":999,"value":1373}," 2",{"type":993,"tag":1027,"props":1375,"children":1376},{"style":1048},[1377],{"type":999,"value":1378}," ==",{"type":993,"tag":1027,"props":1380,"children":1381},{"style":1059},[1382],{"type":999,"value":1383}," 0",{"type":993,"tag":1027,"props":1385,"children":1386},{"style":1042},[1387],{"type":999,"value":1388},", numbers))\n",{"type":993,"tag":1027,"props":1390,"children":1391},{"class":1029,"line":118},[1392,1396,1400,1405],{"type":993,"tag":1027,"props":1393,"children":1394},{"style":1059},[1395],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1397,"children":1398},{"style":1042},[1399],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1401,"children":1402},{"style":1168},[1403],{"type":999,"value":1404},"\"Even numbers:\"",{"type":993,"tag":1027,"props":1406,"children":1407},{"style":1042},[1408],{"type":999,"value":1409},", evens)\n",{"type":993,"tag":1027,"props":1411,"children":1412},{"class":1029,"line":127},[1413],{"type":993,"tag":1027,"props":1414,"children":1415},{"emptyLinePlaceholder":13},[1416],{"type":999,"value":1210},{"type":993,"tag":1027,"props":1418,"children":1419},{"class":1029,"line":136},[1420,1425,1429,1433,1437,1442,1446,1451],{"type":993,"tag":1027,"props":1421,"children":1422},{"style":1042},[1423],{"type":999,"value":1424},"lengths ",{"type":993,"tag":1027,"props":1426,"children":1427},{"style":1048},[1428],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1430,"children":1431},{"style":1059},[1432],{"type":999,"value":1340},{"type":993,"tag":1027,"props":1434,"children":1435},{"style":1042},[1436],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1438,"children":1439},{"style":1059},[1440],{"type":999,"value":1441},"map",{"type":993,"tag":1027,"props":1443,"children":1444},{"style":1042},[1445],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1447,"children":1448},{"style":1059},[1449],{"type":999,"value":1450},"len",{"type":993,"tag":1027,"props":1452,"children":1453},{"style":1042},[1454],{"type":999,"value":1455},", words))\n",{"type":993,"tag":1027,"props":1457,"children":1458},{"class":1029,"line":146},[1459,1463,1467,1472],{"type":993,"tag":1027,"props":1460,"children":1461},{"style":1059},[1462],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1464,"children":1465},{"style":1042},[1466],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1468,"children":1469},{"style":1168},[1470],{"type":999,"value":1471},"\"Word lengths:\"",{"type":993,"tag":1027,"props":1473,"children":1474},{"style":1042},[1475],{"type":999,"value":1476},", lengths)\n",{"type":993,"tag":1027,"props":1478,"children":1479},{"class":1029,"line":155},[1480],{"type":993,"tag":1027,"props":1481,"children":1482},{"emptyLinePlaceholder":13},[1483],{"type":999,"value":1210},{"type":993,"tag":1027,"props":1485,"children":1486},{"class":1029,"line":164},[1487],{"type":993,"tag":1027,"props":1488,"children":1489},{"style":1033},[1490],{"type":999,"value":1491},"# Checking conditions\n",{"type":993,"tag":1027,"props":1493,"children":1494},{"class":1029,"line":173},[1495,1499,1503,1508,1512,1517,1522,1527,1531,1536,1541,1546],{"type":993,"tag":1027,"props":1496,"children":1497},{"style":1059},[1498],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1500,"children":1501},{"style":1042},[1502],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1504,"children":1505},{"style":1168},[1506],{"type":999,"value":1507},"\"All positive:\"",{"type":993,"tag":1027,"props":1509,"children":1510},{"style":1042},[1511],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1513,"children":1514},{"style":1059},[1515],{"type":999,"value":1516},"all",{"type":993,"tag":1027,"props":1518,"children":1519},{"style":1042},[1520],{"type":999,"value":1521},"(x ",{"type":993,"tag":1027,"props":1523,"children":1524},{"style":1048},[1525],{"type":999,"value":1526},">",{"type":993,"tag":1027,"props":1528,"children":1529},{"style":1059},[1530],{"type":999,"value":1383},{"type":993,"tag":1027,"props":1532,"children":1533},{"style":1048},[1534],{"type":999,"value":1535}," for",{"type":993,"tag":1027,"props":1537,"children":1538},{"style":1042},[1539],{"type":999,"value":1540}," x ",{"type":993,"tag":1027,"props":1542,"children":1543},{"style":1048},[1544],{"type":999,"value":1545},"in",{"type":993,"tag":1027,"props":1547,"children":1548},{"style":1042},[1549],{"type":999,"value":1550}," numbers))\n",{"type":993,"tag":1027,"props":1552,"children":1553},{"class":1029,"line":182},[1554,1558,1562,1567,1571,1576,1580,1584,1589,1593,1597,1601],{"type":993,"tag":1027,"props":1555,"children":1556},{"style":1059},[1557],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1559,"children":1560},{"style":1042},[1561],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1563,"children":1564},{"style":1168},[1565],{"type":999,"value":1566},"\"Any > 5:\"",{"type":993,"tag":1027,"props":1568,"children":1569},{"style":1042},[1570],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1572,"children":1573},{"style":1059},[1574],{"type":999,"value":1575},"any",{"type":993,"tag":1027,"props":1577,"children":1578},{"style":1042},[1579],{"type":999,"value":1521},{"type":993,"tag":1027,"props":1581,"children":1582},{"style":1048},[1583],{"type":999,"value":1526},{"type":993,"tag":1027,"props":1585,"children":1586},{"style":1059},[1587],{"type":999,"value":1588}," 5",{"type":993,"tag":1027,"props":1590,"children":1591},{"style":1048},[1592],{"type":999,"value":1535},{"type":993,"tag":1027,"props":1594,"children":1595},{"style":1042},[1596],{"type":999,"value":1540},{"type":993,"tag":1027,"props":1598,"children":1599},{"style":1048},[1600],{"type":999,"value":1545},{"type":993,"tag":1027,"props":1602,"children":1603},{"style":1042},[1604],{"type":999,"value":1550},{"type":993,"tag":1606,"props":1607,"children":1609},"h2",{"id":1608},"mathematical-functions",[1610],{"type":999,"value":1611},"🔢 Mathematical Functions",{"type":993,"tag":1002,"props":1613,"children":1614},{},[1615],{"type":999,"value":1616},"Python's built-in mathematical functions provide quick ways to perform calculations on numeric lists. These functions are optimized and handle edge cases automatically.",{"type":993,"tag":1618,"props":1619,"children":1623},"info-box",{"emoji":1620,"title":1621,"type":1622},"🔢","Mathematical Function Characteristics","info",[1624,1633,1682,1690,1713,1721],{"type":993,"tag":1002,"props":1625,"children":1626},{},[1627],{"type":993,"tag":1628,"props":1629,"children":1630},"strong",{},[1631],{"type":999,"value":1632},"Key Functions:",{"type":993,"tag":1634,"props":1635,"children":1636},"ul",{},[1637,1649,1660,1671],{"type":993,"tag":1638,"props":1639,"children":1640},"li",{},[1641,1647],{"type":993,"tag":1023,"props":1642,"children":1644},{"className":1643},[],[1645],{"type":999,"value":1646},"sum()",{"type":999,"value":1648},": Adds all numeric elements",{"type":993,"tag":1638,"props":1650,"children":1651},{},[1652,1658],{"type":993,"tag":1023,"props":1653,"children":1655},{"className":1654},[],[1656],{"type":999,"value":1657},"max()",{"type":999,"value":1659},": Finds largest element",{"type":993,"tag":1638,"props":1661,"children":1662},{},[1663,1669],{"type":993,"tag":1023,"props":1664,"children":1666},{"className":1665},[],[1667],{"type":999,"value":1668},"min()",{"type":999,"value":1670},": Finds smallest element",{"type":993,"tag":1638,"props":1672,"children":1673},{},[1674,1680],{"type":993,"tag":1023,"props":1675,"children":1677},{"className":1676},[],[1678],{"type":999,"value":1679},"len()",{"type":999,"value":1681},": Counts total elements",{"type":993,"tag":1002,"props":1683,"children":1684},{},[1685],{"type":993,"tag":1628,"props":1686,"children":1687},{},[1688],{"type":999,"value":1689},"Performance Benefits:",{"type":993,"tag":1634,"props":1691,"children":1692},{},[1693,1698,1703,1708],{"type":993,"tag":1638,"props":1694,"children":1695},{},[1696],{"type":999,"value":1697},"Implemented in C (very fast)",{"type":993,"tag":1638,"props":1699,"children":1700},{},[1701],{"type":999,"value":1702},"Handle edge cases automatically",{"type":993,"tag":1638,"props":1704,"children":1705},{},[1706],{"type":999,"value":1707},"Work with any numeric types",{"type":993,"tag":1638,"props":1709,"children":1710},{},[1711],{"type":999,"value":1712},"More efficient than manual loops",{"type":993,"tag":1002,"props":1714,"children":1715},{},[1716],{"type":993,"tag":1628,"props":1717,"children":1718},{},[1719],{"type":999,"value":1720},"Safety Features:",{"type":993,"tag":1634,"props":1722,"children":1723},{},[1724,1734],{"type":993,"tag":1638,"props":1725,"children":1726},{},[1727,1732],{"type":993,"tag":1023,"props":1728,"children":1730},{"className":1729},[],[1731],{"type":999,"value":1646},{"type":999,"value":1733}," returns 0 for empty lists",{"type":993,"tag":1638,"props":1735,"children":1736},{},[1737,1742,1744,1749],{"type":993,"tag":1023,"props":1738,"children":1740},{"className":1739},[],[1741],{"type":999,"value":1657},{"type":999,"value":1743},"/",{"type":993,"tag":1023,"props":1745,"children":1747},{"className":1746},[],[1748],{"type":999,"value":1668},{"type":999,"value":1750}," can take default parameter for empty lists",{"type":993,"tag":1752,"props":1753,"children":1755},"h3",{"id":1754},"basic-mathematical-operations",[1756],{"type":999,"value":1757},"Basic Mathematical Operations",{"type":993,"tag":1013,"props":1759,"children":1760},{},[1761],{"type":993,"tag":1017,"props":1762,"children":1764},{"className":1019,"code":1763,"language":6,"meta":8,"style":8},"# Basic mathematical functions\nscores = [85, 92, 78, 96, 88, 73, 91]\nprint(\"Scores:\", scores)\n\nprint(\"Sum:\", sum(scores))\nprint(\"Count:\", len(scores))\nprint(\"Average:\", sum(scores) / len(scores))\nprint(\"Maximum:\", max(scores))\nprint(\"Minimum:\", min(scores))\n",[1765],{"type":993,"tag":1023,"props":1766,"children":1767},{"__ignoreMap":8},[1768,1776,1855,1876,1883,1911,1939,1981,2009],{"type":993,"tag":1027,"props":1769,"children":1770},{"class":1029,"line":12},[1771],{"type":993,"tag":1027,"props":1772,"children":1773},{"style":1033},[1774],{"type":999,"value":1775},"# Basic mathematical functions\n",{"type":993,"tag":1027,"props":1777,"children":1778},{"class":1029,"line":27},[1779,1784,1788,1792,1797,1801,1806,1810,1815,1819,1824,1828,1833,1837,1842,1846,1851],{"type":993,"tag":1027,"props":1780,"children":1781},{"style":1042},[1782],{"type":999,"value":1783},"scores ",{"type":993,"tag":1027,"props":1785,"children":1786},{"style":1048},[1787],{"type":999,"value":1051},{"type":993,"tag":1027,"props":1789,"children":1790},{"style":1042},[1791],{"type":999,"value":1056},{"type":993,"tag":1027,"props":1793,"children":1794},{"style":1059},[1795],{"type":999,"value":1796},"85",{"type":993,"tag":1027,"props":1798,"children":1799},{"style":1042},[1800],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1802,"children":1803},{"style":1059},[1804],{"type":999,"value":1805},"92",{"type":993,"tag":1027,"props":1807,"children":1808},{"style":1042},[1809],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1811,"children":1812},{"style":1059},[1813],{"type":999,"value":1814},"78",{"type":993,"tag":1027,"props":1816,"children":1817},{"style":1042},[1818],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1820,"children":1821},{"style":1059},[1822],{"type":999,"value":1823},"96",{"type":993,"tag":1027,"props":1825,"children":1826},{"style":1042},[1827],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1829,"children":1830},{"style":1059},[1831],{"type":999,"value":1832},"88",{"type":993,"tag":1027,"props":1834,"children":1835},{"style":1042},[1836],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1838,"children":1839},{"style":1059},[1840],{"type":999,"value":1841},"73",{"type":993,"tag":1027,"props":1843,"children":1844},{"style":1042},[1845],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1847,"children":1848},{"style":1059},[1849],{"type":999,"value":1850},"91",{"type":993,"tag":1027,"props":1852,"children":1853},{"style":1042},[1854],{"type":999,"value":1149},{"type":993,"tag":1027,"props":1856,"children":1857},{"class":1029,"line":36},[1858,1862,1866,1871],{"type":993,"tag":1027,"props":1859,"children":1860},{"style":1059},[1861],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1863,"children":1864},{"style":1042},[1865],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1867,"children":1868},{"style":1168},[1869],{"type":999,"value":1870},"\"Scores:\"",{"type":993,"tag":1027,"props":1872,"children":1873},{"style":1042},[1874],{"type":999,"value":1875},", scores)\n",{"type":993,"tag":1027,"props":1877,"children":1878},{"class":1029,"line":45},[1879],{"type":993,"tag":1027,"props":1880,"children":1881},{"emptyLinePlaceholder":13},[1882],{"type":999,"value":1210},{"type":993,"tag":1027,"props":1884,"children":1885},{"class":1029,"line":54},[1886,1890,1894,1898,1902,1906],{"type":993,"tag":1027,"props":1887,"children":1888},{"style":1059},[1889],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1891,"children":1892},{"style":1042},[1893],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1895,"children":1896},{"style":1168},[1897],{"type":999,"value":1236},{"type":993,"tag":1027,"props":1899,"children":1900},{"style":1042},[1901],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1903,"children":1904},{"style":1059},[1905],{"type":999,"value":1245},{"type":993,"tag":1027,"props":1907,"children":1908},{"style":1042},[1909],{"type":999,"value":1910},"(scores))\n",{"type":993,"tag":1027,"props":1912,"children":1913},{"class":1029,"line":63},[1914,1918,1922,1927,1931,1935],{"type":993,"tag":1027,"props":1915,"children":1916},{"style":1059},[1917],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1919,"children":1920},{"style":1042},[1921],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1923,"children":1924},{"style":1168},[1925],{"type":999,"value":1926},"\"Count:\"",{"type":993,"tag":1027,"props":1928,"children":1929},{"style":1042},[1930],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1932,"children":1933},{"style":1059},[1934],{"type":999,"value":1450},{"type":993,"tag":1027,"props":1936,"children":1937},{"style":1042},[1938],{"type":999,"value":1910},{"type":993,"tag":1027,"props":1940,"children":1941},{"class":1029,"line":72},[1942,1946,1950,1955,1959,1963,1968,1972,1977],{"type":993,"tag":1027,"props":1943,"children":1944},{"style":1059},[1945],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1947,"children":1948},{"style":1042},[1949],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1951,"children":1952},{"style":1168},[1953],{"type":999,"value":1954},"\"Average:\"",{"type":993,"tag":1027,"props":1956,"children":1957},{"style":1042},[1958],{"type":999,"value":1067},{"type":993,"tag":1027,"props":1960,"children":1961},{"style":1059},[1962],{"type":999,"value":1245},{"type":993,"tag":1027,"props":1964,"children":1965},{"style":1042},[1966],{"type":999,"value":1967},"(scores) ",{"type":993,"tag":1027,"props":1969,"children":1970},{"style":1048},[1971],{"type":999,"value":1743},{"type":993,"tag":1027,"props":1973,"children":1974},{"style":1059},[1975],{"type":999,"value":1976}," len",{"type":993,"tag":1027,"props":1978,"children":1979},{"style":1042},[1980],{"type":999,"value":1910},{"type":993,"tag":1027,"props":1982,"children":1983},{"class":1029,"line":81},[1984,1988,1992,1997,2001,2005],{"type":993,"tag":1027,"props":1985,"children":1986},{"style":1059},[1987],{"type":999,"value":1226},{"type":993,"tag":1027,"props":1989,"children":1990},{"style":1042},[1991],{"type":999,"value":1231},{"type":993,"tag":1027,"props":1993,"children":1994},{"style":1168},[1995],{"type":999,"value":1996},"\"Maximum:\"",{"type":993,"tag":1027,"props":1998,"children":1999},{"style":1042},[2000],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2002,"children":2003},{"style":1059},[2004],{"type":999,"value":1275},{"type":993,"tag":1027,"props":2006,"children":2007},{"style":1042},[2008],{"type":999,"value":1910},{"type":993,"tag":1027,"props":2010,"children":2011},{"class":1029,"line":91},[2012,2016,2020,2025,2029,2033],{"type":993,"tag":1027,"props":2013,"children":2014},{"style":1059},[2015],{"type":999,"value":1226},{"type":993,"tag":1027,"props":2017,"children":2018},{"style":1042},[2019],{"type":999,"value":1231},{"type":993,"tag":1027,"props":2021,"children":2022},{"style":1168},[2023],{"type":999,"value":2024},"\"Minimum:\"",{"type":993,"tag":1027,"props":2026,"children":2027},{"style":1042},[2028],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2030,"children":2031},{"style":1059},[2032],{"type":999,"value":1304},{"type":993,"tag":1027,"props":2034,"children":2035},{"style":1042},[2036],{"type":999,"value":1910},{"type":993,"tag":1752,"props":2038,"children":2040},{"id":2039},"working-with-empty-lists",[2041],{"type":999,"value":2042},"Working with Empty Lists",{"type":993,"tag":1013,"props":2044,"children":2045},{},[2046],{"type":993,"tag":1017,"props":2047,"children":2049},{"className":1019,"code":2048,"language":6,"meta":8,"style":8},"# Handling empty lists safely\nempty_list = []\nnumbers = [5, 10, 15]\n\n# sum() works with empty lists\nprint(\"Sum of empty list:\", sum(empty_list))\n\n# max() and min() need default values for empty lists\nprint(\"Max with default:\", max(numbers, default=0))\nprint(\"Min with default:\", min(numbers, default=0))\n",[2050],{"type":993,"tag":1023,"props":2051,"children":2052},{"__ignoreMap":8},[2053,2061,2078,2118,2125,2133,2162,2169,2177,2226],{"type":993,"tag":1027,"props":2054,"children":2055},{"class":1029,"line":12},[2056],{"type":993,"tag":1027,"props":2057,"children":2058},{"style":1033},[2059],{"type":999,"value":2060},"# Handling empty lists safely\n",{"type":993,"tag":1027,"props":2062,"children":2063},{"class":1029,"line":27},[2064,2069,2073],{"type":993,"tag":1027,"props":2065,"children":2066},{"style":1042},[2067],{"type":999,"value":2068},"empty_list ",{"type":993,"tag":1027,"props":2070,"children":2071},{"style":1048},[2072],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2074,"children":2075},{"style":1042},[2076],{"type":999,"value":2077}," []\n",{"type":993,"tag":1027,"props":2079,"children":2080},{"class":1029,"line":36},[2081,2085,2089,2093,2097,2101,2105,2109,2114],{"type":993,"tag":1027,"props":2082,"children":2083},{"style":1042},[2084],{"type":999,"value":1045},{"type":993,"tag":1027,"props":2086,"children":2087},{"style":1048},[2088],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2090,"children":2091},{"style":1042},[2092],{"type":999,"value":1056},{"type":993,"tag":1027,"props":2094,"children":2095},{"style":1059},[2096],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2098,"children":2099},{"style":1042},[2100],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2102,"children":2103},{"style":1059},[2104],{"type":999,"value":1144},{"type":993,"tag":1027,"props":2106,"children":2107},{"style":1042},[2108],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2110,"children":2111},{"style":1059},[2112],{"type":999,"value":2113},"15",{"type":993,"tag":1027,"props":2115,"children":2116},{"style":1042},[2117],{"type":999,"value":1149},{"type":993,"tag":1027,"props":2119,"children":2120},{"class":1029,"line":45},[2121],{"type":993,"tag":1027,"props":2122,"children":2123},{"emptyLinePlaceholder":13},[2124],{"type":999,"value":1210},{"type":993,"tag":1027,"props":2126,"children":2127},{"class":1029,"line":54},[2128],{"type":993,"tag":1027,"props":2129,"children":2130},{"style":1033},[2131],{"type":999,"value":2132},"# sum() works with empty lists\n",{"type":993,"tag":1027,"props":2134,"children":2135},{"class":1029,"line":63},[2136,2140,2144,2149,2153,2157],{"type":993,"tag":1027,"props":2137,"children":2138},{"style":1059},[2139],{"type":999,"value":1226},{"type":993,"tag":1027,"props":2141,"children":2142},{"style":1042},[2143],{"type":999,"value":1231},{"type":993,"tag":1027,"props":2145,"children":2146},{"style":1168},[2147],{"type":999,"value":2148},"\"Sum of empty list:\"",{"type":993,"tag":1027,"props":2150,"children":2151},{"style":1042},[2152],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2154,"children":2155},{"style":1059},[2156],{"type":999,"value":1245},{"type":993,"tag":1027,"props":2158,"children":2159},{"style":1042},[2160],{"type":999,"value":2161},"(empty_list))\n",{"type":993,"tag":1027,"props":2163,"children":2164},{"class":1029,"line":72},[2165],{"type":993,"tag":1027,"props":2166,"children":2167},{"emptyLinePlaceholder":13},[2168],{"type":999,"value":1210},{"type":993,"tag":1027,"props":2170,"children":2171},{"class":1029,"line":81},[2172],{"type":993,"tag":1027,"props":2173,"children":2174},{"style":1033},[2175],{"type":999,"value":2176},"# max() and min() need default values for empty lists\n",{"type":993,"tag":1027,"props":2178,"children":2179},{"class":1029,"line":91},[2180,2184,2188,2193,2197,2201,2206,2212,2216,2221],{"type":993,"tag":1027,"props":2181,"children":2182},{"style":1059},[2183],{"type":999,"value":1226},{"type":993,"tag":1027,"props":2185,"children":2186},{"style":1042},[2187],{"type":999,"value":1231},{"type":993,"tag":1027,"props":2189,"children":2190},{"style":1168},[2191],{"type":999,"value":2192},"\"Max with default:\"",{"type":993,"tag":1027,"props":2194,"children":2195},{"style":1042},[2196],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2198,"children":2199},{"style":1059},[2200],{"type":999,"value":1275},{"type":993,"tag":1027,"props":2202,"children":2203},{"style":1042},[2204],{"type":999,"value":2205},"(numbers, ",{"type":993,"tag":1027,"props":2207,"children":2209},{"style":2208},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[2210],{"type":999,"value":2211},"default",{"type":993,"tag":1027,"props":2213,"children":2214},{"style":1048},[2215],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2217,"children":2218},{"style":1059},[2219],{"type":999,"value":2220},"0",{"type":993,"tag":1027,"props":2222,"children":2223},{"style":1042},[2224],{"type":999,"value":2225},"))\n",{"type":993,"tag":1027,"props":2227,"children":2228},{"class":1029,"line":100},[2229,2233,2237,2242,2246,2250,2254,2258,2262,2266],{"type":993,"tag":1027,"props":2230,"children":2231},{"style":1059},[2232],{"type":999,"value":1226},{"type":993,"tag":1027,"props":2234,"children":2235},{"style":1042},[2236],{"type":999,"value":1231},{"type":993,"tag":1027,"props":2238,"children":2239},{"style":1168},[2240],{"type":999,"value":2241},"\"Min with default:\"",{"type":993,"tag":1027,"props":2243,"children":2244},{"style":1042},[2245],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2247,"children":2248},{"style":1059},[2249],{"type":999,"value":1304},{"type":993,"tag":1027,"props":2251,"children":2252},{"style":1042},[2253],{"type":999,"value":2205},{"type":993,"tag":1027,"props":2255,"children":2256},{"style":2208},[2257],{"type":999,"value":2211},{"type":993,"tag":1027,"props":2259,"children":2260},{"style":1048},[2261],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2263,"children":2264},{"style":1059},[2265],{"type":999,"value":2220},{"type":993,"tag":1027,"props":2267,"children":2268},{"style":1042},[2269],{"type":999,"value":2225},{"type":993,"tag":1752,"props":2271,"children":2273},{"id":2272},"mathematical-operations-with-different-types",[2274],{"type":999,"value":2275},"Mathematical Operations with Different Types",{"type":993,"tag":1013,"props":2277,"children":2278},{},[2279],{"type":993,"tag":1017,"props":2280,"children":2282},{"className":1019,"code":2281,"language":6,"meta":8,"style":8},"# Working with different numeric types\nintegers = [1, 2, 3, 4, 5]\nfloats = [1.5, 2.7, 3.2, 4.8]\nmixed = [1, 2.5, 3, 4.7, 5]\n\nprint(\"Integer sum:\", sum(integers))\nprint(\"Float sum:\", sum(floats))\nprint(\"Mixed sum:\", sum(mixed))\nprint(\"Mixed max:\", max(mixed))\n",[2283],{"type":993,"tag":1023,"props":2284,"children":2285},{"__ignoreMap":8},[2286,2294,2350,2402,2460,2467,2496,2525,2554],{"type":993,"tag":1027,"props":2287,"children":2288},{"class":1029,"line":12},[2289],{"type":993,"tag":1027,"props":2290,"children":2291},{"style":1033},[2292],{"type":999,"value":2293},"# Working with different numeric types\n",{"type":993,"tag":1027,"props":2295,"children":2296},{"class":1029,"line":27},[2297,2302,2306,2310,2314,2318,2322,2326,2330,2334,2338,2342,2346],{"type":993,"tag":1027,"props":2298,"children":2299},{"style":1042},[2300],{"type":999,"value":2301},"integers ",{"type":993,"tag":1027,"props":2303,"children":2304},{"style":1048},[2305],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2307,"children":2308},{"style":1042},[2309],{"type":999,"value":1056},{"type":993,"tag":1027,"props":2311,"children":2312},{"style":1059},[2313],{"type":999,"value":1062},{"type":993,"tag":1027,"props":2315,"children":2316},{"style":1042},[2317],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2319,"children":2320},{"style":1059},[2321],{"type":999,"value":1072},{"type":993,"tag":1027,"props":2323,"children":2324},{"style":1042},[2325],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2327,"children":2328},{"style":1059},[2329],{"type":999,"value":1081},{"type":993,"tag":1027,"props":2331,"children":2332},{"style":1042},[2333],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2335,"children":2336},{"style":1059},[2337],{"type":999,"value":1090},{"type":993,"tag":1027,"props":2339,"children":2340},{"style":1042},[2341],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2343,"children":2344},{"style":1059},[2345],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2347,"children":2348},{"style":1042},[2349],{"type":999,"value":1149},{"type":993,"tag":1027,"props":2351,"children":2352},{"class":1029,"line":36},[2353,2358,2362,2366,2371,2375,2380,2384,2389,2393,2398],{"type":993,"tag":1027,"props":2354,"children":2355},{"style":1042},[2356],{"type":999,"value":2357},"floats ",{"type":993,"tag":1027,"props":2359,"children":2360},{"style":1048},[2361],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2363,"children":2364},{"style":1042},[2365],{"type":999,"value":1056},{"type":993,"tag":1027,"props":2367,"children":2368},{"style":1059},[2369],{"type":999,"value":2370},"1.5",{"type":993,"tag":1027,"props":2372,"children":2373},{"style":1042},[2374],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2376,"children":2377},{"style":1059},[2378],{"type":999,"value":2379},"2.7",{"type":993,"tag":1027,"props":2381,"children":2382},{"style":1042},[2383],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2385,"children":2386},{"style":1059},[2387],{"type":999,"value":2388},"3.2",{"type":993,"tag":1027,"props":2390,"children":2391},{"style":1042},[2392],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2394,"children":2395},{"style":1059},[2396],{"type":999,"value":2397},"4.8",{"type":993,"tag":1027,"props":2399,"children":2400},{"style":1042},[2401],{"type":999,"value":1149},{"type":993,"tag":1027,"props":2403,"children":2404},{"class":1029,"line":45},[2405,2410,2414,2418,2422,2426,2431,2435,2439,2443,2448,2452,2456],{"type":993,"tag":1027,"props":2406,"children":2407},{"style":1042},[2408],{"type":999,"value":2409},"mixed ",{"type":993,"tag":1027,"props":2411,"children":2412},{"style":1048},[2413],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2415,"children":2416},{"style":1042},[2417],{"type":999,"value":1056},{"type":993,"tag":1027,"props":2419,"children":2420},{"style":1059},[2421],{"type":999,"value":1062},{"type":993,"tag":1027,"props":2423,"children":2424},{"style":1042},[2425],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2427,"children":2428},{"style":1059},[2429],{"type":999,"value":2430},"2.5",{"type":993,"tag":1027,"props":2432,"children":2433},{"style":1042},[2434],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2436,"children":2437},{"style":1059},[2438],{"type":999,"value":1081},{"type":993,"tag":1027,"props":2440,"children":2441},{"style":1042},[2442],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2444,"children":2445},{"style":1059},[2446],{"type":999,"value":2447},"4.7",{"type":993,"tag":1027,"props":2449,"children":2450},{"style":1042},[2451],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2453,"children":2454},{"style":1059},[2455],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2457,"children":2458},{"style":1042},[2459],{"type":999,"value":1149},{"type":993,"tag":1027,"props":2461,"children":2462},{"class":1029,"line":54},[2463],{"type":993,"tag":1027,"props":2464,"children":2465},{"emptyLinePlaceholder":13},[2466],{"type":999,"value":1210},{"type":993,"tag":1027,"props":2468,"children":2469},{"class":1029,"line":63},[2470,2474,2478,2483,2487,2491],{"type":993,"tag":1027,"props":2471,"children":2472},{"style":1059},[2473],{"type":999,"value":1226},{"type":993,"tag":1027,"props":2475,"children":2476},{"style":1042},[2477],{"type":999,"value":1231},{"type":993,"tag":1027,"props":2479,"children":2480},{"style":1168},[2481],{"type":999,"value":2482},"\"Integer sum:\"",{"type":993,"tag":1027,"props":2484,"children":2485},{"style":1042},[2486],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2488,"children":2489},{"style":1059},[2490],{"type":999,"value":1245},{"type":993,"tag":1027,"props":2492,"children":2493},{"style":1042},[2494],{"type":999,"value":2495},"(integers))\n",{"type":993,"tag":1027,"props":2497,"children":2498},{"class":1029,"line":72},[2499,2503,2507,2512,2516,2520],{"type":993,"tag":1027,"props":2500,"children":2501},{"style":1059},[2502],{"type":999,"value":1226},{"type":993,"tag":1027,"props":2504,"children":2505},{"style":1042},[2506],{"type":999,"value":1231},{"type":993,"tag":1027,"props":2508,"children":2509},{"style":1168},[2510],{"type":999,"value":2511},"\"Float sum:\"",{"type":993,"tag":1027,"props":2513,"children":2514},{"style":1042},[2515],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2517,"children":2518},{"style":1059},[2519],{"type":999,"value":1245},{"type":993,"tag":1027,"props":2521,"children":2522},{"style":1042},[2523],{"type":999,"value":2524},"(floats))\n",{"type":993,"tag":1027,"props":2526,"children":2527},{"class":1029,"line":81},[2528,2532,2536,2541,2545,2549],{"type":993,"tag":1027,"props":2529,"children":2530},{"style":1059},[2531],{"type":999,"value":1226},{"type":993,"tag":1027,"props":2533,"children":2534},{"style":1042},[2535],{"type":999,"value":1231},{"type":993,"tag":1027,"props":2537,"children":2538},{"style":1168},[2539],{"type":999,"value":2540},"\"Mixed sum:\"",{"type":993,"tag":1027,"props":2542,"children":2543},{"style":1042},[2544],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2546,"children":2547},{"style":1059},[2548],{"type":999,"value":1245},{"type":993,"tag":1027,"props":2550,"children":2551},{"style":1042},[2552],{"type":999,"value":2553},"(mixed))\n",{"type":993,"tag":1027,"props":2555,"children":2556},{"class":1029,"line":91},[2557,2561,2565,2570,2574,2578],{"type":993,"tag":1027,"props":2558,"children":2559},{"style":1059},[2560],{"type":999,"value":1226},{"type":993,"tag":1027,"props":2562,"children":2563},{"style":1042},[2564],{"type":999,"value":1231},{"type":993,"tag":1027,"props":2566,"children":2567},{"style":1168},[2568],{"type":999,"value":2569},"\"Mixed max:\"",{"type":993,"tag":1027,"props":2571,"children":2572},{"style":1042},[2573],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2575,"children":2576},{"style":1059},[2577],{"type":999,"value":1275},{"type":993,"tag":1027,"props":2579,"children":2580},{"style":1042},[2581],{"type":999,"value":2553},{"type":993,"tag":1606,"props":2583,"children":2585},{"id":2584},"filtering-with-filter",[2586],{"type":999,"value":2587},"🔍 Filtering with filter()",{"type":993,"tag":1002,"props":2589,"children":2590},{},[2591,2593,2599],{"type":999,"value":2592},"The ",{"type":993,"tag":1023,"props":2594,"children":2596},{"className":2595},[],[2597],{"type":999,"value":2598},"filter()",{"type":999,"value":2600}," function creates an iterator containing elements that pass a test function. It's a functional programming approach to selecting specific items from lists.",{"type":993,"tag":1618,"props":2602,"children":2606},{"emoji":2603,"title":2604,"type":2605},"🔍","filter() Function Guide","success",[2607,2615,2646,2654,2672,2680],{"type":993,"tag":1002,"props":2608,"children":2609},{},[2610],{"type":993,"tag":1628,"props":2611,"children":2612},{},[2613],{"type":999,"value":2614},"How filter() Works:",{"type":993,"tag":1634,"props":2616,"children":2617},{},[2618,2623,2628,2633],{"type":993,"tag":1638,"props":2619,"children":2620},{},[2621],{"type":999,"value":2622},"Applies test function to each element",{"type":993,"tag":1638,"props":2624,"children":2625},{},[2626],{"type":999,"value":2627},"Returns iterator of elements that pass test",{"type":993,"tag":1638,"props":2629,"children":2630},{},[2631],{"type":999,"value":2632},"Lazy evaluation (memory efficient)",{"type":993,"tag":1638,"props":2634,"children":2635},{},[2636,2638,2644],{"type":999,"value":2637},"Use ",{"type":993,"tag":1023,"props":2639,"children":2641},{"className":2640},[],[2642],{"type":999,"value":2643},"list(filter(...))",{"type":999,"value":2645}," to get actual list",{"type":993,"tag":1002,"props":2647,"children":2648},{},[2649],{"type":993,"tag":1628,"props":2650,"children":2651},{},[2652],{"type":999,"value":2653},"Function Requirements:",{"type":993,"tag":1634,"props":2655,"children":2656},{},[2657,2662,2667],{"type":993,"tag":1638,"props":2658,"children":2659},{},[2660],{"type":999,"value":2661},"Test function must return True/False",{"type":993,"tag":1638,"props":2663,"children":2664},{},[2665],{"type":999,"value":2666},"Can use lambda functions or named functions",{"type":993,"tag":1638,"props":2668,"children":2669},{},[2670],{"type":999,"value":2671},"None as function filters truthy values",{"type":993,"tag":1002,"props":2673,"children":2674},{},[2675],{"type":993,"tag":1628,"props":2676,"children":2677},{},[2678],{"type":999,"value":2679},"Common Patterns:",{"type":993,"tag":1634,"props":2681,"children":2682},{},[2683,2694],{"type":993,"tag":1638,"props":2684,"children":2685},{},[2686,2688],{"type":999,"value":2687},"Numeric filtering: ",{"type":993,"tag":1023,"props":2689,"children":2691},{"className":2690},[],[2692],{"type":999,"value":2693},"filter(lambda x: x > 0, numbers)",{"type":993,"tag":1638,"props":2695,"children":2696},{},[2697,2699],{"type":999,"value":2698},"String filtering: ",{"type":993,"tag":1023,"props":2700,"children":2702},{"className":2701},[],[2703],{"type":999,"value":2704},"filter(lambda s: len(s) > 3, words)",{"type":993,"tag":1752,"props":2706,"children":2708},{"id":2707},"basic-filtering",[2709],{"type":999,"value":2710},"Basic Filtering",{"type":993,"tag":1013,"props":2712,"children":2713},{},[2714],{"type":993,"tag":1017,"props":2715,"children":2717},{"className":1019,"code":2716,"language":6,"meta":8,"style":8},"# Basic filtering with filter()\nnumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n\n# Filter even numbers\ndef is_even(x):\n    return x % 2 == 0\n\nevens = list(filter(is_even, numbers))\nprint(\"Even numbers:\", evens)\n",[2718],{"type":993,"tag":1023,"props":2719,"children":2720},{"__ignoreMap":8},[2721,2729,2824,2831,2839,2858,2887,2894,2922],{"type":993,"tag":1027,"props":2722,"children":2723},{"class":1029,"line":12},[2724],{"type":993,"tag":1027,"props":2725,"children":2726},{"style":1033},[2727],{"type":999,"value":2728},"# Basic filtering with filter()\n",{"type":993,"tag":1027,"props":2730,"children":2731},{"class":1029,"line":27},[2732,2736,2740,2744,2748,2752,2756,2760,2764,2768,2772,2776,2780,2784,2788,2792,2796,2800,2804,2808,2812,2816,2820],{"type":993,"tag":1027,"props":2733,"children":2734},{"style":1042},[2735],{"type":999,"value":1045},{"type":993,"tag":1027,"props":2737,"children":2738},{"style":1048},[2739],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2741,"children":2742},{"style":1042},[2743],{"type":999,"value":1056},{"type":993,"tag":1027,"props":2745,"children":2746},{"style":1059},[2747],{"type":999,"value":1062},{"type":993,"tag":1027,"props":2749,"children":2750},{"style":1042},[2751],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2753,"children":2754},{"style":1059},[2755],{"type":999,"value":1072},{"type":993,"tag":1027,"props":2757,"children":2758},{"style":1042},[2759],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2761,"children":2762},{"style":1059},[2763],{"type":999,"value":1081},{"type":993,"tag":1027,"props":2765,"children":2766},{"style":1042},[2767],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2769,"children":2770},{"style":1059},[2771],{"type":999,"value":1090},{"type":993,"tag":1027,"props":2773,"children":2774},{"style":1042},[2775],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2777,"children":2778},{"style":1059},[2779],{"type":999,"value":1099},{"type":993,"tag":1027,"props":2781,"children":2782},{"style":1042},[2783],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2785,"children":2786},{"style":1059},[2787],{"type":999,"value":1108},{"type":993,"tag":1027,"props":2789,"children":2790},{"style":1042},[2791],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2793,"children":2794},{"style":1059},[2795],{"type":999,"value":1117},{"type":993,"tag":1027,"props":2797,"children":2798},{"style":1042},[2799],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2801,"children":2802},{"style":1059},[2803],{"type":999,"value":1126},{"type":993,"tag":1027,"props":2805,"children":2806},{"style":1042},[2807],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2809,"children":2810},{"style":1059},[2811],{"type":999,"value":1135},{"type":993,"tag":1027,"props":2813,"children":2814},{"style":1042},[2815],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2817,"children":2818},{"style":1059},[2819],{"type":999,"value":1144},{"type":993,"tag":1027,"props":2821,"children":2822},{"style":1042},[2823],{"type":999,"value":1149},{"type":993,"tag":1027,"props":2825,"children":2826},{"class":1029,"line":36},[2827],{"type":993,"tag":1027,"props":2828,"children":2829},{"emptyLinePlaceholder":13},[2830],{"type":999,"value":1210},{"type":993,"tag":1027,"props":2832,"children":2833},{"class":1029,"line":45},[2834],{"type":993,"tag":1027,"props":2835,"children":2836},{"style":1033},[2837],{"type":999,"value":2838},"# Filter even numbers\n",{"type":993,"tag":1027,"props":2840,"children":2841},{"class":1029,"line":54},[2842,2847,2853],{"type":993,"tag":1027,"props":2843,"children":2844},{"style":1048},[2845],{"type":999,"value":2846},"def",{"type":993,"tag":1027,"props":2848,"children":2850},{"style":2849},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[2851],{"type":999,"value":2852}," is_even",{"type":993,"tag":1027,"props":2854,"children":2855},{"style":1042},[2856],{"type":999,"value":2857},"(x):\n",{"type":993,"tag":1027,"props":2859,"children":2860},{"class":1029,"line":63},[2861,2866,2870,2874,2878,2882],{"type":993,"tag":1027,"props":2862,"children":2863},{"style":1048},[2864],{"type":999,"value":2865},"    return",{"type":993,"tag":1027,"props":2867,"children":2868},{"style":1042},[2869],{"type":999,"value":1540},{"type":993,"tag":1027,"props":2871,"children":2872},{"style":1048},[2873],{"type":999,"value":1368},{"type":993,"tag":1027,"props":2875,"children":2876},{"style":1059},[2877],{"type":999,"value":1373},{"type":993,"tag":1027,"props":2879,"children":2880},{"style":1048},[2881],{"type":999,"value":1378},{"type":993,"tag":1027,"props":2883,"children":2884},{"style":1059},[2885],{"type":999,"value":2886}," 0\n",{"type":993,"tag":1027,"props":2888,"children":2889},{"class":1029,"line":72},[2890],{"type":993,"tag":1027,"props":2891,"children":2892},{"emptyLinePlaceholder":13},[2893],{"type":999,"value":1210},{"type":993,"tag":1027,"props":2895,"children":2896},{"class":1029,"line":81},[2897,2901,2905,2909,2913,2917],{"type":993,"tag":1027,"props":2898,"children":2899},{"style":1042},[2900],{"type":999,"value":1331},{"type":993,"tag":1027,"props":2902,"children":2903},{"style":1048},[2904],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2906,"children":2907},{"style":1059},[2908],{"type":999,"value":1340},{"type":993,"tag":1027,"props":2910,"children":2911},{"style":1042},[2912],{"type":999,"value":1231},{"type":993,"tag":1027,"props":2914,"children":2915},{"style":1059},[2916],{"type":999,"value":1349},{"type":993,"tag":1027,"props":2918,"children":2919},{"style":1042},[2920],{"type":999,"value":2921},"(is_even, numbers))\n",{"type":993,"tag":1027,"props":2923,"children":2924},{"class":1029,"line":91},[2925,2929,2933,2937],{"type":993,"tag":1027,"props":2926,"children":2927},{"style":1059},[2928],{"type":999,"value":1226},{"type":993,"tag":1027,"props":2930,"children":2931},{"style":1042},[2932],{"type":999,"value":1231},{"type":993,"tag":1027,"props":2934,"children":2935},{"style":1168},[2936],{"type":999,"value":1404},{"type":993,"tag":1027,"props":2938,"children":2939},{"style":1042},[2940],{"type":999,"value":1409},{"type":993,"tag":1752,"props":2942,"children":2944},{"id":2943},"using-lambda-functions",[2945],{"type":999,"value":2946},"Using Lambda Functions",{"type":993,"tag":1013,"props":2948,"children":2949},{},[2950],{"type":993,"tag":1017,"props":2951,"children":2953},{"className":1019,"code":2952,"language":6,"meta":8,"style":8},"# Filtering with lambda functions\nnumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\n\n# 5 Filter numbers greater than\ngreater_than_5 = list(filter(lambda x: x > 5, numbers))\nprint(\"Numbers > 5:\", greater_than_5)\n\n# Filter odd numbers\nodds = list(filter(lambda x: x % 2 == 1, numbers))\nprint(\"Odd numbers:\", odds)\n",[2954],{"type":993,"tag":1023,"props":2955,"children":2956},{"__ignoreMap":8},[2957,2965,3060,3067,3075,3123,3144,3151,3159,3216],{"type":993,"tag":1027,"props":2958,"children":2959},{"class":1029,"line":12},[2960],{"type":993,"tag":1027,"props":2961,"children":2962},{"style":1033},[2963],{"type":999,"value":2964},"# Filtering with lambda functions\n",{"type":993,"tag":1027,"props":2966,"children":2967},{"class":1029,"line":27},[2968,2972,2976,2980,2984,2988,2992,2996,3000,3004,3008,3012,3016,3020,3024,3028,3032,3036,3040,3044,3048,3052,3056],{"type":993,"tag":1027,"props":2969,"children":2970},{"style":1042},[2971],{"type":999,"value":1045},{"type":993,"tag":1027,"props":2973,"children":2974},{"style":1048},[2975],{"type":999,"value":1051},{"type":993,"tag":1027,"props":2977,"children":2978},{"style":1042},[2979],{"type":999,"value":1056},{"type":993,"tag":1027,"props":2981,"children":2982},{"style":1059},[2983],{"type":999,"value":1062},{"type":993,"tag":1027,"props":2985,"children":2986},{"style":1042},[2987],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2989,"children":2990},{"style":1059},[2991],{"type":999,"value":1072},{"type":993,"tag":1027,"props":2993,"children":2994},{"style":1042},[2995],{"type":999,"value":1067},{"type":993,"tag":1027,"props":2997,"children":2998},{"style":1059},[2999],{"type":999,"value":1081},{"type":993,"tag":1027,"props":3001,"children":3002},{"style":1042},[3003],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3005,"children":3006},{"style":1059},[3007],{"type":999,"value":1090},{"type":993,"tag":1027,"props":3009,"children":3010},{"style":1042},[3011],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3013,"children":3014},{"style":1059},[3015],{"type":999,"value":1099},{"type":993,"tag":1027,"props":3017,"children":3018},{"style":1042},[3019],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3021,"children":3022},{"style":1059},[3023],{"type":999,"value":1108},{"type":993,"tag":1027,"props":3025,"children":3026},{"style":1042},[3027],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3029,"children":3030},{"style":1059},[3031],{"type":999,"value":1117},{"type":993,"tag":1027,"props":3033,"children":3034},{"style":1042},[3035],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3037,"children":3038},{"style":1059},[3039],{"type":999,"value":1126},{"type":993,"tag":1027,"props":3041,"children":3042},{"style":1042},[3043],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3045,"children":3046},{"style":1059},[3047],{"type":999,"value":1135},{"type":993,"tag":1027,"props":3049,"children":3050},{"style":1042},[3051],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3053,"children":3054},{"style":1059},[3055],{"type":999,"value":1144},{"type":993,"tag":1027,"props":3057,"children":3058},{"style":1042},[3059],{"type":999,"value":1149},{"type":993,"tag":1027,"props":3061,"children":3062},{"class":1029,"line":36},[3063],{"type":993,"tag":1027,"props":3064,"children":3065},{"emptyLinePlaceholder":13},[3066],{"type":999,"value":1210},{"type":993,"tag":1027,"props":3068,"children":3069},{"class":1029,"line":45},[3070],{"type":993,"tag":1027,"props":3071,"children":3072},{"style":1033},[3073],{"type":999,"value":3074},"# 5 Filter numbers greater than\n",{"type":993,"tag":1027,"props":3076,"children":3077},{"class":1029,"line":54},[3078,3083,3087,3091,3095,3099,3103,3107,3111,3115,3119],{"type":993,"tag":1027,"props":3079,"children":3080},{"style":1042},[3081],{"type":999,"value":3082},"greater_than_5 ",{"type":993,"tag":1027,"props":3084,"children":3085},{"style":1048},[3086],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3088,"children":3089},{"style":1059},[3090],{"type":999,"value":1340},{"type":993,"tag":1027,"props":3092,"children":3093},{"style":1042},[3094],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3096,"children":3097},{"style":1059},[3098],{"type":999,"value":1349},{"type":993,"tag":1027,"props":3100,"children":3101},{"style":1042},[3102],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3104,"children":3105},{"style":1048},[3106],{"type":999,"value":1358},{"type":993,"tag":1027,"props":3108,"children":3109},{"style":1042},[3110],{"type":999,"value":1363},{"type":993,"tag":1027,"props":3112,"children":3113},{"style":1048},[3114],{"type":999,"value":1526},{"type":993,"tag":1027,"props":3116,"children":3117},{"style":1059},[3118],{"type":999,"value":1588},{"type":993,"tag":1027,"props":3120,"children":3121},{"style":1042},[3122],{"type":999,"value":1388},{"type":993,"tag":1027,"props":3124,"children":3125},{"class":1029,"line":63},[3126,3130,3134,3139],{"type":993,"tag":1027,"props":3127,"children":3128},{"style":1059},[3129],{"type":999,"value":1226},{"type":993,"tag":1027,"props":3131,"children":3132},{"style":1042},[3133],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3135,"children":3136},{"style":1168},[3137],{"type":999,"value":3138},"\"Numbers > 5:\"",{"type":993,"tag":1027,"props":3140,"children":3141},{"style":1042},[3142],{"type":999,"value":3143},", greater_than_5)\n",{"type":993,"tag":1027,"props":3145,"children":3146},{"class":1029,"line":72},[3147],{"type":993,"tag":1027,"props":3148,"children":3149},{"emptyLinePlaceholder":13},[3150],{"type":999,"value":1210},{"type":993,"tag":1027,"props":3152,"children":3153},{"class":1029,"line":81},[3154],{"type":993,"tag":1027,"props":3155,"children":3156},{"style":1033},[3157],{"type":999,"value":3158},"# Filter odd numbers\n",{"type":993,"tag":1027,"props":3160,"children":3161},{"class":1029,"line":91},[3162,3167,3171,3175,3179,3183,3187,3191,3195,3199,3203,3207,3212],{"type":993,"tag":1027,"props":3163,"children":3164},{"style":1042},[3165],{"type":999,"value":3166},"odds ",{"type":993,"tag":1027,"props":3168,"children":3169},{"style":1048},[3170],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3172,"children":3173},{"style":1059},[3174],{"type":999,"value":1340},{"type":993,"tag":1027,"props":3176,"children":3177},{"style":1042},[3178],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3180,"children":3181},{"style":1059},[3182],{"type":999,"value":1349},{"type":993,"tag":1027,"props":3184,"children":3185},{"style":1042},[3186],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3188,"children":3189},{"style":1048},[3190],{"type":999,"value":1358},{"type":993,"tag":1027,"props":3192,"children":3193},{"style":1042},[3194],{"type":999,"value":1363},{"type":993,"tag":1027,"props":3196,"children":3197},{"style":1048},[3198],{"type":999,"value":1368},{"type":993,"tag":1027,"props":3200,"children":3201},{"style":1059},[3202],{"type":999,"value":1373},{"type":993,"tag":1027,"props":3204,"children":3205},{"style":1048},[3206],{"type":999,"value":1378},{"type":993,"tag":1027,"props":3208,"children":3209},{"style":1059},[3210],{"type":999,"value":3211}," 1",{"type":993,"tag":1027,"props":3213,"children":3214},{"style":1042},[3215],{"type":999,"value":1388},{"type":993,"tag":1027,"props":3217,"children":3218},{"class":1029,"line":100},[3219,3223,3227,3232],{"type":993,"tag":1027,"props":3220,"children":3221},{"style":1059},[3222],{"type":999,"value":1226},{"type":993,"tag":1027,"props":3224,"children":3225},{"style":1042},[3226],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3228,"children":3229},{"style":1168},[3230],{"type":999,"value":3231},"\"Odd numbers:\"",{"type":993,"tag":1027,"props":3233,"children":3234},{"style":1042},[3235],{"type":999,"value":3236},", odds)\n",{"type":993,"tag":1752,"props":3238,"children":3240},{"id":3239},"filtering-strings",[3241],{"type":999,"value":3242},"Filtering Strings",{"type":993,"tag":1013,"props":3244,"children":3245},{},[3246],{"type":993,"tag":1017,"props":3247,"children":3249},{"className":1019,"code":3248,"language":6,"meta":8,"style":8},"# Filtering strings\nwords = [\"apple\", \"banana\", \"cherry\", \"date\", \"elderberry\"]\n\n# Filter words longer than 5 characters\nlong_words = list(filter(lambda word: len(word) > 5, words))\nprint(\"Long words:\", long_words)\n\n# Filter words starting with specific letter\na_words = list(filter(lambda word: word.startswith('a'), words))\nprint(\"Words starting with 'a':\", a_words)\n",[3250],{"type":993,"tag":1023,"props":3251,"children":3252},{"__ignoreMap":8},[3253,3261,3317,3324,3332,3390,3411,3418,3426,3473],{"type":993,"tag":1027,"props":3254,"children":3255},{"class":1029,"line":12},[3256],{"type":993,"tag":1027,"props":3257,"children":3258},{"style":1033},[3259],{"type":999,"value":3260},"# Filtering strings\n",{"type":993,"tag":1027,"props":3262,"children":3263},{"class":1029,"line":27},[3264,3268,3272,3276,3280,3284,3288,3292,3296,3300,3304,3308,3313],{"type":993,"tag":1027,"props":3265,"children":3266},{"style":1042},[3267],{"type":999,"value":1157},{"type":993,"tag":1027,"props":3269,"children":3270},{"style":1048},[3271],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3273,"children":3274},{"style":1042},[3275],{"type":999,"value":1056},{"type":993,"tag":1027,"props":3277,"children":3278},{"style":1168},[3279],{"type":999,"value":1171},{"type":993,"tag":1027,"props":3281,"children":3282},{"style":1042},[3283],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3285,"children":3286},{"style":1168},[3287],{"type":999,"value":1180},{"type":993,"tag":1027,"props":3289,"children":3290},{"style":1042},[3291],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3293,"children":3294},{"style":1168},[3295],{"type":999,"value":1189},{"type":993,"tag":1027,"props":3297,"children":3298},{"style":1042},[3299],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3301,"children":3302},{"style":1168},[3303],{"type":999,"value":1198},{"type":993,"tag":1027,"props":3305,"children":3306},{"style":1042},[3307],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3309,"children":3310},{"style":1168},[3311],{"type":999,"value":3312},"\"elderberry\"",{"type":993,"tag":1027,"props":3314,"children":3315},{"style":1042},[3316],{"type":999,"value":1149},{"type":993,"tag":1027,"props":3318,"children":3319},{"class":1029,"line":36},[3320],{"type":993,"tag":1027,"props":3321,"children":3322},{"emptyLinePlaceholder":13},[3323],{"type":999,"value":1210},{"type":993,"tag":1027,"props":3325,"children":3326},{"class":1029,"line":45},[3327],{"type":993,"tag":1027,"props":3328,"children":3329},{"style":1033},[3330],{"type":999,"value":3331},"# Filter words longer than 5 characters\n",{"type":993,"tag":1027,"props":3333,"children":3334},{"class":1029,"line":54},[3335,3340,3344,3348,3352,3356,3360,3364,3369,3373,3378,3382,3386],{"type":993,"tag":1027,"props":3336,"children":3337},{"style":1042},[3338],{"type":999,"value":3339},"long_words ",{"type":993,"tag":1027,"props":3341,"children":3342},{"style":1048},[3343],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3345,"children":3346},{"style":1059},[3347],{"type":999,"value":1340},{"type":993,"tag":1027,"props":3349,"children":3350},{"style":1042},[3351],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3353,"children":3354},{"style":1059},[3355],{"type":999,"value":1349},{"type":993,"tag":1027,"props":3357,"children":3358},{"style":1042},[3359],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3361,"children":3362},{"style":1048},[3363],{"type":999,"value":1358},{"type":993,"tag":1027,"props":3365,"children":3366},{"style":1042},[3367],{"type":999,"value":3368}," word: ",{"type":993,"tag":1027,"props":3370,"children":3371},{"style":1059},[3372],{"type":999,"value":1450},{"type":993,"tag":1027,"props":3374,"children":3375},{"style":1042},[3376],{"type":999,"value":3377},"(word) ",{"type":993,"tag":1027,"props":3379,"children":3380},{"style":1048},[3381],{"type":999,"value":1526},{"type":993,"tag":1027,"props":3383,"children":3384},{"style":1059},[3385],{"type":999,"value":1588},{"type":993,"tag":1027,"props":3387,"children":3388},{"style":1042},[3389],{"type":999,"value":1455},{"type":993,"tag":1027,"props":3391,"children":3392},{"class":1029,"line":63},[3393,3397,3401,3406],{"type":993,"tag":1027,"props":3394,"children":3395},{"style":1059},[3396],{"type":999,"value":1226},{"type":993,"tag":1027,"props":3398,"children":3399},{"style":1042},[3400],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3402,"children":3403},{"style":1168},[3404],{"type":999,"value":3405},"\"Long words:\"",{"type":993,"tag":1027,"props":3407,"children":3408},{"style":1042},[3409],{"type":999,"value":3410},", long_words)\n",{"type":993,"tag":1027,"props":3412,"children":3413},{"class":1029,"line":72},[3414],{"type":993,"tag":1027,"props":3415,"children":3416},{"emptyLinePlaceholder":13},[3417],{"type":999,"value":1210},{"type":993,"tag":1027,"props":3419,"children":3420},{"class":1029,"line":81},[3421],{"type":993,"tag":1027,"props":3422,"children":3423},{"style":1033},[3424],{"type":999,"value":3425},"# Filter words starting with specific letter\n",{"type":993,"tag":1027,"props":3427,"children":3428},{"class":1029,"line":91},[3429,3434,3438,3442,3446,3450,3454,3458,3463,3468],{"type":993,"tag":1027,"props":3430,"children":3431},{"style":1042},[3432],{"type":999,"value":3433},"a_words ",{"type":993,"tag":1027,"props":3435,"children":3436},{"style":1048},[3437],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3439,"children":3440},{"style":1059},[3441],{"type":999,"value":1340},{"type":993,"tag":1027,"props":3443,"children":3444},{"style":1042},[3445],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3447,"children":3448},{"style":1059},[3449],{"type":999,"value":1349},{"type":993,"tag":1027,"props":3451,"children":3452},{"style":1042},[3453],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3455,"children":3456},{"style":1048},[3457],{"type":999,"value":1358},{"type":993,"tag":1027,"props":3459,"children":3460},{"style":1042},[3461],{"type":999,"value":3462}," word: word.startswith(",{"type":993,"tag":1027,"props":3464,"children":3465},{"style":1168},[3466],{"type":999,"value":3467},"'a'",{"type":993,"tag":1027,"props":3469,"children":3470},{"style":1042},[3471],{"type":999,"value":3472},"), words))\n",{"type":993,"tag":1027,"props":3474,"children":3475},{"class":1029,"line":100},[3476,3480,3484,3489],{"type":993,"tag":1027,"props":3477,"children":3478},{"style":1059},[3479],{"type":999,"value":1226},{"type":993,"tag":1027,"props":3481,"children":3482},{"style":1042},[3483],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3485,"children":3486},{"style":1168},[3487],{"type":999,"value":3488},"\"Words starting with 'a':\"",{"type":993,"tag":1027,"props":3490,"children":3491},{"style":1042},[3492],{"type":999,"value":3493},", a_words)\n",{"type":993,"tag":3495,"props":3496,"children":3498},"content-exercise",{":widget-view":3497,"category":6,"id":364},"true",[],{"type":993,"tag":1606,"props":3500,"children":3502},{"id":3501},"️-transforming-with-map",[3503],{"type":999,"value":3504},"🗺️ Transforming with map()",{"type":993,"tag":1002,"props":3506,"children":3507},{},[3508,3509,3515],{"type":999,"value":2592},{"type":993,"tag":1023,"props":3510,"children":3512},{"className":3511},[],[3513],{"type":999,"value":3514},"map()",{"type":999,"value":3516}," function applies a function to every item in a list, creating a new iterator with the transformed results. It's essential for data transformation and processing.",{"type":993,"tag":1618,"props":3518,"children":3521},{"emoji":3519,"title":3520,"type":1622},"🗺️","map() Function Capabilities",[3522,3530,3559,3567,3614],{"type":993,"tag":1002,"props":3523,"children":3524},{},[3525],{"type":993,"tag":1628,"props":3526,"children":3527},{},[3528],{"type":999,"value":3529},"How map() Works:",{"type":993,"tag":1634,"props":3531,"children":3532},{},[3533,3538,3543,3548],{"type":993,"tag":1638,"props":3534,"children":3535},{},[3536],{"type":999,"value":3537},"Applies function to every element",{"type":993,"tag":1638,"props":3539,"children":3540},{},[3541],{"type":999,"value":3542},"Returns iterator of transformed results",{"type":993,"tag":1638,"props":3544,"children":3545},{},[3546],{"type":999,"value":3547},"Lazy evaluation for memory efficiency",{"type":993,"tag":1638,"props":3549,"children":3550},{},[3551,3552,3558],{"type":999,"value":2637},{"type":993,"tag":1023,"props":3553,"children":3555},{"className":3554},[],[3556],{"type":999,"value":3557},"list(map(...))",{"type":999,"value":2645},{"type":993,"tag":1002,"props":3560,"children":3561},{},[3562],{"type":993,"tag":1628,"props":3563,"children":3564},{},[3565],{"type":999,"value":3566},"Transformation Types:",{"type":993,"tag":1634,"props":3568,"children":3569},{},[3570,3581,3592,3603],{"type":993,"tag":1638,"props":3571,"children":3572},{},[3573,3575],{"type":999,"value":3574},"Type conversion: ",{"type":993,"tag":1023,"props":3576,"children":3578},{"className":3577},[],[3579],{"type":999,"value":3580},"map(int, string_list)",{"type":993,"tag":1638,"props":3582,"children":3583},{},[3584,3586],{"type":999,"value":3585},"Mathematical: ",{"type":993,"tag":1023,"props":3587,"children":3589},{"className":3588},[],[3590],{"type":999,"value":3591},"map(lambda x: x**2, numbers)",{"type":993,"tag":1638,"props":3593,"children":3594},{},[3595,3597],{"type":999,"value":3596},"String operations: ",{"type":993,"tag":1023,"props":3598,"children":3600},{"className":3599},[],[3601],{"type":999,"value":3602},"map(str.upper, words)",{"type":993,"tag":1638,"props":3604,"children":3605},{},[3606,3608],{"type":999,"value":3607},"Custom functions: ",{"type":993,"tag":1023,"props":3609,"children":3611},{"className":3610},[],[3612],{"type":999,"value":3613},"map(custom_func, data)",{"type":993,"tag":1002,"props":3615,"children":3616},{},[3617,3622],{"type":993,"tag":1628,"props":3618,"children":3619},{},[3620],{"type":999,"value":3621},"Performance:",{"type":999,"value":3623}," Often faster than list comprehensions for simple transformations",{"type":993,"tag":1752,"props":3625,"children":3627},{"id":3626},"basic-mapping",[3628],{"type":999,"value":3629},"Basic Mapping",{"type":993,"tag":1013,"props":3631,"children":3632},{},[3633],{"type":993,"tag":1017,"props":3634,"children":3636},{"className":1019,"code":3635,"language":6,"meta":8,"style":8},"# Basic mapping with map()\nnumbers = [1, 2, 3, 4, 5]\n\n# Square all numbers\nsquares = list(map(lambda x: x**2, numbers))\nprint(\"Original:\", numbers)\nprint(\"Squares:\", squares)\n",[3637],{"type":993,"tag":1023,"props":3638,"children":3639},{"__ignoreMap":8},[3640,3648,3703,3710,3718,3768,3789],{"type":993,"tag":1027,"props":3641,"children":3642},{"class":1029,"line":12},[3643],{"type":993,"tag":1027,"props":3644,"children":3645},{"style":1033},[3646],{"type":999,"value":3647},"# Basic mapping with map()\n",{"type":993,"tag":1027,"props":3649,"children":3650},{"class":1029,"line":27},[3651,3655,3659,3663,3667,3671,3675,3679,3683,3687,3691,3695,3699],{"type":993,"tag":1027,"props":3652,"children":3653},{"style":1042},[3654],{"type":999,"value":1045},{"type":993,"tag":1027,"props":3656,"children":3657},{"style":1048},[3658],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3660,"children":3661},{"style":1042},[3662],{"type":999,"value":1056},{"type":993,"tag":1027,"props":3664,"children":3665},{"style":1059},[3666],{"type":999,"value":1062},{"type":993,"tag":1027,"props":3668,"children":3669},{"style":1042},[3670],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3672,"children":3673},{"style":1059},[3674],{"type":999,"value":1072},{"type":993,"tag":1027,"props":3676,"children":3677},{"style":1042},[3678],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3680,"children":3681},{"style":1059},[3682],{"type":999,"value":1081},{"type":993,"tag":1027,"props":3684,"children":3685},{"style":1042},[3686],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3688,"children":3689},{"style":1059},[3690],{"type":999,"value":1090},{"type":993,"tag":1027,"props":3692,"children":3693},{"style":1042},[3694],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3696,"children":3697},{"style":1059},[3698],{"type":999,"value":1099},{"type":993,"tag":1027,"props":3700,"children":3701},{"style":1042},[3702],{"type":999,"value":1149},{"type":993,"tag":1027,"props":3704,"children":3705},{"class":1029,"line":36},[3706],{"type":993,"tag":1027,"props":3707,"children":3708},{"emptyLinePlaceholder":13},[3709],{"type":999,"value":1210},{"type":993,"tag":1027,"props":3711,"children":3712},{"class":1029,"line":45},[3713],{"type":993,"tag":1027,"props":3714,"children":3715},{"style":1033},[3716],{"type":999,"value":3717},"# Square all numbers\n",{"type":993,"tag":1027,"props":3719,"children":3720},{"class":1029,"line":54},[3721,3726,3730,3734,3738,3742,3746,3750,3755,3760,3764],{"type":993,"tag":1027,"props":3722,"children":3723},{"style":1042},[3724],{"type":999,"value":3725},"squares ",{"type":993,"tag":1027,"props":3727,"children":3728},{"style":1048},[3729],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3731,"children":3732},{"style":1059},[3733],{"type":999,"value":1340},{"type":993,"tag":1027,"props":3735,"children":3736},{"style":1042},[3737],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3739,"children":3740},{"style":1059},[3741],{"type":999,"value":1441},{"type":993,"tag":1027,"props":3743,"children":3744},{"style":1042},[3745],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3747,"children":3748},{"style":1048},[3749],{"type":999,"value":1358},{"type":993,"tag":1027,"props":3751,"children":3752},{"style":1042},[3753],{"type":999,"value":3754}," x: x",{"type":993,"tag":1027,"props":3756,"children":3757},{"style":1048},[3758],{"type":999,"value":3759},"**",{"type":993,"tag":1027,"props":3761,"children":3762},{"style":1059},[3763],{"type":999,"value":1072},{"type":993,"tag":1027,"props":3765,"children":3766},{"style":1042},[3767],{"type":999,"value":1388},{"type":993,"tag":1027,"props":3769,"children":3770},{"class":1029,"line":63},[3771,3775,3779,3784],{"type":993,"tag":1027,"props":3772,"children":3773},{"style":1059},[3774],{"type":999,"value":1226},{"type":993,"tag":1027,"props":3776,"children":3777},{"style":1042},[3778],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3780,"children":3781},{"style":1168},[3782],{"type":999,"value":3783},"\"Original:\"",{"type":993,"tag":1027,"props":3785,"children":3786},{"style":1042},[3787],{"type":999,"value":3788},", numbers)\n",{"type":993,"tag":1027,"props":3790,"children":3791},{"class":1029,"line":72},[3792,3796,3800,3805],{"type":993,"tag":1027,"props":3793,"children":3794},{"style":1059},[3795],{"type":999,"value":1226},{"type":993,"tag":1027,"props":3797,"children":3798},{"style":1042},[3799],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3801,"children":3802},{"style":1168},[3803],{"type":999,"value":3804},"\"Squares:\"",{"type":993,"tag":1027,"props":3806,"children":3807},{"style":1042},[3808],{"type":999,"value":3809},", squares)\n",{"type":993,"tag":1752,"props":3811,"children":3813},{"id":3812},"string-transformations",[3814],{"type":999,"value":3815},"String Transformations",{"type":993,"tag":1013,"props":3817,"children":3818},{},[3819],{"type":993,"tag":1017,"props":3820,"children":3822},{"className":1019,"code":3821,"language":6,"meta":8,"style":8},"# String transformations\nwords = [\"hello\", \"world\", \"python\"]\n\n# Convert to uppercase\nuppercase = list(map(str.upper, words))\nprint(\"Original:\", words)\nprint(\"Uppercase:\", uppercase)\n\n# Get string lengths\nlengths = list(map(len, words))\nprint(\"Lengths:\", lengths)\n",[3823],{"type":993,"tag":1023,"props":3824,"children":3825},{"__ignoreMap":8},[3826,3834,3876,3883,3891,3929,3949,3970,3977,3985,4020],{"type":993,"tag":1027,"props":3827,"children":3828},{"class":1029,"line":12},[3829],{"type":993,"tag":1027,"props":3830,"children":3831},{"style":1033},[3832],{"type":999,"value":3833},"# String transformations\n",{"type":993,"tag":1027,"props":3835,"children":3836},{"class":1029,"line":27},[3837,3841,3845,3849,3854,3858,3863,3867,3872],{"type":993,"tag":1027,"props":3838,"children":3839},{"style":1042},[3840],{"type":999,"value":1157},{"type":993,"tag":1027,"props":3842,"children":3843},{"style":1048},[3844],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3846,"children":3847},{"style":1042},[3848],{"type":999,"value":1056},{"type":993,"tag":1027,"props":3850,"children":3851},{"style":1168},[3852],{"type":999,"value":3853},"\"hello\"",{"type":993,"tag":1027,"props":3855,"children":3856},{"style":1042},[3857],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3859,"children":3860},{"style":1168},[3861],{"type":999,"value":3862},"\"world\"",{"type":993,"tag":1027,"props":3864,"children":3865},{"style":1042},[3866],{"type":999,"value":1067},{"type":993,"tag":1027,"props":3868,"children":3869},{"style":1168},[3870],{"type":999,"value":3871},"\"python\"",{"type":993,"tag":1027,"props":3873,"children":3874},{"style":1042},[3875],{"type":999,"value":1149},{"type":993,"tag":1027,"props":3877,"children":3878},{"class":1029,"line":36},[3879],{"type":993,"tag":1027,"props":3880,"children":3881},{"emptyLinePlaceholder":13},[3882],{"type":999,"value":1210},{"type":993,"tag":1027,"props":3884,"children":3885},{"class":1029,"line":45},[3886],{"type":993,"tag":1027,"props":3887,"children":3888},{"style":1033},[3889],{"type":999,"value":3890},"# Convert to uppercase\n",{"type":993,"tag":1027,"props":3892,"children":3893},{"class":1029,"line":54},[3894,3899,3903,3907,3911,3915,3919,3924],{"type":993,"tag":1027,"props":3895,"children":3896},{"style":1042},[3897],{"type":999,"value":3898},"uppercase ",{"type":993,"tag":1027,"props":3900,"children":3901},{"style":1048},[3902],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3904,"children":3905},{"style":1059},[3906],{"type":999,"value":1340},{"type":993,"tag":1027,"props":3908,"children":3909},{"style":1042},[3910],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3912,"children":3913},{"style":1059},[3914],{"type":999,"value":1441},{"type":993,"tag":1027,"props":3916,"children":3917},{"style":1042},[3918],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3920,"children":3921},{"style":1059},[3922],{"type":999,"value":3923},"str",{"type":993,"tag":1027,"props":3925,"children":3926},{"style":1042},[3927],{"type":999,"value":3928},".upper, words))\n",{"type":993,"tag":1027,"props":3930,"children":3931},{"class":1029,"line":63},[3932,3936,3940,3944],{"type":993,"tag":1027,"props":3933,"children":3934},{"style":1059},[3935],{"type":999,"value":1226},{"type":993,"tag":1027,"props":3937,"children":3938},{"style":1042},[3939],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3941,"children":3942},{"style":1168},[3943],{"type":999,"value":3783},{"type":993,"tag":1027,"props":3945,"children":3946},{"style":1042},[3947],{"type":999,"value":3948},", words)\n",{"type":993,"tag":1027,"props":3950,"children":3951},{"class":1029,"line":72},[3952,3956,3960,3965],{"type":993,"tag":1027,"props":3953,"children":3954},{"style":1059},[3955],{"type":999,"value":1226},{"type":993,"tag":1027,"props":3957,"children":3958},{"style":1042},[3959],{"type":999,"value":1231},{"type":993,"tag":1027,"props":3961,"children":3962},{"style":1168},[3963],{"type":999,"value":3964},"\"Uppercase:\"",{"type":993,"tag":1027,"props":3966,"children":3967},{"style":1042},[3968],{"type":999,"value":3969},", uppercase)\n",{"type":993,"tag":1027,"props":3971,"children":3972},{"class":1029,"line":81},[3973],{"type":993,"tag":1027,"props":3974,"children":3975},{"emptyLinePlaceholder":13},[3976],{"type":999,"value":1210},{"type":993,"tag":1027,"props":3978,"children":3979},{"class":1029,"line":91},[3980],{"type":993,"tag":1027,"props":3981,"children":3982},{"style":1033},[3983],{"type":999,"value":3984},"# Get string lengths\n",{"type":993,"tag":1027,"props":3986,"children":3987},{"class":1029,"line":100},[3988,3992,3996,4000,4004,4008,4012,4016],{"type":993,"tag":1027,"props":3989,"children":3990},{"style":1042},[3991],{"type":999,"value":1424},{"type":993,"tag":1027,"props":3993,"children":3994},{"style":1048},[3995],{"type":999,"value":1051},{"type":993,"tag":1027,"props":3997,"children":3998},{"style":1059},[3999],{"type":999,"value":1340},{"type":993,"tag":1027,"props":4001,"children":4002},{"style":1042},[4003],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4005,"children":4006},{"style":1059},[4007],{"type":999,"value":1441},{"type":993,"tag":1027,"props":4009,"children":4010},{"style":1042},[4011],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4013,"children":4014},{"style":1059},[4015],{"type":999,"value":1450},{"type":993,"tag":1027,"props":4017,"children":4018},{"style":1042},[4019],{"type":999,"value":1455},{"type":993,"tag":1027,"props":4021,"children":4022},{"class":1029,"line":109},[4023,4027,4031,4036],{"type":993,"tag":1027,"props":4024,"children":4025},{"style":1059},[4026],{"type":999,"value":1226},{"type":993,"tag":1027,"props":4028,"children":4029},{"style":1042},[4030],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4032,"children":4033},{"style":1168},[4034],{"type":999,"value":4035},"\"Lengths:\"",{"type":993,"tag":1027,"props":4037,"children":4038},{"style":1042},[4039],{"type":999,"value":1476},{"type":993,"tag":1752,"props":4041,"children":4043},{"id":4042},"type-conversions",[4044],{"type":999,"value":4045},"Type Conversions",{"type":993,"tag":1013,"props":4047,"children":4048},{},[4049],{"type":993,"tag":1017,"props":4050,"children":4052},{"className":1019,"code":4051,"language":6,"meta":8,"style":8},"# Type conversions with map()\nstring_numbers = [\"1\", \"2\", \"3\", \"4\", \"5\"]\nprint(\"String numbers:\", string_numbers)\n\n# Convert to integers\nintegers = list(map(int, string_numbers))\nprint(\"Converted to int:\", integers)\n\n# Convert to floats\nfloats = list(map(float, string_numbers))\nprint(\"Converted to float:\", floats)\n",[4053],{"type":993,"tag":1023,"props":4054,"children":4055},{"__ignoreMap":8},[4056,4064,4125,4146,4153,4161,4198,4219,4226,4234,4270],{"type":993,"tag":1027,"props":4057,"children":4058},{"class":1029,"line":12},[4059],{"type":993,"tag":1027,"props":4060,"children":4061},{"style":1033},[4062],{"type":999,"value":4063},"# Type conversions with map()\n",{"type":993,"tag":1027,"props":4065,"children":4066},{"class":1029,"line":27},[4067,4072,4076,4080,4085,4089,4094,4098,4103,4107,4112,4116,4121],{"type":993,"tag":1027,"props":4068,"children":4069},{"style":1042},[4070],{"type":999,"value":4071},"string_numbers ",{"type":993,"tag":1027,"props":4073,"children":4074},{"style":1048},[4075],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4077,"children":4078},{"style":1042},[4079],{"type":999,"value":1056},{"type":993,"tag":1027,"props":4081,"children":4082},{"style":1168},[4083],{"type":999,"value":4084},"\"1\"",{"type":993,"tag":1027,"props":4086,"children":4087},{"style":1042},[4088],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4090,"children":4091},{"style":1168},[4092],{"type":999,"value":4093},"\"2\"",{"type":993,"tag":1027,"props":4095,"children":4096},{"style":1042},[4097],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4099,"children":4100},{"style":1168},[4101],{"type":999,"value":4102},"\"3\"",{"type":993,"tag":1027,"props":4104,"children":4105},{"style":1042},[4106],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4108,"children":4109},{"style":1168},[4110],{"type":999,"value":4111},"\"4\"",{"type":993,"tag":1027,"props":4113,"children":4114},{"style":1042},[4115],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4117,"children":4118},{"style":1168},[4119],{"type":999,"value":4120},"\"5\"",{"type":993,"tag":1027,"props":4122,"children":4123},{"style":1042},[4124],{"type":999,"value":1149},{"type":993,"tag":1027,"props":4126,"children":4127},{"class":1029,"line":36},[4128,4132,4136,4141],{"type":993,"tag":1027,"props":4129,"children":4130},{"style":1059},[4131],{"type":999,"value":1226},{"type":993,"tag":1027,"props":4133,"children":4134},{"style":1042},[4135],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4137,"children":4138},{"style":1168},[4139],{"type":999,"value":4140},"\"String numbers:\"",{"type":993,"tag":1027,"props":4142,"children":4143},{"style":1042},[4144],{"type":999,"value":4145},", string_numbers)\n",{"type":993,"tag":1027,"props":4147,"children":4148},{"class":1029,"line":45},[4149],{"type":993,"tag":1027,"props":4150,"children":4151},{"emptyLinePlaceholder":13},[4152],{"type":999,"value":1210},{"type":993,"tag":1027,"props":4154,"children":4155},{"class":1029,"line":54},[4156],{"type":993,"tag":1027,"props":4157,"children":4158},{"style":1033},[4159],{"type":999,"value":4160},"# Convert to integers\n",{"type":993,"tag":1027,"props":4162,"children":4163},{"class":1029,"line":63},[4164,4168,4172,4176,4180,4184,4188,4193],{"type":993,"tag":1027,"props":4165,"children":4166},{"style":1042},[4167],{"type":999,"value":2301},{"type":993,"tag":1027,"props":4169,"children":4170},{"style":1048},[4171],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4173,"children":4174},{"style":1059},[4175],{"type":999,"value":1340},{"type":993,"tag":1027,"props":4177,"children":4178},{"style":1042},[4179],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4181,"children":4182},{"style":1059},[4183],{"type":999,"value":1441},{"type":993,"tag":1027,"props":4185,"children":4186},{"style":1042},[4187],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4189,"children":4190},{"style":1059},[4191],{"type":999,"value":4192},"int",{"type":993,"tag":1027,"props":4194,"children":4195},{"style":1042},[4196],{"type":999,"value":4197},", string_numbers))\n",{"type":993,"tag":1027,"props":4199,"children":4200},{"class":1029,"line":72},[4201,4205,4209,4214],{"type":993,"tag":1027,"props":4202,"children":4203},{"style":1059},[4204],{"type":999,"value":1226},{"type":993,"tag":1027,"props":4206,"children":4207},{"style":1042},[4208],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4210,"children":4211},{"style":1168},[4212],{"type":999,"value":4213},"\"Converted to int:\"",{"type":993,"tag":1027,"props":4215,"children":4216},{"style":1042},[4217],{"type":999,"value":4218},", integers)\n",{"type":993,"tag":1027,"props":4220,"children":4221},{"class":1029,"line":81},[4222],{"type":993,"tag":1027,"props":4223,"children":4224},{"emptyLinePlaceholder":13},[4225],{"type":999,"value":1210},{"type":993,"tag":1027,"props":4227,"children":4228},{"class":1029,"line":91},[4229],{"type":993,"tag":1027,"props":4230,"children":4231},{"style":1033},[4232],{"type":999,"value":4233},"# Convert to floats\n",{"type":993,"tag":1027,"props":4235,"children":4236},{"class":1029,"line":100},[4237,4241,4245,4249,4253,4257,4261,4266],{"type":993,"tag":1027,"props":4238,"children":4239},{"style":1042},[4240],{"type":999,"value":2357},{"type":993,"tag":1027,"props":4242,"children":4243},{"style":1048},[4244],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4246,"children":4247},{"style":1059},[4248],{"type":999,"value":1340},{"type":993,"tag":1027,"props":4250,"children":4251},{"style":1042},[4252],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4254,"children":4255},{"style":1059},[4256],{"type":999,"value":1441},{"type":993,"tag":1027,"props":4258,"children":4259},{"style":1042},[4260],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4262,"children":4263},{"style":1059},[4264],{"type":999,"value":4265},"float",{"type":993,"tag":1027,"props":4267,"children":4268},{"style":1042},[4269],{"type":999,"value":4197},{"type":993,"tag":1027,"props":4271,"children":4272},{"class":1029,"line":109},[4273,4277,4281,4286],{"type":993,"tag":1027,"props":4274,"children":4275},{"style":1059},[4276],{"type":999,"value":1226},{"type":993,"tag":1027,"props":4278,"children":4279},{"style":1042},[4280],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4282,"children":4283},{"style":1168},[4284],{"type":999,"value":4285},"\"Converted to float:\"",{"type":993,"tag":1027,"props":4287,"children":4288},{"style":1042},[4289],{"type":999,"value":4290},", floats)\n",{"type":993,"tag":1606,"props":4292,"children":4294},{"id":4293},"checking-conditions-with-all-and-any",[4295],{"type":999,"value":4296},"✅ Checking Conditions with all() and any()",{"type":993,"tag":1002,"props":4298,"children":4299},{},[4300,4301,4307,4309,4315],{"type":999,"value":2592},{"type":993,"tag":1023,"props":4302,"children":4304},{"className":4303},[],[4305],{"type":999,"value":4306},"all()",{"type":999,"value":4308}," and ",{"type":993,"tag":1023,"props":4310,"children":4312},{"className":4311},[],[4313],{"type":999,"value":4314},"any()",{"type":999,"value":4316}," functions check conditions across entire lists. They're essential for validation, data quality checks, and conditional logic.",{"type":993,"tag":1618,"props":4318,"children":4322},{"emoji":4319,"title":4320,"type":4321},"✅","Condition Checking Functions","warning",[4323,4331,4359,4367,4403],{"type":993,"tag":1002,"props":4324,"children":4325},{},[4326],{"type":993,"tag":1628,"props":4327,"children":4328},{},[4329],{"type":999,"value":4330},"Function Behavior:",{"type":993,"tag":1634,"props":4332,"children":4333},{},[4334,4344,4354],{"type":993,"tag":1638,"props":4335,"children":4336},{},[4337,4342],{"type":993,"tag":1023,"props":4338,"children":4340},{"className":4339},[],[4341],{"type":999,"value":4306},{"type":999,"value":4343},": Returns True if ALL elements are truthy/pass test",{"type":993,"tag":1638,"props":4345,"children":4346},{},[4347,4352],{"type":993,"tag":1023,"props":4348,"children":4350},{"className":4349},[],[4351],{"type":999,"value":4314},{"type":999,"value":4353},": Returns True if ANY element is truthy/passes test",{"type":993,"tag":1638,"props":4355,"children":4356},{},[4357],{"type":999,"value":4358},"Both return True for empty iterables (important edge case)",{"type":993,"tag":1002,"props":4360,"children":4361},{},[4362],{"type":993,"tag":1628,"props":4363,"children":4364},{},[4365],{"type":999,"value":4366},"Common Usage Patterns:",{"type":993,"tag":1634,"props":4368,"children":4369},{},[4370,4381,4392],{"type":993,"tag":1638,"props":4371,"children":4372},{},[4373,4375],{"type":999,"value":4374},"Data validation: ",{"type":993,"tag":1023,"props":4376,"children":4378},{"className":4377},[],[4379],{"type":999,"value":4380},"all(x > 0 for x in numbers)",{"type":993,"tag":1638,"props":4382,"children":4383},{},[4384,4386],{"type":999,"value":4385},"Quality checks: ",{"type":993,"tag":1023,"props":4387,"children":4389},{"className":4388},[],[4390],{"type":999,"value":4391},"any(len(s) == 0 for s in strings)",{"type":993,"tag":1638,"props":4393,"children":4394},{},[4395,4397],{"type":999,"value":4396},"Boolean logic: ",{"type":993,"tag":1023,"props":4398,"children":4400},{"className":4399},[],[4401],{"type":999,"value":4402},"all([condition1, condition2, condition3])",{"type":993,"tag":1002,"props":4404,"children":4405},{},[4406,4410],{"type":993,"tag":1628,"props":4407,"children":4408},{},[4409],{"type":999,"value":3621},{"type":999,"value":4411}," Short-circuit evaluation (stops at first False/True)",{"type":993,"tag":1752,"props":4413,"children":4415},{"id":4414},"using-all-function",[4416],{"type":999,"value":4417},"Using all() Function",{"type":993,"tag":1013,"props":4419,"children":4420},{},[4421],{"type":993,"tag":1017,"props":4422,"children":4424},{"className":1019,"code":4423,"language":6,"meta":8,"style":8},"# Using all() to check if all elements meet a condition\nnumbers = [2, 4, 6, 8, 10]\nprint(\"Numbers:\", numbers)\n\n# Check if all numbers are even\nall_even = all(x % 2 == 0 for x in numbers)\nprint(\"All even:\", all_even)\n\n# Check if all numbers are positive\nall_positive = all(x > 0 for x in numbers)\nprint(\"All positive:\", all_positive)\n",[4425],{"type":993,"tag":1023,"props":4426,"children":4427},{"__ignoreMap":8},[4428,4436,4491,4511,4518,4526,4580,4601,4608,4616,4660],{"type":993,"tag":1027,"props":4429,"children":4430},{"class":1029,"line":12},[4431],{"type":993,"tag":1027,"props":4432,"children":4433},{"style":1033},[4434],{"type":999,"value":4435},"# Using all() to check if all elements meet a condition\n",{"type":993,"tag":1027,"props":4437,"children":4438},{"class":1029,"line":27},[4439,4443,4447,4451,4455,4459,4463,4467,4471,4475,4479,4483,4487],{"type":993,"tag":1027,"props":4440,"children":4441},{"style":1042},[4442],{"type":999,"value":1045},{"type":993,"tag":1027,"props":4444,"children":4445},{"style":1048},[4446],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4448,"children":4449},{"style":1042},[4450],{"type":999,"value":1056},{"type":993,"tag":1027,"props":4452,"children":4453},{"style":1059},[4454],{"type":999,"value":1072},{"type":993,"tag":1027,"props":4456,"children":4457},{"style":1042},[4458],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4460,"children":4461},{"style":1059},[4462],{"type":999,"value":1090},{"type":993,"tag":1027,"props":4464,"children":4465},{"style":1042},[4466],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4468,"children":4469},{"style":1059},[4470],{"type":999,"value":1108},{"type":993,"tag":1027,"props":4472,"children":4473},{"style":1042},[4474],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4476,"children":4477},{"style":1059},[4478],{"type":999,"value":1126},{"type":993,"tag":1027,"props":4480,"children":4481},{"style":1042},[4482],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4484,"children":4485},{"style":1059},[4486],{"type":999,"value":1144},{"type":993,"tag":1027,"props":4488,"children":4489},{"style":1042},[4490],{"type":999,"value":1149},{"type":993,"tag":1027,"props":4492,"children":4493},{"class":1029,"line":36},[4494,4498,4502,4507],{"type":993,"tag":1027,"props":4495,"children":4496},{"style":1059},[4497],{"type":999,"value":1226},{"type":993,"tag":1027,"props":4499,"children":4500},{"style":1042},[4501],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4503,"children":4504},{"style":1168},[4505],{"type":999,"value":4506},"\"Numbers:\"",{"type":993,"tag":1027,"props":4508,"children":4509},{"style":1042},[4510],{"type":999,"value":3788},{"type":993,"tag":1027,"props":4512,"children":4513},{"class":1029,"line":45},[4514],{"type":993,"tag":1027,"props":4515,"children":4516},{"emptyLinePlaceholder":13},[4517],{"type":999,"value":1210},{"type":993,"tag":1027,"props":4519,"children":4520},{"class":1029,"line":54},[4521],{"type":993,"tag":1027,"props":4522,"children":4523},{"style":1033},[4524],{"type":999,"value":4525},"# Check if all numbers are even\n",{"type":993,"tag":1027,"props":4527,"children":4528},{"class":1029,"line":63},[4529,4534,4538,4543,4547,4551,4555,4559,4563,4567,4571,4575],{"type":993,"tag":1027,"props":4530,"children":4531},{"style":1042},[4532],{"type":999,"value":4533},"all_even ",{"type":993,"tag":1027,"props":4535,"children":4536},{"style":1048},[4537],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4539,"children":4540},{"style":1059},[4541],{"type":999,"value":4542}," all",{"type":993,"tag":1027,"props":4544,"children":4545},{"style":1042},[4546],{"type":999,"value":1521},{"type":993,"tag":1027,"props":4548,"children":4549},{"style":1048},[4550],{"type":999,"value":1368},{"type":993,"tag":1027,"props":4552,"children":4553},{"style":1059},[4554],{"type":999,"value":1373},{"type":993,"tag":1027,"props":4556,"children":4557},{"style":1048},[4558],{"type":999,"value":1378},{"type":993,"tag":1027,"props":4560,"children":4561},{"style":1059},[4562],{"type":999,"value":1383},{"type":993,"tag":1027,"props":4564,"children":4565},{"style":1048},[4566],{"type":999,"value":1535},{"type":993,"tag":1027,"props":4568,"children":4569},{"style":1042},[4570],{"type":999,"value":1540},{"type":993,"tag":1027,"props":4572,"children":4573},{"style":1048},[4574],{"type":999,"value":1545},{"type":993,"tag":1027,"props":4576,"children":4577},{"style":1042},[4578],{"type":999,"value":4579}," numbers)\n",{"type":993,"tag":1027,"props":4581,"children":4582},{"class":1029,"line":72},[4583,4587,4591,4596],{"type":993,"tag":1027,"props":4584,"children":4585},{"style":1059},[4586],{"type":999,"value":1226},{"type":993,"tag":1027,"props":4588,"children":4589},{"style":1042},[4590],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4592,"children":4593},{"style":1168},[4594],{"type":999,"value":4595},"\"All even:\"",{"type":993,"tag":1027,"props":4597,"children":4598},{"style":1042},[4599],{"type":999,"value":4600},", all_even)\n",{"type":993,"tag":1027,"props":4602,"children":4603},{"class":1029,"line":81},[4604],{"type":993,"tag":1027,"props":4605,"children":4606},{"emptyLinePlaceholder":13},[4607],{"type":999,"value":1210},{"type":993,"tag":1027,"props":4609,"children":4610},{"class":1029,"line":91},[4611],{"type":993,"tag":1027,"props":4612,"children":4613},{"style":1033},[4614],{"type":999,"value":4615},"# Check if all numbers are positive\n",{"type":993,"tag":1027,"props":4617,"children":4618},{"class":1029,"line":100},[4619,4624,4628,4632,4636,4640,4644,4648,4652,4656],{"type":993,"tag":1027,"props":4620,"children":4621},{"style":1042},[4622],{"type":999,"value":4623},"all_positive ",{"type":993,"tag":1027,"props":4625,"children":4626},{"style":1048},[4627],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4629,"children":4630},{"style":1059},[4631],{"type":999,"value":4542},{"type":993,"tag":1027,"props":4633,"children":4634},{"style":1042},[4635],{"type":999,"value":1521},{"type":993,"tag":1027,"props":4637,"children":4638},{"style":1048},[4639],{"type":999,"value":1526},{"type":993,"tag":1027,"props":4641,"children":4642},{"style":1059},[4643],{"type":999,"value":1383},{"type":993,"tag":1027,"props":4645,"children":4646},{"style":1048},[4647],{"type":999,"value":1535},{"type":993,"tag":1027,"props":4649,"children":4650},{"style":1042},[4651],{"type":999,"value":1540},{"type":993,"tag":1027,"props":4653,"children":4654},{"style":1048},[4655],{"type":999,"value":1545},{"type":993,"tag":1027,"props":4657,"children":4658},{"style":1042},[4659],{"type":999,"value":4579},{"type":993,"tag":1027,"props":4661,"children":4662},{"class":1029,"line":109},[4663,4667,4671,4675],{"type":993,"tag":1027,"props":4664,"children":4665},{"style":1059},[4666],{"type":999,"value":1226},{"type":993,"tag":1027,"props":4668,"children":4669},{"style":1042},[4670],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4672,"children":4673},{"style":1168},[4674],{"type":999,"value":1507},{"type":993,"tag":1027,"props":4676,"children":4677},{"style":1042},[4678],{"type":999,"value":4679},", all_positive)\n",{"type":993,"tag":1752,"props":4681,"children":4683},{"id":4682},"using-any-function",[4684],{"type":999,"value":4685},"Using any() Function",{"type":993,"tag":1013,"props":4687,"children":4688},{},[4689],{"type":993,"tag":1017,"props":4690,"children":4692},{"className":1019,"code":4691,"language":6,"meta":8,"style":8},"# Using any() to check if any element meets a condition\nnumbers = [1, 3, 5, 7, 8]\nprint(\"Numbers:\", numbers)\n\n# Check if any number is even\nany_even = any(x % 2 == 0 for x in numbers)\nprint(\"Any even:\", any_even)\n\n# 5 Check if any number is greater than\nany_large = any(x > 5 for x in numbers)\nprint(\"Any > 5:\", any_large)\n",[4693],{"type":993,"tag":1023,"props":4694,"children":4695},{"__ignoreMap":8},[4696,4704,4759,4778,4785,4793,4846,4867,4874,4882,4926],{"type":993,"tag":1027,"props":4697,"children":4698},{"class":1029,"line":12},[4699],{"type":993,"tag":1027,"props":4700,"children":4701},{"style":1033},[4702],{"type":999,"value":4703},"# Using any() to check if any element meets a condition\n",{"type":993,"tag":1027,"props":4705,"children":4706},{"class":1029,"line":27},[4707,4711,4715,4719,4723,4727,4731,4735,4739,4743,4747,4751,4755],{"type":993,"tag":1027,"props":4708,"children":4709},{"style":1042},[4710],{"type":999,"value":1045},{"type":993,"tag":1027,"props":4712,"children":4713},{"style":1048},[4714],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4716,"children":4717},{"style":1042},[4718],{"type":999,"value":1056},{"type":993,"tag":1027,"props":4720,"children":4721},{"style":1059},[4722],{"type":999,"value":1062},{"type":993,"tag":1027,"props":4724,"children":4725},{"style":1042},[4726],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4728,"children":4729},{"style":1059},[4730],{"type":999,"value":1081},{"type":993,"tag":1027,"props":4732,"children":4733},{"style":1042},[4734],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4736,"children":4737},{"style":1059},[4738],{"type":999,"value":1099},{"type":993,"tag":1027,"props":4740,"children":4741},{"style":1042},[4742],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4744,"children":4745},{"style":1059},[4746],{"type":999,"value":1117},{"type":993,"tag":1027,"props":4748,"children":4749},{"style":1042},[4750],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4752,"children":4753},{"style":1059},[4754],{"type":999,"value":1126},{"type":993,"tag":1027,"props":4756,"children":4757},{"style":1042},[4758],{"type":999,"value":1149},{"type":993,"tag":1027,"props":4760,"children":4761},{"class":1029,"line":36},[4762,4766,4770,4774],{"type":993,"tag":1027,"props":4763,"children":4764},{"style":1059},[4765],{"type":999,"value":1226},{"type":993,"tag":1027,"props":4767,"children":4768},{"style":1042},[4769],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4771,"children":4772},{"style":1168},[4773],{"type":999,"value":4506},{"type":993,"tag":1027,"props":4775,"children":4776},{"style":1042},[4777],{"type":999,"value":3788},{"type":993,"tag":1027,"props":4779,"children":4780},{"class":1029,"line":45},[4781],{"type":993,"tag":1027,"props":4782,"children":4783},{"emptyLinePlaceholder":13},[4784],{"type":999,"value":1210},{"type":993,"tag":1027,"props":4786,"children":4787},{"class":1029,"line":54},[4788],{"type":993,"tag":1027,"props":4789,"children":4790},{"style":1033},[4791],{"type":999,"value":4792},"# Check if any number is even\n",{"type":993,"tag":1027,"props":4794,"children":4795},{"class":1029,"line":63},[4796,4801,4805,4810,4814,4818,4822,4826,4830,4834,4838,4842],{"type":993,"tag":1027,"props":4797,"children":4798},{"style":1042},[4799],{"type":999,"value":4800},"any_even ",{"type":993,"tag":1027,"props":4802,"children":4803},{"style":1048},[4804],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4806,"children":4807},{"style":1059},[4808],{"type":999,"value":4809}," any",{"type":993,"tag":1027,"props":4811,"children":4812},{"style":1042},[4813],{"type":999,"value":1521},{"type":993,"tag":1027,"props":4815,"children":4816},{"style":1048},[4817],{"type":999,"value":1368},{"type":993,"tag":1027,"props":4819,"children":4820},{"style":1059},[4821],{"type":999,"value":1373},{"type":993,"tag":1027,"props":4823,"children":4824},{"style":1048},[4825],{"type":999,"value":1378},{"type":993,"tag":1027,"props":4827,"children":4828},{"style":1059},[4829],{"type":999,"value":1383},{"type":993,"tag":1027,"props":4831,"children":4832},{"style":1048},[4833],{"type":999,"value":1535},{"type":993,"tag":1027,"props":4835,"children":4836},{"style":1042},[4837],{"type":999,"value":1540},{"type":993,"tag":1027,"props":4839,"children":4840},{"style":1048},[4841],{"type":999,"value":1545},{"type":993,"tag":1027,"props":4843,"children":4844},{"style":1042},[4845],{"type":999,"value":4579},{"type":993,"tag":1027,"props":4847,"children":4848},{"class":1029,"line":72},[4849,4853,4857,4862],{"type":993,"tag":1027,"props":4850,"children":4851},{"style":1059},[4852],{"type":999,"value":1226},{"type":993,"tag":1027,"props":4854,"children":4855},{"style":1042},[4856],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4858,"children":4859},{"style":1168},[4860],{"type":999,"value":4861},"\"Any even:\"",{"type":993,"tag":1027,"props":4863,"children":4864},{"style":1042},[4865],{"type":999,"value":4866},", any_even)\n",{"type":993,"tag":1027,"props":4868,"children":4869},{"class":1029,"line":81},[4870],{"type":993,"tag":1027,"props":4871,"children":4872},{"emptyLinePlaceholder":13},[4873],{"type":999,"value":1210},{"type":993,"tag":1027,"props":4875,"children":4876},{"class":1029,"line":91},[4877],{"type":993,"tag":1027,"props":4878,"children":4879},{"style":1033},[4880],{"type":999,"value":4881},"# 5 Check if any number is greater than\n",{"type":993,"tag":1027,"props":4883,"children":4884},{"class":1029,"line":100},[4885,4890,4894,4898,4902,4906,4910,4914,4918,4922],{"type":993,"tag":1027,"props":4886,"children":4887},{"style":1042},[4888],{"type":999,"value":4889},"any_large ",{"type":993,"tag":1027,"props":4891,"children":4892},{"style":1048},[4893],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4895,"children":4896},{"style":1059},[4897],{"type":999,"value":4809},{"type":993,"tag":1027,"props":4899,"children":4900},{"style":1042},[4901],{"type":999,"value":1521},{"type":993,"tag":1027,"props":4903,"children":4904},{"style":1048},[4905],{"type":999,"value":1526},{"type":993,"tag":1027,"props":4907,"children":4908},{"style":1059},[4909],{"type":999,"value":1588},{"type":993,"tag":1027,"props":4911,"children":4912},{"style":1048},[4913],{"type":999,"value":1535},{"type":993,"tag":1027,"props":4915,"children":4916},{"style":1042},[4917],{"type":999,"value":1540},{"type":993,"tag":1027,"props":4919,"children":4920},{"style":1048},[4921],{"type":999,"value":1545},{"type":993,"tag":1027,"props":4923,"children":4924},{"style":1042},[4925],{"type":999,"value":4579},{"type":993,"tag":1027,"props":4927,"children":4928},{"class":1029,"line":109},[4929,4933,4937,4941],{"type":993,"tag":1027,"props":4930,"children":4931},{"style":1059},[4932],{"type":999,"value":1226},{"type":993,"tag":1027,"props":4934,"children":4935},{"style":1042},[4936],{"type":999,"value":1231},{"type":993,"tag":1027,"props":4938,"children":4939},{"style":1168},[4940],{"type":999,"value":1566},{"type":993,"tag":1027,"props":4942,"children":4943},{"style":1042},[4944],{"type":999,"value":4945},", any_large)\n",{"type":993,"tag":1752,"props":4947,"children":4949},{"id":4948},"validation-examples",[4950],{"type":999,"value":4951},"Validation Examples",{"type":993,"tag":1013,"props":4953,"children":4954},{},[4955],{"type":993,"tag":1017,"props":4956,"children":4958},{"className":1019,"code":4957,"language":6,"meta":8,"style":8},"# Data validation examples\ngrades = [85, 92, 78, 96, 88]\nprint(\"Grades:\", grades)\n\n# Validate grade ranges\nvalid_grades = all(0 \u003C= grade \u003C= 100 for grade in grades)\nprint(\"All grades valid (0-100):\", valid_grades)\n\n# Check for failing grades\nhas_failing = any(grade \u003C 60 for grade in grades)\nprint(\"Has failing grades:\", has_failing)\n",[4959],{"type":993,"tag":1023,"props":4960,"children":4961},{"__ignoreMap":8},[4962,4970,5026,5047,5054,5062,5123,5144,5151,5159,5206],{"type":993,"tag":1027,"props":4963,"children":4964},{"class":1029,"line":12},[4965],{"type":993,"tag":1027,"props":4966,"children":4967},{"style":1033},[4968],{"type":999,"value":4969},"# Data validation examples\n",{"type":993,"tag":1027,"props":4971,"children":4972},{"class":1029,"line":27},[4973,4978,4982,4986,4990,4994,4998,5002,5006,5010,5014,5018,5022],{"type":993,"tag":1027,"props":4974,"children":4975},{"style":1042},[4976],{"type":999,"value":4977},"grades ",{"type":993,"tag":1027,"props":4979,"children":4980},{"style":1048},[4981],{"type":999,"value":1051},{"type":993,"tag":1027,"props":4983,"children":4984},{"style":1042},[4985],{"type":999,"value":1056},{"type":993,"tag":1027,"props":4987,"children":4988},{"style":1059},[4989],{"type":999,"value":1796},{"type":993,"tag":1027,"props":4991,"children":4992},{"style":1042},[4993],{"type":999,"value":1067},{"type":993,"tag":1027,"props":4995,"children":4996},{"style":1059},[4997],{"type":999,"value":1805},{"type":993,"tag":1027,"props":4999,"children":5000},{"style":1042},[5001],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5003,"children":5004},{"style":1059},[5005],{"type":999,"value":1814},{"type":993,"tag":1027,"props":5007,"children":5008},{"style":1042},[5009],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5011,"children":5012},{"style":1059},[5013],{"type":999,"value":1823},{"type":993,"tag":1027,"props":5015,"children":5016},{"style":1042},[5017],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5019,"children":5020},{"style":1059},[5021],{"type":999,"value":1832},{"type":993,"tag":1027,"props":5023,"children":5024},{"style":1042},[5025],{"type":999,"value":1149},{"type":993,"tag":1027,"props":5027,"children":5028},{"class":1029,"line":36},[5029,5033,5037,5042],{"type":993,"tag":1027,"props":5030,"children":5031},{"style":1059},[5032],{"type":999,"value":1226},{"type":993,"tag":1027,"props":5034,"children":5035},{"style":1042},[5036],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5038,"children":5039},{"style":1168},[5040],{"type":999,"value":5041},"\"Grades:\"",{"type":993,"tag":1027,"props":5043,"children":5044},{"style":1042},[5045],{"type":999,"value":5046},", grades)\n",{"type":993,"tag":1027,"props":5048,"children":5049},{"class":1029,"line":45},[5050],{"type":993,"tag":1027,"props":5051,"children":5052},{"emptyLinePlaceholder":13},[5053],{"type":999,"value":1210},{"type":993,"tag":1027,"props":5055,"children":5056},{"class":1029,"line":54},[5057],{"type":993,"tag":1027,"props":5058,"children":5059},{"style":1033},[5060],{"type":999,"value":5061},"# Validate grade ranges\n",{"type":993,"tag":1027,"props":5063,"children":5064},{"class":1029,"line":63},[5065,5070,5074,5078,5082,5086,5091,5096,5101,5106,5110,5114,5118],{"type":993,"tag":1027,"props":5066,"children":5067},{"style":1042},[5068],{"type":999,"value":5069},"valid_grades ",{"type":993,"tag":1027,"props":5071,"children":5072},{"style":1048},[5073],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5075,"children":5076},{"style":1059},[5077],{"type":999,"value":4542},{"type":993,"tag":1027,"props":5079,"children":5080},{"style":1042},[5081],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5083,"children":5084},{"style":1059},[5085],{"type":999,"value":2220},{"type":993,"tag":1027,"props":5087,"children":5088},{"style":1048},[5089],{"type":999,"value":5090}," \u003C=",{"type":993,"tag":1027,"props":5092,"children":5093},{"style":1042},[5094],{"type":999,"value":5095}," grade ",{"type":993,"tag":1027,"props":5097,"children":5098},{"style":1048},[5099],{"type":999,"value":5100},"\u003C=",{"type":993,"tag":1027,"props":5102,"children":5103},{"style":1059},[5104],{"type":999,"value":5105}," 100",{"type":993,"tag":1027,"props":5107,"children":5108},{"style":1048},[5109],{"type":999,"value":1535},{"type":993,"tag":1027,"props":5111,"children":5112},{"style":1042},[5113],{"type":999,"value":5095},{"type":993,"tag":1027,"props":5115,"children":5116},{"style":1048},[5117],{"type":999,"value":1545},{"type":993,"tag":1027,"props":5119,"children":5120},{"style":1042},[5121],{"type":999,"value":5122}," grades)\n",{"type":993,"tag":1027,"props":5124,"children":5125},{"class":1029,"line":72},[5126,5130,5134,5139],{"type":993,"tag":1027,"props":5127,"children":5128},{"style":1059},[5129],{"type":999,"value":1226},{"type":993,"tag":1027,"props":5131,"children":5132},{"style":1042},[5133],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5135,"children":5136},{"style":1168},[5137],{"type":999,"value":5138},"\"All grades valid (0-100):\"",{"type":993,"tag":1027,"props":5140,"children":5141},{"style":1042},[5142],{"type":999,"value":5143},", valid_grades)\n",{"type":993,"tag":1027,"props":5145,"children":5146},{"class":1029,"line":81},[5147],{"type":993,"tag":1027,"props":5148,"children":5149},{"emptyLinePlaceholder":13},[5150],{"type":999,"value":1210},{"type":993,"tag":1027,"props":5152,"children":5153},{"class":1029,"line":91},[5154],{"type":993,"tag":1027,"props":5155,"children":5156},{"style":1033},[5157],{"type":999,"value":5158},"# Check for failing grades\n",{"type":993,"tag":1027,"props":5160,"children":5161},{"class":1029,"line":100},[5162,5167,5171,5175,5180,5185,5190,5194,5198,5202],{"type":993,"tag":1027,"props":5163,"children":5164},{"style":1042},[5165],{"type":999,"value":5166},"has_failing ",{"type":993,"tag":1027,"props":5168,"children":5169},{"style":1048},[5170],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5172,"children":5173},{"style":1059},[5174],{"type":999,"value":4809},{"type":993,"tag":1027,"props":5176,"children":5177},{"style":1042},[5178],{"type":999,"value":5179},"(grade ",{"type":993,"tag":1027,"props":5181,"children":5182},{"style":1048},[5183],{"type":999,"value":5184},"\u003C",{"type":993,"tag":1027,"props":5186,"children":5187},{"style":1059},[5188],{"type":999,"value":5189}," 60",{"type":993,"tag":1027,"props":5191,"children":5192},{"style":1048},[5193],{"type":999,"value":1535},{"type":993,"tag":1027,"props":5195,"children":5196},{"style":1042},[5197],{"type":999,"value":5095},{"type":993,"tag":1027,"props":5199,"children":5200},{"style":1048},[5201],{"type":999,"value":1545},{"type":993,"tag":1027,"props":5203,"children":5204},{"style":1042},[5205],{"type":999,"value":5122},{"type":993,"tag":1027,"props":5207,"children":5208},{"class":1029,"line":109},[5209,5213,5217,5222],{"type":993,"tag":1027,"props":5210,"children":5211},{"style":1059},[5212],{"type":999,"value":1226},{"type":993,"tag":1027,"props":5214,"children":5215},{"style":1042},[5216],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5218,"children":5219},{"style":1168},[5220],{"type":999,"value":5221},"\"Has failing grades:\"",{"type":993,"tag":1027,"props":5223,"children":5224},{"style":1042},[5225],{"type":999,"value":5226},", has_failing)\n",{"type":993,"tag":1606,"props":5228,"children":5230},{"id":5229},"advanced-list-tools",[5231],{"type":999,"value":5232},"🚀 Advanced List Tools",{"type":993,"tag":1752,"props":5234,"children":5236},{"id":5235},"using-enumerate-for-indexed-processing",[5237],{"type":999,"value":5238},"Using enumerate() for Indexed Processing",{"type":993,"tag":1013,"props":5240,"children":5241},{},[5242],{"type":993,"tag":1017,"props":5243,"children":5245},{"className":1019,"code":5244,"language":6,"meta":8,"style":8},"# Advanced enumerate usage\nfruits = [\"apple\", \"banana\", \"cherry\", \"date\"]\n\n# Create indexed pairs\nindexed = list(enumerate(fruits))\nprint(\"Indexed fruits:\", indexed)\n\n# Start from different number\nindexed_from_1 = list(enumerate(fruits, start=1))\nprint(\"Indexed from 1:\", indexed_from_1)\n\n# Find positions of specific items\npositions = [i for i, fruit in enumerate(fruits) if 'a' in fruit]\nprint(\"Fruits with 'a' at positions:\", positions)\n",[5246],{"type":993,"tag":1023,"props":5247,"children":5248},{"__ignoreMap":8},[5249,5257,5305,5312,5320,5350,5371,5378,5386,5432,5453,5460,5468,5529],{"type":993,"tag":1027,"props":5250,"children":5251},{"class":1029,"line":12},[5252],{"type":993,"tag":1027,"props":5253,"children":5254},{"style":1033},[5255],{"type":999,"value":5256},"# Advanced enumerate usage\n",{"type":993,"tag":1027,"props":5258,"children":5259},{"class":1029,"line":27},[5260,5265,5269,5273,5277,5281,5285,5289,5293,5297,5301],{"type":993,"tag":1027,"props":5261,"children":5262},{"style":1042},[5263],{"type":999,"value":5264},"fruits ",{"type":993,"tag":1027,"props":5266,"children":5267},{"style":1048},[5268],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5270,"children":5271},{"style":1042},[5272],{"type":999,"value":1056},{"type":993,"tag":1027,"props":5274,"children":5275},{"style":1168},[5276],{"type":999,"value":1171},{"type":993,"tag":1027,"props":5278,"children":5279},{"style":1042},[5280],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5282,"children":5283},{"style":1168},[5284],{"type":999,"value":1180},{"type":993,"tag":1027,"props":5286,"children":5287},{"style":1042},[5288],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5290,"children":5291},{"style":1168},[5292],{"type":999,"value":1189},{"type":993,"tag":1027,"props":5294,"children":5295},{"style":1042},[5296],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5298,"children":5299},{"style":1168},[5300],{"type":999,"value":1198},{"type":993,"tag":1027,"props":5302,"children":5303},{"style":1042},[5304],{"type":999,"value":1149},{"type":993,"tag":1027,"props":5306,"children":5307},{"class":1029,"line":36},[5308],{"type":993,"tag":1027,"props":5309,"children":5310},{"emptyLinePlaceholder":13},[5311],{"type":999,"value":1210},{"type":993,"tag":1027,"props":5313,"children":5314},{"class":1029,"line":45},[5315],{"type":993,"tag":1027,"props":5316,"children":5317},{"style":1033},[5318],{"type":999,"value":5319},"# Create indexed pairs\n",{"type":993,"tag":1027,"props":5321,"children":5322},{"class":1029,"line":54},[5323,5328,5332,5336,5340,5345],{"type":993,"tag":1027,"props":5324,"children":5325},{"style":1042},[5326],{"type":999,"value":5327},"indexed ",{"type":993,"tag":1027,"props":5329,"children":5330},{"style":1048},[5331],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5333,"children":5334},{"style":1059},[5335],{"type":999,"value":1340},{"type":993,"tag":1027,"props":5337,"children":5338},{"style":1042},[5339],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5341,"children":5342},{"style":1059},[5343],{"type":999,"value":5344},"enumerate",{"type":993,"tag":1027,"props":5346,"children":5347},{"style":1042},[5348],{"type":999,"value":5349},"(fruits))\n",{"type":993,"tag":1027,"props":5351,"children":5352},{"class":1029,"line":63},[5353,5357,5361,5366],{"type":993,"tag":1027,"props":5354,"children":5355},{"style":1059},[5356],{"type":999,"value":1226},{"type":993,"tag":1027,"props":5358,"children":5359},{"style":1042},[5360],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5362,"children":5363},{"style":1168},[5364],{"type":999,"value":5365},"\"Indexed fruits:\"",{"type":993,"tag":1027,"props":5367,"children":5368},{"style":1042},[5369],{"type":999,"value":5370},", indexed)\n",{"type":993,"tag":1027,"props":5372,"children":5373},{"class":1029,"line":72},[5374],{"type":993,"tag":1027,"props":5375,"children":5376},{"emptyLinePlaceholder":13},[5377],{"type":999,"value":1210},{"type":993,"tag":1027,"props":5379,"children":5380},{"class":1029,"line":81},[5381],{"type":993,"tag":1027,"props":5382,"children":5383},{"style":1033},[5384],{"type":999,"value":5385},"# Start from different number\n",{"type":993,"tag":1027,"props":5387,"children":5388},{"class":1029,"line":91},[5389,5394,5398,5402,5406,5410,5415,5420,5424,5428],{"type":993,"tag":1027,"props":5390,"children":5391},{"style":1042},[5392],{"type":999,"value":5393},"indexed_from_1 ",{"type":993,"tag":1027,"props":5395,"children":5396},{"style":1048},[5397],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5399,"children":5400},{"style":1059},[5401],{"type":999,"value":1340},{"type":993,"tag":1027,"props":5403,"children":5404},{"style":1042},[5405],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5407,"children":5408},{"style":1059},[5409],{"type":999,"value":5344},{"type":993,"tag":1027,"props":5411,"children":5412},{"style":1042},[5413],{"type":999,"value":5414},"(fruits, ",{"type":993,"tag":1027,"props":5416,"children":5417},{"style":2208},[5418],{"type":999,"value":5419},"start",{"type":993,"tag":1027,"props":5421,"children":5422},{"style":1048},[5423],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5425,"children":5426},{"style":1059},[5427],{"type":999,"value":1062},{"type":993,"tag":1027,"props":5429,"children":5430},{"style":1042},[5431],{"type":999,"value":2225},{"type":993,"tag":1027,"props":5433,"children":5434},{"class":1029,"line":100},[5435,5439,5443,5448],{"type":993,"tag":1027,"props":5436,"children":5437},{"style":1059},[5438],{"type":999,"value":1226},{"type":993,"tag":1027,"props":5440,"children":5441},{"style":1042},[5442],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5444,"children":5445},{"style":1168},[5446],{"type":999,"value":5447},"\"Indexed from 1:\"",{"type":993,"tag":1027,"props":5449,"children":5450},{"style":1042},[5451],{"type":999,"value":5452},", indexed_from_1)\n",{"type":993,"tag":1027,"props":5454,"children":5455},{"class":1029,"line":109},[5456],{"type":993,"tag":1027,"props":5457,"children":5458},{"emptyLinePlaceholder":13},[5459],{"type":999,"value":1210},{"type":993,"tag":1027,"props":5461,"children":5462},{"class":1029,"line":118},[5463],{"type":993,"tag":1027,"props":5464,"children":5465},{"style":1033},[5466],{"type":999,"value":5467},"# Find positions of specific items\n",{"type":993,"tag":1027,"props":5469,"children":5470},{"class":1029,"line":127},[5471,5476,5480,5485,5490,5495,5499,5504,5509,5514,5519,5524],{"type":993,"tag":1027,"props":5472,"children":5473},{"style":1042},[5474],{"type":999,"value":5475},"positions ",{"type":993,"tag":1027,"props":5477,"children":5478},{"style":1048},[5479],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5481,"children":5482},{"style":1042},[5483],{"type":999,"value":5484}," [i ",{"type":993,"tag":1027,"props":5486,"children":5487},{"style":1048},[5488],{"type":999,"value":5489},"for",{"type":993,"tag":1027,"props":5491,"children":5492},{"style":1042},[5493],{"type":999,"value":5494}," i, fruit ",{"type":993,"tag":1027,"props":5496,"children":5497},{"style":1048},[5498],{"type":999,"value":1545},{"type":993,"tag":1027,"props":5500,"children":5501},{"style":1059},[5502],{"type":999,"value":5503}," enumerate",{"type":993,"tag":1027,"props":5505,"children":5506},{"style":1042},[5507],{"type":999,"value":5508},"(fruits) ",{"type":993,"tag":1027,"props":5510,"children":5511},{"style":1048},[5512],{"type":999,"value":5513},"if",{"type":993,"tag":1027,"props":5515,"children":5516},{"style":1168},[5517],{"type":999,"value":5518}," 'a'",{"type":993,"tag":1027,"props":5520,"children":5521},{"style":1048},[5522],{"type":999,"value":5523}," in",{"type":993,"tag":1027,"props":5525,"children":5526},{"style":1042},[5527],{"type":999,"value":5528}," fruit]\n",{"type":993,"tag":1027,"props":5530,"children":5531},{"class":1029,"line":136},[5532,5536,5540,5545],{"type":993,"tag":1027,"props":5533,"children":5534},{"style":1059},[5535],{"type":999,"value":1226},{"type":993,"tag":1027,"props":5537,"children":5538},{"style":1042},[5539],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5541,"children":5542},{"style":1168},[5543],{"type":999,"value":5544},"\"Fruits with 'a' at positions:\"",{"type":993,"tag":1027,"props":5546,"children":5547},{"style":1042},[5548],{"type":999,"value":5549},", positions)\n",{"type":993,"tag":1752,"props":5551,"children":5553},{"id":5552},"using-zip-for-advanced-combinations",[5554],{"type":999,"value":5555},"Using zip() for Advanced Combinations",{"type":993,"tag":1013,"props":5557,"children":5558},{},[5559],{"type":993,"tag":1017,"props":5560,"children":5562},{"className":1019,"code":5561,"language":6,"meta":8,"style":8},"# Advanced zip usage\nnames = [\"Alice\", \"Bob\", \"Charlie\"]\nages = [25, 30, 35]\ncities = [\"New York\", \"London\", \"Tokyo\"]\n\n# Combine multiple lists\npeople = list(zip(names, ages, cities))\nprint(\"People data:\")\nfor name, age, city in people:\n    print(f\"  {name}, {age}, {city}\")\n\n# Transpose data\nmatrix = [[1, 2, 3], [4, 5, 6]]\ntransposed = list(zip(*matrix))\nprint(\"Original matrix:\", matrix)\nprint(\"Transposed:\", transposed)\n",[5563],{"type":993,"tag":1023,"props":5564,"children":5565},{"__ignoreMap":8},[5566,5574,5617,5660,5703,5710,5718,5748,5769,5790,5870,5877,5885,5952,5990,6011],{"type":993,"tag":1027,"props":5567,"children":5568},{"class":1029,"line":12},[5569],{"type":993,"tag":1027,"props":5570,"children":5571},{"style":1033},[5572],{"type":999,"value":5573},"# Advanced zip usage\n",{"type":993,"tag":1027,"props":5575,"children":5576},{"class":1029,"line":27},[5577,5582,5586,5590,5595,5599,5604,5608,5613],{"type":993,"tag":1027,"props":5578,"children":5579},{"style":1042},[5580],{"type":999,"value":5581},"names ",{"type":993,"tag":1027,"props":5583,"children":5584},{"style":1048},[5585],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5587,"children":5588},{"style":1042},[5589],{"type":999,"value":1056},{"type":993,"tag":1027,"props":5591,"children":5592},{"style":1168},[5593],{"type":999,"value":5594},"\"Alice\"",{"type":993,"tag":1027,"props":5596,"children":5597},{"style":1042},[5598],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5600,"children":5601},{"style":1168},[5602],{"type":999,"value":5603},"\"Bob\"",{"type":993,"tag":1027,"props":5605,"children":5606},{"style":1042},[5607],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5609,"children":5610},{"style":1168},[5611],{"type":999,"value":5612},"\"Charlie\"",{"type":993,"tag":1027,"props":5614,"children":5615},{"style":1042},[5616],{"type":999,"value":1149},{"type":993,"tag":1027,"props":5618,"children":5619},{"class":1029,"line":36},[5620,5625,5629,5633,5638,5642,5647,5651,5656],{"type":993,"tag":1027,"props":5621,"children":5622},{"style":1042},[5623],{"type":999,"value":5624},"ages ",{"type":993,"tag":1027,"props":5626,"children":5627},{"style":1048},[5628],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5630,"children":5631},{"style":1042},[5632],{"type":999,"value":1056},{"type":993,"tag":1027,"props":5634,"children":5635},{"style":1059},[5636],{"type":999,"value":5637},"25",{"type":993,"tag":1027,"props":5639,"children":5640},{"style":1042},[5641],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5643,"children":5644},{"style":1059},[5645],{"type":999,"value":5646},"30",{"type":993,"tag":1027,"props":5648,"children":5649},{"style":1042},[5650],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5652,"children":5653},{"style":1059},[5654],{"type":999,"value":5655},"35",{"type":993,"tag":1027,"props":5657,"children":5658},{"style":1042},[5659],{"type":999,"value":1149},{"type":993,"tag":1027,"props":5661,"children":5662},{"class":1029,"line":45},[5663,5668,5672,5676,5681,5685,5690,5694,5699],{"type":993,"tag":1027,"props":5664,"children":5665},{"style":1042},[5666],{"type":999,"value":5667},"cities ",{"type":993,"tag":1027,"props":5669,"children":5670},{"style":1048},[5671],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5673,"children":5674},{"style":1042},[5675],{"type":999,"value":1056},{"type":993,"tag":1027,"props":5677,"children":5678},{"style":1168},[5679],{"type":999,"value":5680},"\"New York\"",{"type":993,"tag":1027,"props":5682,"children":5683},{"style":1042},[5684],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5686,"children":5687},{"style":1168},[5688],{"type":999,"value":5689},"\"London\"",{"type":993,"tag":1027,"props":5691,"children":5692},{"style":1042},[5693],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5695,"children":5696},{"style":1168},[5697],{"type":999,"value":5698},"\"Tokyo\"",{"type":993,"tag":1027,"props":5700,"children":5701},{"style":1042},[5702],{"type":999,"value":1149},{"type":993,"tag":1027,"props":5704,"children":5705},{"class":1029,"line":54},[5706],{"type":993,"tag":1027,"props":5707,"children":5708},{"emptyLinePlaceholder":13},[5709],{"type":999,"value":1210},{"type":993,"tag":1027,"props":5711,"children":5712},{"class":1029,"line":63},[5713],{"type":993,"tag":1027,"props":5714,"children":5715},{"style":1033},[5716],{"type":999,"value":5717},"# Combine multiple lists\n",{"type":993,"tag":1027,"props":5719,"children":5720},{"class":1029,"line":72},[5721,5726,5730,5734,5738,5743],{"type":993,"tag":1027,"props":5722,"children":5723},{"style":1042},[5724],{"type":999,"value":5725},"people ",{"type":993,"tag":1027,"props":5727,"children":5728},{"style":1048},[5729],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5731,"children":5732},{"style":1059},[5733],{"type":999,"value":1340},{"type":993,"tag":1027,"props":5735,"children":5736},{"style":1042},[5737],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5739,"children":5740},{"style":1059},[5741],{"type":999,"value":5742},"zip",{"type":993,"tag":1027,"props":5744,"children":5745},{"style":1042},[5746],{"type":999,"value":5747},"(names, ages, cities))\n",{"type":993,"tag":1027,"props":5749,"children":5750},{"class":1029,"line":81},[5751,5755,5759,5764],{"type":993,"tag":1027,"props":5752,"children":5753},{"style":1059},[5754],{"type":999,"value":1226},{"type":993,"tag":1027,"props":5756,"children":5757},{"style":1042},[5758],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5760,"children":5761},{"style":1168},[5762],{"type":999,"value":5763},"\"People data:\"",{"type":993,"tag":1027,"props":5765,"children":5766},{"style":1042},[5767],{"type":999,"value":5768},")\n",{"type":993,"tag":1027,"props":5770,"children":5771},{"class":1029,"line":91},[5772,5776,5781,5785],{"type":993,"tag":1027,"props":5773,"children":5774},{"style":1048},[5775],{"type":999,"value":5489},{"type":993,"tag":1027,"props":5777,"children":5778},{"style":1042},[5779],{"type":999,"value":5780}," name, age, city ",{"type":993,"tag":1027,"props":5782,"children":5783},{"style":1048},[5784],{"type":999,"value":1545},{"type":993,"tag":1027,"props":5786,"children":5787},{"style":1042},[5788],{"type":999,"value":5789}," people:\n",{"type":993,"tag":1027,"props":5791,"children":5792},{"class":1029,"line":100},[5793,5798,5802,5807,5812,5817,5822,5827,5831,5835,5840,5844,5848,5852,5857,5861,5866],{"type":993,"tag":1027,"props":5794,"children":5795},{"style":1059},[5796],{"type":999,"value":5797},"    print",{"type":993,"tag":1027,"props":5799,"children":5800},{"style":1042},[5801],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5803,"children":5804},{"style":1048},[5805],{"type":999,"value":5806},"f",{"type":993,"tag":1027,"props":5808,"children":5809},{"style":1168},[5810],{"type":999,"value":5811},"\"  ",{"type":993,"tag":1027,"props":5813,"children":5814},{"style":1059},[5815],{"type":999,"value":5816},"{",{"type":993,"tag":1027,"props":5818,"children":5819},{"style":1042},[5820],{"type":999,"value":5821},"name",{"type":993,"tag":1027,"props":5823,"children":5824},{"style":1059},[5825],{"type":999,"value":5826},"}",{"type":993,"tag":1027,"props":5828,"children":5829},{"style":1168},[5830],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5832,"children":5833},{"style":1059},[5834],{"type":999,"value":5816},{"type":993,"tag":1027,"props":5836,"children":5837},{"style":1042},[5838],{"type":999,"value":5839},"age",{"type":993,"tag":1027,"props":5841,"children":5842},{"style":1059},[5843],{"type":999,"value":5826},{"type":993,"tag":1027,"props":5845,"children":5846},{"style":1168},[5847],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5849,"children":5850},{"style":1059},[5851],{"type":999,"value":5816},{"type":993,"tag":1027,"props":5853,"children":5854},{"style":1042},[5855],{"type":999,"value":5856},"city",{"type":993,"tag":1027,"props":5858,"children":5859},{"style":1059},[5860],{"type":999,"value":5826},{"type":993,"tag":1027,"props":5862,"children":5863},{"style":1168},[5864],{"type":999,"value":5865},"\"",{"type":993,"tag":1027,"props":5867,"children":5868},{"style":1042},[5869],{"type":999,"value":5768},{"type":993,"tag":1027,"props":5871,"children":5872},{"class":1029,"line":109},[5873],{"type":993,"tag":1027,"props":5874,"children":5875},{"emptyLinePlaceholder":13},[5876],{"type":999,"value":1210},{"type":993,"tag":1027,"props":5878,"children":5879},{"class":1029,"line":118},[5880],{"type":993,"tag":1027,"props":5881,"children":5882},{"style":1033},[5883],{"type":999,"value":5884},"# Transpose data\n",{"type":993,"tag":1027,"props":5886,"children":5887},{"class":1029,"line":127},[5888,5893,5897,5902,5906,5910,5914,5918,5922,5927,5931,5935,5939,5943,5947],{"type":993,"tag":1027,"props":5889,"children":5890},{"style":1042},[5891],{"type":999,"value":5892},"matrix ",{"type":993,"tag":1027,"props":5894,"children":5895},{"style":1048},[5896],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5898,"children":5899},{"style":1042},[5900],{"type":999,"value":5901}," [[",{"type":993,"tag":1027,"props":5903,"children":5904},{"style":1059},[5905],{"type":999,"value":1062},{"type":993,"tag":1027,"props":5907,"children":5908},{"style":1042},[5909],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5911,"children":5912},{"style":1059},[5913],{"type":999,"value":1072},{"type":993,"tag":1027,"props":5915,"children":5916},{"style":1042},[5917],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5919,"children":5920},{"style":1059},[5921],{"type":999,"value":1081},{"type":993,"tag":1027,"props":5923,"children":5924},{"style":1042},[5925],{"type":999,"value":5926},"], [",{"type":993,"tag":1027,"props":5928,"children":5929},{"style":1059},[5930],{"type":999,"value":1090},{"type":993,"tag":1027,"props":5932,"children":5933},{"style":1042},[5934],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5936,"children":5937},{"style":1059},[5938],{"type":999,"value":1099},{"type":993,"tag":1027,"props":5940,"children":5941},{"style":1042},[5942],{"type":999,"value":1067},{"type":993,"tag":1027,"props":5944,"children":5945},{"style":1059},[5946],{"type":999,"value":1108},{"type":993,"tag":1027,"props":5948,"children":5949},{"style":1042},[5950],{"type":999,"value":5951},"]]\n",{"type":993,"tag":1027,"props":5953,"children":5954},{"class":1029,"line":136},[5955,5960,5964,5968,5972,5976,5980,5985],{"type":993,"tag":1027,"props":5956,"children":5957},{"style":1042},[5958],{"type":999,"value":5959},"transposed ",{"type":993,"tag":1027,"props":5961,"children":5962},{"style":1048},[5963],{"type":999,"value":1051},{"type":993,"tag":1027,"props":5965,"children":5966},{"style":1059},[5967],{"type":999,"value":1340},{"type":993,"tag":1027,"props":5969,"children":5970},{"style":1042},[5971],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5973,"children":5974},{"style":1059},[5975],{"type":999,"value":5742},{"type":993,"tag":1027,"props":5977,"children":5978},{"style":1042},[5979],{"type":999,"value":1231},{"type":993,"tag":1027,"props":5981,"children":5982},{"style":1048},[5983],{"type":999,"value":5984},"*",{"type":993,"tag":1027,"props":5986,"children":5987},{"style":1042},[5988],{"type":999,"value":5989},"matrix))\n",{"type":993,"tag":1027,"props":5991,"children":5992},{"class":1029,"line":146},[5993,5997,6001,6006],{"type":993,"tag":1027,"props":5994,"children":5995},{"style":1059},[5996],{"type":999,"value":1226},{"type":993,"tag":1027,"props":5998,"children":5999},{"style":1042},[6000],{"type":999,"value":1231},{"type":993,"tag":1027,"props":6002,"children":6003},{"style":1168},[6004],{"type":999,"value":6005},"\"Original matrix:\"",{"type":993,"tag":1027,"props":6007,"children":6008},{"style":1042},[6009],{"type":999,"value":6010},", matrix)\n",{"type":993,"tag":1027,"props":6012,"children":6013},{"class":1029,"line":155},[6014,6018,6022,6027],{"type":993,"tag":1027,"props":6015,"children":6016},{"style":1059},[6017],{"type":999,"value":1226},{"type":993,"tag":1027,"props":6019,"children":6020},{"style":1042},[6021],{"type":999,"value":1231},{"type":993,"tag":1027,"props":6023,"children":6024},{"style":1168},[6025],{"type":999,"value":6026},"\"Transposed:\"",{"type":993,"tag":1027,"props":6028,"children":6029},{"style":1042},[6030],{"type":999,"value":6031},", transposed)\n",{"type":993,"tag":6033,"props":6034,"children":6037},"exercise",{"hint":6035,"prompt":6036},"Use built-in functions like len(), sum(), min(), max() and a list comprehension to count above average","Create a function that takes a list of numbers and returns a dictionary with statistics: count, sum, average, min, max, and how many are above average",[6038],{"type":993,"tag":1017,"props":6039,"children":6041},{"className":1019,"code":6040,"language":6,"meta":8,"style":8},"def calculate_statistics(numbers):\n    if not numbers:\n        return {\"error\": \"Empty list\"}\n    \n    # TODO: Calculate all statistics using built-in functions\n    # Calculate count, sum, average, min, max\n    # Then count how many numbers are above average\n    # TODO: Your code here\n    \n    return stats\n\n# Test the function\ntest_numbers = [85, 92, 78, 96, 88, 73, 91, 87, 94, 82]\nstats = calculate_statistics(test_numbers)\nprint(\"Statistics for\", test_numbers)\nfor key, value in stats.items():\n    print(f\"{key}: {value}\")\n",[6042],{"type":993,"tag":1023,"props":6043,"children":6044},{"__ignoreMap":8},[6045,6062,6080,6113,6121,6139,6147,6155,6171,6178,6190,6197,6205,6304,6321,6342,6363],{"type":993,"tag":1027,"props":6046,"children":6047},{"class":1029,"line":12},[6048,6052,6057],{"type":993,"tag":1027,"props":6049,"children":6050},{"style":1048},[6051],{"type":999,"value":2846},{"type":993,"tag":1027,"props":6053,"children":6054},{"style":2849},[6055],{"type":999,"value":6056}," calculate_statistics",{"type":993,"tag":1027,"props":6058,"children":6059},{"style":1042},[6060],{"type":999,"value":6061},"(numbers):\n",{"type":993,"tag":1027,"props":6063,"children":6064},{"class":1029,"line":27},[6065,6070,6075],{"type":993,"tag":1027,"props":6066,"children":6067},{"style":1048},[6068],{"type":999,"value":6069},"    if",{"type":993,"tag":1027,"props":6071,"children":6072},{"style":1048},[6073],{"type":999,"value":6074}," not",{"type":993,"tag":1027,"props":6076,"children":6077},{"style":1042},[6078],{"type":999,"value":6079}," numbers:\n",{"type":993,"tag":1027,"props":6081,"children":6082},{"class":1029,"line":36},[6083,6088,6093,6098,6103,6108],{"type":993,"tag":1027,"props":6084,"children":6085},{"style":1048},[6086],{"type":999,"value":6087},"        return",{"type":993,"tag":1027,"props":6089,"children":6090},{"style":1042},[6091],{"type":999,"value":6092}," {",{"type":993,"tag":1027,"props":6094,"children":6095},{"style":1168},[6096],{"type":999,"value":6097},"\"error\"",{"type":993,"tag":1027,"props":6099,"children":6100},{"style":1042},[6101],{"type":999,"value":6102},": ",{"type":993,"tag":1027,"props":6104,"children":6105},{"style":1168},[6106],{"type":999,"value":6107},"\"Empty list\"",{"type":993,"tag":1027,"props":6109,"children":6110},{"style":1042},[6111],{"type":999,"value":6112},"}\n",{"type":993,"tag":1027,"props":6114,"children":6115},{"class":1029,"line":45},[6116],{"type":993,"tag":1027,"props":6117,"children":6118},{"style":1042},[6119],{"type":999,"value":6120},"    \n",{"type":993,"tag":1027,"props":6122,"children":6123},{"class":1029,"line":54},[6124,6129,6134],{"type":993,"tag":1027,"props":6125,"children":6126},{"style":1033},[6127],{"type":999,"value":6128},"    # ",{"type":993,"tag":1027,"props":6130,"children":6131},{"style":1048},[6132],{"type":999,"value":6133},"TODO",{"type":993,"tag":1027,"props":6135,"children":6136},{"style":1033},[6137],{"type":999,"value":6138},": Calculate all statistics using built-in functions\n",{"type":993,"tag":1027,"props":6140,"children":6141},{"class":1029,"line":63},[6142],{"type":993,"tag":1027,"props":6143,"children":6144},{"style":1033},[6145],{"type":999,"value":6146},"    # Calculate count, sum, average, min, max\n",{"type":993,"tag":1027,"props":6148,"children":6149},{"class":1029,"line":72},[6150],{"type":993,"tag":1027,"props":6151,"children":6152},{"style":1033},[6153],{"type":999,"value":6154},"    # Then count how many numbers are above average\n",{"type":993,"tag":1027,"props":6156,"children":6157},{"class":1029,"line":81},[6158,6162,6166],{"type":993,"tag":1027,"props":6159,"children":6160},{"style":1033},[6161],{"type":999,"value":6128},{"type":993,"tag":1027,"props":6163,"children":6164},{"style":1048},[6165],{"type":999,"value":6133},{"type":993,"tag":1027,"props":6167,"children":6168},{"style":1033},[6169],{"type":999,"value":6170},": Your code here\n",{"type":993,"tag":1027,"props":6172,"children":6173},{"class":1029,"line":91},[6174],{"type":993,"tag":1027,"props":6175,"children":6176},{"style":1042},[6177],{"type":999,"value":6120},{"type":993,"tag":1027,"props":6179,"children":6180},{"class":1029,"line":100},[6181,6185],{"type":993,"tag":1027,"props":6182,"children":6183},{"style":1048},[6184],{"type":999,"value":2865},{"type":993,"tag":1027,"props":6186,"children":6187},{"style":1042},[6188],{"type":999,"value":6189}," stats\n",{"type":993,"tag":1027,"props":6191,"children":6192},{"class":1029,"line":109},[6193],{"type":993,"tag":1027,"props":6194,"children":6195},{"emptyLinePlaceholder":13},[6196],{"type":999,"value":1210},{"type":993,"tag":1027,"props":6198,"children":6199},{"class":1029,"line":118},[6200],{"type":993,"tag":1027,"props":6201,"children":6202},{"style":1033},[6203],{"type":999,"value":6204},"# Test the function\n",{"type":993,"tag":1027,"props":6206,"children":6207},{"class":1029,"line":127},[6208,6213,6217,6221,6225,6229,6233,6237,6241,6245,6249,6253,6257,6261,6265,6269,6273,6277,6282,6286,6291,6295,6300],{"type":993,"tag":1027,"props":6209,"children":6210},{"style":1042},[6211],{"type":999,"value":6212},"test_numbers ",{"type":993,"tag":1027,"props":6214,"children":6215},{"style":1048},[6216],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6218,"children":6219},{"style":1042},[6220],{"type":999,"value":1056},{"type":993,"tag":1027,"props":6222,"children":6223},{"style":1059},[6224],{"type":999,"value":1796},{"type":993,"tag":1027,"props":6226,"children":6227},{"style":1042},[6228],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6230,"children":6231},{"style":1059},[6232],{"type":999,"value":1805},{"type":993,"tag":1027,"props":6234,"children":6235},{"style":1042},[6236],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6238,"children":6239},{"style":1059},[6240],{"type":999,"value":1814},{"type":993,"tag":1027,"props":6242,"children":6243},{"style":1042},[6244],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6246,"children":6247},{"style":1059},[6248],{"type":999,"value":1823},{"type":993,"tag":1027,"props":6250,"children":6251},{"style":1042},[6252],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6254,"children":6255},{"style":1059},[6256],{"type":999,"value":1832},{"type":993,"tag":1027,"props":6258,"children":6259},{"style":1042},[6260],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6262,"children":6263},{"style":1059},[6264],{"type":999,"value":1841},{"type":993,"tag":1027,"props":6266,"children":6267},{"style":1042},[6268],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6270,"children":6271},{"style":1059},[6272],{"type":999,"value":1850},{"type":993,"tag":1027,"props":6274,"children":6275},{"style":1042},[6276],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6278,"children":6279},{"style":1059},[6280],{"type":999,"value":6281},"87",{"type":993,"tag":1027,"props":6283,"children":6284},{"style":1042},[6285],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6287,"children":6288},{"style":1059},[6289],{"type":999,"value":6290},"94",{"type":993,"tag":1027,"props":6292,"children":6293},{"style":1042},[6294],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6296,"children":6297},{"style":1059},[6298],{"type":999,"value":6299},"82",{"type":993,"tag":1027,"props":6301,"children":6302},{"style":1042},[6303],{"type":999,"value":1149},{"type":993,"tag":1027,"props":6305,"children":6306},{"class":1029,"line":136},[6307,6312,6316],{"type":993,"tag":1027,"props":6308,"children":6309},{"style":1042},[6310],{"type":999,"value":6311},"stats ",{"type":993,"tag":1027,"props":6313,"children":6314},{"style":1048},[6315],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6317,"children":6318},{"style":1042},[6319],{"type":999,"value":6320}," calculate_statistics(test_numbers)\n",{"type":993,"tag":1027,"props":6322,"children":6323},{"class":1029,"line":146},[6324,6328,6332,6337],{"type":993,"tag":1027,"props":6325,"children":6326},{"style":1059},[6327],{"type":999,"value":1226},{"type":993,"tag":1027,"props":6329,"children":6330},{"style":1042},[6331],{"type":999,"value":1231},{"type":993,"tag":1027,"props":6333,"children":6334},{"style":1168},[6335],{"type":999,"value":6336},"\"Statistics for\"",{"type":993,"tag":1027,"props":6338,"children":6339},{"style":1042},[6340],{"type":999,"value":6341},", test_numbers)\n",{"type":993,"tag":1027,"props":6343,"children":6344},{"class":1029,"line":155},[6345,6349,6354,6358],{"type":993,"tag":1027,"props":6346,"children":6347},{"style":1048},[6348],{"type":999,"value":5489},{"type":993,"tag":1027,"props":6350,"children":6351},{"style":1042},[6352],{"type":999,"value":6353}," key, value ",{"type":993,"tag":1027,"props":6355,"children":6356},{"style":1048},[6357],{"type":999,"value":1545},{"type":993,"tag":1027,"props":6359,"children":6360},{"style":1042},[6361],{"type":999,"value":6362}," stats.items():\n",{"type":993,"tag":1027,"props":6364,"children":6365},{"class":1029,"line":164},[6366,6370,6374,6378,6382,6386,6391,6395,6399,6403,6408,6412,6416],{"type":993,"tag":1027,"props":6367,"children":6368},{"style":1059},[6369],{"type":999,"value":5797},{"type":993,"tag":1027,"props":6371,"children":6372},{"style":1042},[6373],{"type":999,"value":1231},{"type":993,"tag":1027,"props":6375,"children":6376},{"style":1048},[6377],{"type":999,"value":5806},{"type":993,"tag":1027,"props":6379,"children":6380},{"style":1168},[6381],{"type":999,"value":5865},{"type":993,"tag":1027,"props":6383,"children":6384},{"style":1059},[6385],{"type":999,"value":5816},{"type":993,"tag":1027,"props":6387,"children":6388},{"style":1042},[6389],{"type":999,"value":6390},"key",{"type":993,"tag":1027,"props":6392,"children":6393},{"style":1059},[6394],{"type":999,"value":5826},{"type":993,"tag":1027,"props":6396,"children":6397},{"style":1168},[6398],{"type":999,"value":6102},{"type":993,"tag":1027,"props":6400,"children":6401},{"style":1059},[6402],{"type":999,"value":5816},{"type":993,"tag":1027,"props":6404,"children":6405},{"style":1042},[6406],{"type":999,"value":6407},"value",{"type":993,"tag":1027,"props":6409,"children":6410},{"style":1059},[6411],{"type":999,"value":5826},{"type":993,"tag":1027,"props":6413,"children":6414},{"style":1168},[6415],{"type":999,"value":5865},{"type":993,"tag":1027,"props":6417,"children":6418},{"style":1042},[6419],{"type":999,"value":5768},{"type":993,"tag":1752,"props":6421,"children":6423},{"id":6422},"solution-and-explanation",[6424],{"type":999,"value":6425},"Solution and Explanation 💡",{"type":993,"tag":6427,"props":6428,"children":6429},"details",{},[6430,6438,7064,7072],{"type":993,"tag":6431,"props":6432,"children":6435},"summary",{"className":6433},[6434],"cursor-pointer",[6436],{"type":999,"value":6437},"Click to see the complete solution",{"type":993,"tag":1013,"props":6439,"children":6440},{},[6441],{"type":993,"tag":1017,"props":6442,"children":6444},{"className":1019,"code":6443,"language":6,"meta":8,"style":8},"def calculate_statistics(numbers):\n    if not numbers:\n        return {\"error\": \"Empty list\"}\n    \n    # Calculate basic statistics using built-in functions\n    count = len(numbers)\n    total = sum(numbers)\n    average = total / count\n    minimum = min(numbers)\n    maximum = max(numbers)\n    \n    # Count numbers above average\n    above_average_count = len([n for n in numbers if n > average])\n    \n    stats = {\n        \"count\": count,\n        \"sum\": total,\n        \"average\": round(average, 2),\n        \"min\": minimum,\n        \"max\": maximum,\n        \"above_average\": above_average_count\n    }\n    \n    return stats\n\n# Test the function\ntest_numbers = [85, 92, 78, 96, 88, 73, 91, 87, 94, 82]\nstats = calculate_statistics(test_numbers)\nprint(\"Statistics for\", test_numbers)\nfor key, value in stats.items():\n    print(f\"{key}: {value}\")\n",[6445],{"type":993,"tag":1023,"props":6446,"children":6447},{"__ignoreMap":8},[6448,6463,6478,6505,6512,6520,6541,6562,6588,6609,6630,6637,6645,6701,6708,6725,6738,6751,6782,6795,6808,6821,6829,6836,6847,6854,6861,6956,6971,6990,7009],{"type":993,"tag":1027,"props":6449,"children":6450},{"class":1029,"line":12},[6451,6455,6459],{"type":993,"tag":1027,"props":6452,"children":6453},{"style":1048},[6454],{"type":999,"value":2846},{"type":993,"tag":1027,"props":6456,"children":6457},{"style":2849},[6458],{"type":999,"value":6056},{"type":993,"tag":1027,"props":6460,"children":6461},{"style":1042},[6462],{"type":999,"value":6061},{"type":993,"tag":1027,"props":6464,"children":6465},{"class":1029,"line":27},[6466,6470,6474],{"type":993,"tag":1027,"props":6467,"children":6468},{"style":1048},[6469],{"type":999,"value":6069},{"type":993,"tag":1027,"props":6471,"children":6472},{"style":1048},[6473],{"type":999,"value":6074},{"type":993,"tag":1027,"props":6475,"children":6476},{"style":1042},[6477],{"type":999,"value":6079},{"type":993,"tag":1027,"props":6479,"children":6480},{"class":1029,"line":36},[6481,6485,6489,6493,6497,6501],{"type":993,"tag":1027,"props":6482,"children":6483},{"style":1048},[6484],{"type":999,"value":6087},{"type":993,"tag":1027,"props":6486,"children":6487},{"style":1042},[6488],{"type":999,"value":6092},{"type":993,"tag":1027,"props":6490,"children":6491},{"style":1168},[6492],{"type":999,"value":6097},{"type":993,"tag":1027,"props":6494,"children":6495},{"style":1042},[6496],{"type":999,"value":6102},{"type":993,"tag":1027,"props":6498,"children":6499},{"style":1168},[6500],{"type":999,"value":6107},{"type":993,"tag":1027,"props":6502,"children":6503},{"style":1042},[6504],{"type":999,"value":6112},{"type":993,"tag":1027,"props":6506,"children":6507},{"class":1029,"line":45},[6508],{"type":993,"tag":1027,"props":6509,"children":6510},{"style":1042},[6511],{"type":999,"value":6120},{"type":993,"tag":1027,"props":6513,"children":6514},{"class":1029,"line":54},[6515],{"type":993,"tag":1027,"props":6516,"children":6517},{"style":1033},[6518],{"type":999,"value":6519},"    # Calculate basic statistics using built-in functions\n",{"type":993,"tag":1027,"props":6521,"children":6522},{"class":1029,"line":63},[6523,6528,6532,6536],{"type":993,"tag":1027,"props":6524,"children":6525},{"style":1042},[6526],{"type":999,"value":6527},"    count ",{"type":993,"tag":1027,"props":6529,"children":6530},{"style":1048},[6531],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6533,"children":6534},{"style":1059},[6535],{"type":999,"value":1976},{"type":993,"tag":1027,"props":6537,"children":6538},{"style":1042},[6539],{"type":999,"value":6540},"(numbers)\n",{"type":993,"tag":1027,"props":6542,"children":6543},{"class":1029,"line":72},[6544,6549,6553,6558],{"type":993,"tag":1027,"props":6545,"children":6546},{"style":1042},[6547],{"type":999,"value":6548},"    total ",{"type":993,"tag":1027,"props":6550,"children":6551},{"style":1048},[6552],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6554,"children":6555},{"style":1059},[6556],{"type":999,"value":6557}," sum",{"type":993,"tag":1027,"props":6559,"children":6560},{"style":1042},[6561],{"type":999,"value":6540},{"type":993,"tag":1027,"props":6563,"children":6564},{"class":1029,"line":81},[6565,6570,6574,6579,6583],{"type":993,"tag":1027,"props":6566,"children":6567},{"style":1042},[6568],{"type":999,"value":6569},"    average ",{"type":993,"tag":1027,"props":6571,"children":6572},{"style":1048},[6573],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6575,"children":6576},{"style":1042},[6577],{"type":999,"value":6578}," total ",{"type":993,"tag":1027,"props":6580,"children":6581},{"style":1048},[6582],{"type":999,"value":1743},{"type":993,"tag":1027,"props":6584,"children":6585},{"style":1042},[6586],{"type":999,"value":6587}," count\n",{"type":993,"tag":1027,"props":6589,"children":6590},{"class":1029,"line":91},[6591,6596,6600,6605],{"type":993,"tag":1027,"props":6592,"children":6593},{"style":1042},[6594],{"type":999,"value":6595},"    minimum ",{"type":993,"tag":1027,"props":6597,"children":6598},{"style":1048},[6599],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6601,"children":6602},{"style":1059},[6603],{"type":999,"value":6604}," min",{"type":993,"tag":1027,"props":6606,"children":6607},{"style":1042},[6608],{"type":999,"value":6540},{"type":993,"tag":1027,"props":6610,"children":6611},{"class":1029,"line":100},[6612,6617,6621,6626],{"type":993,"tag":1027,"props":6613,"children":6614},{"style":1042},[6615],{"type":999,"value":6616},"    maximum ",{"type":993,"tag":1027,"props":6618,"children":6619},{"style":1048},[6620],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6622,"children":6623},{"style":1059},[6624],{"type":999,"value":6625}," max",{"type":993,"tag":1027,"props":6627,"children":6628},{"style":1042},[6629],{"type":999,"value":6540},{"type":993,"tag":1027,"props":6631,"children":6632},{"class":1029,"line":109},[6633],{"type":993,"tag":1027,"props":6634,"children":6635},{"style":1042},[6636],{"type":999,"value":6120},{"type":993,"tag":1027,"props":6638,"children":6639},{"class":1029,"line":118},[6640],{"type":993,"tag":1027,"props":6641,"children":6642},{"style":1033},[6643],{"type":999,"value":6644},"    # Count numbers above average\n",{"type":993,"tag":1027,"props":6646,"children":6647},{"class":1029,"line":127},[6648,6653,6657,6661,6666,6670,6675,6679,6684,6688,6692,6696],{"type":993,"tag":1027,"props":6649,"children":6650},{"style":1042},[6651],{"type":999,"value":6652},"    above_average_count ",{"type":993,"tag":1027,"props":6654,"children":6655},{"style":1048},[6656],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6658,"children":6659},{"style":1059},[6660],{"type":999,"value":1976},{"type":993,"tag":1027,"props":6662,"children":6663},{"style":1042},[6664],{"type":999,"value":6665},"([n ",{"type":993,"tag":1027,"props":6667,"children":6668},{"style":1048},[6669],{"type":999,"value":5489},{"type":993,"tag":1027,"props":6671,"children":6672},{"style":1042},[6673],{"type":999,"value":6674}," n ",{"type":993,"tag":1027,"props":6676,"children":6677},{"style":1048},[6678],{"type":999,"value":1545},{"type":993,"tag":1027,"props":6680,"children":6681},{"style":1042},[6682],{"type":999,"value":6683}," numbers ",{"type":993,"tag":1027,"props":6685,"children":6686},{"style":1048},[6687],{"type":999,"value":5513},{"type":993,"tag":1027,"props":6689,"children":6690},{"style":1042},[6691],{"type":999,"value":6674},{"type":993,"tag":1027,"props":6693,"children":6694},{"style":1048},[6695],{"type":999,"value":1526},{"type":993,"tag":1027,"props":6697,"children":6698},{"style":1042},[6699],{"type":999,"value":6700}," average])\n",{"type":993,"tag":1027,"props":6702,"children":6703},{"class":1029,"line":136},[6704],{"type":993,"tag":1027,"props":6705,"children":6706},{"style":1042},[6707],{"type":999,"value":6120},{"type":993,"tag":1027,"props":6709,"children":6710},{"class":1029,"line":146},[6711,6716,6720],{"type":993,"tag":1027,"props":6712,"children":6713},{"style":1042},[6714],{"type":999,"value":6715},"    stats ",{"type":993,"tag":1027,"props":6717,"children":6718},{"style":1048},[6719],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6721,"children":6722},{"style":1042},[6723],{"type":999,"value":6724}," {\n",{"type":993,"tag":1027,"props":6726,"children":6727},{"class":1029,"line":155},[6728,6733],{"type":993,"tag":1027,"props":6729,"children":6730},{"style":1168},[6731],{"type":999,"value":6732},"        \"count\"",{"type":993,"tag":1027,"props":6734,"children":6735},{"style":1042},[6736],{"type":999,"value":6737},": count,\n",{"type":993,"tag":1027,"props":6739,"children":6740},{"class":1029,"line":164},[6741,6746],{"type":993,"tag":1027,"props":6742,"children":6743},{"style":1168},[6744],{"type":999,"value":6745},"        \"sum\"",{"type":993,"tag":1027,"props":6747,"children":6748},{"style":1042},[6749],{"type":999,"value":6750},": total,\n",{"type":993,"tag":1027,"props":6752,"children":6753},{"class":1029,"line":173},[6754,6759,6763,6768,6773,6777],{"type":993,"tag":1027,"props":6755,"children":6756},{"style":1168},[6757],{"type":999,"value":6758},"        \"average\"",{"type":993,"tag":1027,"props":6760,"children":6761},{"style":1042},[6762],{"type":999,"value":6102},{"type":993,"tag":1027,"props":6764,"children":6765},{"style":1059},[6766],{"type":999,"value":6767},"round",{"type":993,"tag":1027,"props":6769,"children":6770},{"style":1042},[6771],{"type":999,"value":6772},"(average, ",{"type":993,"tag":1027,"props":6774,"children":6775},{"style":1059},[6776],{"type":999,"value":1072},{"type":993,"tag":1027,"props":6778,"children":6779},{"style":1042},[6780],{"type":999,"value":6781},"),\n",{"type":993,"tag":1027,"props":6783,"children":6784},{"class":1029,"line":182},[6785,6790],{"type":993,"tag":1027,"props":6786,"children":6787},{"style":1168},[6788],{"type":999,"value":6789},"        \"min\"",{"type":993,"tag":1027,"props":6791,"children":6792},{"style":1042},[6793],{"type":999,"value":6794},": minimum,\n",{"type":993,"tag":1027,"props":6796,"children":6797},{"class":1029,"line":191},[6798,6803],{"type":993,"tag":1027,"props":6799,"children":6800},{"style":1168},[6801],{"type":999,"value":6802},"        \"max\"",{"type":993,"tag":1027,"props":6804,"children":6805},{"style":1042},[6806],{"type":999,"value":6807},": maximum,\n",{"type":993,"tag":1027,"props":6809,"children":6810},{"class":1029,"line":201},[6811,6816],{"type":993,"tag":1027,"props":6812,"children":6813},{"style":1168},[6814],{"type":999,"value":6815},"        \"above_average\"",{"type":993,"tag":1027,"props":6817,"children":6818},{"style":1042},[6819],{"type":999,"value":6820},": above_average_count\n",{"type":993,"tag":1027,"props":6822,"children":6823},{"class":1029,"line":210},[6824],{"type":993,"tag":1027,"props":6825,"children":6826},{"style":1042},[6827],{"type":999,"value":6828},"    }\n",{"type":993,"tag":1027,"props":6830,"children":6831},{"class":1029,"line":219},[6832],{"type":993,"tag":1027,"props":6833,"children":6834},{"style":1042},[6835],{"type":999,"value":6120},{"type":993,"tag":1027,"props":6837,"children":6838},{"class":1029,"line":228},[6839,6843],{"type":993,"tag":1027,"props":6840,"children":6841},{"style":1048},[6842],{"type":999,"value":2865},{"type":993,"tag":1027,"props":6844,"children":6845},{"style":1042},[6846],{"type":999,"value":6189},{"type":993,"tag":1027,"props":6848,"children":6849},{"class":1029,"line":238},[6850],{"type":993,"tag":1027,"props":6851,"children":6852},{"emptyLinePlaceholder":13},[6853],{"type":999,"value":1210},{"type":993,"tag":1027,"props":6855,"children":6856},{"class":1029,"line":247},[6857],{"type":993,"tag":1027,"props":6858,"children":6859},{"style":1033},[6860],{"type":999,"value":6204},{"type":993,"tag":1027,"props":6862,"children":6863},{"class":1029,"line":256},[6864,6868,6872,6876,6880,6884,6888,6892,6896,6900,6904,6908,6912,6916,6920,6924,6928,6932,6936,6940,6944,6948,6952],{"type":993,"tag":1027,"props":6865,"children":6866},{"style":1042},[6867],{"type":999,"value":6212},{"type":993,"tag":1027,"props":6869,"children":6870},{"style":1048},[6871],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6873,"children":6874},{"style":1042},[6875],{"type":999,"value":1056},{"type":993,"tag":1027,"props":6877,"children":6878},{"style":1059},[6879],{"type":999,"value":1796},{"type":993,"tag":1027,"props":6881,"children":6882},{"style":1042},[6883],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6885,"children":6886},{"style":1059},[6887],{"type":999,"value":1805},{"type":993,"tag":1027,"props":6889,"children":6890},{"style":1042},[6891],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6893,"children":6894},{"style":1059},[6895],{"type":999,"value":1814},{"type":993,"tag":1027,"props":6897,"children":6898},{"style":1042},[6899],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6901,"children":6902},{"style":1059},[6903],{"type":999,"value":1823},{"type":993,"tag":1027,"props":6905,"children":6906},{"style":1042},[6907],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6909,"children":6910},{"style":1059},[6911],{"type":999,"value":1832},{"type":993,"tag":1027,"props":6913,"children":6914},{"style":1042},[6915],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6917,"children":6918},{"style":1059},[6919],{"type":999,"value":1841},{"type":993,"tag":1027,"props":6921,"children":6922},{"style":1042},[6923],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6925,"children":6926},{"style":1059},[6927],{"type":999,"value":1850},{"type":993,"tag":1027,"props":6929,"children":6930},{"style":1042},[6931],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6933,"children":6934},{"style":1059},[6935],{"type":999,"value":6281},{"type":993,"tag":1027,"props":6937,"children":6938},{"style":1042},[6939],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6941,"children":6942},{"style":1059},[6943],{"type":999,"value":6290},{"type":993,"tag":1027,"props":6945,"children":6946},{"style":1042},[6947],{"type":999,"value":1067},{"type":993,"tag":1027,"props":6949,"children":6950},{"style":1059},[6951],{"type":999,"value":6299},{"type":993,"tag":1027,"props":6953,"children":6954},{"style":1042},[6955],{"type":999,"value":1149},{"type":993,"tag":1027,"props":6957,"children":6958},{"class":1029,"line":265},[6959,6963,6967],{"type":993,"tag":1027,"props":6960,"children":6961},{"style":1042},[6962],{"type":999,"value":6311},{"type":993,"tag":1027,"props":6964,"children":6965},{"style":1048},[6966],{"type":999,"value":1051},{"type":993,"tag":1027,"props":6968,"children":6969},{"style":1042},[6970],{"type":999,"value":6320},{"type":993,"tag":1027,"props":6972,"children":6973},{"class":1029,"line":274},[6974,6978,6982,6986],{"type":993,"tag":1027,"props":6975,"children":6976},{"style":1059},[6977],{"type":999,"value":1226},{"type":993,"tag":1027,"props":6979,"children":6980},{"style":1042},[6981],{"type":999,"value":1231},{"type":993,"tag":1027,"props":6983,"children":6984},{"style":1168},[6985],{"type":999,"value":6336},{"type":993,"tag":1027,"props":6987,"children":6988},{"style":1042},[6989],{"type":999,"value":6341},{"type":993,"tag":1027,"props":6991,"children":6992},{"class":1029,"line":284},[6993,6997,7001,7005],{"type":993,"tag":1027,"props":6994,"children":6995},{"style":1048},[6996],{"type":999,"value":5489},{"type":993,"tag":1027,"props":6998,"children":6999},{"style":1042},[7000],{"type":999,"value":6353},{"type":993,"tag":1027,"props":7002,"children":7003},{"style":1048},[7004],{"type":999,"value":1545},{"type":993,"tag":1027,"props":7006,"children":7007},{"style":1042},[7008],{"type":999,"value":6362},{"type":993,"tag":1027,"props":7010,"children":7011},{"class":1029,"line":293},[7012,7016,7020,7024,7028,7032,7036,7040,7044,7048,7052,7056,7060],{"type":993,"tag":1027,"props":7013,"children":7014},{"style":1059},[7015],{"type":999,"value":5797},{"type":993,"tag":1027,"props":7017,"children":7018},{"style":1042},[7019],{"type":999,"value":1231},{"type":993,"tag":1027,"props":7021,"children":7022},{"style":1048},[7023],{"type":999,"value":5806},{"type":993,"tag":1027,"props":7025,"children":7026},{"style":1168},[7027],{"type":999,"value":5865},{"type":993,"tag":1027,"props":7029,"children":7030},{"style":1059},[7031],{"type":999,"value":5816},{"type":993,"tag":1027,"props":7033,"children":7034},{"style":1042},[7035],{"type":999,"value":6390},{"type":993,"tag":1027,"props":7037,"children":7038},{"style":1059},[7039],{"type":999,"value":5826},{"type":993,"tag":1027,"props":7041,"children":7042},{"style":1168},[7043],{"type":999,"value":6102},{"type":993,"tag":1027,"props":7045,"children":7046},{"style":1059},[7047],{"type":999,"value":5816},{"type":993,"tag":1027,"props":7049,"children":7050},{"style":1042},[7051],{"type":999,"value":6407},{"type":993,"tag":1027,"props":7053,"children":7054},{"style":1059},[7055],{"type":999,"value":5826},{"type":993,"tag":1027,"props":7057,"children":7058},{"style":1168},[7059],{"type":999,"value":5865},{"type":993,"tag":1027,"props":7061,"children":7062},{"style":1042},[7063],{"type":999,"value":5768},{"type":993,"tag":1002,"props":7065,"children":7066},{},[7067],{"type":993,"tag":1628,"props":7068,"children":7069},{},[7070],{"type":999,"value":7071},"Key Learning Points:",{"type":993,"tag":1634,"props":7073,"children":7074},{},[7075,7112,7129,7140],{"type":993,"tag":1638,"props":7076,"children":7077},{},[7078,7080,7085,7087,7092,7093,7098,7099,7104,7105,7110],{"type":999,"value":7079},"📌 ",{"type":993,"tag":1628,"props":7081,"children":7082},{},[7083],{"type":999,"value":7084},"Built-in functions",{"type":999,"value":7086},": Use ",{"type":993,"tag":1023,"props":7088,"children":7090},{"className":7089},[],[7091],{"type":999,"value":1679},{"type":999,"value":1067},{"type":993,"tag":1023,"props":7094,"children":7096},{"className":7095},[],[7097],{"type":999,"value":1646},{"type":999,"value":1067},{"type":993,"tag":1023,"props":7100,"children":7102},{"className":7101},[],[7103],{"type":999,"value":1668},{"type":999,"value":1067},{"type":993,"tag":1023,"props":7106,"children":7108},{"className":7107},[],[7109],{"type":999,"value":1657},{"type":999,"value":7111}," for efficient calculations",{"type":993,"tag":1638,"props":7113,"children":7114},{},[7115,7116,7121,7123],{"type":999,"value":7079},{"type":993,"tag":1628,"props":7117,"children":7118},{},[7119],{"type":999,"value":7120},"List comprehension",{"type":999,"value":7122},": Count items meeting condition with ",{"type":993,"tag":1023,"props":7124,"children":7126},{"className":7125},[],[7127],{"type":999,"value":7128},"len([item for item in list if condition])",{"type":993,"tag":1638,"props":7130,"children":7131},{},[7132,7133,7138],{"type":999,"value":7079},{"type":993,"tag":1628,"props":7134,"children":7135},{},[7136],{"type":999,"value":7137},"Dictionary construction",{"type":999,"value":7139},": Build result dictionary with descriptive keys",{"type":993,"tag":1638,"props":7141,"children":7142},{},[7143,7144,7149],{"type":999,"value":7079},{"type":993,"tag":1628,"props":7145,"children":7146},{},[7147],{"type":999,"value":7148},"Edge case handling",{"type":999,"value":7150},": Check for empty list before processing",{"type":993,"tag":1606,"props":7152,"children":7154},{"id":7153},"essential-list-tools-reference",[7155],{"type":999,"value":7156},"📋 Essential List Tools Reference",{"type":993,"tag":1002,"props":7158,"children":7159},{},[7160],{"type":999,"value":7161},"Python provides many essential tools for list manipulation:",{"type":993,"tag":7163,"props":7164,"children":7165},"table",{},[7166,7195],{"type":993,"tag":7167,"props":7168,"children":7169},"thead",{},[7170],{"type":993,"tag":7171,"props":7172,"children":7173},"tr",{},[7174,7180,7185,7190],{"type":993,"tag":7175,"props":7176,"children":7177},"th",{},[7178],{"type":999,"value":7179},"Function",{"type":993,"tag":7175,"props":7181,"children":7182},{},[7183],{"type":999,"value":7184},"Purpose",{"type":993,"tag":7175,"props":7186,"children":7187},{},[7188],{"type":999,"value":7189},"Example",{"type":993,"tag":7175,"props":7191,"children":7192},{},[7193],{"type":999,"value":7194},"Result",{"type":993,"tag":7196,"props":7197,"children":7198},"tbody",{},[7199,7234,7268,7302,7336,7371,7405,7440,7475,7510,7545,7580],{"type":993,"tag":7171,"props":7200,"children":7201},{},[7202,7212,7217,7226],{"type":993,"tag":7203,"props":7204,"children":7205},"td",{},[7206],{"type":993,"tag":1023,"props":7207,"children":7209},{"className":7208},[],[7210],{"type":999,"value":7211},"sum(list)",{"type":993,"tag":7203,"props":7213,"children":7214},{},[7215],{"type":999,"value":7216},"Add all numbers",{"type":993,"tag":7203,"props":7218,"children":7219},{},[7220],{"type":993,"tag":1023,"props":7221,"children":7223},{"className":7222},[],[7224],{"type":999,"value":7225},"sum([1,2,3])",{"type":993,"tag":7203,"props":7227,"children":7228},{},[7229],{"type":993,"tag":1023,"props":7230,"children":7232},{"className":7231},[],[7233],{"type":999,"value":1108},{"type":993,"tag":7171,"props":7235,"children":7236},{},[7237,7246,7251,7260],{"type":993,"tag":7203,"props":7238,"children":7239},{},[7240],{"type":993,"tag":1023,"props":7241,"children":7243},{"className":7242},[],[7244],{"type":999,"value":7245},"max(list)",{"type":993,"tag":7203,"props":7247,"children":7248},{},[7249],{"type":999,"value":7250},"Find maximum",{"type":993,"tag":7203,"props":7252,"children":7253},{},[7254],{"type":993,"tag":1023,"props":7255,"children":7257},{"className":7256},[],[7258],{"type":999,"value":7259},"max([1,3,2])",{"type":993,"tag":7203,"props":7261,"children":7262},{},[7263],{"type":993,"tag":1023,"props":7264,"children":7266},{"className":7265},[],[7267],{"type":999,"value":1081},{"type":993,"tag":7171,"props":7269,"children":7270},{},[7271,7280,7285,7294],{"type":993,"tag":7203,"props":7272,"children":7273},{},[7274],{"type":993,"tag":1023,"props":7275,"children":7277},{"className":7276},[],[7278],{"type":999,"value":7279},"min(list)",{"type":993,"tag":7203,"props":7281,"children":7282},{},[7283],{"type":999,"value":7284},"Find minimum",{"type":993,"tag":7203,"props":7286,"children":7287},{},[7288],{"type":993,"tag":1023,"props":7289,"children":7291},{"className":7290},[],[7292],{"type":999,"value":7293},"min([1,3,2])",{"type":993,"tag":7203,"props":7295,"children":7296},{},[7297],{"type":993,"tag":1023,"props":7298,"children":7300},{"className":7299},[],[7301],{"type":999,"value":1062},{"type":993,"tag":7171,"props":7303,"children":7304},{},[7305,7314,7319,7328],{"type":993,"tag":7203,"props":7306,"children":7307},{},[7308],{"type":993,"tag":1023,"props":7309,"children":7311},{"className":7310},[],[7312],{"type":999,"value":7313},"len(list)",{"type":993,"tag":7203,"props":7315,"children":7316},{},[7317],{"type":999,"value":7318},"Get length",{"type":993,"tag":7203,"props":7320,"children":7321},{},[7322],{"type":993,"tag":1023,"props":7323,"children":7325},{"className":7324},[],[7326],{"type":999,"value":7327},"len([1,2,3])",{"type":993,"tag":7203,"props":7329,"children":7330},{},[7331],{"type":993,"tag":1023,"props":7332,"children":7334},{"className":7333},[],[7335],{"type":999,"value":1081},{"type":993,"tag":7171,"props":7337,"children":7338},{},[7339,7348,7353,7362],{"type":993,"tag":7203,"props":7340,"children":7341},{},[7342],{"type":993,"tag":1023,"props":7343,"children":7345},{"className":7344},[],[7346],{"type":999,"value":7347},"all(conditions)",{"type":993,"tag":7203,"props":7349,"children":7350},{},[7351],{"type":999,"value":7352},"All true",{"type":993,"tag":7203,"props":7354,"children":7355},{},[7356],{"type":993,"tag":1023,"props":7357,"children":7359},{"className":7358},[],[7360],{"type":999,"value":7361},"all([True, True])",{"type":993,"tag":7203,"props":7363,"children":7364},{},[7365],{"type":993,"tag":1023,"props":7366,"children":7368},{"className":7367},[],[7369],{"type":999,"value":7370},"True",{"type":993,"tag":7171,"props":7372,"children":7373},{},[7374,7383,7388,7397],{"type":993,"tag":7203,"props":7375,"children":7376},{},[7377],{"type":993,"tag":1023,"props":7378,"children":7380},{"className":7379},[],[7381],{"type":999,"value":7382},"any(conditions)",{"type":993,"tag":7203,"props":7384,"children":7385},{},[7386],{"type":999,"value":7387},"Any true",{"type":993,"tag":7203,"props":7389,"children":7390},{},[7391],{"type":993,"tag":1023,"props":7392,"children":7394},{"className":7393},[],[7395],{"type":999,"value":7396},"any([False, True])",{"type":993,"tag":7203,"props":7398,"children":7399},{},[7400],{"type":993,"tag":1023,"props":7401,"children":7403},{"className":7402},[],[7404],{"type":999,"value":7370},{"type":993,"tag":7171,"props":7406,"children":7407},{},[7408,7417,7422,7431],{"type":993,"tag":7203,"props":7409,"children":7410},{},[7411],{"type":993,"tag":1023,"props":7412,"children":7414},{"className":7413},[],[7415],{"type":999,"value":7416},"filter(func, list)",{"type":993,"tag":7203,"props":7418,"children":7419},{},[7420],{"type":999,"value":7421},"Filter elements",{"type":993,"tag":7203,"props":7423,"children":7424},{},[7425],{"type":993,"tag":1023,"props":7426,"children":7428},{"className":7427},[],[7429],{"type":999,"value":7430},"filter(lambda x: x>0, [-1,1,2])",{"type":993,"tag":7203,"props":7432,"children":7433},{},[7434],{"type":993,"tag":1023,"props":7435,"children":7437},{"className":7436},[],[7438],{"type":999,"value":7439},"[1, 2]",{"type":993,"tag":7171,"props":7441,"children":7442},{},[7443,7452,7457,7466],{"type":993,"tag":7203,"props":7444,"children":7445},{},[7446],{"type":993,"tag":1023,"props":7447,"children":7449},{"className":7448},[],[7450],{"type":999,"value":7451},"map(func, list)",{"type":993,"tag":7203,"props":7453,"children":7454},{},[7455],{"type":999,"value":7456},"Transform elements",{"type":993,"tag":7203,"props":7458,"children":7459},{},[7460],{"type":993,"tag":1023,"props":7461,"children":7463},{"className":7462},[],[7464],{"type":999,"value":7465},"map(str.upper, ['a','b'])",{"type":993,"tag":7203,"props":7467,"children":7468},{},[7469],{"type":993,"tag":1023,"props":7470,"children":7472},{"className":7471},[],[7473],{"type":999,"value":7474},"['A', 'B']",{"type":993,"tag":7171,"props":7476,"children":7477},{},[7478,7487,7492,7501],{"type":993,"tag":7203,"props":7479,"children":7480},{},[7481],{"type":993,"tag":1023,"props":7482,"children":7484},{"className":7483},[],[7485],{"type":999,"value":7486},"enumerate(list)",{"type":993,"tag":7203,"props":7488,"children":7489},{},[7490],{"type":999,"value":7491},"Add indices",{"type":993,"tag":7203,"props":7493,"children":7494},{},[7495],{"type":993,"tag":1023,"props":7496,"children":7498},{"className":7497},[],[7499],{"type":999,"value":7500},"enumerate(['a','b'])",{"type":993,"tag":7203,"props":7502,"children":7503},{},[7504],{"type":993,"tag":1023,"props":7505,"children":7507},{"className":7506},[],[7508],{"type":999,"value":7509},"[(0,'a'), (1,'b')]",{"type":993,"tag":7171,"props":7511,"children":7512},{},[7513,7522,7527,7536],{"type":993,"tag":7203,"props":7514,"children":7515},{},[7516],{"type":993,"tag":1023,"props":7517,"children":7519},{"className":7518},[],[7520],{"type":999,"value":7521},"zip(list1, list2)",{"type":993,"tag":7203,"props":7523,"children":7524},{},[7525],{"type":999,"value":7526},"Combine lists",{"type":993,"tag":7203,"props":7528,"children":7529},{},[7530],{"type":993,"tag":1023,"props":7531,"children":7533},{"className":7532},[],[7534],{"type":999,"value":7535},"zip([1,2], ['a','b'])",{"type":993,"tag":7203,"props":7537,"children":7538},{},[7539],{"type":993,"tag":1023,"props":7540,"children":7542},{"className":7541},[],[7543],{"type":999,"value":7544},"[(1,'a'), (2,'b')]",{"type":993,"tag":7171,"props":7546,"children":7547},{},[7548,7557,7562,7571],{"type":993,"tag":7203,"props":7549,"children":7550},{},[7551],{"type":993,"tag":1023,"props":7552,"children":7554},{"className":7553},[],[7555],{"type":999,"value":7556},"sorted(list)",{"type":993,"tag":7203,"props":7558,"children":7559},{},[7560],{"type":999,"value":7561},"Sort elements",{"type":993,"tag":7203,"props":7563,"children":7564},{},[7565],{"type":993,"tag":1023,"props":7566,"children":7568},{"className":7567},[],[7569],{"type":999,"value":7570},"sorted([3,1,2])",{"type":993,"tag":7203,"props":7572,"children":7573},{},[7574],{"type":993,"tag":1023,"props":7575,"children":7577},{"className":7576},[],[7578],{"type":999,"value":7579},"[1, 2, 3]",{"type":993,"tag":7171,"props":7581,"children":7582},{},[7583,7592,7597,7606],{"type":993,"tag":7203,"props":7584,"children":7585},{},[7586],{"type":993,"tag":1023,"props":7587,"children":7589},{"className":7588},[],[7590],{"type":999,"value":7591},"reversed(list)",{"type":993,"tag":7203,"props":7593,"children":7594},{},[7595],{"type":999,"value":7596},"Reverse order",{"type":993,"tag":7203,"props":7598,"children":7599},{},[7600],{"type":993,"tag":1023,"props":7601,"children":7603},{"className":7602},[],[7604],{"type":999,"value":7605},"list(reversed([1,2,3]))",{"type":993,"tag":7203,"props":7607,"children":7608},{},[7609],{"type":993,"tag":1023,"props":7610,"children":7612},{"className":7611},[],[7613],{"type":999,"value":7614},"[3, 2, 1]",{"type":993,"tag":1002,"props":7616,"children":7617},{},[7618],{"type":999,"value":7619},"These tools form the foundation of efficient Python list processing.",{"type":993,"tag":1606,"props":7621,"children":7623},{"id":7622},"common-tool-combinations",[7624],{"type":999,"value":7625},"🎯 Common Tool Combinations",{"type":993,"tag":1752,"props":7627,"children":7629},{"id":7628},"data-analysis-pipeline",[7630],{"type":999,"value":7631},"Data Analysis Pipeline",{"type":993,"tag":1013,"props":7633,"children":7634},{},[7635],{"type":993,"tag":1017,"props":7636,"children":7638},{"className":1019,"code":7637,"language":6,"meta":8,"style":8},"# Data analysis pipeline\nsales_data = [120, 150, 80, 200, 175, 90, 160, 140]\n\n# Analyze sales performance\ntotal_sales = sum(sales_data)\navg_sales = total_sales / len(sales_data)\nbest_day = max(sales_data)\nworst_day = min(sales_data)\n\n# Find above-average days\nabove_avg_days = [i+1 for i, sales in enumerate(sales_data) if sales > avg_sales]\n\nprint(f\"Total sales: ${total_sales}\")\nprint(f\"Average daily sales: ${avg_sales:.2f}\")\nprint(f\"Best day sales: ${best_day}\")\nprint(f\"Worst day sales: ${worst_day}\")\nprint(f\"Above-average days: {above_avg_days}\")\n",[7639],{"type":993,"tag":1023,"props":7640,"children":7641},{"__ignoreMap":8},[7642,7650,7738,7745,7753,7774,7803,7823,7843,7850,7858,7924,7931,7972,8018,8059,8100],{"type":993,"tag":1027,"props":7643,"children":7644},{"class":1029,"line":12},[7645],{"type":993,"tag":1027,"props":7646,"children":7647},{"style":1033},[7648],{"type":999,"value":7649},"# Data analysis pipeline\n",{"type":993,"tag":1027,"props":7651,"children":7652},{"class":1029,"line":27},[7653,7658,7662,7666,7671,7675,7680,7684,7689,7693,7698,7702,7707,7711,7716,7720,7725,7729,7734],{"type":993,"tag":1027,"props":7654,"children":7655},{"style":1042},[7656],{"type":999,"value":7657},"sales_data ",{"type":993,"tag":1027,"props":7659,"children":7660},{"style":1048},[7661],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7663,"children":7664},{"style":1042},[7665],{"type":999,"value":1056},{"type":993,"tag":1027,"props":7667,"children":7668},{"style":1059},[7669],{"type":999,"value":7670},"120",{"type":993,"tag":1027,"props":7672,"children":7673},{"style":1042},[7674],{"type":999,"value":1067},{"type":993,"tag":1027,"props":7676,"children":7677},{"style":1059},[7678],{"type":999,"value":7679},"150",{"type":993,"tag":1027,"props":7681,"children":7682},{"style":1042},[7683],{"type":999,"value":1067},{"type":993,"tag":1027,"props":7685,"children":7686},{"style":1059},[7687],{"type":999,"value":7688},"80",{"type":993,"tag":1027,"props":7690,"children":7691},{"style":1042},[7692],{"type":999,"value":1067},{"type":993,"tag":1027,"props":7694,"children":7695},{"style":1059},[7696],{"type":999,"value":7697},"200",{"type":993,"tag":1027,"props":7699,"children":7700},{"style":1042},[7701],{"type":999,"value":1067},{"type":993,"tag":1027,"props":7703,"children":7704},{"style":1059},[7705],{"type":999,"value":7706},"175",{"type":993,"tag":1027,"props":7708,"children":7709},{"style":1042},[7710],{"type":999,"value":1067},{"type":993,"tag":1027,"props":7712,"children":7713},{"style":1059},[7714],{"type":999,"value":7715},"90",{"type":993,"tag":1027,"props":7717,"children":7718},{"style":1042},[7719],{"type":999,"value":1067},{"type":993,"tag":1027,"props":7721,"children":7722},{"style":1059},[7723],{"type":999,"value":7724},"160",{"type":993,"tag":1027,"props":7726,"children":7727},{"style":1042},[7728],{"type":999,"value":1067},{"type":993,"tag":1027,"props":7730,"children":7731},{"style":1059},[7732],{"type":999,"value":7733},"140",{"type":993,"tag":1027,"props":7735,"children":7736},{"style":1042},[7737],{"type":999,"value":1149},{"type":993,"tag":1027,"props":7739,"children":7740},{"class":1029,"line":36},[7741],{"type":993,"tag":1027,"props":7742,"children":7743},{"emptyLinePlaceholder":13},[7744],{"type":999,"value":1210},{"type":993,"tag":1027,"props":7746,"children":7747},{"class":1029,"line":45},[7748],{"type":993,"tag":1027,"props":7749,"children":7750},{"style":1033},[7751],{"type":999,"value":7752},"# Analyze sales performance\n",{"type":993,"tag":1027,"props":7754,"children":7755},{"class":1029,"line":54},[7756,7761,7765,7769],{"type":993,"tag":1027,"props":7757,"children":7758},{"style":1042},[7759],{"type":999,"value":7760},"total_sales ",{"type":993,"tag":1027,"props":7762,"children":7763},{"style":1048},[7764],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7766,"children":7767},{"style":1059},[7768],{"type":999,"value":6557},{"type":993,"tag":1027,"props":7770,"children":7771},{"style":1042},[7772],{"type":999,"value":7773},"(sales_data)\n",{"type":993,"tag":1027,"props":7775,"children":7776},{"class":1029,"line":63},[7777,7782,7786,7791,7795,7799],{"type":993,"tag":1027,"props":7778,"children":7779},{"style":1042},[7780],{"type":999,"value":7781},"avg_sales ",{"type":993,"tag":1027,"props":7783,"children":7784},{"style":1048},[7785],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7787,"children":7788},{"style":1042},[7789],{"type":999,"value":7790}," total_sales ",{"type":993,"tag":1027,"props":7792,"children":7793},{"style":1048},[7794],{"type":999,"value":1743},{"type":993,"tag":1027,"props":7796,"children":7797},{"style":1059},[7798],{"type":999,"value":1976},{"type":993,"tag":1027,"props":7800,"children":7801},{"style":1042},[7802],{"type":999,"value":7773},{"type":993,"tag":1027,"props":7804,"children":7805},{"class":1029,"line":72},[7806,7811,7815,7819],{"type":993,"tag":1027,"props":7807,"children":7808},{"style":1042},[7809],{"type":999,"value":7810},"best_day ",{"type":993,"tag":1027,"props":7812,"children":7813},{"style":1048},[7814],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7816,"children":7817},{"style":1059},[7818],{"type":999,"value":6625},{"type":993,"tag":1027,"props":7820,"children":7821},{"style":1042},[7822],{"type":999,"value":7773},{"type":993,"tag":1027,"props":7824,"children":7825},{"class":1029,"line":81},[7826,7831,7835,7839],{"type":993,"tag":1027,"props":7827,"children":7828},{"style":1042},[7829],{"type":999,"value":7830},"worst_day ",{"type":993,"tag":1027,"props":7832,"children":7833},{"style":1048},[7834],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7836,"children":7837},{"style":1059},[7838],{"type":999,"value":6604},{"type":993,"tag":1027,"props":7840,"children":7841},{"style":1042},[7842],{"type":999,"value":7773},{"type":993,"tag":1027,"props":7844,"children":7845},{"class":1029,"line":91},[7846],{"type":993,"tag":1027,"props":7847,"children":7848},{"emptyLinePlaceholder":13},[7849],{"type":999,"value":1210},{"type":993,"tag":1027,"props":7851,"children":7852},{"class":1029,"line":100},[7853],{"type":993,"tag":1027,"props":7854,"children":7855},{"style":1033},[7856],{"type":999,"value":7857},"# Find above-average days\n",{"type":993,"tag":1027,"props":7859,"children":7860},{"class":1029,"line":109},[7861,7866,7870,7875,7880,7884,7888,7893,7897,7901,7906,7910,7915,7919],{"type":993,"tag":1027,"props":7862,"children":7863},{"style":1042},[7864],{"type":999,"value":7865},"above_avg_days ",{"type":993,"tag":1027,"props":7867,"children":7868},{"style":1048},[7869],{"type":999,"value":1051},{"type":993,"tag":1027,"props":7871,"children":7872},{"style":1042},[7873],{"type":999,"value":7874}," [i",{"type":993,"tag":1027,"props":7876,"children":7877},{"style":1048},[7878],{"type":999,"value":7879},"+",{"type":993,"tag":1027,"props":7881,"children":7882},{"style":1059},[7883],{"type":999,"value":1062},{"type":993,"tag":1027,"props":7885,"children":7886},{"style":1048},[7887],{"type":999,"value":1535},{"type":993,"tag":1027,"props":7889,"children":7890},{"style":1042},[7891],{"type":999,"value":7892}," i, sales ",{"type":993,"tag":1027,"props":7894,"children":7895},{"style":1048},[7896],{"type":999,"value":1545},{"type":993,"tag":1027,"props":7898,"children":7899},{"style":1059},[7900],{"type":999,"value":5503},{"type":993,"tag":1027,"props":7902,"children":7903},{"style":1042},[7904],{"type":999,"value":7905},"(sales_data) ",{"type":993,"tag":1027,"props":7907,"children":7908},{"style":1048},[7909],{"type":999,"value":5513},{"type":993,"tag":1027,"props":7911,"children":7912},{"style":1042},[7913],{"type":999,"value":7914}," sales ",{"type":993,"tag":1027,"props":7916,"children":7917},{"style":1048},[7918],{"type":999,"value":1526},{"type":993,"tag":1027,"props":7920,"children":7921},{"style":1042},[7922],{"type":999,"value":7923}," avg_sales]\n",{"type":993,"tag":1027,"props":7925,"children":7926},{"class":1029,"line":118},[7927],{"type":993,"tag":1027,"props":7928,"children":7929},{"emptyLinePlaceholder":13},[7930],{"type":999,"value":1210},{"type":993,"tag":1027,"props":7932,"children":7933},{"class":1029,"line":127},[7934,7938,7942,7946,7951,7955,7960,7964,7968],{"type":993,"tag":1027,"props":7935,"children":7936},{"style":1059},[7937],{"type":999,"value":1226},{"type":993,"tag":1027,"props":7939,"children":7940},{"style":1042},[7941],{"type":999,"value":1231},{"type":993,"tag":1027,"props":7943,"children":7944},{"style":1048},[7945],{"type":999,"value":5806},{"type":993,"tag":1027,"props":7947,"children":7948},{"style":1168},[7949],{"type":999,"value":7950},"\"Total sales: $",{"type":993,"tag":1027,"props":7952,"children":7953},{"style":1059},[7954],{"type":999,"value":5816},{"type":993,"tag":1027,"props":7956,"children":7957},{"style":1042},[7958],{"type":999,"value":7959},"total_sales",{"type":993,"tag":1027,"props":7961,"children":7962},{"style":1059},[7963],{"type":999,"value":5826},{"type":993,"tag":1027,"props":7965,"children":7966},{"style":1168},[7967],{"type":999,"value":5865},{"type":993,"tag":1027,"props":7969,"children":7970},{"style":1042},[7971],{"type":999,"value":5768},{"type":993,"tag":1027,"props":7973,"children":7974},{"class":1029,"line":136},[7975,7979,7983,7987,7992,7996,8001,8006,8010,8014],{"type":993,"tag":1027,"props":7976,"children":7977},{"style":1059},[7978],{"type":999,"value":1226},{"type":993,"tag":1027,"props":7980,"children":7981},{"style":1042},[7982],{"type":999,"value":1231},{"type":993,"tag":1027,"props":7984,"children":7985},{"style":1048},[7986],{"type":999,"value":5806},{"type":993,"tag":1027,"props":7988,"children":7989},{"style":1168},[7990],{"type":999,"value":7991},"\"Average daily sales: $",{"type":993,"tag":1027,"props":7993,"children":7994},{"style":1059},[7995],{"type":999,"value":5816},{"type":993,"tag":1027,"props":7997,"children":7998},{"style":1042},[7999],{"type":999,"value":8000},"avg_sales",{"type":993,"tag":1027,"props":8002,"children":8003},{"style":1048},[8004],{"type":999,"value":8005},":.2f",{"type":993,"tag":1027,"props":8007,"children":8008},{"style":1059},[8009],{"type":999,"value":5826},{"type":993,"tag":1027,"props":8011,"children":8012},{"style":1168},[8013],{"type":999,"value":5865},{"type":993,"tag":1027,"props":8015,"children":8016},{"style":1042},[8017],{"type":999,"value":5768},{"type":993,"tag":1027,"props":8019,"children":8020},{"class":1029,"line":146},[8021,8025,8029,8033,8038,8042,8047,8051,8055],{"type":993,"tag":1027,"props":8022,"children":8023},{"style":1059},[8024],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8026,"children":8027},{"style":1042},[8028],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8030,"children":8031},{"style":1048},[8032],{"type":999,"value":5806},{"type":993,"tag":1027,"props":8034,"children":8035},{"style":1168},[8036],{"type":999,"value":8037},"\"Best day sales: $",{"type":993,"tag":1027,"props":8039,"children":8040},{"style":1059},[8041],{"type":999,"value":5816},{"type":993,"tag":1027,"props":8043,"children":8044},{"style":1042},[8045],{"type":999,"value":8046},"best_day",{"type":993,"tag":1027,"props":8048,"children":8049},{"style":1059},[8050],{"type":999,"value":5826},{"type":993,"tag":1027,"props":8052,"children":8053},{"style":1168},[8054],{"type":999,"value":5865},{"type":993,"tag":1027,"props":8056,"children":8057},{"style":1042},[8058],{"type":999,"value":5768},{"type":993,"tag":1027,"props":8060,"children":8061},{"class":1029,"line":155},[8062,8066,8070,8074,8079,8083,8088,8092,8096],{"type":993,"tag":1027,"props":8063,"children":8064},{"style":1059},[8065],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8067,"children":8068},{"style":1042},[8069],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8071,"children":8072},{"style":1048},[8073],{"type":999,"value":5806},{"type":993,"tag":1027,"props":8075,"children":8076},{"style":1168},[8077],{"type":999,"value":8078},"\"Worst day sales: $",{"type":993,"tag":1027,"props":8080,"children":8081},{"style":1059},[8082],{"type":999,"value":5816},{"type":993,"tag":1027,"props":8084,"children":8085},{"style":1042},[8086],{"type":999,"value":8087},"worst_day",{"type":993,"tag":1027,"props":8089,"children":8090},{"style":1059},[8091],{"type":999,"value":5826},{"type":993,"tag":1027,"props":8093,"children":8094},{"style":1168},[8095],{"type":999,"value":5865},{"type":993,"tag":1027,"props":8097,"children":8098},{"style":1042},[8099],{"type":999,"value":5768},{"type":993,"tag":1027,"props":8101,"children":8102},{"class":1029,"line":164},[8103,8107,8111,8115,8120,8124,8129,8133,8137],{"type":993,"tag":1027,"props":8104,"children":8105},{"style":1059},[8106],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8108,"children":8109},{"style":1042},[8110],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8112,"children":8113},{"style":1048},[8114],{"type":999,"value":5806},{"type":993,"tag":1027,"props":8116,"children":8117},{"style":1168},[8118],{"type":999,"value":8119},"\"Above-average days: ",{"type":993,"tag":1027,"props":8121,"children":8122},{"style":1059},[8123],{"type":999,"value":5816},{"type":993,"tag":1027,"props":8125,"children":8126},{"style":1042},[8127],{"type":999,"value":8128},"above_avg_days",{"type":993,"tag":1027,"props":8130,"children":8131},{"style":1059},[8132],{"type":999,"value":5826},{"type":993,"tag":1027,"props":8134,"children":8135},{"style":1168},[8136],{"type":999,"value":5865},{"type":993,"tag":1027,"props":8138,"children":8139},{"style":1042},[8140],{"type":999,"value":5768},{"type":993,"tag":1752,"props":8142,"children":8144},{"id":8143},"data-cleaning-pipeline",[8145],{"type":999,"value":8146},"Data Cleaning Pipeline",{"type":993,"tag":1013,"props":8148,"children":8149},{},[8150],{"type":993,"tag":1017,"props":8151,"children":8153},{"className":1019,"code":8152,"language":6,"meta":8,"style":8},"# Data cleaning pipeline\nraw_data = [\"  Alice  \", \"BOB\", \"\", \"charlie\", \"  \", \"DIANA\"]\n\n# Clean and process data\ncleaned = list(filter(lambda x: x.strip(), raw_data))  # Remove empty\nnormalized = list(map(str.strip, cleaned))             # Remove whitespace\nformatted = list(map(str.title, normalized))          # Title case\n\nprint(\"Raw data:\", raw_data)\nprint(\"Cleaned:\", cleaned)\nprint(\"Normalized:\", normalized)\nprint(\"Formatted:\", formatted)\n",[8154],{"type":993,"tag":1023,"props":8155,"children":8156},{"__ignoreMap":8},[8157,8165,8235,8242,8250,8292,8334,8376,8383,8404,8425,8446],{"type":993,"tag":1027,"props":8158,"children":8159},{"class":1029,"line":12},[8160],{"type":993,"tag":1027,"props":8161,"children":8162},{"style":1033},[8163],{"type":999,"value":8164},"# Data cleaning pipeline\n",{"type":993,"tag":1027,"props":8166,"children":8167},{"class":1029,"line":27},[8168,8173,8177,8181,8186,8190,8195,8199,8204,8208,8213,8217,8222,8226,8231],{"type":993,"tag":1027,"props":8169,"children":8170},{"style":1042},[8171],{"type":999,"value":8172},"raw_data ",{"type":993,"tag":1027,"props":8174,"children":8175},{"style":1048},[8176],{"type":999,"value":1051},{"type":993,"tag":1027,"props":8178,"children":8179},{"style":1042},[8180],{"type":999,"value":1056},{"type":993,"tag":1027,"props":8182,"children":8183},{"style":1168},[8184],{"type":999,"value":8185},"\"  Alice  \"",{"type":993,"tag":1027,"props":8187,"children":8188},{"style":1042},[8189],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8191,"children":8192},{"style":1168},[8193],{"type":999,"value":8194},"\"BOB\"",{"type":993,"tag":1027,"props":8196,"children":8197},{"style":1042},[8198],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8200,"children":8201},{"style":1168},[8202],{"type":999,"value":8203},"\"\"",{"type":993,"tag":1027,"props":8205,"children":8206},{"style":1042},[8207],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8209,"children":8210},{"style":1168},[8211],{"type":999,"value":8212},"\"charlie\"",{"type":993,"tag":1027,"props":8214,"children":8215},{"style":1042},[8216],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8218,"children":8219},{"style":1168},[8220],{"type":999,"value":8221},"\"  \"",{"type":993,"tag":1027,"props":8223,"children":8224},{"style":1042},[8225],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8227,"children":8228},{"style":1168},[8229],{"type":999,"value":8230},"\"DIANA\"",{"type":993,"tag":1027,"props":8232,"children":8233},{"style":1042},[8234],{"type":999,"value":1149},{"type":993,"tag":1027,"props":8236,"children":8237},{"class":1029,"line":36},[8238],{"type":993,"tag":1027,"props":8239,"children":8240},{"emptyLinePlaceholder":13},[8241],{"type":999,"value":1210},{"type":993,"tag":1027,"props":8243,"children":8244},{"class":1029,"line":45},[8245],{"type":993,"tag":1027,"props":8246,"children":8247},{"style":1033},[8248],{"type":999,"value":8249},"# Clean and process data\n",{"type":993,"tag":1027,"props":8251,"children":8252},{"class":1029,"line":54},[8253,8258,8262,8266,8270,8274,8278,8282,8287],{"type":993,"tag":1027,"props":8254,"children":8255},{"style":1042},[8256],{"type":999,"value":8257},"cleaned ",{"type":993,"tag":1027,"props":8259,"children":8260},{"style":1048},[8261],{"type":999,"value":1051},{"type":993,"tag":1027,"props":8263,"children":8264},{"style":1059},[8265],{"type":999,"value":1340},{"type":993,"tag":1027,"props":8267,"children":8268},{"style":1042},[8269],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8271,"children":8272},{"style":1059},[8273],{"type":999,"value":1349},{"type":993,"tag":1027,"props":8275,"children":8276},{"style":1042},[8277],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8279,"children":8280},{"style":1048},[8281],{"type":999,"value":1358},{"type":993,"tag":1027,"props":8283,"children":8284},{"style":1042},[8285],{"type":999,"value":8286}," x: x.strip(), raw_data))  ",{"type":993,"tag":1027,"props":8288,"children":8289},{"style":1033},[8290],{"type":999,"value":8291},"# Remove empty\n",{"type":993,"tag":1027,"props":8293,"children":8294},{"class":1029,"line":63},[8295,8300,8304,8308,8312,8316,8320,8324,8329],{"type":993,"tag":1027,"props":8296,"children":8297},{"style":1042},[8298],{"type":999,"value":8299},"normalized ",{"type":993,"tag":1027,"props":8301,"children":8302},{"style":1048},[8303],{"type":999,"value":1051},{"type":993,"tag":1027,"props":8305,"children":8306},{"style":1059},[8307],{"type":999,"value":1340},{"type":993,"tag":1027,"props":8309,"children":8310},{"style":1042},[8311],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8313,"children":8314},{"style":1059},[8315],{"type":999,"value":1441},{"type":993,"tag":1027,"props":8317,"children":8318},{"style":1042},[8319],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8321,"children":8322},{"style":1059},[8323],{"type":999,"value":3923},{"type":993,"tag":1027,"props":8325,"children":8326},{"style":1042},[8327],{"type":999,"value":8328},".strip, cleaned))             ",{"type":993,"tag":1027,"props":8330,"children":8331},{"style":1033},[8332],{"type":999,"value":8333},"# Remove whitespace\n",{"type":993,"tag":1027,"props":8335,"children":8336},{"class":1029,"line":72},[8337,8342,8346,8350,8354,8358,8362,8366,8371],{"type":993,"tag":1027,"props":8338,"children":8339},{"style":1042},[8340],{"type":999,"value":8341},"formatted ",{"type":993,"tag":1027,"props":8343,"children":8344},{"style":1048},[8345],{"type":999,"value":1051},{"type":993,"tag":1027,"props":8347,"children":8348},{"style":1059},[8349],{"type":999,"value":1340},{"type":993,"tag":1027,"props":8351,"children":8352},{"style":1042},[8353],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8355,"children":8356},{"style":1059},[8357],{"type":999,"value":1441},{"type":993,"tag":1027,"props":8359,"children":8360},{"style":1042},[8361],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8363,"children":8364},{"style":1059},[8365],{"type":999,"value":3923},{"type":993,"tag":1027,"props":8367,"children":8368},{"style":1042},[8369],{"type":999,"value":8370},".title, normalized))          ",{"type":993,"tag":1027,"props":8372,"children":8373},{"style":1033},[8374],{"type":999,"value":8375},"# Title case\n",{"type":993,"tag":1027,"props":8377,"children":8378},{"class":1029,"line":81},[8379],{"type":993,"tag":1027,"props":8380,"children":8381},{"emptyLinePlaceholder":13},[8382],{"type":999,"value":1210},{"type":993,"tag":1027,"props":8384,"children":8385},{"class":1029,"line":91},[8386,8390,8394,8399],{"type":993,"tag":1027,"props":8387,"children":8388},{"style":1059},[8389],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8391,"children":8392},{"style":1042},[8393],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8395,"children":8396},{"style":1168},[8397],{"type":999,"value":8398},"\"Raw data:\"",{"type":993,"tag":1027,"props":8400,"children":8401},{"style":1042},[8402],{"type":999,"value":8403},", raw_data)\n",{"type":993,"tag":1027,"props":8405,"children":8406},{"class":1029,"line":100},[8407,8411,8415,8420],{"type":993,"tag":1027,"props":8408,"children":8409},{"style":1059},[8410],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8412,"children":8413},{"style":1042},[8414],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8416,"children":8417},{"style":1168},[8418],{"type":999,"value":8419},"\"Cleaned:\"",{"type":993,"tag":1027,"props":8421,"children":8422},{"style":1042},[8423],{"type":999,"value":8424},", cleaned)\n",{"type":993,"tag":1027,"props":8426,"children":8427},{"class":1029,"line":109},[8428,8432,8436,8441],{"type":993,"tag":1027,"props":8429,"children":8430},{"style":1059},[8431],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8433,"children":8434},{"style":1042},[8435],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8437,"children":8438},{"style":1168},[8439],{"type":999,"value":8440},"\"Normalized:\"",{"type":993,"tag":1027,"props":8442,"children":8443},{"style":1042},[8444],{"type":999,"value":8445},", normalized)\n",{"type":993,"tag":1027,"props":8447,"children":8448},{"class":1029,"line":118},[8449,8453,8457,8462],{"type":993,"tag":1027,"props":8450,"children":8451},{"style":1059},[8452],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8454,"children":8455},{"style":1042},[8456],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8458,"children":8459},{"style":1168},[8460],{"type":999,"value":8461},"\"Formatted:\"",{"type":993,"tag":1027,"props":8463,"children":8464},{"style":1042},[8465],{"type":999,"value":8466},", formatted)\n",{"type":993,"tag":1752,"props":8468,"children":8470},{"id":8469},"validation-and-processing",[8471],{"type":999,"value":8472},"Validation and Processing",{"type":993,"tag":1013,"props":8474,"children":8475},{},[8476],{"type":993,"tag":1017,"props":8477,"children":8479},{"className":1019,"code":8478,"language":6,"meta":8,"style":8},"# Validation and processing pipeline\nuser_ages = [25, 30, 17, 45, 22, 16, 35]\n\n# Validate and categorize\nvalid_ages = all(age >= 0 for age in user_ages)\nhas_minors = any(age \u003C 18 for age in user_ages)\nadults = list(filter(lambda age: age >= 18, user_ages))\nadult_count = len(adults)\n\nprint(f\"All ages valid: {valid_ages}\")\nprint(f\"Has minors: {has_minors}\")\nprint(f\"Adult ages: {adults}\")\nprint(f\"Number of adults: {adult_count}\")\n",[8480],{"type":993,"tag":1023,"props":8481,"children":8482},{"__ignoreMap":8},[8483,8491,8567,8574,8582,8630,8675,8725,8746,8753,8794,8835,8876],{"type":993,"tag":1027,"props":8484,"children":8485},{"class":1029,"line":12},[8486],{"type":993,"tag":1027,"props":8487,"children":8488},{"style":1033},[8489],{"type":999,"value":8490},"# Validation and processing pipeline\n",{"type":993,"tag":1027,"props":8492,"children":8493},{"class":1029,"line":27},[8494,8499,8503,8507,8511,8515,8519,8523,8528,8532,8537,8541,8546,8550,8555,8559,8563],{"type":993,"tag":1027,"props":8495,"children":8496},{"style":1042},[8497],{"type":999,"value":8498},"user_ages ",{"type":993,"tag":1027,"props":8500,"children":8501},{"style":1048},[8502],{"type":999,"value":1051},{"type":993,"tag":1027,"props":8504,"children":8505},{"style":1042},[8506],{"type":999,"value":1056},{"type":993,"tag":1027,"props":8508,"children":8509},{"style":1059},[8510],{"type":999,"value":5637},{"type":993,"tag":1027,"props":8512,"children":8513},{"style":1042},[8514],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8516,"children":8517},{"style":1059},[8518],{"type":999,"value":5646},{"type":993,"tag":1027,"props":8520,"children":8521},{"style":1042},[8522],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8524,"children":8525},{"style":1059},[8526],{"type":999,"value":8527},"17",{"type":993,"tag":1027,"props":8529,"children":8530},{"style":1042},[8531],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8533,"children":8534},{"style":1059},[8535],{"type":999,"value":8536},"45",{"type":993,"tag":1027,"props":8538,"children":8539},{"style":1042},[8540],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8542,"children":8543},{"style":1059},[8544],{"type":999,"value":8545},"22",{"type":993,"tag":1027,"props":8547,"children":8548},{"style":1042},[8549],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8551,"children":8552},{"style":1059},[8553],{"type":999,"value":8554},"16",{"type":993,"tag":1027,"props":8556,"children":8557},{"style":1042},[8558],{"type":999,"value":1067},{"type":993,"tag":1027,"props":8560,"children":8561},{"style":1059},[8562],{"type":999,"value":5655},{"type":993,"tag":1027,"props":8564,"children":8565},{"style":1042},[8566],{"type":999,"value":1149},{"type":993,"tag":1027,"props":8568,"children":8569},{"class":1029,"line":36},[8570],{"type":993,"tag":1027,"props":8571,"children":8572},{"emptyLinePlaceholder":13},[8573],{"type":999,"value":1210},{"type":993,"tag":1027,"props":8575,"children":8576},{"class":1029,"line":45},[8577],{"type":993,"tag":1027,"props":8578,"children":8579},{"style":1033},[8580],{"type":999,"value":8581},"# Validate and categorize\n",{"type":993,"tag":1027,"props":8583,"children":8584},{"class":1029,"line":54},[8585,8590,8594,8598,8603,8608,8612,8616,8621,8625],{"type":993,"tag":1027,"props":8586,"children":8587},{"style":1042},[8588],{"type":999,"value":8589},"valid_ages ",{"type":993,"tag":1027,"props":8591,"children":8592},{"style":1048},[8593],{"type":999,"value":1051},{"type":993,"tag":1027,"props":8595,"children":8596},{"style":1059},[8597],{"type":999,"value":4542},{"type":993,"tag":1027,"props":8599,"children":8600},{"style":1042},[8601],{"type":999,"value":8602},"(age ",{"type":993,"tag":1027,"props":8604,"children":8605},{"style":1048},[8606],{"type":999,"value":8607},">=",{"type":993,"tag":1027,"props":8609,"children":8610},{"style":1059},[8611],{"type":999,"value":1383},{"type":993,"tag":1027,"props":8613,"children":8614},{"style":1048},[8615],{"type":999,"value":1535},{"type":993,"tag":1027,"props":8617,"children":8618},{"style":1042},[8619],{"type":999,"value":8620}," age ",{"type":993,"tag":1027,"props":8622,"children":8623},{"style":1048},[8624],{"type":999,"value":1545},{"type":993,"tag":1027,"props":8626,"children":8627},{"style":1042},[8628],{"type":999,"value":8629}," user_ages)\n",{"type":993,"tag":1027,"props":8631,"children":8632},{"class":1029,"line":63},[8633,8638,8642,8646,8650,8654,8659,8663,8667,8671],{"type":993,"tag":1027,"props":8634,"children":8635},{"style":1042},[8636],{"type":999,"value":8637},"has_minors ",{"type":993,"tag":1027,"props":8639,"children":8640},{"style":1048},[8641],{"type":999,"value":1051},{"type":993,"tag":1027,"props":8643,"children":8644},{"style":1059},[8645],{"type":999,"value":4809},{"type":993,"tag":1027,"props":8647,"children":8648},{"style":1042},[8649],{"type":999,"value":8602},{"type":993,"tag":1027,"props":8651,"children":8652},{"style":1048},[8653],{"type":999,"value":5184},{"type":993,"tag":1027,"props":8655,"children":8656},{"style":1059},[8657],{"type":999,"value":8658}," 18",{"type":993,"tag":1027,"props":8660,"children":8661},{"style":1048},[8662],{"type":999,"value":1535},{"type":993,"tag":1027,"props":8664,"children":8665},{"style":1042},[8666],{"type":999,"value":8620},{"type":993,"tag":1027,"props":8668,"children":8669},{"style":1048},[8670],{"type":999,"value":1545},{"type":993,"tag":1027,"props":8672,"children":8673},{"style":1042},[8674],{"type":999,"value":8629},{"type":993,"tag":1027,"props":8676,"children":8677},{"class":1029,"line":72},[8678,8683,8687,8691,8695,8699,8703,8707,8712,8716,8720],{"type":993,"tag":1027,"props":8679,"children":8680},{"style":1042},[8681],{"type":999,"value":8682},"adults ",{"type":993,"tag":1027,"props":8684,"children":8685},{"style":1048},[8686],{"type":999,"value":1051},{"type":993,"tag":1027,"props":8688,"children":8689},{"style":1059},[8690],{"type":999,"value":1340},{"type":993,"tag":1027,"props":8692,"children":8693},{"style":1042},[8694],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8696,"children":8697},{"style":1059},[8698],{"type":999,"value":1349},{"type":993,"tag":1027,"props":8700,"children":8701},{"style":1042},[8702],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8704,"children":8705},{"style":1048},[8706],{"type":999,"value":1358},{"type":993,"tag":1027,"props":8708,"children":8709},{"style":1042},[8710],{"type":999,"value":8711}," age: age ",{"type":993,"tag":1027,"props":8713,"children":8714},{"style":1048},[8715],{"type":999,"value":8607},{"type":993,"tag":1027,"props":8717,"children":8718},{"style":1059},[8719],{"type":999,"value":8658},{"type":993,"tag":1027,"props":8721,"children":8722},{"style":1042},[8723],{"type":999,"value":8724},", user_ages))\n",{"type":993,"tag":1027,"props":8726,"children":8727},{"class":1029,"line":81},[8728,8733,8737,8741],{"type":993,"tag":1027,"props":8729,"children":8730},{"style":1042},[8731],{"type":999,"value":8732},"adult_count ",{"type":993,"tag":1027,"props":8734,"children":8735},{"style":1048},[8736],{"type":999,"value":1051},{"type":993,"tag":1027,"props":8738,"children":8739},{"style":1059},[8740],{"type":999,"value":1976},{"type":993,"tag":1027,"props":8742,"children":8743},{"style":1042},[8744],{"type":999,"value":8745},"(adults)\n",{"type":993,"tag":1027,"props":8747,"children":8748},{"class":1029,"line":91},[8749],{"type":993,"tag":1027,"props":8750,"children":8751},{"emptyLinePlaceholder":13},[8752],{"type":999,"value":1210},{"type":993,"tag":1027,"props":8754,"children":8755},{"class":1029,"line":100},[8756,8760,8764,8768,8773,8777,8782,8786,8790],{"type":993,"tag":1027,"props":8757,"children":8758},{"style":1059},[8759],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8761,"children":8762},{"style":1042},[8763],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8765,"children":8766},{"style":1048},[8767],{"type":999,"value":5806},{"type":993,"tag":1027,"props":8769,"children":8770},{"style":1168},[8771],{"type":999,"value":8772},"\"All ages valid: ",{"type":993,"tag":1027,"props":8774,"children":8775},{"style":1059},[8776],{"type":999,"value":5816},{"type":993,"tag":1027,"props":8778,"children":8779},{"style":1042},[8780],{"type":999,"value":8781},"valid_ages",{"type":993,"tag":1027,"props":8783,"children":8784},{"style":1059},[8785],{"type":999,"value":5826},{"type":993,"tag":1027,"props":8787,"children":8788},{"style":1168},[8789],{"type":999,"value":5865},{"type":993,"tag":1027,"props":8791,"children":8792},{"style":1042},[8793],{"type":999,"value":5768},{"type":993,"tag":1027,"props":8795,"children":8796},{"class":1029,"line":109},[8797,8801,8805,8809,8814,8818,8823,8827,8831],{"type":993,"tag":1027,"props":8798,"children":8799},{"style":1059},[8800],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8802,"children":8803},{"style":1042},[8804],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8806,"children":8807},{"style":1048},[8808],{"type":999,"value":5806},{"type":993,"tag":1027,"props":8810,"children":8811},{"style":1168},[8812],{"type":999,"value":8813},"\"Has minors: ",{"type":993,"tag":1027,"props":8815,"children":8816},{"style":1059},[8817],{"type":999,"value":5816},{"type":993,"tag":1027,"props":8819,"children":8820},{"style":1042},[8821],{"type":999,"value":8822},"has_minors",{"type":993,"tag":1027,"props":8824,"children":8825},{"style":1059},[8826],{"type":999,"value":5826},{"type":993,"tag":1027,"props":8828,"children":8829},{"style":1168},[8830],{"type":999,"value":5865},{"type":993,"tag":1027,"props":8832,"children":8833},{"style":1042},[8834],{"type":999,"value":5768},{"type":993,"tag":1027,"props":8836,"children":8837},{"class":1029,"line":118},[8838,8842,8846,8850,8855,8859,8864,8868,8872],{"type":993,"tag":1027,"props":8839,"children":8840},{"style":1059},[8841],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8843,"children":8844},{"style":1042},[8845],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8847,"children":8848},{"style":1048},[8849],{"type":999,"value":5806},{"type":993,"tag":1027,"props":8851,"children":8852},{"style":1168},[8853],{"type":999,"value":8854},"\"Adult ages: ",{"type":993,"tag":1027,"props":8856,"children":8857},{"style":1059},[8858],{"type":999,"value":5816},{"type":993,"tag":1027,"props":8860,"children":8861},{"style":1042},[8862],{"type":999,"value":8863},"adults",{"type":993,"tag":1027,"props":8865,"children":8866},{"style":1059},[8867],{"type":999,"value":5826},{"type":993,"tag":1027,"props":8869,"children":8870},{"style":1168},[8871],{"type":999,"value":5865},{"type":993,"tag":1027,"props":8873,"children":8874},{"style":1042},[8875],{"type":999,"value":5768},{"type":993,"tag":1027,"props":8877,"children":8878},{"class":1029,"line":127},[8879,8883,8887,8891,8896,8900,8905,8909,8913],{"type":993,"tag":1027,"props":8880,"children":8881},{"style":1059},[8882],{"type":999,"value":1226},{"type":993,"tag":1027,"props":8884,"children":8885},{"style":1042},[8886],{"type":999,"value":1231},{"type":993,"tag":1027,"props":8888,"children":8889},{"style":1048},[8890],{"type":999,"value":5806},{"type":993,"tag":1027,"props":8892,"children":8893},{"style":1168},[8894],{"type":999,"value":8895},"\"Number of adults: ",{"type":993,"tag":1027,"props":8897,"children":8898},{"style":1059},[8899],{"type":999,"value":5816},{"type":993,"tag":1027,"props":8901,"children":8902},{"style":1042},[8903],{"type":999,"value":8904},"adult_count",{"type":993,"tag":1027,"props":8906,"children":8907},{"style":1059},[8908],{"type":999,"value":5826},{"type":993,"tag":1027,"props":8910,"children":8911},{"style":1168},[8912],{"type":999,"value":5865},{"type":993,"tag":1027,"props":8914,"children":8915},{"style":1042},[8916],{"type":999,"value":5768},{"type":993,"tag":1618,"props":8918,"children":8921},{"emoji":8919,"title":8920,"type":2605},"⚡","Performance and Style Guidelines",[8922,8930,8984,8992],{"type":993,"tag":1002,"props":8923,"children":8924},{},[8925],{"type":993,"tag":1628,"props":8926,"children":8927},{},[8928],{"type":999,"value":8929},"Performance Tips:",{"type":993,"tag":1634,"props":8931,"children":8932},{},[8933,8957,8974,8979],{"type":993,"tag":1638,"props":8934,"children":8935},{},[8936,8938,8943,8944,8949,8950,8955],{"type":999,"value":8937},"Built-in functions (",{"type":993,"tag":1023,"props":8939,"children":8941},{"className":8940},[],[8942],{"type":999,"value":1646},{"type":999,"value":1067},{"type":993,"tag":1023,"props":8945,"children":8947},{"className":8946},[],[8948],{"type":999,"value":1657},{"type":999,"value":1067},{"type":993,"tag":1023,"props":8951,"children":8953},{"className":8952},[],[8954],{"type":999,"value":1668},{"type":999,"value":8956},") are implemented in C and much faster than loops",{"type":993,"tag":1638,"props":8958,"children":8959},{},[8960,8961,8966,8967,8972],{"type":999,"value":2637},{"type":993,"tag":1023,"props":8962,"children":8964},{"className":8963},[],[8965],{"type":999,"value":2598},{"type":999,"value":4308},{"type":993,"tag":1023,"props":8968,"children":8970},{"className":8969},[],[8971],{"type":999,"value":3514},{"type":999,"value":8973}," for functional programming style",{"type":993,"tag":1638,"props":8975,"children":8976},{},[8977],{"type":999,"value":8978},"List comprehensions often more readable for simple operations",{"type":993,"tag":1638,"props":8980,"children":8981},{},[8982],{"type":999,"value":8983},"Generator expressions save memory for large datasets",{"type":993,"tag":1002,"props":8985,"children":8986},{},[8987],{"type":993,"tag":1628,"props":8988,"children":8989},{},[8990],{"type":999,"value":8991},"Code Style:",{"type":993,"tag":1634,"props":8993,"children":8994},{},[8995,9000,9005,9010],{"type":993,"tag":1638,"props":8996,"children":8997},{},[8998],{"type":999,"value":8999},"Choose tools based on readability and intent",{"type":993,"tag":1638,"props":9001,"children":9002},{},[9003],{"type":999,"value":9004},"Combine tools for powerful data processing pipelines",{"type":993,"tag":1638,"props":9006,"children":9007},{},[9008],{"type":999,"value":9009},"Use meaningful variable names in lambda functions",{"type":993,"tag":1638,"props":9011,"children":9012},{},[9013],{"type":999,"value":9014},"Consider using named functions for complex logic",{"type":993,"tag":1002,"props":9016,"children":9017},{},[9018,9020,9026],{"type":999,"value":9019},"Learn more about ",{"type":993,"tag":9021,"props":9022,"children":9023},"a",{"href":243},[9024],{"type":999,"value":9025},"for loops",{"type":999,"value":9027}," to understand the foundation of list processing and iteration patterns.",{"type":993,"tag":1606,"props":9029,"children":9031},{"id":9030},"test-your-knowledge",[9032],{"type":999,"value":9033},"Test Your Knowledge",{"type":993,"tag":1002,"props":9035,"children":9036},{},[9037],{"type":999,"value":9038},"Test what you've learned about essential list tools in Python:",{"type":993,"tag":9040,"props":9041,"children":9044},"redirect-button",{"label":9042,"url":9043},"Take Quiz","/tutorial-quiz/python/essential-list-tools",[],{"type":993,"tag":1606,"props":9046,"children":9048},{"id":9047},"whats-next",[9049],{"type":999,"value":9050},"What's Next?",{"type":993,"tag":1002,"props":9052,"children":9053},{},[9054],{"type":999,"value":9055},"Now that you've mastered Python lists and their essential tools, you're ready to explore other Python data structures. Next, you'll learn about tuples - ordered collections that are similar to lists but with some important differences.",{"type":993,"tag":1002,"props":9057,"children":9058},{},[9059,9061,9065],{"type":999,"value":9060},"Ready to continue? Check out our lesson on ",{"type":993,"tag":9021,"props":9062,"children":9063},{"href":370},[9064],{"type":999,"value":371},{"type":999,"value":9066},".",{"type":993,"tag":9068,"props":9069,"children":9070},"style",{},[9071],{"type":999,"value":9072},"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":9074},[9075,9080,9085,9090,9095,9100,9101,9106,9107],{"id":1608,"depth":27,"text":1611,"children":9076},[9077,9078,9079],{"id":1754,"depth":36,"text":1757},{"id":2039,"depth":36,"text":2042},{"id":2272,"depth":36,"text":2275},{"id":2584,"depth":27,"text":2587,"children":9081},[9082,9083,9084],{"id":2707,"depth":36,"text":2710},{"id":2943,"depth":36,"text":2946},{"id":3239,"depth":36,"text":3242},{"id":3501,"depth":27,"text":3504,"children":9086},[9087,9088,9089],{"id":3626,"depth":36,"text":3629},{"id":3812,"depth":36,"text":3815},{"id":4042,"depth":36,"text":4045},{"id":4293,"depth":27,"text":4296,"children":9091},[9092,9093,9094],{"id":4414,"depth":36,"text":4417},{"id":4682,"depth":36,"text":4685},{"id":4948,"depth":36,"text":4951},{"id":5229,"depth":27,"text":5232,"children":9096},[9097,9098,9099],{"id":5235,"depth":36,"text":5238},{"id":5552,"depth":36,"text":5555},{"id":6422,"depth":36,"text":6425},{"id":7153,"depth":27,"text":7156},{"id":7622,"depth":27,"text":7625,"children":9102},[9103,9104,9105],{"id":7628,"depth":36,"text":7631},{"id":8143,"depth":36,"text":8146},{"id":8469,"depth":36,"text":8472},{"id":9030,"depth":27,"text":9033},{"id":9047,"depth":27,"text":9050},1782373738413]