[{"data":1,"prerenderedAt":6576},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/anonymous-functions":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/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,"expanded":13},"/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,"expanded":13},"/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",[652],{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"body":989,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},{"type":990,"children":991,"toc":6552},"root",[992,1000,1015,1395,1402,1407,1782,1840,1846,1851,1858,1886,2313,2319,2324,2796,2802,2807,2813,2825,3213,3219,3230,3607,3613,3618,4020,4026,4172,4178,4183,4189,4194,4559,4565,4570,5024,5030,5036,5041,5353,5359,5364,5722,5778,5783,6080,6086,6494,6507,6513,6518,6525,6531,6536,6546],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":656},[997],{"type":998,"value":999},"text","🎭 Anonymous Functions",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004,1006,1013],{"type":998,"value":1005},"Anonymous functions, also known as lambda functions, are small, unnamed functions that can be defined inline wherever they're needed. They provide a concise way to create simple functions without the formal ",{"type":993,"tag":1007,"props":1008,"children":1010},"code",{"className":1009},[],[1011],{"type":998,"value":1012},"def",{"type":998,"value":1014}," statement, making code more readable for short operations.",{"type":993,"tag":1016,"props":1017,"children":1018},"code-try",{},[1019],{"type":993,"tag":1020,"props":1021,"children":1024},"pre",{"className":1022,"code":1023,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Lambda functions for quick transformations\nnumbers = [1, 2, 3, 4, 5]\n\n# Traditional function vs lambda\ndef square(x):\n    return x ** 2\n\nsquare_lambda = lambda x: x ** 2\n\n# Both produce the same result\ntraditional_result = list(map(square, numbers))\nlambda_result = list(map(lambda x: x ** 2, numbers))\n\nprint(f\"Traditional: {traditional_result}\")\nprint(f\"Lambda: {lambda_result}\")\n",[1025],{"type":993,"tag":1007,"props":1026,"children":1027},{"__ignoreMap":8},[1028,1039,1107,1115,1123,1141,1164,1171,1201,1208,1216,1248,1299,1306,1354],{"type":993,"tag":1029,"props":1030,"children":1032},"span",{"class":1031,"line":12},"line",[1033],{"type":993,"tag":1029,"props":1034,"children":1036},{"style":1035},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1037],{"type":998,"value":1038},"# Lambda functions for quick transformations\n",{"type":993,"tag":1029,"props":1040,"children":1041},{"class":1031,"line":27},[1042,1048,1054,1059,1065,1070,1075,1079,1084,1088,1093,1097,1102],{"type":993,"tag":1029,"props":1043,"children":1045},{"style":1044},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1046],{"type":998,"value":1047},"numbers ",{"type":993,"tag":1029,"props":1049,"children":1051},{"style":1050},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1052],{"type":998,"value":1053},"=",{"type":993,"tag":1029,"props":1055,"children":1056},{"style":1044},[1057],{"type":998,"value":1058}," [",{"type":993,"tag":1029,"props":1060,"children":1062},{"style":1061},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1063],{"type":998,"value":1064},"1",{"type":993,"tag":1029,"props":1066,"children":1067},{"style":1044},[1068],{"type":998,"value":1069},", ",{"type":993,"tag":1029,"props":1071,"children":1072},{"style":1061},[1073],{"type":998,"value":1074},"2",{"type":993,"tag":1029,"props":1076,"children":1077},{"style":1044},[1078],{"type":998,"value":1069},{"type":993,"tag":1029,"props":1080,"children":1081},{"style":1061},[1082],{"type":998,"value":1083},"3",{"type":993,"tag":1029,"props":1085,"children":1086},{"style":1044},[1087],{"type":998,"value":1069},{"type":993,"tag":1029,"props":1089,"children":1090},{"style":1061},[1091],{"type":998,"value":1092},"4",{"type":993,"tag":1029,"props":1094,"children":1095},{"style":1044},[1096],{"type":998,"value":1069},{"type":993,"tag":1029,"props":1098,"children":1099},{"style":1061},[1100],{"type":998,"value":1101},"5",{"type":993,"tag":1029,"props":1103,"children":1104},{"style":1044},[1105],{"type":998,"value":1106},"]\n",{"type":993,"tag":1029,"props":1108,"children":1109},{"class":1031,"line":36},[1110],{"type":993,"tag":1029,"props":1111,"children":1112},{"emptyLinePlaceholder":13},[1113],{"type":998,"value":1114},"\n",{"type":993,"tag":1029,"props":1116,"children":1117},{"class":1031,"line":45},[1118],{"type":993,"tag":1029,"props":1119,"children":1120},{"style":1035},[1121],{"type":998,"value":1122},"# Traditional function vs lambda\n",{"type":993,"tag":1029,"props":1124,"children":1125},{"class":1031,"line":54},[1126,1130,1136],{"type":993,"tag":1029,"props":1127,"children":1128},{"style":1050},[1129],{"type":998,"value":1012},{"type":993,"tag":1029,"props":1131,"children":1133},{"style":1132},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[1134],{"type":998,"value":1135}," square",{"type":993,"tag":1029,"props":1137,"children":1138},{"style":1044},[1139],{"type":998,"value":1140},"(x):\n",{"type":993,"tag":1029,"props":1142,"children":1143},{"class":1031,"line":63},[1144,1149,1154,1159],{"type":993,"tag":1029,"props":1145,"children":1146},{"style":1050},[1147],{"type":998,"value":1148},"    return",{"type":993,"tag":1029,"props":1150,"children":1151},{"style":1044},[1152],{"type":998,"value":1153}," x ",{"type":993,"tag":1029,"props":1155,"children":1156},{"style":1050},[1157],{"type":998,"value":1158},"**",{"type":993,"tag":1029,"props":1160,"children":1161},{"style":1061},[1162],{"type":998,"value":1163}," 2\n",{"type":993,"tag":1029,"props":1165,"children":1166},{"class":1031,"line":72},[1167],{"type":993,"tag":1029,"props":1168,"children":1169},{"emptyLinePlaceholder":13},[1170],{"type":998,"value":1114},{"type":993,"tag":1029,"props":1172,"children":1173},{"class":1031,"line":81},[1174,1179,1183,1188,1193,1197],{"type":993,"tag":1029,"props":1175,"children":1176},{"style":1044},[1177],{"type":998,"value":1178},"square_lambda ",{"type":993,"tag":1029,"props":1180,"children":1181},{"style":1050},[1182],{"type":998,"value":1053},{"type":993,"tag":1029,"props":1184,"children":1185},{"style":1050},[1186],{"type":998,"value":1187}," lambda",{"type":993,"tag":1029,"props":1189,"children":1190},{"style":1044},[1191],{"type":998,"value":1192}," x: x ",{"type":993,"tag":1029,"props":1194,"children":1195},{"style":1050},[1196],{"type":998,"value":1158},{"type":993,"tag":1029,"props":1198,"children":1199},{"style":1061},[1200],{"type":998,"value":1163},{"type":993,"tag":1029,"props":1202,"children":1203},{"class":1031,"line":91},[1204],{"type":993,"tag":1029,"props":1205,"children":1206},{"emptyLinePlaceholder":13},[1207],{"type":998,"value":1114},{"type":993,"tag":1029,"props":1209,"children":1210},{"class":1031,"line":100},[1211],{"type":993,"tag":1029,"props":1212,"children":1213},{"style":1035},[1214],{"type":998,"value":1215},"# Both produce the same result\n",{"type":993,"tag":1029,"props":1217,"children":1218},{"class":1031,"line":109},[1219,1224,1228,1233,1238,1243],{"type":993,"tag":1029,"props":1220,"children":1221},{"style":1044},[1222],{"type":998,"value":1223},"traditional_result ",{"type":993,"tag":1029,"props":1225,"children":1226},{"style":1050},[1227],{"type":998,"value":1053},{"type":993,"tag":1029,"props":1229,"children":1230},{"style":1061},[1231],{"type":998,"value":1232}," list",{"type":993,"tag":1029,"props":1234,"children":1235},{"style":1044},[1236],{"type":998,"value":1237},"(",{"type":993,"tag":1029,"props":1239,"children":1240},{"style":1061},[1241],{"type":998,"value":1242},"map",{"type":993,"tag":1029,"props":1244,"children":1245},{"style":1044},[1246],{"type":998,"value":1247},"(square, numbers))\n",{"type":993,"tag":1029,"props":1249,"children":1250},{"class":1031,"line":118},[1251,1256,1260,1264,1268,1272,1276,1281,1285,1289,1294],{"type":993,"tag":1029,"props":1252,"children":1253},{"style":1044},[1254],{"type":998,"value":1255},"lambda_result ",{"type":993,"tag":1029,"props":1257,"children":1258},{"style":1050},[1259],{"type":998,"value":1053},{"type":993,"tag":1029,"props":1261,"children":1262},{"style":1061},[1263],{"type":998,"value":1232},{"type":993,"tag":1029,"props":1265,"children":1266},{"style":1044},[1267],{"type":998,"value":1237},{"type":993,"tag":1029,"props":1269,"children":1270},{"style":1061},[1271],{"type":998,"value":1242},{"type":993,"tag":1029,"props":1273,"children":1274},{"style":1044},[1275],{"type":998,"value":1237},{"type":993,"tag":1029,"props":1277,"children":1278},{"style":1050},[1279],{"type":998,"value":1280},"lambda",{"type":993,"tag":1029,"props":1282,"children":1283},{"style":1044},[1284],{"type":998,"value":1192},{"type":993,"tag":1029,"props":1286,"children":1287},{"style":1050},[1288],{"type":998,"value":1158},{"type":993,"tag":1029,"props":1290,"children":1291},{"style":1061},[1292],{"type":998,"value":1293}," 2",{"type":993,"tag":1029,"props":1295,"children":1296},{"style":1044},[1297],{"type":998,"value":1298},", numbers))\n",{"type":993,"tag":1029,"props":1300,"children":1301},{"class":1031,"line":127},[1302],{"type":993,"tag":1029,"props":1303,"children":1304},{"emptyLinePlaceholder":13},[1305],{"type":998,"value":1114},{"type":993,"tag":1029,"props":1307,"children":1308},{"class":1031,"line":136},[1309,1314,1318,1323,1329,1334,1339,1344,1349],{"type":993,"tag":1029,"props":1310,"children":1311},{"style":1061},[1312],{"type":998,"value":1313},"print",{"type":993,"tag":1029,"props":1315,"children":1316},{"style":1044},[1317],{"type":998,"value":1237},{"type":993,"tag":1029,"props":1319,"children":1320},{"style":1050},[1321],{"type":998,"value":1322},"f",{"type":993,"tag":1029,"props":1324,"children":1326},{"style":1325},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1327],{"type":998,"value":1328},"\"Traditional: ",{"type":993,"tag":1029,"props":1330,"children":1331},{"style":1061},[1332],{"type":998,"value":1333},"{",{"type":993,"tag":1029,"props":1335,"children":1336},{"style":1044},[1337],{"type":998,"value":1338},"traditional_result",{"type":993,"tag":1029,"props":1340,"children":1341},{"style":1061},[1342],{"type":998,"value":1343},"}",{"type":993,"tag":1029,"props":1345,"children":1346},{"style":1325},[1347],{"type":998,"value":1348},"\"",{"type":993,"tag":1029,"props":1350,"children":1351},{"style":1044},[1352],{"type":998,"value":1353},")\n",{"type":993,"tag":1029,"props":1355,"children":1356},{"class":1031,"line":146},[1357,1361,1365,1369,1374,1378,1383,1387,1391],{"type":993,"tag":1029,"props":1358,"children":1359},{"style":1061},[1360],{"type":998,"value":1313},{"type":993,"tag":1029,"props":1362,"children":1363},{"style":1044},[1364],{"type":998,"value":1237},{"type":993,"tag":1029,"props":1366,"children":1367},{"style":1050},[1368],{"type":998,"value":1322},{"type":993,"tag":1029,"props":1370,"children":1371},{"style":1325},[1372],{"type":998,"value":1373},"\"Lambda: ",{"type":993,"tag":1029,"props":1375,"children":1376},{"style":1061},[1377],{"type":998,"value":1333},{"type":993,"tag":1029,"props":1379,"children":1380},{"style":1044},[1381],{"type":998,"value":1382},"lambda_result",{"type":993,"tag":1029,"props":1384,"children":1385},{"style":1061},[1386],{"type":998,"value":1343},{"type":993,"tag":1029,"props":1388,"children":1389},{"style":1325},[1390],{"type":998,"value":1348},{"type":993,"tag":1029,"props":1392,"children":1393},{"style":1044},[1394],{"type":998,"value":1353},{"type":993,"tag":1396,"props":1397,"children":1399},"h2",{"id":1398},"lambda-function-syntax",[1400],{"type":998,"value":1401},"🎯 Lambda Function Syntax",{"type":993,"tag":1001,"props":1403,"children":1404},{},[1405],{"type":998,"value":1406},"Lambda functions use a simple syntax that combines the parameter list and return expression in one line. They're perfect for operations that can be expressed concisely.",{"type":993,"tag":1016,"props":1408,"children":1409},{},[1410],{"type":993,"tag":1020,"props":1411,"children":1413},{"className":1022,"code":1412,"language":6,"meta":8,"style":8},"# Basic lambda syntax: lambda parameters: expression\nadd = lambda x, y: x + y\nmultiply = lambda a, b, c: a * b * c\nis_even = lambda n: n % 2 == 0\n\n# Using lambda functions\nsum_result = add(10, 5)\nproduct = multiply(2, 3, 4)\neven_check = is_even(8)\n\nprint(f\"Sum: {sum_result}\")\nprint(f\"Product: {product}\")\nprint(f\"Is 8 even? {even_check}\")\n",[1414],{"type":993,"tag":1007,"props":1415,"children":1416},{"__ignoreMap":8},[1417,1425,1456,1496,1536,1543,1551,1585,1626,1652,1659,1700,1741],{"type":993,"tag":1029,"props":1418,"children":1419},{"class":1031,"line":12},[1420],{"type":993,"tag":1029,"props":1421,"children":1422},{"style":1035},[1423],{"type":998,"value":1424},"# Basic lambda syntax: lambda parameters: expression\n",{"type":993,"tag":1029,"props":1426,"children":1427},{"class":1031,"line":27},[1428,1433,1437,1441,1446,1451],{"type":993,"tag":1029,"props":1429,"children":1430},{"style":1044},[1431],{"type":998,"value":1432},"add ",{"type":993,"tag":1029,"props":1434,"children":1435},{"style":1050},[1436],{"type":998,"value":1053},{"type":993,"tag":1029,"props":1438,"children":1439},{"style":1050},[1440],{"type":998,"value":1187},{"type":993,"tag":1029,"props":1442,"children":1443},{"style":1044},[1444],{"type":998,"value":1445}," x, y: x ",{"type":993,"tag":1029,"props":1447,"children":1448},{"style":1050},[1449],{"type":998,"value":1450},"+",{"type":993,"tag":1029,"props":1452,"children":1453},{"style":1044},[1454],{"type":998,"value":1455}," y\n",{"type":993,"tag":1029,"props":1457,"children":1458},{"class":1031,"line":36},[1459,1464,1468,1472,1477,1482,1487,1491],{"type":993,"tag":1029,"props":1460,"children":1461},{"style":1044},[1462],{"type":998,"value":1463},"multiply ",{"type":993,"tag":1029,"props":1465,"children":1466},{"style":1050},[1467],{"type":998,"value":1053},{"type":993,"tag":1029,"props":1469,"children":1470},{"style":1050},[1471],{"type":998,"value":1187},{"type":993,"tag":1029,"props":1473,"children":1474},{"style":1044},[1475],{"type":998,"value":1476}," a, b, c: a ",{"type":993,"tag":1029,"props":1478,"children":1479},{"style":1050},[1480],{"type":998,"value":1481},"*",{"type":993,"tag":1029,"props":1483,"children":1484},{"style":1044},[1485],{"type":998,"value":1486}," b ",{"type":993,"tag":1029,"props":1488,"children":1489},{"style":1050},[1490],{"type":998,"value":1481},{"type":993,"tag":1029,"props":1492,"children":1493},{"style":1044},[1494],{"type":998,"value":1495}," c\n",{"type":993,"tag":1029,"props":1497,"children":1498},{"class":1031,"line":45},[1499,1504,1508,1512,1517,1522,1526,1531],{"type":993,"tag":1029,"props":1500,"children":1501},{"style":1044},[1502],{"type":998,"value":1503},"is_even ",{"type":993,"tag":1029,"props":1505,"children":1506},{"style":1050},[1507],{"type":998,"value":1053},{"type":993,"tag":1029,"props":1509,"children":1510},{"style":1050},[1511],{"type":998,"value":1187},{"type":993,"tag":1029,"props":1513,"children":1514},{"style":1044},[1515],{"type":998,"value":1516}," n: n ",{"type":993,"tag":1029,"props":1518,"children":1519},{"style":1050},[1520],{"type":998,"value":1521},"%",{"type":993,"tag":1029,"props":1523,"children":1524},{"style":1061},[1525],{"type":998,"value":1293},{"type":993,"tag":1029,"props":1527,"children":1528},{"style":1050},[1529],{"type":998,"value":1530}," ==",{"type":993,"tag":1029,"props":1532,"children":1533},{"style":1061},[1534],{"type":998,"value":1535}," 0\n",{"type":993,"tag":1029,"props":1537,"children":1538},{"class":1031,"line":54},[1539],{"type":993,"tag":1029,"props":1540,"children":1541},{"emptyLinePlaceholder":13},[1542],{"type":998,"value":1114},{"type":993,"tag":1029,"props":1544,"children":1545},{"class":1031,"line":63},[1546],{"type":993,"tag":1029,"props":1547,"children":1548},{"style":1035},[1549],{"type":998,"value":1550},"# Using lambda functions\n",{"type":993,"tag":1029,"props":1552,"children":1553},{"class":1031,"line":72},[1554,1559,1563,1568,1573,1577,1581],{"type":993,"tag":1029,"props":1555,"children":1556},{"style":1044},[1557],{"type":998,"value":1558},"sum_result ",{"type":993,"tag":1029,"props":1560,"children":1561},{"style":1050},[1562],{"type":998,"value":1053},{"type":993,"tag":1029,"props":1564,"children":1565},{"style":1044},[1566],{"type":998,"value":1567}," add(",{"type":993,"tag":1029,"props":1569,"children":1570},{"style":1061},[1571],{"type":998,"value":1572},"10",{"type":993,"tag":1029,"props":1574,"children":1575},{"style":1044},[1576],{"type":998,"value":1069},{"type":993,"tag":1029,"props":1578,"children":1579},{"style":1061},[1580],{"type":998,"value":1101},{"type":993,"tag":1029,"props":1582,"children":1583},{"style":1044},[1584],{"type":998,"value":1353},{"type":993,"tag":1029,"props":1586,"children":1587},{"class":1031,"line":81},[1588,1593,1597,1602,1606,1610,1614,1618,1622],{"type":993,"tag":1029,"props":1589,"children":1590},{"style":1044},[1591],{"type":998,"value":1592},"product ",{"type":993,"tag":1029,"props":1594,"children":1595},{"style":1050},[1596],{"type":998,"value":1053},{"type":993,"tag":1029,"props":1598,"children":1599},{"style":1044},[1600],{"type":998,"value":1601}," multiply(",{"type":993,"tag":1029,"props":1603,"children":1604},{"style":1061},[1605],{"type":998,"value":1074},{"type":993,"tag":1029,"props":1607,"children":1608},{"style":1044},[1609],{"type":998,"value":1069},{"type":993,"tag":1029,"props":1611,"children":1612},{"style":1061},[1613],{"type":998,"value":1083},{"type":993,"tag":1029,"props":1615,"children":1616},{"style":1044},[1617],{"type":998,"value":1069},{"type":993,"tag":1029,"props":1619,"children":1620},{"style":1061},[1621],{"type":998,"value":1092},{"type":993,"tag":1029,"props":1623,"children":1624},{"style":1044},[1625],{"type":998,"value":1353},{"type":993,"tag":1029,"props":1627,"children":1628},{"class":1031,"line":91},[1629,1634,1638,1643,1648],{"type":993,"tag":1029,"props":1630,"children":1631},{"style":1044},[1632],{"type":998,"value":1633},"even_check ",{"type":993,"tag":1029,"props":1635,"children":1636},{"style":1050},[1637],{"type":998,"value":1053},{"type":993,"tag":1029,"props":1639,"children":1640},{"style":1044},[1641],{"type":998,"value":1642}," is_even(",{"type":993,"tag":1029,"props":1644,"children":1645},{"style":1061},[1646],{"type":998,"value":1647},"8",{"type":993,"tag":1029,"props":1649,"children":1650},{"style":1044},[1651],{"type":998,"value":1353},{"type":993,"tag":1029,"props":1653,"children":1654},{"class":1031,"line":100},[1655],{"type":993,"tag":1029,"props":1656,"children":1657},{"emptyLinePlaceholder":13},[1658],{"type":998,"value":1114},{"type":993,"tag":1029,"props":1660,"children":1661},{"class":1031,"line":109},[1662,1666,1670,1674,1679,1683,1688,1692,1696],{"type":993,"tag":1029,"props":1663,"children":1664},{"style":1061},[1665],{"type":998,"value":1313},{"type":993,"tag":1029,"props":1667,"children":1668},{"style":1044},[1669],{"type":998,"value":1237},{"type":993,"tag":1029,"props":1671,"children":1672},{"style":1050},[1673],{"type":998,"value":1322},{"type":993,"tag":1029,"props":1675,"children":1676},{"style":1325},[1677],{"type":998,"value":1678},"\"Sum: ",{"type":993,"tag":1029,"props":1680,"children":1681},{"style":1061},[1682],{"type":998,"value":1333},{"type":993,"tag":1029,"props":1684,"children":1685},{"style":1044},[1686],{"type":998,"value":1687},"sum_result",{"type":993,"tag":1029,"props":1689,"children":1690},{"style":1061},[1691],{"type":998,"value":1343},{"type":993,"tag":1029,"props":1693,"children":1694},{"style":1325},[1695],{"type":998,"value":1348},{"type":993,"tag":1029,"props":1697,"children":1698},{"style":1044},[1699],{"type":998,"value":1353},{"type":993,"tag":1029,"props":1701,"children":1702},{"class":1031,"line":118},[1703,1707,1711,1715,1720,1724,1729,1733,1737],{"type":993,"tag":1029,"props":1704,"children":1705},{"style":1061},[1706],{"type":998,"value":1313},{"type":993,"tag":1029,"props":1708,"children":1709},{"style":1044},[1710],{"type":998,"value":1237},{"type":993,"tag":1029,"props":1712,"children":1713},{"style":1050},[1714],{"type":998,"value":1322},{"type":993,"tag":1029,"props":1716,"children":1717},{"style":1325},[1718],{"type":998,"value":1719},"\"Product: ",{"type":993,"tag":1029,"props":1721,"children":1722},{"style":1061},[1723],{"type":998,"value":1333},{"type":993,"tag":1029,"props":1725,"children":1726},{"style":1044},[1727],{"type":998,"value":1728},"product",{"type":993,"tag":1029,"props":1730,"children":1731},{"style":1061},[1732],{"type":998,"value":1343},{"type":993,"tag":1029,"props":1734,"children":1735},{"style":1325},[1736],{"type":998,"value":1348},{"type":993,"tag":1029,"props":1738,"children":1739},{"style":1044},[1740],{"type":998,"value":1353},{"type":993,"tag":1029,"props":1742,"children":1743},{"class":1031,"line":127},[1744,1748,1752,1756,1761,1765,1770,1774,1778],{"type":993,"tag":1029,"props":1745,"children":1746},{"style":1061},[1747],{"type":998,"value":1313},{"type":993,"tag":1029,"props":1749,"children":1750},{"style":1044},[1751],{"type":998,"value":1237},{"type":993,"tag":1029,"props":1753,"children":1754},{"style":1050},[1755],{"type":998,"value":1322},{"type":993,"tag":1029,"props":1757,"children":1758},{"style":1325},[1759],{"type":998,"value":1760},"\"Is 8 even? ",{"type":993,"tag":1029,"props":1762,"children":1763},{"style":1061},[1764],{"type":998,"value":1333},{"type":993,"tag":1029,"props":1766,"children":1767},{"style":1044},[1768],{"type":998,"value":1769},"even_check",{"type":993,"tag":1029,"props":1771,"children":1772},{"style":1061},[1773],{"type":998,"value":1343},{"type":993,"tag":1029,"props":1775,"children":1776},{"style":1325},[1777],{"type":998,"value":1348},{"type":993,"tag":1029,"props":1779,"children":1780},{"style":1044},[1781],{"type":998,"value":1353},{"type":993,"tag":1783,"props":1784,"children":1788},"info-box",{"emoji":1785,"title":1786,"type":1787},"📝","Lambda Function Rules","info",[1789,1800,1810,1820,1830],{"type":993,"tag":1001,"props":1790,"children":1791},{},[1792,1798],{"type":993,"tag":1793,"props":1794,"children":1795},"strong",{},[1796],{"type":998,"value":1797},"Single Expression:",{"type":998,"value":1799}," Lambda functions can only contain one expression, not statements.",{"type":993,"tag":1001,"props":1801,"children":1802},{},[1803,1808],{"type":993,"tag":1793,"props":1804,"children":1805},{},[1806],{"type":998,"value":1807},"Automatic Return:",{"type":998,"value":1809}," The expression result is automatically returned.",{"type":993,"tag":1001,"props":1811,"children":1812},{},[1813,1818],{"type":993,"tag":1793,"props":1814,"children":1815},{},[1816],{"type":998,"value":1817},"No Documentation:",{"type":998,"value":1819}," Lambda functions cannot include docstrings or comments.",{"type":993,"tag":1001,"props":1821,"children":1822},{},[1823,1828],{"type":993,"tag":1793,"props":1824,"children":1825},{},[1826],{"type":998,"value":1827},"Limited Scope:",{"type":998,"value":1829}," Best for simple operations that fit on one line.",{"type":993,"tag":1001,"props":1831,"children":1832},{},[1833,1838],{"type":993,"tag":1793,"props":1834,"children":1835},{},[1836],{"type":998,"value":1837},"Immediate Use:",{"type":998,"value":1839}," Most effective when used immediately with other functions.",{"type":993,"tag":1396,"props":1841,"children":1843},{"id":1842},"lambda-vs-regular-functions",[1844],{"type":998,"value":1845},"⚡ Lambda vs Regular Functions",{"type":993,"tag":1001,"props":1847,"children":1848},{},[1849],{"type":998,"value":1850},"Understanding when to use lambda functions versus regular functions helps you choose the right tool for each situation.",{"type":993,"tag":1852,"props":1853,"children":1855},"h3",{"id":1854},"when-to-use-lambda",[1856],{"type":998,"value":1857},"When to Use Lambda",{"type":993,"tag":1001,"props":1859,"children":1860},{},[1861,1863,1869,1870,1876,1878,1884],{"type":998,"value":1862},"Lambda functions excel in situations where you need a quick, temporary function for immediate use with other functions like ",{"type":993,"tag":1007,"props":1864,"children":1866},{"className":1865},[],[1867],{"type":998,"value":1868},"map()",{"type":998,"value":1069},{"type":993,"tag":1007,"props":1871,"children":1873},{"className":1872},[],[1874],{"type":998,"value":1875},"filter()",{"type":998,"value":1877},", or ",{"type":993,"tag":1007,"props":1879,"children":1881},{"className":1880},[],[1882],{"type":998,"value":1883},"sorted()",{"type":998,"value":1885},".",{"type":993,"tag":1016,"props":1887,"children":1888},{},[1889],{"type":993,"tag":1020,"props":1890,"children":1892},{"className":1022,"code":1891,"language":6,"meta":8,"style":8},"# Lambda functions work well for immediate use\ndata = [\n    {'name': 'Alice', 'age': 30, 'salary': 50000},\n    {'name': 'Bob', 'age': 25, 'salary': 45000},\n    {'name': 'Charlie', 'age': 35, 'salary': 60000}\n]\n\n# Sort by different criteria using lambda\nby_age = sorted(data, key=lambda person: person['age'])\nby_salary = sorted(data, key=lambda person: person['salary'])\n\nprint(\"Sorted by age:\", [p['name'] for p in by_age])\nprint(\"Sorted by salary:\", [p['name'] for p in by_salary])\n",[1893],{"type":993,"tag":1007,"props":1894,"children":1895},{"__ignoreMap":8},[1896,1904,1921,1985,2043,2102,2109,2116,2124,2171,2211,2218,2268],{"type":993,"tag":1029,"props":1897,"children":1898},{"class":1031,"line":12},[1899],{"type":993,"tag":1029,"props":1900,"children":1901},{"style":1035},[1902],{"type":998,"value":1903},"# Lambda functions work well for immediate use\n",{"type":993,"tag":1029,"props":1905,"children":1906},{"class":1031,"line":27},[1907,1912,1916],{"type":993,"tag":1029,"props":1908,"children":1909},{"style":1044},[1910],{"type":998,"value":1911},"data ",{"type":993,"tag":1029,"props":1913,"children":1914},{"style":1050},[1915],{"type":998,"value":1053},{"type":993,"tag":1029,"props":1917,"children":1918},{"style":1044},[1919],{"type":998,"value":1920}," [\n",{"type":993,"tag":1029,"props":1922,"children":1923},{"class":1031,"line":36},[1924,1929,1934,1939,1944,1948,1953,1957,1962,1966,1971,1975,1980],{"type":993,"tag":1029,"props":1925,"children":1926},{"style":1044},[1927],{"type":998,"value":1928},"    {",{"type":993,"tag":1029,"props":1930,"children":1931},{"style":1325},[1932],{"type":998,"value":1933},"'name'",{"type":993,"tag":1029,"props":1935,"children":1936},{"style":1044},[1937],{"type":998,"value":1938},": ",{"type":993,"tag":1029,"props":1940,"children":1941},{"style":1325},[1942],{"type":998,"value":1943},"'Alice'",{"type":993,"tag":1029,"props":1945,"children":1946},{"style":1044},[1947],{"type":998,"value":1069},{"type":993,"tag":1029,"props":1949,"children":1950},{"style":1325},[1951],{"type":998,"value":1952},"'age'",{"type":993,"tag":1029,"props":1954,"children":1955},{"style":1044},[1956],{"type":998,"value":1938},{"type":993,"tag":1029,"props":1958,"children":1959},{"style":1061},[1960],{"type":998,"value":1961},"30",{"type":993,"tag":1029,"props":1963,"children":1964},{"style":1044},[1965],{"type":998,"value":1069},{"type":993,"tag":1029,"props":1967,"children":1968},{"style":1325},[1969],{"type":998,"value":1970},"'salary'",{"type":993,"tag":1029,"props":1972,"children":1973},{"style":1044},[1974],{"type":998,"value":1938},{"type":993,"tag":1029,"props":1976,"children":1977},{"style":1061},[1978],{"type":998,"value":1979},"50000",{"type":993,"tag":1029,"props":1981,"children":1982},{"style":1044},[1983],{"type":998,"value":1984},"},\n",{"type":993,"tag":1029,"props":1986,"children":1987},{"class":1031,"line":45},[1988,1992,1996,2000,2005,2009,2013,2017,2022,2026,2030,2034,2039],{"type":993,"tag":1029,"props":1989,"children":1990},{"style":1044},[1991],{"type":998,"value":1928},{"type":993,"tag":1029,"props":1993,"children":1994},{"style":1325},[1995],{"type":998,"value":1933},{"type":993,"tag":1029,"props":1997,"children":1998},{"style":1044},[1999],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2001,"children":2002},{"style":1325},[2003],{"type":998,"value":2004},"'Bob'",{"type":993,"tag":1029,"props":2006,"children":2007},{"style":1044},[2008],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2010,"children":2011},{"style":1325},[2012],{"type":998,"value":1952},{"type":993,"tag":1029,"props":2014,"children":2015},{"style":1044},[2016],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2018,"children":2019},{"style":1061},[2020],{"type":998,"value":2021},"25",{"type":993,"tag":1029,"props":2023,"children":2024},{"style":1044},[2025],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2027,"children":2028},{"style":1325},[2029],{"type":998,"value":1970},{"type":993,"tag":1029,"props":2031,"children":2032},{"style":1044},[2033],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2035,"children":2036},{"style":1061},[2037],{"type":998,"value":2038},"45000",{"type":993,"tag":1029,"props":2040,"children":2041},{"style":1044},[2042],{"type":998,"value":1984},{"type":993,"tag":1029,"props":2044,"children":2045},{"class":1031,"line":54},[2046,2050,2054,2058,2063,2067,2071,2075,2080,2084,2088,2092,2097],{"type":993,"tag":1029,"props":2047,"children":2048},{"style":1044},[2049],{"type":998,"value":1928},{"type":993,"tag":1029,"props":2051,"children":2052},{"style":1325},[2053],{"type":998,"value":1933},{"type":993,"tag":1029,"props":2055,"children":2056},{"style":1044},[2057],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2059,"children":2060},{"style":1325},[2061],{"type":998,"value":2062},"'Charlie'",{"type":993,"tag":1029,"props":2064,"children":2065},{"style":1044},[2066],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2068,"children":2069},{"style":1325},[2070],{"type":998,"value":1952},{"type":993,"tag":1029,"props":2072,"children":2073},{"style":1044},[2074],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2076,"children":2077},{"style":1061},[2078],{"type":998,"value":2079},"35",{"type":993,"tag":1029,"props":2081,"children":2082},{"style":1044},[2083],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2085,"children":2086},{"style":1325},[2087],{"type":998,"value":1970},{"type":993,"tag":1029,"props":2089,"children":2090},{"style":1044},[2091],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2093,"children":2094},{"style":1061},[2095],{"type":998,"value":2096},"60000",{"type":993,"tag":1029,"props":2098,"children":2099},{"style":1044},[2100],{"type":998,"value":2101},"}\n",{"type":993,"tag":1029,"props":2103,"children":2104},{"class":1031,"line":63},[2105],{"type":993,"tag":1029,"props":2106,"children":2107},{"style":1044},[2108],{"type":998,"value":1106},{"type":993,"tag":1029,"props":2110,"children":2111},{"class":1031,"line":72},[2112],{"type":993,"tag":1029,"props":2113,"children":2114},{"emptyLinePlaceholder":13},[2115],{"type":998,"value":1114},{"type":993,"tag":1029,"props":2117,"children":2118},{"class":1031,"line":81},[2119],{"type":993,"tag":1029,"props":2120,"children":2121},{"style":1035},[2122],{"type":998,"value":2123},"# Sort by different criteria using lambda\n",{"type":993,"tag":1029,"props":2125,"children":2126},{"class":1031,"line":91},[2127,2132,2136,2141,2146,2152,2157,2162,2166],{"type":993,"tag":1029,"props":2128,"children":2129},{"style":1044},[2130],{"type":998,"value":2131},"by_age ",{"type":993,"tag":1029,"props":2133,"children":2134},{"style":1050},[2135],{"type":998,"value":1053},{"type":993,"tag":1029,"props":2137,"children":2138},{"style":1061},[2139],{"type":998,"value":2140}," sorted",{"type":993,"tag":1029,"props":2142,"children":2143},{"style":1044},[2144],{"type":998,"value":2145},"(data, ",{"type":993,"tag":1029,"props":2147,"children":2149},{"style":2148},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[2150],{"type":998,"value":2151},"key",{"type":993,"tag":1029,"props":2153,"children":2154},{"style":1050},[2155],{"type":998,"value":2156},"=lambda",{"type":993,"tag":1029,"props":2158,"children":2159},{"style":1044},[2160],{"type":998,"value":2161}," person: person[",{"type":993,"tag":1029,"props":2163,"children":2164},{"style":1325},[2165],{"type":998,"value":1952},{"type":993,"tag":1029,"props":2167,"children":2168},{"style":1044},[2169],{"type":998,"value":2170},"])\n",{"type":993,"tag":1029,"props":2172,"children":2173},{"class":1031,"line":100},[2174,2179,2183,2187,2191,2195,2199,2203,2207],{"type":993,"tag":1029,"props":2175,"children":2176},{"style":1044},[2177],{"type":998,"value":2178},"by_salary ",{"type":993,"tag":1029,"props":2180,"children":2181},{"style":1050},[2182],{"type":998,"value":1053},{"type":993,"tag":1029,"props":2184,"children":2185},{"style":1061},[2186],{"type":998,"value":2140},{"type":993,"tag":1029,"props":2188,"children":2189},{"style":1044},[2190],{"type":998,"value":2145},{"type":993,"tag":1029,"props":2192,"children":2193},{"style":2148},[2194],{"type":998,"value":2151},{"type":993,"tag":1029,"props":2196,"children":2197},{"style":1050},[2198],{"type":998,"value":2156},{"type":993,"tag":1029,"props":2200,"children":2201},{"style":1044},[2202],{"type":998,"value":2161},{"type":993,"tag":1029,"props":2204,"children":2205},{"style":1325},[2206],{"type":998,"value":1970},{"type":993,"tag":1029,"props":2208,"children":2209},{"style":1044},[2210],{"type":998,"value":2170},{"type":993,"tag":1029,"props":2212,"children":2213},{"class":1031,"line":109},[2214],{"type":993,"tag":1029,"props":2215,"children":2216},{"emptyLinePlaceholder":13},[2217],{"type":998,"value":1114},{"type":993,"tag":1029,"props":2219,"children":2220},{"class":1031,"line":118},[2221,2225,2229,2234,2239,2243,2248,2253,2258,2263],{"type":993,"tag":1029,"props":2222,"children":2223},{"style":1061},[2224],{"type":998,"value":1313},{"type":993,"tag":1029,"props":2226,"children":2227},{"style":1044},[2228],{"type":998,"value":1237},{"type":993,"tag":1029,"props":2230,"children":2231},{"style":1325},[2232],{"type":998,"value":2233},"\"Sorted by age:\"",{"type":993,"tag":1029,"props":2235,"children":2236},{"style":1044},[2237],{"type":998,"value":2238},", [p[",{"type":993,"tag":1029,"props":2240,"children":2241},{"style":1325},[2242],{"type":998,"value":1933},{"type":993,"tag":1029,"props":2244,"children":2245},{"style":1044},[2246],{"type":998,"value":2247},"] ",{"type":993,"tag":1029,"props":2249,"children":2250},{"style":1050},[2251],{"type":998,"value":2252},"for",{"type":993,"tag":1029,"props":2254,"children":2255},{"style":1044},[2256],{"type":998,"value":2257}," p ",{"type":993,"tag":1029,"props":2259,"children":2260},{"style":1050},[2261],{"type":998,"value":2262},"in",{"type":993,"tag":1029,"props":2264,"children":2265},{"style":1044},[2266],{"type":998,"value":2267}," by_age])\n",{"type":993,"tag":1029,"props":2269,"children":2270},{"class":1031,"line":127},[2271,2275,2279,2284,2288,2292,2296,2300,2304,2308],{"type":993,"tag":1029,"props":2272,"children":2273},{"style":1061},[2274],{"type":998,"value":1313},{"type":993,"tag":1029,"props":2276,"children":2277},{"style":1044},[2278],{"type":998,"value":1237},{"type":993,"tag":1029,"props":2280,"children":2281},{"style":1325},[2282],{"type":998,"value":2283},"\"Sorted by salary:\"",{"type":993,"tag":1029,"props":2285,"children":2286},{"style":1044},[2287],{"type":998,"value":2238},{"type":993,"tag":1029,"props":2289,"children":2290},{"style":1325},[2291],{"type":998,"value":1933},{"type":993,"tag":1029,"props":2293,"children":2294},{"style":1044},[2295],{"type":998,"value":2247},{"type":993,"tag":1029,"props":2297,"children":2298},{"style":1050},[2299],{"type":998,"value":2252},{"type":993,"tag":1029,"props":2301,"children":2302},{"style":1044},[2303],{"type":998,"value":2257},{"type":993,"tag":1029,"props":2305,"children":2306},{"style":1050},[2307],{"type":998,"value":2262},{"type":993,"tag":1029,"props":2309,"children":2310},{"style":1044},[2311],{"type":998,"value":2312}," by_salary])\n",{"type":993,"tag":1852,"props":2314,"children":2316},{"id":2315},"when-to-use-regular-functions",[2317],{"type":998,"value":2318},"When to Use Regular Functions",{"type":993,"tag":1001,"props":2320,"children":2321},{},[2322],{"type":998,"value":2323},"Regular functions are better for complex logic, reusable operations, or when you need documentation and error handling.",{"type":993,"tag":1016,"props":2325,"children":2326},{},[2327],{"type":993,"tag":1020,"props":2328,"children":2330},{"className":1022,"code":2329,"language":6,"meta":8,"style":8},"# Regular functions for complex or reusable logic\ndef calculate_bonus(employee):\n    \"\"\"Calculate employee bonus based on salary and performance\"\"\"\n    base_bonus = employee['salary'] * 0.1\n    \n    if employee.get('performance', 'average') == 'excellent':\n        return base_bonus * 1.5\n    elif employee.get('performance', 'average') == 'good':\n        return base_bonus * 1.2\n    else:\n        return base_bonus\n\n# Apply complex function to data\nemployees = [\n    {'name': 'Alice', 'salary': 50000, 'performance': 'excellent'},\n    {'name': 'Bob', 'salary': 45000, 'performance': 'good'}\n]\n\nbonuses = [calculate_bonus(emp) for emp in employees]\nprint(f\"Bonuses: {bonuses}\")\n",[2331],{"type":993,"tag":1007,"props":2332,"children":2333},{"__ignoreMap":8},[2334,2342,2359,2367,2401,2409,2456,2478,2519,2539,2551,2563,2570,2578,2594,2650,2706,2713,2720,2755],{"type":993,"tag":1029,"props":2335,"children":2336},{"class":1031,"line":12},[2337],{"type":993,"tag":1029,"props":2338,"children":2339},{"style":1035},[2340],{"type":998,"value":2341},"# Regular functions for complex or reusable logic\n",{"type":993,"tag":1029,"props":2343,"children":2344},{"class":1031,"line":27},[2345,2349,2354],{"type":993,"tag":1029,"props":2346,"children":2347},{"style":1050},[2348],{"type":998,"value":1012},{"type":993,"tag":1029,"props":2350,"children":2351},{"style":1132},[2352],{"type":998,"value":2353}," calculate_bonus",{"type":993,"tag":1029,"props":2355,"children":2356},{"style":1044},[2357],{"type":998,"value":2358},"(employee):\n",{"type":993,"tag":1029,"props":2360,"children":2361},{"class":1031,"line":36},[2362],{"type":993,"tag":1029,"props":2363,"children":2364},{"style":1325},[2365],{"type":998,"value":2366},"    \"\"\"Calculate employee bonus based on salary and performance\"\"\"\n",{"type":993,"tag":1029,"props":2368,"children":2369},{"class":1031,"line":45},[2370,2375,2379,2384,2388,2392,2396],{"type":993,"tag":1029,"props":2371,"children":2372},{"style":1044},[2373],{"type":998,"value":2374},"    base_bonus ",{"type":993,"tag":1029,"props":2376,"children":2377},{"style":1050},[2378],{"type":998,"value":1053},{"type":993,"tag":1029,"props":2380,"children":2381},{"style":1044},[2382],{"type":998,"value":2383}," employee[",{"type":993,"tag":1029,"props":2385,"children":2386},{"style":1325},[2387],{"type":998,"value":1970},{"type":993,"tag":1029,"props":2389,"children":2390},{"style":1044},[2391],{"type":998,"value":2247},{"type":993,"tag":1029,"props":2393,"children":2394},{"style":1050},[2395],{"type":998,"value":1481},{"type":993,"tag":1029,"props":2397,"children":2398},{"style":1061},[2399],{"type":998,"value":2400}," 0.1\n",{"type":993,"tag":1029,"props":2402,"children":2403},{"class":1031,"line":54},[2404],{"type":993,"tag":1029,"props":2405,"children":2406},{"style":1044},[2407],{"type":998,"value":2408},"    \n",{"type":993,"tag":1029,"props":2410,"children":2411},{"class":1031,"line":63},[2412,2417,2422,2427,2431,2436,2441,2446,2451],{"type":993,"tag":1029,"props":2413,"children":2414},{"style":1050},[2415],{"type":998,"value":2416},"    if",{"type":993,"tag":1029,"props":2418,"children":2419},{"style":1044},[2420],{"type":998,"value":2421}," employee.get(",{"type":993,"tag":1029,"props":2423,"children":2424},{"style":1325},[2425],{"type":998,"value":2426},"'performance'",{"type":993,"tag":1029,"props":2428,"children":2429},{"style":1044},[2430],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2432,"children":2433},{"style":1325},[2434],{"type":998,"value":2435},"'average'",{"type":993,"tag":1029,"props":2437,"children":2438},{"style":1044},[2439],{"type":998,"value":2440},") ",{"type":993,"tag":1029,"props":2442,"children":2443},{"style":1050},[2444],{"type":998,"value":2445},"==",{"type":993,"tag":1029,"props":2447,"children":2448},{"style":1325},[2449],{"type":998,"value":2450}," 'excellent'",{"type":993,"tag":1029,"props":2452,"children":2453},{"style":1044},[2454],{"type":998,"value":2455},":\n",{"type":993,"tag":1029,"props":2457,"children":2458},{"class":1031,"line":72},[2459,2464,2469,2473],{"type":993,"tag":1029,"props":2460,"children":2461},{"style":1050},[2462],{"type":998,"value":2463},"        return",{"type":993,"tag":1029,"props":2465,"children":2466},{"style":1044},[2467],{"type":998,"value":2468}," base_bonus ",{"type":993,"tag":1029,"props":2470,"children":2471},{"style":1050},[2472],{"type":998,"value":1481},{"type":993,"tag":1029,"props":2474,"children":2475},{"style":1061},[2476],{"type":998,"value":2477}," 1.5\n",{"type":993,"tag":1029,"props":2479,"children":2480},{"class":1031,"line":81},[2481,2486,2490,2494,2498,2502,2506,2510,2515],{"type":993,"tag":1029,"props":2482,"children":2483},{"style":1050},[2484],{"type":998,"value":2485},"    elif",{"type":993,"tag":1029,"props":2487,"children":2488},{"style":1044},[2489],{"type":998,"value":2421},{"type":993,"tag":1029,"props":2491,"children":2492},{"style":1325},[2493],{"type":998,"value":2426},{"type":993,"tag":1029,"props":2495,"children":2496},{"style":1044},[2497],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2499,"children":2500},{"style":1325},[2501],{"type":998,"value":2435},{"type":993,"tag":1029,"props":2503,"children":2504},{"style":1044},[2505],{"type":998,"value":2440},{"type":993,"tag":1029,"props":2507,"children":2508},{"style":1050},[2509],{"type":998,"value":2445},{"type":993,"tag":1029,"props":2511,"children":2512},{"style":1325},[2513],{"type":998,"value":2514}," 'good'",{"type":993,"tag":1029,"props":2516,"children":2517},{"style":1044},[2518],{"type":998,"value":2455},{"type":993,"tag":1029,"props":2520,"children":2521},{"class":1031,"line":91},[2522,2526,2530,2534],{"type":993,"tag":1029,"props":2523,"children":2524},{"style":1050},[2525],{"type":998,"value":2463},{"type":993,"tag":1029,"props":2527,"children":2528},{"style":1044},[2529],{"type":998,"value":2468},{"type":993,"tag":1029,"props":2531,"children":2532},{"style":1050},[2533],{"type":998,"value":1481},{"type":993,"tag":1029,"props":2535,"children":2536},{"style":1061},[2537],{"type":998,"value":2538}," 1.2\n",{"type":993,"tag":1029,"props":2540,"children":2541},{"class":1031,"line":100},[2542,2547],{"type":993,"tag":1029,"props":2543,"children":2544},{"style":1050},[2545],{"type":998,"value":2546},"    else",{"type":993,"tag":1029,"props":2548,"children":2549},{"style":1044},[2550],{"type":998,"value":2455},{"type":993,"tag":1029,"props":2552,"children":2553},{"class":1031,"line":109},[2554,2558],{"type":993,"tag":1029,"props":2555,"children":2556},{"style":1050},[2557],{"type":998,"value":2463},{"type":993,"tag":1029,"props":2559,"children":2560},{"style":1044},[2561],{"type":998,"value":2562}," base_bonus\n",{"type":993,"tag":1029,"props":2564,"children":2565},{"class":1031,"line":118},[2566],{"type":993,"tag":1029,"props":2567,"children":2568},{"emptyLinePlaceholder":13},[2569],{"type":998,"value":1114},{"type":993,"tag":1029,"props":2571,"children":2572},{"class":1031,"line":127},[2573],{"type":993,"tag":1029,"props":2574,"children":2575},{"style":1035},[2576],{"type":998,"value":2577},"# Apply complex function to data\n",{"type":993,"tag":1029,"props":2579,"children":2580},{"class":1031,"line":136},[2581,2586,2590],{"type":993,"tag":1029,"props":2582,"children":2583},{"style":1044},[2584],{"type":998,"value":2585},"employees ",{"type":993,"tag":1029,"props":2587,"children":2588},{"style":1050},[2589],{"type":998,"value":1053},{"type":993,"tag":1029,"props":2591,"children":2592},{"style":1044},[2593],{"type":998,"value":1920},{"type":993,"tag":1029,"props":2595,"children":2596},{"class":1031,"line":146},[2597,2601,2605,2609,2613,2617,2621,2625,2629,2633,2637,2641,2646],{"type":993,"tag":1029,"props":2598,"children":2599},{"style":1044},[2600],{"type":998,"value":1928},{"type":993,"tag":1029,"props":2602,"children":2603},{"style":1325},[2604],{"type":998,"value":1933},{"type":993,"tag":1029,"props":2606,"children":2607},{"style":1044},[2608],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2610,"children":2611},{"style":1325},[2612],{"type":998,"value":1943},{"type":993,"tag":1029,"props":2614,"children":2615},{"style":1044},[2616],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2618,"children":2619},{"style":1325},[2620],{"type":998,"value":1970},{"type":993,"tag":1029,"props":2622,"children":2623},{"style":1044},[2624],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2626,"children":2627},{"style":1061},[2628],{"type":998,"value":1979},{"type":993,"tag":1029,"props":2630,"children":2631},{"style":1044},[2632],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2634,"children":2635},{"style":1325},[2636],{"type":998,"value":2426},{"type":993,"tag":1029,"props":2638,"children":2639},{"style":1044},[2640],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2642,"children":2643},{"style":1325},[2644],{"type":998,"value":2645},"'excellent'",{"type":993,"tag":1029,"props":2647,"children":2648},{"style":1044},[2649],{"type":998,"value":1984},{"type":993,"tag":1029,"props":2651,"children":2652},{"class":1031,"line":155},[2653,2657,2661,2665,2669,2673,2677,2681,2685,2689,2693,2697,2702],{"type":993,"tag":1029,"props":2654,"children":2655},{"style":1044},[2656],{"type":998,"value":1928},{"type":993,"tag":1029,"props":2658,"children":2659},{"style":1325},[2660],{"type":998,"value":1933},{"type":993,"tag":1029,"props":2662,"children":2663},{"style":1044},[2664],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2666,"children":2667},{"style":1325},[2668],{"type":998,"value":2004},{"type":993,"tag":1029,"props":2670,"children":2671},{"style":1044},[2672],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2674,"children":2675},{"style":1325},[2676],{"type":998,"value":1970},{"type":993,"tag":1029,"props":2678,"children":2679},{"style":1044},[2680],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2682,"children":2683},{"style":1061},[2684],{"type":998,"value":2038},{"type":993,"tag":1029,"props":2686,"children":2687},{"style":1044},[2688],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2690,"children":2691},{"style":1325},[2692],{"type":998,"value":2426},{"type":993,"tag":1029,"props":2694,"children":2695},{"style":1044},[2696],{"type":998,"value":1938},{"type":993,"tag":1029,"props":2698,"children":2699},{"style":1325},[2700],{"type":998,"value":2701},"'good'",{"type":993,"tag":1029,"props":2703,"children":2704},{"style":1044},[2705],{"type":998,"value":2101},{"type":993,"tag":1029,"props":2707,"children":2708},{"class":1031,"line":164},[2709],{"type":993,"tag":1029,"props":2710,"children":2711},{"style":1044},[2712],{"type":998,"value":1106},{"type":993,"tag":1029,"props":2714,"children":2715},{"class":1031,"line":173},[2716],{"type":993,"tag":1029,"props":2717,"children":2718},{"emptyLinePlaceholder":13},[2719],{"type":998,"value":1114},{"type":993,"tag":1029,"props":2721,"children":2722},{"class":1031,"line":182},[2723,2728,2732,2737,2741,2746,2750],{"type":993,"tag":1029,"props":2724,"children":2725},{"style":1044},[2726],{"type":998,"value":2727},"bonuses ",{"type":993,"tag":1029,"props":2729,"children":2730},{"style":1050},[2731],{"type":998,"value":1053},{"type":993,"tag":1029,"props":2733,"children":2734},{"style":1044},[2735],{"type":998,"value":2736}," [calculate_bonus(emp) ",{"type":993,"tag":1029,"props":2738,"children":2739},{"style":1050},[2740],{"type":998,"value":2252},{"type":993,"tag":1029,"props":2742,"children":2743},{"style":1044},[2744],{"type":998,"value":2745}," emp ",{"type":993,"tag":1029,"props":2747,"children":2748},{"style":1050},[2749],{"type":998,"value":2262},{"type":993,"tag":1029,"props":2751,"children":2752},{"style":1044},[2753],{"type":998,"value":2754}," employees]\n",{"type":993,"tag":1029,"props":2756,"children":2757},{"class":1031,"line":191},[2758,2762,2766,2770,2775,2779,2784,2788,2792],{"type":993,"tag":1029,"props":2759,"children":2760},{"style":1061},[2761],{"type":998,"value":1313},{"type":993,"tag":1029,"props":2763,"children":2764},{"style":1044},[2765],{"type":998,"value":1237},{"type":993,"tag":1029,"props":2767,"children":2768},{"style":1050},[2769],{"type":998,"value":1322},{"type":993,"tag":1029,"props":2771,"children":2772},{"style":1325},[2773],{"type":998,"value":2774},"\"Bonuses: ",{"type":993,"tag":1029,"props":2776,"children":2777},{"style":1061},[2778],{"type":998,"value":1333},{"type":993,"tag":1029,"props":2780,"children":2781},{"style":1044},[2782],{"type":998,"value":2783},"bonuses",{"type":993,"tag":1029,"props":2785,"children":2786},{"style":1061},[2787],{"type":998,"value":1343},{"type":993,"tag":1029,"props":2789,"children":2790},{"style":1325},[2791],{"type":998,"value":1348},{"type":993,"tag":1029,"props":2793,"children":2794},{"style":1044},[2795],{"type":998,"value":1353},{"type":993,"tag":1396,"props":2797,"children":2799},{"id":2798},"lambda-with-built-in-functions",[2800],{"type":998,"value":2801},"🚀 Lambda with Built-in Functions",{"type":993,"tag":1001,"props":2803,"children":2804},{},[2805],{"type":998,"value":2806},"Lambda functions shine when combined with Python's built-in functions for data processing and transformation tasks.",{"type":993,"tag":1852,"props":2808,"children":2810},{"id":2809},"using-map-with-lambda",[2811],{"type":998,"value":2812},"Using map() with Lambda",{"type":993,"tag":1001,"props":2814,"children":2815},{},[2816,2818,2823],{"type":998,"value":2817},"The ",{"type":993,"tag":1007,"props":2819,"children":2821},{"className":2820},[],[2822],{"type":998,"value":1868},{"type":998,"value":2824}," function applies a lambda function to every item in a sequence, creating efficient data transformations.",{"type":993,"tag":1016,"props":2826,"children":2827},{},[2828],{"type":993,"tag":1020,"props":2829,"children":2831},{"className":1022,"code":2830,"language":6,"meta":8,"style":8},"# Transform data with map() and lambda\nprices = [19.99, 25.50, 12.75, 8.99]\ntemperatures_f = [32, 68, 86, 104]\n\n# Apply transformations\nwith_tax = list(map(lambda price: price * 1.08, prices))\ncelsius = list(map(lambda f: (f - 32) * 5/9, temperatures_f))\n\nprint(f\"Prices with tax: {with_tax}\")\nprint(f\"Celsius: {[round(c, 1) for c in celsius]}\")\n",[2832],{"type":993,"tag":1007,"props":2833,"children":2834},{"__ignoreMap":8},[2835,2843,2895,2947,2954,2962,3013,3088,3095,3136],{"type":993,"tag":1029,"props":2836,"children":2837},{"class":1031,"line":12},[2838],{"type":993,"tag":1029,"props":2839,"children":2840},{"style":1035},[2841],{"type":998,"value":2842},"# Transform data with map() and lambda\n",{"type":993,"tag":1029,"props":2844,"children":2845},{"class":1031,"line":27},[2846,2851,2855,2859,2864,2868,2873,2877,2882,2886,2891],{"type":993,"tag":1029,"props":2847,"children":2848},{"style":1044},[2849],{"type":998,"value":2850},"prices ",{"type":993,"tag":1029,"props":2852,"children":2853},{"style":1050},[2854],{"type":998,"value":1053},{"type":993,"tag":1029,"props":2856,"children":2857},{"style":1044},[2858],{"type":998,"value":1058},{"type":993,"tag":1029,"props":2860,"children":2861},{"style":1061},[2862],{"type":998,"value":2863},"19.99",{"type":993,"tag":1029,"props":2865,"children":2866},{"style":1044},[2867],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2869,"children":2870},{"style":1061},[2871],{"type":998,"value":2872},"25.50",{"type":993,"tag":1029,"props":2874,"children":2875},{"style":1044},[2876],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2878,"children":2879},{"style":1061},[2880],{"type":998,"value":2881},"12.75",{"type":993,"tag":1029,"props":2883,"children":2884},{"style":1044},[2885],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2887,"children":2888},{"style":1061},[2889],{"type":998,"value":2890},"8.99",{"type":993,"tag":1029,"props":2892,"children":2893},{"style":1044},[2894],{"type":998,"value":1106},{"type":993,"tag":1029,"props":2896,"children":2897},{"class":1031,"line":36},[2898,2903,2907,2911,2916,2920,2925,2929,2934,2938,2943],{"type":993,"tag":1029,"props":2899,"children":2900},{"style":1044},[2901],{"type":998,"value":2902},"temperatures_f ",{"type":993,"tag":1029,"props":2904,"children":2905},{"style":1050},[2906],{"type":998,"value":1053},{"type":993,"tag":1029,"props":2908,"children":2909},{"style":1044},[2910],{"type":998,"value":1058},{"type":993,"tag":1029,"props":2912,"children":2913},{"style":1061},[2914],{"type":998,"value":2915},"32",{"type":993,"tag":1029,"props":2917,"children":2918},{"style":1044},[2919],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2921,"children":2922},{"style":1061},[2923],{"type":998,"value":2924},"68",{"type":993,"tag":1029,"props":2926,"children":2927},{"style":1044},[2928],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2930,"children":2931},{"style":1061},[2932],{"type":998,"value":2933},"86",{"type":993,"tag":1029,"props":2935,"children":2936},{"style":1044},[2937],{"type":998,"value":1069},{"type":993,"tag":1029,"props":2939,"children":2940},{"style":1061},[2941],{"type":998,"value":2942},"104",{"type":993,"tag":1029,"props":2944,"children":2945},{"style":1044},[2946],{"type":998,"value":1106},{"type":993,"tag":1029,"props":2948,"children":2949},{"class":1031,"line":45},[2950],{"type":993,"tag":1029,"props":2951,"children":2952},{"emptyLinePlaceholder":13},[2953],{"type":998,"value":1114},{"type":993,"tag":1029,"props":2955,"children":2956},{"class":1031,"line":54},[2957],{"type":993,"tag":1029,"props":2958,"children":2959},{"style":1035},[2960],{"type":998,"value":2961},"# Apply transformations\n",{"type":993,"tag":1029,"props":2963,"children":2964},{"class":1031,"line":63},[2965,2970,2974,2978,2982,2986,2990,2994,2999,3003,3008],{"type":993,"tag":1029,"props":2966,"children":2967},{"style":1044},[2968],{"type":998,"value":2969},"with_tax ",{"type":993,"tag":1029,"props":2971,"children":2972},{"style":1050},[2973],{"type":998,"value":1053},{"type":993,"tag":1029,"props":2975,"children":2976},{"style":1061},[2977],{"type":998,"value":1232},{"type":993,"tag":1029,"props":2979,"children":2980},{"style":1044},[2981],{"type":998,"value":1237},{"type":993,"tag":1029,"props":2983,"children":2984},{"style":1061},[2985],{"type":998,"value":1242},{"type":993,"tag":1029,"props":2987,"children":2988},{"style":1044},[2989],{"type":998,"value":1237},{"type":993,"tag":1029,"props":2991,"children":2992},{"style":1050},[2993],{"type":998,"value":1280},{"type":993,"tag":1029,"props":2995,"children":2996},{"style":1044},[2997],{"type":998,"value":2998}," price: price ",{"type":993,"tag":1029,"props":3000,"children":3001},{"style":1050},[3002],{"type":998,"value":1481},{"type":993,"tag":1029,"props":3004,"children":3005},{"style":1061},[3006],{"type":998,"value":3007}," 1.08",{"type":993,"tag":1029,"props":3009,"children":3010},{"style":1044},[3011],{"type":998,"value":3012},", prices))\n",{"type":993,"tag":1029,"props":3014,"children":3015},{"class":1031,"line":72},[3016,3021,3025,3029,3033,3037,3041,3045,3050,3055,3060,3064,3068,3073,3078,3083],{"type":993,"tag":1029,"props":3017,"children":3018},{"style":1044},[3019],{"type":998,"value":3020},"celsius ",{"type":993,"tag":1029,"props":3022,"children":3023},{"style":1050},[3024],{"type":998,"value":1053},{"type":993,"tag":1029,"props":3026,"children":3027},{"style":1061},[3028],{"type":998,"value":1232},{"type":993,"tag":1029,"props":3030,"children":3031},{"style":1044},[3032],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3034,"children":3035},{"style":1061},[3036],{"type":998,"value":1242},{"type":993,"tag":1029,"props":3038,"children":3039},{"style":1044},[3040],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3042,"children":3043},{"style":1050},[3044],{"type":998,"value":1280},{"type":993,"tag":1029,"props":3046,"children":3047},{"style":1044},[3048],{"type":998,"value":3049}," f: (f ",{"type":993,"tag":1029,"props":3051,"children":3052},{"style":1050},[3053],{"type":998,"value":3054},"-",{"type":993,"tag":1029,"props":3056,"children":3057},{"style":1061},[3058],{"type":998,"value":3059}," 32",{"type":993,"tag":1029,"props":3061,"children":3062},{"style":1044},[3063],{"type":998,"value":2440},{"type":993,"tag":1029,"props":3065,"children":3066},{"style":1050},[3067],{"type":998,"value":1481},{"type":993,"tag":1029,"props":3069,"children":3070},{"style":1061},[3071],{"type":998,"value":3072}," 5",{"type":993,"tag":1029,"props":3074,"children":3075},{"style":1050},[3076],{"type":998,"value":3077},"/",{"type":993,"tag":1029,"props":3079,"children":3080},{"style":1061},[3081],{"type":998,"value":3082},"9",{"type":993,"tag":1029,"props":3084,"children":3085},{"style":1044},[3086],{"type":998,"value":3087},", temperatures_f))\n",{"type":993,"tag":1029,"props":3089,"children":3090},{"class":1031,"line":81},[3091],{"type":993,"tag":1029,"props":3092,"children":3093},{"emptyLinePlaceholder":13},[3094],{"type":998,"value":1114},{"type":993,"tag":1029,"props":3096,"children":3097},{"class":1031,"line":91},[3098,3102,3106,3110,3115,3119,3124,3128,3132],{"type":993,"tag":1029,"props":3099,"children":3100},{"style":1061},[3101],{"type":998,"value":1313},{"type":993,"tag":1029,"props":3103,"children":3104},{"style":1044},[3105],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3107,"children":3108},{"style":1050},[3109],{"type":998,"value":1322},{"type":993,"tag":1029,"props":3111,"children":3112},{"style":1325},[3113],{"type":998,"value":3114},"\"Prices with tax: ",{"type":993,"tag":1029,"props":3116,"children":3117},{"style":1061},[3118],{"type":998,"value":1333},{"type":993,"tag":1029,"props":3120,"children":3121},{"style":1044},[3122],{"type":998,"value":3123},"with_tax",{"type":993,"tag":1029,"props":3125,"children":3126},{"style":1061},[3127],{"type":998,"value":1343},{"type":993,"tag":1029,"props":3129,"children":3130},{"style":1325},[3131],{"type":998,"value":1348},{"type":993,"tag":1029,"props":3133,"children":3134},{"style":1044},[3135],{"type":998,"value":1353},{"type":993,"tag":1029,"props":3137,"children":3138},{"class":1031,"line":100},[3139,3143,3147,3151,3156,3160,3165,3170,3175,3179,3183,3187,3192,3196,3201,3205,3209],{"type":993,"tag":1029,"props":3140,"children":3141},{"style":1061},[3142],{"type":998,"value":1313},{"type":993,"tag":1029,"props":3144,"children":3145},{"style":1044},[3146],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3148,"children":3149},{"style":1050},[3150],{"type":998,"value":1322},{"type":993,"tag":1029,"props":3152,"children":3153},{"style":1325},[3154],{"type":998,"value":3155},"\"Celsius: ",{"type":993,"tag":1029,"props":3157,"children":3158},{"style":1061},[3159],{"type":998,"value":1333},{"type":993,"tag":1029,"props":3161,"children":3162},{"style":1044},[3163],{"type":998,"value":3164},"[",{"type":993,"tag":1029,"props":3166,"children":3167},{"style":1061},[3168],{"type":998,"value":3169},"round",{"type":993,"tag":1029,"props":3171,"children":3172},{"style":1044},[3173],{"type":998,"value":3174},"(c, ",{"type":993,"tag":1029,"props":3176,"children":3177},{"style":1061},[3178],{"type":998,"value":1064},{"type":993,"tag":1029,"props":3180,"children":3181},{"style":1044},[3182],{"type":998,"value":2440},{"type":993,"tag":1029,"props":3184,"children":3185},{"style":1050},[3186],{"type":998,"value":2252},{"type":993,"tag":1029,"props":3188,"children":3189},{"style":1044},[3190],{"type":998,"value":3191}," c ",{"type":993,"tag":1029,"props":3193,"children":3194},{"style":1050},[3195],{"type":998,"value":2262},{"type":993,"tag":1029,"props":3197,"children":3198},{"style":1044},[3199],{"type":998,"value":3200}," celsius]",{"type":993,"tag":1029,"props":3202,"children":3203},{"style":1061},[3204],{"type":998,"value":1343},{"type":993,"tag":1029,"props":3206,"children":3207},{"style":1325},[3208],{"type":998,"value":1348},{"type":993,"tag":1029,"props":3210,"children":3211},{"style":1044},[3212],{"type":998,"value":1353},{"type":993,"tag":1852,"props":3214,"children":3216},{"id":3215},"using-filter-with-lambda",[3217],{"type":998,"value":3218},"Using filter() with Lambda",{"type":993,"tag":1001,"props":3220,"children":3221},{},[3222,3223,3228],{"type":998,"value":2817},{"type":993,"tag":1007,"props":3224,"children":3226},{"className":3225},[],[3227],{"type":998,"value":1875},{"type":998,"value":3229}," function uses lambda to select items that meet specific criteria, creating clean data filtering operations.",{"type":993,"tag":1016,"props":3231,"children":3232},{},[3233],{"type":993,"tag":1020,"props":3234,"children":3236},{"className":1022,"code":3235,"language":6,"meta":8,"style":8},"# Filter data with lambda conditions\nscores = [85, 92, 76, 88, 94, 67, 89]\nwords = ['python', 'java', 'javascript', 'go', 'rust']\n\n# Filter based on conditions\npassing_scores = list(filter(lambda score: score >= 80, scores))\nlong_names = list(filter(lambda word: len(word) > 4, words))\n\nprint(f\"Passing scores: {passing_scores}\")\nprint(f\"Long language names: {long_names}\")\n",[3237],{"type":993,"tag":1007,"props":3238,"children":3239},{"__ignoreMap":8},[3240,3248,3327,3388,3395,3403,3456,3518,3525,3566],{"type":993,"tag":1029,"props":3241,"children":3242},{"class":1031,"line":12},[3243],{"type":993,"tag":1029,"props":3244,"children":3245},{"style":1035},[3246],{"type":998,"value":3247},"# Filter data with lambda conditions\n",{"type":993,"tag":1029,"props":3249,"children":3250},{"class":1031,"line":27},[3251,3256,3260,3264,3269,3273,3278,3282,3287,3291,3296,3300,3305,3309,3314,3318,3323],{"type":993,"tag":1029,"props":3252,"children":3253},{"style":1044},[3254],{"type":998,"value":3255},"scores ",{"type":993,"tag":1029,"props":3257,"children":3258},{"style":1050},[3259],{"type":998,"value":1053},{"type":993,"tag":1029,"props":3261,"children":3262},{"style":1044},[3263],{"type":998,"value":1058},{"type":993,"tag":1029,"props":3265,"children":3266},{"style":1061},[3267],{"type":998,"value":3268},"85",{"type":993,"tag":1029,"props":3270,"children":3271},{"style":1044},[3272],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3274,"children":3275},{"style":1061},[3276],{"type":998,"value":3277},"92",{"type":993,"tag":1029,"props":3279,"children":3280},{"style":1044},[3281],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3283,"children":3284},{"style":1061},[3285],{"type":998,"value":3286},"76",{"type":993,"tag":1029,"props":3288,"children":3289},{"style":1044},[3290],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3292,"children":3293},{"style":1061},[3294],{"type":998,"value":3295},"88",{"type":993,"tag":1029,"props":3297,"children":3298},{"style":1044},[3299],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3301,"children":3302},{"style":1061},[3303],{"type":998,"value":3304},"94",{"type":993,"tag":1029,"props":3306,"children":3307},{"style":1044},[3308],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3310,"children":3311},{"style":1061},[3312],{"type":998,"value":3313},"67",{"type":993,"tag":1029,"props":3315,"children":3316},{"style":1044},[3317],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3319,"children":3320},{"style":1061},[3321],{"type":998,"value":3322},"89",{"type":993,"tag":1029,"props":3324,"children":3325},{"style":1044},[3326],{"type":998,"value":1106},{"type":993,"tag":1029,"props":3328,"children":3329},{"class":1031,"line":36},[3330,3335,3339,3343,3348,3352,3357,3361,3366,3370,3375,3379,3384],{"type":993,"tag":1029,"props":3331,"children":3332},{"style":1044},[3333],{"type":998,"value":3334},"words ",{"type":993,"tag":1029,"props":3336,"children":3337},{"style":1050},[3338],{"type":998,"value":1053},{"type":993,"tag":1029,"props":3340,"children":3341},{"style":1044},[3342],{"type":998,"value":1058},{"type":993,"tag":1029,"props":3344,"children":3345},{"style":1325},[3346],{"type":998,"value":3347},"'python'",{"type":993,"tag":1029,"props":3349,"children":3350},{"style":1044},[3351],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3353,"children":3354},{"style":1325},[3355],{"type":998,"value":3356},"'java'",{"type":993,"tag":1029,"props":3358,"children":3359},{"style":1044},[3360],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3362,"children":3363},{"style":1325},[3364],{"type":998,"value":3365},"'javascript'",{"type":993,"tag":1029,"props":3367,"children":3368},{"style":1044},[3369],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3371,"children":3372},{"style":1325},[3373],{"type":998,"value":3374},"'go'",{"type":993,"tag":1029,"props":3376,"children":3377},{"style":1044},[3378],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3380,"children":3381},{"style":1325},[3382],{"type":998,"value":3383},"'rust'",{"type":993,"tag":1029,"props":3385,"children":3386},{"style":1044},[3387],{"type":998,"value":1106},{"type":993,"tag":1029,"props":3389,"children":3390},{"class":1031,"line":45},[3391],{"type":993,"tag":1029,"props":3392,"children":3393},{"emptyLinePlaceholder":13},[3394],{"type":998,"value":1114},{"type":993,"tag":1029,"props":3396,"children":3397},{"class":1031,"line":54},[3398],{"type":993,"tag":1029,"props":3399,"children":3400},{"style":1035},[3401],{"type":998,"value":3402},"# Filter based on conditions\n",{"type":993,"tag":1029,"props":3404,"children":3405},{"class":1031,"line":63},[3406,3411,3415,3419,3423,3428,3432,3436,3441,3446,3451],{"type":993,"tag":1029,"props":3407,"children":3408},{"style":1044},[3409],{"type":998,"value":3410},"passing_scores ",{"type":993,"tag":1029,"props":3412,"children":3413},{"style":1050},[3414],{"type":998,"value":1053},{"type":993,"tag":1029,"props":3416,"children":3417},{"style":1061},[3418],{"type":998,"value":1232},{"type":993,"tag":1029,"props":3420,"children":3421},{"style":1044},[3422],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3424,"children":3425},{"style":1061},[3426],{"type":998,"value":3427},"filter",{"type":993,"tag":1029,"props":3429,"children":3430},{"style":1044},[3431],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3433,"children":3434},{"style":1050},[3435],{"type":998,"value":1280},{"type":993,"tag":1029,"props":3437,"children":3438},{"style":1044},[3439],{"type":998,"value":3440}," score: score ",{"type":993,"tag":1029,"props":3442,"children":3443},{"style":1050},[3444],{"type":998,"value":3445},">=",{"type":993,"tag":1029,"props":3447,"children":3448},{"style":1061},[3449],{"type":998,"value":3450}," 80",{"type":993,"tag":1029,"props":3452,"children":3453},{"style":1044},[3454],{"type":998,"value":3455},", scores))\n",{"type":993,"tag":1029,"props":3457,"children":3458},{"class":1031,"line":72},[3459,3464,3468,3472,3476,3480,3484,3488,3493,3498,3503,3508,3513],{"type":993,"tag":1029,"props":3460,"children":3461},{"style":1044},[3462],{"type":998,"value":3463},"long_names ",{"type":993,"tag":1029,"props":3465,"children":3466},{"style":1050},[3467],{"type":998,"value":1053},{"type":993,"tag":1029,"props":3469,"children":3470},{"style":1061},[3471],{"type":998,"value":1232},{"type":993,"tag":1029,"props":3473,"children":3474},{"style":1044},[3475],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3477,"children":3478},{"style":1061},[3479],{"type":998,"value":3427},{"type":993,"tag":1029,"props":3481,"children":3482},{"style":1044},[3483],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3485,"children":3486},{"style":1050},[3487],{"type":998,"value":1280},{"type":993,"tag":1029,"props":3489,"children":3490},{"style":1044},[3491],{"type":998,"value":3492}," word: ",{"type":993,"tag":1029,"props":3494,"children":3495},{"style":1061},[3496],{"type":998,"value":3497},"len",{"type":993,"tag":1029,"props":3499,"children":3500},{"style":1044},[3501],{"type":998,"value":3502},"(word) ",{"type":993,"tag":1029,"props":3504,"children":3505},{"style":1050},[3506],{"type":998,"value":3507},">",{"type":993,"tag":1029,"props":3509,"children":3510},{"style":1061},[3511],{"type":998,"value":3512}," 4",{"type":993,"tag":1029,"props":3514,"children":3515},{"style":1044},[3516],{"type":998,"value":3517},", words))\n",{"type":993,"tag":1029,"props":3519,"children":3520},{"class":1031,"line":81},[3521],{"type":993,"tag":1029,"props":3522,"children":3523},{"emptyLinePlaceholder":13},[3524],{"type":998,"value":1114},{"type":993,"tag":1029,"props":3526,"children":3527},{"class":1031,"line":91},[3528,3532,3536,3540,3545,3549,3554,3558,3562],{"type":993,"tag":1029,"props":3529,"children":3530},{"style":1061},[3531],{"type":998,"value":1313},{"type":993,"tag":1029,"props":3533,"children":3534},{"style":1044},[3535],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3537,"children":3538},{"style":1050},[3539],{"type":998,"value":1322},{"type":993,"tag":1029,"props":3541,"children":3542},{"style":1325},[3543],{"type":998,"value":3544},"\"Passing scores: ",{"type":993,"tag":1029,"props":3546,"children":3547},{"style":1061},[3548],{"type":998,"value":1333},{"type":993,"tag":1029,"props":3550,"children":3551},{"style":1044},[3552],{"type":998,"value":3553},"passing_scores",{"type":993,"tag":1029,"props":3555,"children":3556},{"style":1061},[3557],{"type":998,"value":1343},{"type":993,"tag":1029,"props":3559,"children":3560},{"style":1325},[3561],{"type":998,"value":1348},{"type":993,"tag":1029,"props":3563,"children":3564},{"style":1044},[3565],{"type":998,"value":1353},{"type":993,"tag":1029,"props":3567,"children":3568},{"class":1031,"line":100},[3569,3573,3577,3581,3586,3590,3595,3599,3603],{"type":993,"tag":1029,"props":3570,"children":3571},{"style":1061},[3572],{"type":998,"value":1313},{"type":993,"tag":1029,"props":3574,"children":3575},{"style":1044},[3576],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3578,"children":3579},{"style":1050},[3580],{"type":998,"value":1322},{"type":993,"tag":1029,"props":3582,"children":3583},{"style":1325},[3584],{"type":998,"value":3585},"\"Long language names: ",{"type":993,"tag":1029,"props":3587,"children":3588},{"style":1061},[3589],{"type":998,"value":1333},{"type":993,"tag":1029,"props":3591,"children":3592},{"style":1044},[3593],{"type":998,"value":3594},"long_names",{"type":993,"tag":1029,"props":3596,"children":3597},{"style":1061},[3598],{"type":998,"value":1343},{"type":993,"tag":1029,"props":3600,"children":3601},{"style":1325},[3602],{"type":998,"value":1348},{"type":993,"tag":1029,"props":3604,"children":3605},{"style":1044},[3606],{"type":998,"value":1353},{"type":993,"tag":1852,"props":3608,"children":3610},{"id":3609},"using-sorted-with-lambda",[3611],{"type":998,"value":3612},"Using sorted() with Lambda",{"type":993,"tag":1001,"props":3614,"children":3615},{},[3616],{"type":998,"value":3617},"Lambda functions provide custom sorting logic for complex data structures and sorting criteria.",{"type":993,"tag":1016,"props":3619,"children":3620},{},[3621],{"type":993,"tag":1020,"props":3622,"children":3624},{"className":1022,"code":3623,"language":6,"meta":8,"style":8},"# Sort with custom lambda criteria\nstudents = [\n    ('Alice', 3.8, 'Computer Science'),\n    ('Bob', 3.2, 'Mathematics'),\n    ('Charlie', 3.9, 'Physics'),\n    ('Diana', 3.5, 'Computer Science')\n]\n\n# Sort by different criteria\nby_gpa = sorted(students, key=lambda student: student[1], reverse=True)\nby_name_length = sorted(students, key=lambda student: len(student[0]))\n\nprint(\"Top students by GPA:\", [s[0] for s in by_gpa])\nprint(\"By name length:\", [s[0] for s in by_name_length])\n",[3625],{"type":993,"tag":1007,"props":3626,"children":3627},{"__ignoreMap":8},[3628,3636,3652,3687,3720,3753,3786,3793,3800,3808,3869,3921,3928,3975],{"type":993,"tag":1029,"props":3629,"children":3630},{"class":1031,"line":12},[3631],{"type":993,"tag":1029,"props":3632,"children":3633},{"style":1035},[3634],{"type":998,"value":3635},"# Sort with custom lambda criteria\n",{"type":993,"tag":1029,"props":3637,"children":3638},{"class":1031,"line":27},[3639,3644,3648],{"type":993,"tag":1029,"props":3640,"children":3641},{"style":1044},[3642],{"type":998,"value":3643},"students ",{"type":993,"tag":1029,"props":3645,"children":3646},{"style":1050},[3647],{"type":998,"value":1053},{"type":993,"tag":1029,"props":3649,"children":3650},{"style":1044},[3651],{"type":998,"value":1920},{"type":993,"tag":1029,"props":3653,"children":3654},{"class":1031,"line":36},[3655,3660,3664,3668,3673,3677,3682],{"type":993,"tag":1029,"props":3656,"children":3657},{"style":1044},[3658],{"type":998,"value":3659},"    (",{"type":993,"tag":1029,"props":3661,"children":3662},{"style":1325},[3663],{"type":998,"value":1943},{"type":993,"tag":1029,"props":3665,"children":3666},{"style":1044},[3667],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3669,"children":3670},{"style":1061},[3671],{"type":998,"value":3672},"3.8",{"type":993,"tag":1029,"props":3674,"children":3675},{"style":1044},[3676],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3678,"children":3679},{"style":1325},[3680],{"type":998,"value":3681},"'Computer Science'",{"type":993,"tag":1029,"props":3683,"children":3684},{"style":1044},[3685],{"type":998,"value":3686},"),\n",{"type":993,"tag":1029,"props":3688,"children":3689},{"class":1031,"line":45},[3690,3694,3698,3702,3707,3711,3716],{"type":993,"tag":1029,"props":3691,"children":3692},{"style":1044},[3693],{"type":998,"value":3659},{"type":993,"tag":1029,"props":3695,"children":3696},{"style":1325},[3697],{"type":998,"value":2004},{"type":993,"tag":1029,"props":3699,"children":3700},{"style":1044},[3701],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3703,"children":3704},{"style":1061},[3705],{"type":998,"value":3706},"3.2",{"type":993,"tag":1029,"props":3708,"children":3709},{"style":1044},[3710],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3712,"children":3713},{"style":1325},[3714],{"type":998,"value":3715},"'Mathematics'",{"type":993,"tag":1029,"props":3717,"children":3718},{"style":1044},[3719],{"type":998,"value":3686},{"type":993,"tag":1029,"props":3721,"children":3722},{"class":1031,"line":54},[3723,3727,3731,3735,3740,3744,3749],{"type":993,"tag":1029,"props":3724,"children":3725},{"style":1044},[3726],{"type":998,"value":3659},{"type":993,"tag":1029,"props":3728,"children":3729},{"style":1325},[3730],{"type":998,"value":2062},{"type":993,"tag":1029,"props":3732,"children":3733},{"style":1044},[3734],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3736,"children":3737},{"style":1061},[3738],{"type":998,"value":3739},"3.9",{"type":993,"tag":1029,"props":3741,"children":3742},{"style":1044},[3743],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3745,"children":3746},{"style":1325},[3747],{"type":998,"value":3748},"'Physics'",{"type":993,"tag":1029,"props":3750,"children":3751},{"style":1044},[3752],{"type":998,"value":3686},{"type":993,"tag":1029,"props":3754,"children":3755},{"class":1031,"line":63},[3756,3760,3765,3769,3774,3778,3782],{"type":993,"tag":1029,"props":3757,"children":3758},{"style":1044},[3759],{"type":998,"value":3659},{"type":993,"tag":1029,"props":3761,"children":3762},{"style":1325},[3763],{"type":998,"value":3764},"'Diana'",{"type":993,"tag":1029,"props":3766,"children":3767},{"style":1044},[3768],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3770,"children":3771},{"style":1061},[3772],{"type":998,"value":3773},"3.5",{"type":993,"tag":1029,"props":3775,"children":3776},{"style":1044},[3777],{"type":998,"value":1069},{"type":993,"tag":1029,"props":3779,"children":3780},{"style":1325},[3781],{"type":998,"value":3681},{"type":993,"tag":1029,"props":3783,"children":3784},{"style":1044},[3785],{"type":998,"value":1353},{"type":993,"tag":1029,"props":3787,"children":3788},{"class":1031,"line":72},[3789],{"type":993,"tag":1029,"props":3790,"children":3791},{"style":1044},[3792],{"type":998,"value":1106},{"type":993,"tag":1029,"props":3794,"children":3795},{"class":1031,"line":81},[3796],{"type":993,"tag":1029,"props":3797,"children":3798},{"emptyLinePlaceholder":13},[3799],{"type":998,"value":1114},{"type":993,"tag":1029,"props":3801,"children":3802},{"class":1031,"line":91},[3803],{"type":993,"tag":1029,"props":3804,"children":3805},{"style":1035},[3806],{"type":998,"value":3807},"# Sort by different criteria\n",{"type":993,"tag":1029,"props":3809,"children":3810},{"class":1031,"line":100},[3811,3816,3820,3824,3829,3833,3837,3842,3846,3851,3856,3860,3865],{"type":993,"tag":1029,"props":3812,"children":3813},{"style":1044},[3814],{"type":998,"value":3815},"by_gpa ",{"type":993,"tag":1029,"props":3817,"children":3818},{"style":1050},[3819],{"type":998,"value":1053},{"type":993,"tag":1029,"props":3821,"children":3822},{"style":1061},[3823],{"type":998,"value":2140},{"type":993,"tag":1029,"props":3825,"children":3826},{"style":1044},[3827],{"type":998,"value":3828},"(students, ",{"type":993,"tag":1029,"props":3830,"children":3831},{"style":2148},[3832],{"type":998,"value":2151},{"type":993,"tag":1029,"props":3834,"children":3835},{"style":1050},[3836],{"type":998,"value":2156},{"type":993,"tag":1029,"props":3838,"children":3839},{"style":1044},[3840],{"type":998,"value":3841}," student: student[",{"type":993,"tag":1029,"props":3843,"children":3844},{"style":1061},[3845],{"type":998,"value":1064},{"type":993,"tag":1029,"props":3847,"children":3848},{"style":1044},[3849],{"type":998,"value":3850},"], ",{"type":993,"tag":1029,"props":3852,"children":3853},{"style":2148},[3854],{"type":998,"value":3855},"reverse",{"type":993,"tag":1029,"props":3857,"children":3858},{"style":1050},[3859],{"type":998,"value":1053},{"type":993,"tag":1029,"props":3861,"children":3862},{"style":1061},[3863],{"type":998,"value":3864},"True",{"type":993,"tag":1029,"props":3866,"children":3867},{"style":1044},[3868],{"type":998,"value":1353},{"type":993,"tag":1029,"props":3870,"children":3871},{"class":1031,"line":109},[3872,3877,3881,3885,3889,3893,3897,3902,3906,3911,3916],{"type":993,"tag":1029,"props":3873,"children":3874},{"style":1044},[3875],{"type":998,"value":3876},"by_name_length ",{"type":993,"tag":1029,"props":3878,"children":3879},{"style":1050},[3880],{"type":998,"value":1053},{"type":993,"tag":1029,"props":3882,"children":3883},{"style":1061},[3884],{"type":998,"value":2140},{"type":993,"tag":1029,"props":3886,"children":3887},{"style":1044},[3888],{"type":998,"value":3828},{"type":993,"tag":1029,"props":3890,"children":3891},{"style":2148},[3892],{"type":998,"value":2151},{"type":993,"tag":1029,"props":3894,"children":3895},{"style":1050},[3896],{"type":998,"value":2156},{"type":993,"tag":1029,"props":3898,"children":3899},{"style":1044},[3900],{"type":998,"value":3901}," student: ",{"type":993,"tag":1029,"props":3903,"children":3904},{"style":1061},[3905],{"type":998,"value":3497},{"type":993,"tag":1029,"props":3907,"children":3908},{"style":1044},[3909],{"type":998,"value":3910},"(student[",{"type":993,"tag":1029,"props":3912,"children":3913},{"style":1061},[3914],{"type":998,"value":3915},"0",{"type":993,"tag":1029,"props":3917,"children":3918},{"style":1044},[3919],{"type":998,"value":3920},"]))\n",{"type":993,"tag":1029,"props":3922,"children":3923},{"class":1031,"line":118},[3924],{"type":993,"tag":1029,"props":3925,"children":3926},{"emptyLinePlaceholder":13},[3927],{"type":998,"value":1114},{"type":993,"tag":1029,"props":3929,"children":3930},{"class":1031,"line":127},[3931,3935,3939,3944,3949,3953,3957,3961,3966,3970],{"type":993,"tag":1029,"props":3932,"children":3933},{"style":1061},[3934],{"type":998,"value":1313},{"type":993,"tag":1029,"props":3936,"children":3937},{"style":1044},[3938],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3940,"children":3941},{"style":1325},[3942],{"type":998,"value":3943},"\"Top students by GPA:\"",{"type":993,"tag":1029,"props":3945,"children":3946},{"style":1044},[3947],{"type":998,"value":3948},", [s[",{"type":993,"tag":1029,"props":3950,"children":3951},{"style":1061},[3952],{"type":998,"value":3915},{"type":993,"tag":1029,"props":3954,"children":3955},{"style":1044},[3956],{"type":998,"value":2247},{"type":993,"tag":1029,"props":3958,"children":3959},{"style":1050},[3960],{"type":998,"value":2252},{"type":993,"tag":1029,"props":3962,"children":3963},{"style":1044},[3964],{"type":998,"value":3965}," s ",{"type":993,"tag":1029,"props":3967,"children":3968},{"style":1050},[3969],{"type":998,"value":2262},{"type":993,"tag":1029,"props":3971,"children":3972},{"style":1044},[3973],{"type":998,"value":3974}," by_gpa])\n",{"type":993,"tag":1029,"props":3976,"children":3977},{"class":1031,"line":136},[3978,3982,3986,3991,3995,3999,4003,4007,4011,4015],{"type":993,"tag":1029,"props":3979,"children":3980},{"style":1061},[3981],{"type":998,"value":1313},{"type":993,"tag":1029,"props":3983,"children":3984},{"style":1044},[3985],{"type":998,"value":1237},{"type":993,"tag":1029,"props":3987,"children":3988},{"style":1325},[3989],{"type":998,"value":3990},"\"By name length:\"",{"type":993,"tag":1029,"props":3992,"children":3993},{"style":1044},[3994],{"type":998,"value":3948},{"type":993,"tag":1029,"props":3996,"children":3997},{"style":1061},[3998],{"type":998,"value":3915},{"type":993,"tag":1029,"props":4000,"children":4001},{"style":1044},[4002],{"type":998,"value":2247},{"type":993,"tag":1029,"props":4004,"children":4005},{"style":1050},[4006],{"type":998,"value":2252},{"type":993,"tag":1029,"props":4008,"children":4009},{"style":1044},[4010],{"type":998,"value":3965},{"type":993,"tag":1029,"props":4012,"children":4013},{"style":1050},[4014],{"type":998,"value":2262},{"type":993,"tag":1029,"props":4016,"children":4017},{"style":1044},[4018],{"type":998,"value":4019}," by_name_length])\n",{"type":993,"tag":1396,"props":4021,"children":4023},{"id":4022},"lambda-function-comparison-table",[4024],{"type":998,"value":4025},"📊 Lambda Function Comparison Table",{"type":993,"tag":4027,"props":4028,"children":4029},"table",{},[4030,4054],{"type":993,"tag":4031,"props":4032,"children":4033},"thead",{},[4034],{"type":993,"tag":4035,"props":4036,"children":4037},"tr",{},[4038,4044,4049],{"type":993,"tag":4039,"props":4040,"children":4041},"th",{},[4042],{"type":998,"value":4043},"Feature",{"type":993,"tag":4039,"props":4045,"children":4046},{},[4047],{"type":998,"value":4048},"Lambda Functions",{"type":993,"tag":4039,"props":4050,"children":4051},{},[4052],{"type":998,"value":4053},"Regular Functions",{"type":993,"tag":4055,"props":4056,"children":4057},"tbody",{},[4058,4088,4109,4130,4151],{"type":993,"tag":4035,"props":4059,"children":4060},{},[4061,4070,4079],{"type":993,"tag":4062,"props":4063,"children":4064},"td",{},[4065],{"type":993,"tag":1793,"props":4066,"children":4067},{},[4068],{"type":998,"value":4069},"Syntax",{"type":993,"tag":4062,"props":4071,"children":4072},{},[4073],{"type":993,"tag":1007,"props":4074,"children":4076},{"className":4075},[],[4077],{"type":998,"value":4078},"lambda x: x * 2",{"type":993,"tag":4062,"props":4080,"children":4081},{},[4082],{"type":993,"tag":1007,"props":4083,"children":4085},{"className":4084},[],[4086],{"type":998,"value":4087},"def multiply(x): return x * 2",{"type":993,"tag":4035,"props":4089,"children":4090},{},[4091,4099,4104],{"type":993,"tag":4062,"props":4092,"children":4093},{},[4094],{"type":993,"tag":1793,"props":4095,"children":4096},{},[4097],{"type":998,"value":4098},"Use Case",{"type":993,"tag":4062,"props":4100,"children":4101},{},[4102],{"type":998,"value":4103},"Simple, immediate operations",{"type":993,"tag":4062,"props":4105,"children":4106},{},[4107],{"type":998,"value":4108},"Complex logic, reusable code",{"type":993,"tag":4035,"props":4110,"children":4111},{},[4112,4120,4125],{"type":993,"tag":4062,"props":4113,"children":4114},{},[4115],{"type":993,"tag":1793,"props":4116,"children":4117},{},[4118],{"type":998,"value":4119},"Documentation",{"type":993,"tag":4062,"props":4121,"children":4122},{},[4123],{"type":998,"value":4124},"No docstrings allowed",{"type":993,"tag":4062,"props":4126,"children":4127},{},[4128],{"type":998,"value":4129},"Full documentation support",{"type":993,"tag":4035,"props":4131,"children":4132},{},[4133,4141,4146],{"type":993,"tag":4062,"props":4134,"children":4135},{},[4136],{"type":993,"tag":1793,"props":4137,"children":4138},{},[4139],{"type":998,"value":4140},"Complexity",{"type":993,"tag":4062,"props":4142,"children":4143},{},[4144],{"type":998,"value":4145},"Single expression only",{"type":993,"tag":4062,"props":4147,"children":4148},{},[4149],{"type":998,"value":4150},"Multiple statements, conditionals",{"type":993,"tag":4035,"props":4152,"children":4153},{},[4154,4162,4167],{"type":993,"tag":4062,"props":4155,"children":4156},{},[4157],{"type":993,"tag":1793,"props":4158,"children":4159},{},[4160],{"type":998,"value":4161},"Readability",{"type":993,"tag":4062,"props":4163,"children":4164},{},[4165],{"type":998,"value":4166},"Concise for simple operations",{"type":993,"tag":4062,"props":4168,"children":4169},{},[4170],{"type":998,"value":4171},"Better for complex logic",{"type":993,"tag":1396,"props":4173,"children":4175},{"id":4174},"advanced-lambda-patterns",[4176],{"type":998,"value":4177},"🌟 Advanced Lambda Patterns",{"type":993,"tag":1001,"props":4179,"children":4180},{},[4181],{"type":998,"value":4182},"Lambda functions can be combined with other functional programming concepts for more sophisticated data processing patterns.",{"type":993,"tag":1852,"props":4184,"children":4186},{"id":4185},"lambda-with-conditional-expressions",[4187],{"type":998,"value":4188},"Lambda with Conditional Expressions",{"type":993,"tag":1001,"props":4190,"children":4191},{},[4192],{"type":998,"value":4193},"Ternary operators inside lambda functions enable simple conditional logic while maintaining conciseness.",{"type":993,"tag":1016,"props":4195,"children":4196},{},[4197],{"type":993,"tag":1020,"props":4198,"children":4200},{"className":1022,"code":4199,"language":6,"meta":8,"style":8},"# Conditional logic in lambda functions\nnumbers = [-5, 10, -3, 7, 0, -1]\n\n# Apply conditional transformations\nabsolute_values = list(map(lambda x: x if x >= 0 else -x, numbers))\nsigns = list(map(lambda x: \"positive\" if x > 0 else \"negative\" if x \u003C 0 else \"zero\", numbers))\n\nprint(f\"Absolute values: {absolute_values}\")\nprint(f\"Signs: {signs}\")\n",[4201],{"type":993,"tag":1007,"props":4202,"children":4203},{"__ignoreMap":8},[4204,4212,4288,4295,4303,4372,4470,4477,4518],{"type":993,"tag":1029,"props":4205,"children":4206},{"class":1031,"line":12},[4207],{"type":993,"tag":1029,"props":4208,"children":4209},{"style":1035},[4210],{"type":998,"value":4211},"# Conditional logic in lambda functions\n",{"type":993,"tag":1029,"props":4213,"children":4214},{"class":1031,"line":27},[4215,4219,4223,4227,4231,4235,4239,4243,4247,4251,4255,4259,4264,4268,4272,4276,4280,4284],{"type":993,"tag":1029,"props":4216,"children":4217},{"style":1044},[4218],{"type":998,"value":1047},{"type":993,"tag":1029,"props":4220,"children":4221},{"style":1050},[4222],{"type":998,"value":1053},{"type":993,"tag":1029,"props":4224,"children":4225},{"style":1044},[4226],{"type":998,"value":1058},{"type":993,"tag":1029,"props":4228,"children":4229},{"style":1050},[4230],{"type":998,"value":3054},{"type":993,"tag":1029,"props":4232,"children":4233},{"style":1061},[4234],{"type":998,"value":1101},{"type":993,"tag":1029,"props":4236,"children":4237},{"style":1044},[4238],{"type":998,"value":1069},{"type":993,"tag":1029,"props":4240,"children":4241},{"style":1061},[4242],{"type":998,"value":1572},{"type":993,"tag":1029,"props":4244,"children":4245},{"style":1044},[4246],{"type":998,"value":1069},{"type":993,"tag":1029,"props":4248,"children":4249},{"style":1050},[4250],{"type":998,"value":3054},{"type":993,"tag":1029,"props":4252,"children":4253},{"style":1061},[4254],{"type":998,"value":1083},{"type":993,"tag":1029,"props":4256,"children":4257},{"style":1044},[4258],{"type":998,"value":1069},{"type":993,"tag":1029,"props":4260,"children":4261},{"style":1061},[4262],{"type":998,"value":4263},"7",{"type":993,"tag":1029,"props":4265,"children":4266},{"style":1044},[4267],{"type":998,"value":1069},{"type":993,"tag":1029,"props":4269,"children":4270},{"style":1061},[4271],{"type":998,"value":3915},{"type":993,"tag":1029,"props":4273,"children":4274},{"style":1044},[4275],{"type":998,"value":1069},{"type":993,"tag":1029,"props":4277,"children":4278},{"style":1050},[4279],{"type":998,"value":3054},{"type":993,"tag":1029,"props":4281,"children":4282},{"style":1061},[4283],{"type":998,"value":1064},{"type":993,"tag":1029,"props":4285,"children":4286},{"style":1044},[4287],{"type":998,"value":1106},{"type":993,"tag":1029,"props":4289,"children":4290},{"class":1031,"line":36},[4291],{"type":993,"tag":1029,"props":4292,"children":4293},{"emptyLinePlaceholder":13},[4294],{"type":998,"value":1114},{"type":993,"tag":1029,"props":4296,"children":4297},{"class":1031,"line":45},[4298],{"type":993,"tag":1029,"props":4299,"children":4300},{"style":1035},[4301],{"type":998,"value":4302},"# Apply conditional transformations\n",{"type":993,"tag":1029,"props":4304,"children":4305},{"class":1031,"line":54},[4306,4311,4315,4319,4323,4327,4331,4335,4339,4344,4348,4352,4357,4362,4367],{"type":993,"tag":1029,"props":4307,"children":4308},{"style":1044},[4309],{"type":998,"value":4310},"absolute_values ",{"type":993,"tag":1029,"props":4312,"children":4313},{"style":1050},[4314],{"type":998,"value":1053},{"type":993,"tag":1029,"props":4316,"children":4317},{"style":1061},[4318],{"type":998,"value":1232},{"type":993,"tag":1029,"props":4320,"children":4321},{"style":1044},[4322],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4324,"children":4325},{"style":1061},[4326],{"type":998,"value":1242},{"type":993,"tag":1029,"props":4328,"children":4329},{"style":1044},[4330],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4332,"children":4333},{"style":1050},[4334],{"type":998,"value":1280},{"type":993,"tag":1029,"props":4336,"children":4337},{"style":1044},[4338],{"type":998,"value":1192},{"type":993,"tag":1029,"props":4340,"children":4341},{"style":1050},[4342],{"type":998,"value":4343},"if",{"type":993,"tag":1029,"props":4345,"children":4346},{"style":1044},[4347],{"type":998,"value":1153},{"type":993,"tag":1029,"props":4349,"children":4350},{"style":1050},[4351],{"type":998,"value":3445},{"type":993,"tag":1029,"props":4353,"children":4354},{"style":1061},[4355],{"type":998,"value":4356}," 0",{"type":993,"tag":1029,"props":4358,"children":4359},{"style":1050},[4360],{"type":998,"value":4361}," else",{"type":993,"tag":1029,"props":4363,"children":4364},{"style":1050},[4365],{"type":998,"value":4366}," -",{"type":993,"tag":1029,"props":4368,"children":4369},{"style":1044},[4370],{"type":998,"value":4371},"x, numbers))\n",{"type":993,"tag":1029,"props":4373,"children":4374},{"class":1031,"line":63},[4375,4380,4384,4388,4392,4396,4400,4404,4409,4414,4419,4423,4427,4431,4435,4440,4444,4448,4453,4457,4461,4466],{"type":993,"tag":1029,"props":4376,"children":4377},{"style":1044},[4378],{"type":998,"value":4379},"signs ",{"type":993,"tag":1029,"props":4381,"children":4382},{"style":1050},[4383],{"type":998,"value":1053},{"type":993,"tag":1029,"props":4385,"children":4386},{"style":1061},[4387],{"type":998,"value":1232},{"type":993,"tag":1029,"props":4389,"children":4390},{"style":1044},[4391],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4393,"children":4394},{"style":1061},[4395],{"type":998,"value":1242},{"type":993,"tag":1029,"props":4397,"children":4398},{"style":1044},[4399],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4401,"children":4402},{"style":1050},[4403],{"type":998,"value":1280},{"type":993,"tag":1029,"props":4405,"children":4406},{"style":1044},[4407],{"type":998,"value":4408}," x: ",{"type":993,"tag":1029,"props":4410,"children":4411},{"style":1325},[4412],{"type":998,"value":4413},"\"positive\"",{"type":993,"tag":1029,"props":4415,"children":4416},{"style":1050},[4417],{"type":998,"value":4418}," if",{"type":993,"tag":1029,"props":4420,"children":4421},{"style":1044},[4422],{"type":998,"value":1153},{"type":993,"tag":1029,"props":4424,"children":4425},{"style":1050},[4426],{"type":998,"value":3507},{"type":993,"tag":1029,"props":4428,"children":4429},{"style":1061},[4430],{"type":998,"value":4356},{"type":993,"tag":1029,"props":4432,"children":4433},{"style":1050},[4434],{"type":998,"value":4361},{"type":993,"tag":1029,"props":4436,"children":4437},{"style":1325},[4438],{"type":998,"value":4439}," \"negative\"",{"type":993,"tag":1029,"props":4441,"children":4442},{"style":1050},[4443],{"type":998,"value":4418},{"type":993,"tag":1029,"props":4445,"children":4446},{"style":1044},[4447],{"type":998,"value":1153},{"type":993,"tag":1029,"props":4449,"children":4450},{"style":1050},[4451],{"type":998,"value":4452},"\u003C",{"type":993,"tag":1029,"props":4454,"children":4455},{"style":1061},[4456],{"type":998,"value":4356},{"type":993,"tag":1029,"props":4458,"children":4459},{"style":1050},[4460],{"type":998,"value":4361},{"type":993,"tag":1029,"props":4462,"children":4463},{"style":1325},[4464],{"type":998,"value":4465}," \"zero\"",{"type":993,"tag":1029,"props":4467,"children":4468},{"style":1044},[4469],{"type":998,"value":1298},{"type":993,"tag":1029,"props":4471,"children":4472},{"class":1031,"line":72},[4473],{"type":993,"tag":1029,"props":4474,"children":4475},{"emptyLinePlaceholder":13},[4476],{"type":998,"value":1114},{"type":993,"tag":1029,"props":4478,"children":4479},{"class":1031,"line":81},[4480,4484,4488,4492,4497,4501,4506,4510,4514],{"type":993,"tag":1029,"props":4481,"children":4482},{"style":1061},[4483],{"type":998,"value":1313},{"type":993,"tag":1029,"props":4485,"children":4486},{"style":1044},[4487],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4489,"children":4490},{"style":1050},[4491],{"type":998,"value":1322},{"type":993,"tag":1029,"props":4493,"children":4494},{"style":1325},[4495],{"type":998,"value":4496},"\"Absolute values: ",{"type":993,"tag":1029,"props":4498,"children":4499},{"style":1061},[4500],{"type":998,"value":1333},{"type":993,"tag":1029,"props":4502,"children":4503},{"style":1044},[4504],{"type":998,"value":4505},"absolute_values",{"type":993,"tag":1029,"props":4507,"children":4508},{"style":1061},[4509],{"type":998,"value":1343},{"type":993,"tag":1029,"props":4511,"children":4512},{"style":1325},[4513],{"type":998,"value":1348},{"type":993,"tag":1029,"props":4515,"children":4516},{"style":1044},[4517],{"type":998,"value":1353},{"type":993,"tag":1029,"props":4519,"children":4520},{"class":1031,"line":91},[4521,4525,4529,4533,4538,4542,4547,4551,4555],{"type":993,"tag":1029,"props":4522,"children":4523},{"style":1061},[4524],{"type":998,"value":1313},{"type":993,"tag":1029,"props":4526,"children":4527},{"style":1044},[4528],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4530,"children":4531},{"style":1050},[4532],{"type":998,"value":1322},{"type":993,"tag":1029,"props":4534,"children":4535},{"style":1325},[4536],{"type":998,"value":4537},"\"Signs: ",{"type":993,"tag":1029,"props":4539,"children":4540},{"style":1061},[4541],{"type":998,"value":1333},{"type":993,"tag":1029,"props":4543,"children":4544},{"style":1044},[4545],{"type":998,"value":4546},"signs",{"type":993,"tag":1029,"props":4548,"children":4549},{"style":1061},[4550],{"type":998,"value":1343},{"type":993,"tag":1029,"props":4552,"children":4553},{"style":1325},[4554],{"type":998,"value":1348},{"type":993,"tag":1029,"props":4556,"children":4557},{"style":1044},[4558],{"type":998,"value":1353},{"type":993,"tag":1852,"props":4560,"children":4562},{"id":4561},"lambda-with-multiple-operations",[4563],{"type":998,"value":4564},"Lambda with Multiple Operations",{"type":993,"tag":1001,"props":4566,"children":4567},{},[4568],{"type":998,"value":4569},"Complex expressions in lambda functions can perform multiple calculations in a single line.",{"type":993,"tag":1016,"props":4571,"children":4572},{},[4573],{"type":993,"tag":1020,"props":4574,"children":4576},{"className":1022,"code":4575,"language":6,"meta":8,"style":8},"# Multiple operations in lambda\npoints = [(1, 2), (3, 4), (5, 6), (0, 0)]\n\n# Calculate distances from origin\ndistances = list(map(lambda p: (p[0]**2 + p[1]**2)**0.5, points))\n\n# Format coordinate data\nformatted = list(map(lambda p: f\"({p[0]}, {p[1]})\", points))\n\nprint(f\"Distances: {[round(d, 2) for d in distances]}\")\nprint(f\"Formatted: {formatted}\")\n",[4577],{"type":993,"tag":1007,"props":4578,"children":4579},{"__ignoreMap":8},[4580,4588,4672,4679,4687,4786,4793,4801,4901,4908,4983],{"type":993,"tag":1029,"props":4581,"children":4582},{"class":1031,"line":12},[4583],{"type":993,"tag":1029,"props":4584,"children":4585},{"style":1035},[4586],{"type":998,"value":4587},"# Multiple operations in lambda\n",{"type":993,"tag":1029,"props":4589,"children":4590},{"class":1031,"line":27},[4591,4596,4600,4605,4609,4613,4617,4622,4626,4630,4634,4638,4642,4646,4651,4655,4659,4663,4667],{"type":993,"tag":1029,"props":4592,"children":4593},{"style":1044},[4594],{"type":998,"value":4595},"points ",{"type":993,"tag":1029,"props":4597,"children":4598},{"style":1050},[4599],{"type":998,"value":1053},{"type":993,"tag":1029,"props":4601,"children":4602},{"style":1044},[4603],{"type":998,"value":4604}," [(",{"type":993,"tag":1029,"props":4606,"children":4607},{"style":1061},[4608],{"type":998,"value":1064},{"type":993,"tag":1029,"props":4610,"children":4611},{"style":1044},[4612],{"type":998,"value":1069},{"type":993,"tag":1029,"props":4614,"children":4615},{"style":1061},[4616],{"type":998,"value":1074},{"type":993,"tag":1029,"props":4618,"children":4619},{"style":1044},[4620],{"type":998,"value":4621},"), (",{"type":993,"tag":1029,"props":4623,"children":4624},{"style":1061},[4625],{"type":998,"value":1083},{"type":993,"tag":1029,"props":4627,"children":4628},{"style":1044},[4629],{"type":998,"value":1069},{"type":993,"tag":1029,"props":4631,"children":4632},{"style":1061},[4633],{"type":998,"value":1092},{"type":993,"tag":1029,"props":4635,"children":4636},{"style":1044},[4637],{"type":998,"value":4621},{"type":993,"tag":1029,"props":4639,"children":4640},{"style":1061},[4641],{"type":998,"value":1101},{"type":993,"tag":1029,"props":4643,"children":4644},{"style":1044},[4645],{"type":998,"value":1069},{"type":993,"tag":1029,"props":4647,"children":4648},{"style":1061},[4649],{"type":998,"value":4650},"6",{"type":993,"tag":1029,"props":4652,"children":4653},{"style":1044},[4654],{"type":998,"value":4621},{"type":993,"tag":1029,"props":4656,"children":4657},{"style":1061},[4658],{"type":998,"value":3915},{"type":993,"tag":1029,"props":4660,"children":4661},{"style":1044},[4662],{"type":998,"value":1069},{"type":993,"tag":1029,"props":4664,"children":4665},{"style":1061},[4666],{"type":998,"value":3915},{"type":993,"tag":1029,"props":4668,"children":4669},{"style":1044},[4670],{"type":998,"value":4671},")]\n",{"type":993,"tag":1029,"props":4673,"children":4674},{"class":1031,"line":36},[4675],{"type":993,"tag":1029,"props":4676,"children":4677},{"emptyLinePlaceholder":13},[4678],{"type":998,"value":1114},{"type":993,"tag":1029,"props":4680,"children":4681},{"class":1031,"line":45},[4682],{"type":993,"tag":1029,"props":4683,"children":4684},{"style":1035},[4685],{"type":998,"value":4686},"# Calculate distances from origin\n",{"type":993,"tag":1029,"props":4688,"children":4689},{"class":1031,"line":54},[4690,4695,4699,4703,4707,4711,4715,4719,4724,4728,4733,4737,4741,4746,4751,4755,4759,4763,4767,4772,4776,4781],{"type":993,"tag":1029,"props":4691,"children":4692},{"style":1044},[4693],{"type":998,"value":4694},"distances ",{"type":993,"tag":1029,"props":4696,"children":4697},{"style":1050},[4698],{"type":998,"value":1053},{"type":993,"tag":1029,"props":4700,"children":4701},{"style":1061},[4702],{"type":998,"value":1232},{"type":993,"tag":1029,"props":4704,"children":4705},{"style":1044},[4706],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4708,"children":4709},{"style":1061},[4710],{"type":998,"value":1242},{"type":993,"tag":1029,"props":4712,"children":4713},{"style":1044},[4714],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4716,"children":4717},{"style":1050},[4718],{"type":998,"value":1280},{"type":993,"tag":1029,"props":4720,"children":4721},{"style":1044},[4722],{"type":998,"value":4723}," p: (p[",{"type":993,"tag":1029,"props":4725,"children":4726},{"style":1061},[4727],{"type":998,"value":3915},{"type":993,"tag":1029,"props":4729,"children":4730},{"style":1044},[4731],{"type":998,"value":4732},"]",{"type":993,"tag":1029,"props":4734,"children":4735},{"style":1050},[4736],{"type":998,"value":1158},{"type":993,"tag":1029,"props":4738,"children":4739},{"style":1061},[4740],{"type":998,"value":1074},{"type":993,"tag":1029,"props":4742,"children":4743},{"style":1050},[4744],{"type":998,"value":4745}," +",{"type":993,"tag":1029,"props":4747,"children":4748},{"style":1044},[4749],{"type":998,"value":4750}," p[",{"type":993,"tag":1029,"props":4752,"children":4753},{"style":1061},[4754],{"type":998,"value":1064},{"type":993,"tag":1029,"props":4756,"children":4757},{"style":1044},[4758],{"type":998,"value":4732},{"type":993,"tag":1029,"props":4760,"children":4761},{"style":1050},[4762],{"type":998,"value":1158},{"type":993,"tag":1029,"props":4764,"children":4765},{"style":1061},[4766],{"type":998,"value":1074},{"type":993,"tag":1029,"props":4768,"children":4769},{"style":1044},[4770],{"type":998,"value":4771},")",{"type":993,"tag":1029,"props":4773,"children":4774},{"style":1050},[4775],{"type":998,"value":1158},{"type":993,"tag":1029,"props":4777,"children":4778},{"style":1061},[4779],{"type":998,"value":4780},"0.5",{"type":993,"tag":1029,"props":4782,"children":4783},{"style":1044},[4784],{"type":998,"value":4785},", points))\n",{"type":993,"tag":1029,"props":4787,"children":4788},{"class":1031,"line":63},[4789],{"type":993,"tag":1029,"props":4790,"children":4791},{"emptyLinePlaceholder":13},[4792],{"type":998,"value":1114},{"type":993,"tag":1029,"props":4794,"children":4795},{"class":1031,"line":72},[4796],{"type":993,"tag":1029,"props":4797,"children":4798},{"style":1035},[4799],{"type":998,"value":4800},"# Format coordinate data\n",{"type":993,"tag":1029,"props":4802,"children":4803},{"class":1031,"line":81},[4804,4809,4813,4817,4821,4825,4829,4833,4838,4842,4847,4851,4856,4860,4864,4868,4872,4876,4880,4884,4888,4892,4897],{"type":993,"tag":1029,"props":4805,"children":4806},{"style":1044},[4807],{"type":998,"value":4808},"formatted ",{"type":993,"tag":1029,"props":4810,"children":4811},{"style":1050},[4812],{"type":998,"value":1053},{"type":993,"tag":1029,"props":4814,"children":4815},{"style":1061},[4816],{"type":998,"value":1232},{"type":993,"tag":1029,"props":4818,"children":4819},{"style":1044},[4820],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4822,"children":4823},{"style":1061},[4824],{"type":998,"value":1242},{"type":993,"tag":1029,"props":4826,"children":4827},{"style":1044},[4828],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4830,"children":4831},{"style":1050},[4832],{"type":998,"value":1280},{"type":993,"tag":1029,"props":4834,"children":4835},{"style":1044},[4836],{"type":998,"value":4837}," p: ",{"type":993,"tag":1029,"props":4839,"children":4840},{"style":1050},[4841],{"type":998,"value":1322},{"type":993,"tag":1029,"props":4843,"children":4844},{"style":1325},[4845],{"type":998,"value":4846},"\"(",{"type":993,"tag":1029,"props":4848,"children":4849},{"style":1061},[4850],{"type":998,"value":1333},{"type":993,"tag":1029,"props":4852,"children":4853},{"style":1044},[4854],{"type":998,"value":4855},"p[",{"type":993,"tag":1029,"props":4857,"children":4858},{"style":1061},[4859],{"type":998,"value":3915},{"type":993,"tag":1029,"props":4861,"children":4862},{"style":1044},[4863],{"type":998,"value":4732},{"type":993,"tag":1029,"props":4865,"children":4866},{"style":1061},[4867],{"type":998,"value":1343},{"type":993,"tag":1029,"props":4869,"children":4870},{"style":1325},[4871],{"type":998,"value":1069},{"type":993,"tag":1029,"props":4873,"children":4874},{"style":1061},[4875],{"type":998,"value":1333},{"type":993,"tag":1029,"props":4877,"children":4878},{"style":1044},[4879],{"type":998,"value":4855},{"type":993,"tag":1029,"props":4881,"children":4882},{"style":1061},[4883],{"type":998,"value":1064},{"type":993,"tag":1029,"props":4885,"children":4886},{"style":1044},[4887],{"type":998,"value":4732},{"type":993,"tag":1029,"props":4889,"children":4890},{"style":1061},[4891],{"type":998,"value":1343},{"type":993,"tag":1029,"props":4893,"children":4894},{"style":1325},[4895],{"type":998,"value":4896},")\"",{"type":993,"tag":1029,"props":4898,"children":4899},{"style":1044},[4900],{"type":998,"value":4785},{"type":993,"tag":1029,"props":4902,"children":4903},{"class":1031,"line":91},[4904],{"type":993,"tag":1029,"props":4905,"children":4906},{"emptyLinePlaceholder":13},[4907],{"type":998,"value":1114},{"type":993,"tag":1029,"props":4909,"children":4910},{"class":1031,"line":100},[4911,4915,4919,4923,4928,4932,4936,4940,4945,4949,4953,4957,4962,4966,4971,4975,4979],{"type":993,"tag":1029,"props":4912,"children":4913},{"style":1061},[4914],{"type":998,"value":1313},{"type":993,"tag":1029,"props":4916,"children":4917},{"style":1044},[4918],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4920,"children":4921},{"style":1050},[4922],{"type":998,"value":1322},{"type":993,"tag":1029,"props":4924,"children":4925},{"style":1325},[4926],{"type":998,"value":4927},"\"Distances: ",{"type":993,"tag":1029,"props":4929,"children":4930},{"style":1061},[4931],{"type":998,"value":1333},{"type":993,"tag":1029,"props":4933,"children":4934},{"style":1044},[4935],{"type":998,"value":3164},{"type":993,"tag":1029,"props":4937,"children":4938},{"style":1061},[4939],{"type":998,"value":3169},{"type":993,"tag":1029,"props":4941,"children":4942},{"style":1044},[4943],{"type":998,"value":4944},"(d, ",{"type":993,"tag":1029,"props":4946,"children":4947},{"style":1061},[4948],{"type":998,"value":1074},{"type":993,"tag":1029,"props":4950,"children":4951},{"style":1044},[4952],{"type":998,"value":2440},{"type":993,"tag":1029,"props":4954,"children":4955},{"style":1050},[4956],{"type":998,"value":2252},{"type":993,"tag":1029,"props":4958,"children":4959},{"style":1044},[4960],{"type":998,"value":4961}," d ",{"type":993,"tag":1029,"props":4963,"children":4964},{"style":1050},[4965],{"type":998,"value":2262},{"type":993,"tag":1029,"props":4967,"children":4968},{"style":1044},[4969],{"type":998,"value":4970}," distances]",{"type":993,"tag":1029,"props":4972,"children":4973},{"style":1061},[4974],{"type":998,"value":1343},{"type":993,"tag":1029,"props":4976,"children":4977},{"style":1325},[4978],{"type":998,"value":1348},{"type":993,"tag":1029,"props":4980,"children":4981},{"style":1044},[4982],{"type":998,"value":1353},{"type":993,"tag":1029,"props":4984,"children":4985},{"class":1031,"line":109},[4986,4990,4994,4998,5003,5007,5012,5016,5020],{"type":993,"tag":1029,"props":4987,"children":4988},{"style":1061},[4989],{"type":998,"value":1313},{"type":993,"tag":1029,"props":4991,"children":4992},{"style":1044},[4993],{"type":998,"value":1237},{"type":993,"tag":1029,"props":4995,"children":4996},{"style":1050},[4997],{"type":998,"value":1322},{"type":993,"tag":1029,"props":4999,"children":5000},{"style":1325},[5001],{"type":998,"value":5002},"\"Formatted: ",{"type":993,"tag":1029,"props":5004,"children":5005},{"style":1061},[5006],{"type":998,"value":1333},{"type":993,"tag":1029,"props":5008,"children":5009},{"style":1044},[5010],{"type":998,"value":5011},"formatted",{"type":993,"tag":1029,"props":5013,"children":5014},{"style":1061},[5015],{"type":998,"value":1343},{"type":993,"tag":1029,"props":5017,"children":5018},{"style":1325},[5019],{"type":998,"value":1348},{"type":993,"tag":1029,"props":5021,"children":5022},{"style":1044},[5023],{"type":998,"value":1353},{"type":993,"tag":1396,"props":5025,"children":5027},{"id":5026},"practical-applications",[5028],{"type":998,"value":5029},"💡 Practical Applications",{"type":993,"tag":1852,"props":5031,"children":5033},{"id":5032},"data-processing",[5034],{"type":998,"value":5035},"Data Processing",{"type":993,"tag":1001,"props":5037,"children":5038},{},[5039],{"type":998,"value":5040},"Lambda functions streamline common data processing tasks like cleaning, transforming, and extracting information from datasets.",{"type":993,"tag":1016,"props":5042,"children":5043},{},[5044],{"type":993,"tag":1020,"props":5045,"children":5047},{"className":1022,"code":5046,"language":6,"meta":8,"style":8},"# Clean and process user data\nuser_data = ['  Alice  ', 'BOB', '  charlie  ', 'DIANA']\nages = [25, 30, 22, 28]\n\n# Apply multiple transformations\nclean_names = list(map(lambda name: name.strip().title(), user_data))\nadult_ages = list(filter(lambda age: age >= 25, ages))\n\nprint(f\"Clean names: {clean_names}\")\nprint(f\"Adult ages: {adult_ages}\")\n",[5048],{"type":993,"tag":1007,"props":5049,"children":5050},{"__ignoreMap":8},[5051,5059,5111,5161,5168,5176,5213,5264,5271,5312],{"type":993,"tag":1029,"props":5052,"children":5053},{"class":1031,"line":12},[5054],{"type":993,"tag":1029,"props":5055,"children":5056},{"style":1035},[5057],{"type":998,"value":5058},"# Clean and process user data\n",{"type":993,"tag":1029,"props":5060,"children":5061},{"class":1031,"line":27},[5062,5067,5071,5075,5080,5084,5089,5093,5098,5102,5107],{"type":993,"tag":1029,"props":5063,"children":5064},{"style":1044},[5065],{"type":998,"value":5066},"user_data ",{"type":993,"tag":1029,"props":5068,"children":5069},{"style":1050},[5070],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5072,"children":5073},{"style":1044},[5074],{"type":998,"value":1058},{"type":993,"tag":1029,"props":5076,"children":5077},{"style":1325},[5078],{"type":998,"value":5079},"'  Alice  '",{"type":993,"tag":1029,"props":5081,"children":5082},{"style":1044},[5083],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5085,"children":5086},{"style":1325},[5087],{"type":998,"value":5088},"'BOB'",{"type":993,"tag":1029,"props":5090,"children":5091},{"style":1044},[5092],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5094,"children":5095},{"style":1325},[5096],{"type":998,"value":5097},"'  charlie  '",{"type":993,"tag":1029,"props":5099,"children":5100},{"style":1044},[5101],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5103,"children":5104},{"style":1325},[5105],{"type":998,"value":5106},"'DIANA'",{"type":993,"tag":1029,"props":5108,"children":5109},{"style":1044},[5110],{"type":998,"value":1106},{"type":993,"tag":1029,"props":5112,"children":5113},{"class":1031,"line":36},[5114,5119,5123,5127,5131,5135,5139,5143,5148,5152,5157],{"type":993,"tag":1029,"props":5115,"children":5116},{"style":1044},[5117],{"type":998,"value":5118},"ages ",{"type":993,"tag":1029,"props":5120,"children":5121},{"style":1050},[5122],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5124,"children":5125},{"style":1044},[5126],{"type":998,"value":1058},{"type":993,"tag":1029,"props":5128,"children":5129},{"style":1061},[5130],{"type":998,"value":2021},{"type":993,"tag":1029,"props":5132,"children":5133},{"style":1044},[5134],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5136,"children":5137},{"style":1061},[5138],{"type":998,"value":1961},{"type":993,"tag":1029,"props":5140,"children":5141},{"style":1044},[5142],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5144,"children":5145},{"style":1061},[5146],{"type":998,"value":5147},"22",{"type":993,"tag":1029,"props":5149,"children":5150},{"style":1044},[5151],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5153,"children":5154},{"style":1061},[5155],{"type":998,"value":5156},"28",{"type":993,"tag":1029,"props":5158,"children":5159},{"style":1044},[5160],{"type":998,"value":1106},{"type":993,"tag":1029,"props":5162,"children":5163},{"class":1031,"line":45},[5164],{"type":993,"tag":1029,"props":5165,"children":5166},{"emptyLinePlaceholder":13},[5167],{"type":998,"value":1114},{"type":993,"tag":1029,"props":5169,"children":5170},{"class":1031,"line":54},[5171],{"type":993,"tag":1029,"props":5172,"children":5173},{"style":1035},[5174],{"type":998,"value":5175},"# Apply multiple transformations\n",{"type":993,"tag":1029,"props":5177,"children":5178},{"class":1031,"line":63},[5179,5184,5188,5192,5196,5200,5204,5208],{"type":993,"tag":1029,"props":5180,"children":5181},{"style":1044},[5182],{"type":998,"value":5183},"clean_names ",{"type":993,"tag":1029,"props":5185,"children":5186},{"style":1050},[5187],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5189,"children":5190},{"style":1061},[5191],{"type":998,"value":1232},{"type":993,"tag":1029,"props":5193,"children":5194},{"style":1044},[5195],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5197,"children":5198},{"style":1061},[5199],{"type":998,"value":1242},{"type":993,"tag":1029,"props":5201,"children":5202},{"style":1044},[5203],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5205,"children":5206},{"style":1050},[5207],{"type":998,"value":1280},{"type":993,"tag":1029,"props":5209,"children":5210},{"style":1044},[5211],{"type":998,"value":5212}," name: name.strip().title(), user_data))\n",{"type":993,"tag":1029,"props":5214,"children":5215},{"class":1031,"line":72},[5216,5221,5225,5229,5233,5237,5241,5245,5250,5254,5259],{"type":993,"tag":1029,"props":5217,"children":5218},{"style":1044},[5219],{"type":998,"value":5220},"adult_ages ",{"type":993,"tag":1029,"props":5222,"children":5223},{"style":1050},[5224],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5226,"children":5227},{"style":1061},[5228],{"type":998,"value":1232},{"type":993,"tag":1029,"props":5230,"children":5231},{"style":1044},[5232],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5234,"children":5235},{"style":1061},[5236],{"type":998,"value":3427},{"type":993,"tag":1029,"props":5238,"children":5239},{"style":1044},[5240],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5242,"children":5243},{"style":1050},[5244],{"type":998,"value":1280},{"type":993,"tag":1029,"props":5246,"children":5247},{"style":1044},[5248],{"type":998,"value":5249}," age: age ",{"type":993,"tag":1029,"props":5251,"children":5252},{"style":1050},[5253],{"type":998,"value":3445},{"type":993,"tag":1029,"props":5255,"children":5256},{"style":1061},[5257],{"type":998,"value":5258}," 25",{"type":993,"tag":1029,"props":5260,"children":5261},{"style":1044},[5262],{"type":998,"value":5263},", ages))\n",{"type":993,"tag":1029,"props":5265,"children":5266},{"class":1031,"line":81},[5267],{"type":993,"tag":1029,"props":5268,"children":5269},{"emptyLinePlaceholder":13},[5270],{"type":998,"value":1114},{"type":993,"tag":1029,"props":5272,"children":5273},{"class":1031,"line":91},[5274,5278,5282,5286,5291,5295,5300,5304,5308],{"type":993,"tag":1029,"props":5275,"children":5276},{"style":1061},[5277],{"type":998,"value":1313},{"type":993,"tag":1029,"props":5279,"children":5280},{"style":1044},[5281],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5283,"children":5284},{"style":1050},[5285],{"type":998,"value":1322},{"type":993,"tag":1029,"props":5287,"children":5288},{"style":1325},[5289],{"type":998,"value":5290},"\"Clean names: ",{"type":993,"tag":1029,"props":5292,"children":5293},{"style":1061},[5294],{"type":998,"value":1333},{"type":993,"tag":1029,"props":5296,"children":5297},{"style":1044},[5298],{"type":998,"value":5299},"clean_names",{"type":993,"tag":1029,"props":5301,"children":5302},{"style":1061},[5303],{"type":998,"value":1343},{"type":993,"tag":1029,"props":5305,"children":5306},{"style":1325},[5307],{"type":998,"value":1348},{"type":993,"tag":1029,"props":5309,"children":5310},{"style":1044},[5311],{"type":998,"value":1353},{"type":993,"tag":1029,"props":5313,"children":5314},{"class":1031,"line":100},[5315,5319,5323,5327,5332,5336,5341,5345,5349],{"type":993,"tag":1029,"props":5316,"children":5317},{"style":1061},[5318],{"type":998,"value":1313},{"type":993,"tag":1029,"props":5320,"children":5321},{"style":1044},[5322],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5324,"children":5325},{"style":1050},[5326],{"type":998,"value":1322},{"type":993,"tag":1029,"props":5328,"children":5329},{"style":1325},[5330],{"type":998,"value":5331},"\"Adult ages: ",{"type":993,"tag":1029,"props":5333,"children":5334},{"style":1061},[5335],{"type":998,"value":1333},{"type":993,"tag":1029,"props":5337,"children":5338},{"style":1044},[5339],{"type":998,"value":5340},"adult_ages",{"type":993,"tag":1029,"props":5342,"children":5343},{"style":1061},[5344],{"type":998,"value":1343},{"type":993,"tag":1029,"props":5346,"children":5347},{"style":1325},[5348],{"type":998,"value":1348},{"type":993,"tag":1029,"props":5350,"children":5351},{"style":1044},[5352],{"type":998,"value":1353},{"type":993,"tag":1852,"props":5354,"children":5356},{"id":5355},"configuration-and-settings",[5357],{"type":998,"value":5358},"Configuration and Settings",{"type":993,"tag":1001,"props":5360,"children":5361},{},[5362],{"type":998,"value":5363},"Lambda functions work well for creating configuration mappings and quick data transformations in settings.",{"type":993,"tag":1016,"props":5365,"children":5366},{},[5367],{"type":993,"tag":1020,"props":5368,"children":5370},{"className":1022,"code":5369,"language":6,"meta":8,"style":8},"# Configuration transformations\nconfig_values = ['true', 'false', '42', '3.14']\napi_responses = [200, 404, 500, 200, 301]\n\n# Transform configuration data\nbooleans = list(map(lambda val: val.lower() == 'true', config_values[:2]))\nsuccess_codes = list(filter(lambda code: 200 \u003C= code \u003C 300, api_responses))\n\nprint(f\"Boolean configs: {booleans}\")\nprint(f\"Success responses: {success_codes}\")\n",[5371],{"type":993,"tag":1007,"props":5372,"children":5373},{"__ignoreMap":8},[5374,5382,5434,5494,5501,5509,5568,5633,5640,5681],{"type":993,"tag":1029,"props":5375,"children":5376},{"class":1031,"line":12},[5377],{"type":993,"tag":1029,"props":5378,"children":5379},{"style":1035},[5380],{"type":998,"value":5381},"# Configuration transformations\n",{"type":993,"tag":1029,"props":5383,"children":5384},{"class":1031,"line":27},[5385,5390,5394,5398,5403,5407,5412,5416,5421,5425,5430],{"type":993,"tag":1029,"props":5386,"children":5387},{"style":1044},[5388],{"type":998,"value":5389},"config_values ",{"type":993,"tag":1029,"props":5391,"children":5392},{"style":1050},[5393],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5395,"children":5396},{"style":1044},[5397],{"type":998,"value":1058},{"type":993,"tag":1029,"props":5399,"children":5400},{"style":1325},[5401],{"type":998,"value":5402},"'true'",{"type":993,"tag":1029,"props":5404,"children":5405},{"style":1044},[5406],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5408,"children":5409},{"style":1325},[5410],{"type":998,"value":5411},"'false'",{"type":993,"tag":1029,"props":5413,"children":5414},{"style":1044},[5415],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5417,"children":5418},{"style":1325},[5419],{"type":998,"value":5420},"'42'",{"type":993,"tag":1029,"props":5422,"children":5423},{"style":1044},[5424],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5426,"children":5427},{"style":1325},[5428],{"type":998,"value":5429},"'3.14'",{"type":993,"tag":1029,"props":5431,"children":5432},{"style":1044},[5433],{"type":998,"value":1106},{"type":993,"tag":1029,"props":5435,"children":5436},{"class":1031,"line":36},[5437,5442,5446,5450,5455,5459,5464,5468,5473,5477,5481,5485,5490],{"type":993,"tag":1029,"props":5438,"children":5439},{"style":1044},[5440],{"type":998,"value":5441},"api_responses ",{"type":993,"tag":1029,"props":5443,"children":5444},{"style":1050},[5445],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5447,"children":5448},{"style":1044},[5449],{"type":998,"value":1058},{"type":993,"tag":1029,"props":5451,"children":5452},{"style":1061},[5453],{"type":998,"value":5454},"200",{"type":993,"tag":1029,"props":5456,"children":5457},{"style":1044},[5458],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5460,"children":5461},{"style":1061},[5462],{"type":998,"value":5463},"404",{"type":993,"tag":1029,"props":5465,"children":5466},{"style":1044},[5467],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5469,"children":5470},{"style":1061},[5471],{"type":998,"value":5472},"500",{"type":993,"tag":1029,"props":5474,"children":5475},{"style":1044},[5476],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5478,"children":5479},{"style":1061},[5480],{"type":998,"value":5454},{"type":993,"tag":1029,"props":5482,"children":5483},{"style":1044},[5484],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5486,"children":5487},{"style":1061},[5488],{"type":998,"value":5489},"301",{"type":993,"tag":1029,"props":5491,"children":5492},{"style":1044},[5493],{"type":998,"value":1106},{"type":993,"tag":1029,"props":5495,"children":5496},{"class":1031,"line":45},[5497],{"type":993,"tag":1029,"props":5498,"children":5499},{"emptyLinePlaceholder":13},[5500],{"type":998,"value":1114},{"type":993,"tag":1029,"props":5502,"children":5503},{"class":1031,"line":54},[5504],{"type":993,"tag":1029,"props":5505,"children":5506},{"style":1035},[5507],{"type":998,"value":5508},"# Transform configuration data\n",{"type":993,"tag":1029,"props":5510,"children":5511},{"class":1031,"line":63},[5512,5517,5521,5525,5529,5533,5537,5541,5546,5550,5555,5560,5564],{"type":993,"tag":1029,"props":5513,"children":5514},{"style":1044},[5515],{"type":998,"value":5516},"booleans ",{"type":993,"tag":1029,"props":5518,"children":5519},{"style":1050},[5520],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5522,"children":5523},{"style":1061},[5524],{"type":998,"value":1232},{"type":993,"tag":1029,"props":5526,"children":5527},{"style":1044},[5528],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5530,"children":5531},{"style":1061},[5532],{"type":998,"value":1242},{"type":993,"tag":1029,"props":5534,"children":5535},{"style":1044},[5536],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5538,"children":5539},{"style":1050},[5540],{"type":998,"value":1280},{"type":993,"tag":1029,"props":5542,"children":5543},{"style":1044},[5544],{"type":998,"value":5545}," val: val.lower() ",{"type":993,"tag":1029,"props":5547,"children":5548},{"style":1050},[5549],{"type":998,"value":2445},{"type":993,"tag":1029,"props":5551,"children":5552},{"style":1325},[5553],{"type":998,"value":5554}," 'true'",{"type":993,"tag":1029,"props":5556,"children":5557},{"style":1044},[5558],{"type":998,"value":5559},", config_values[:",{"type":993,"tag":1029,"props":5561,"children":5562},{"style":1061},[5563],{"type":998,"value":1074},{"type":993,"tag":1029,"props":5565,"children":5566},{"style":1044},[5567],{"type":998,"value":3920},{"type":993,"tag":1029,"props":5569,"children":5570},{"class":1031,"line":72},[5571,5576,5580,5584,5588,5592,5596,5600,5605,5609,5614,5619,5623,5628],{"type":993,"tag":1029,"props":5572,"children":5573},{"style":1044},[5574],{"type":998,"value":5575},"success_codes ",{"type":993,"tag":1029,"props":5577,"children":5578},{"style":1050},[5579],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5581,"children":5582},{"style":1061},[5583],{"type":998,"value":1232},{"type":993,"tag":1029,"props":5585,"children":5586},{"style":1044},[5587],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5589,"children":5590},{"style":1061},[5591],{"type":998,"value":3427},{"type":993,"tag":1029,"props":5593,"children":5594},{"style":1044},[5595],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5597,"children":5598},{"style":1050},[5599],{"type":998,"value":1280},{"type":993,"tag":1029,"props":5601,"children":5602},{"style":1044},[5603],{"type":998,"value":5604}," code: ",{"type":993,"tag":1029,"props":5606,"children":5607},{"style":1061},[5608],{"type":998,"value":5454},{"type":993,"tag":1029,"props":5610,"children":5611},{"style":1050},[5612],{"type":998,"value":5613}," \u003C=",{"type":993,"tag":1029,"props":5615,"children":5616},{"style":1044},[5617],{"type":998,"value":5618}," code ",{"type":993,"tag":1029,"props":5620,"children":5621},{"style":1050},[5622],{"type":998,"value":4452},{"type":993,"tag":1029,"props":5624,"children":5625},{"style":1061},[5626],{"type":998,"value":5627}," 300",{"type":993,"tag":1029,"props":5629,"children":5630},{"style":1044},[5631],{"type":998,"value":5632},", api_responses))\n",{"type":993,"tag":1029,"props":5634,"children":5635},{"class":1031,"line":81},[5636],{"type":993,"tag":1029,"props":5637,"children":5638},{"emptyLinePlaceholder":13},[5639],{"type":998,"value":1114},{"type":993,"tag":1029,"props":5641,"children":5642},{"class":1031,"line":91},[5643,5647,5651,5655,5660,5664,5669,5673,5677],{"type":993,"tag":1029,"props":5644,"children":5645},{"style":1061},[5646],{"type":998,"value":1313},{"type":993,"tag":1029,"props":5648,"children":5649},{"style":1044},[5650],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5652,"children":5653},{"style":1050},[5654],{"type":998,"value":1322},{"type":993,"tag":1029,"props":5656,"children":5657},{"style":1325},[5658],{"type":998,"value":5659},"\"Boolean configs: ",{"type":993,"tag":1029,"props":5661,"children":5662},{"style":1061},[5663],{"type":998,"value":1333},{"type":993,"tag":1029,"props":5665,"children":5666},{"style":1044},[5667],{"type":998,"value":5668},"booleans",{"type":993,"tag":1029,"props":5670,"children":5671},{"style":1061},[5672],{"type":998,"value":1343},{"type":993,"tag":1029,"props":5674,"children":5675},{"style":1325},[5676],{"type":998,"value":1348},{"type":993,"tag":1029,"props":5678,"children":5679},{"style":1044},[5680],{"type":998,"value":1353},{"type":993,"tag":1029,"props":5682,"children":5683},{"class":1031,"line":100},[5684,5688,5692,5696,5701,5705,5710,5714,5718],{"type":993,"tag":1029,"props":5685,"children":5686},{"style":1061},[5687],{"type":998,"value":1313},{"type":993,"tag":1029,"props":5689,"children":5690},{"style":1044},[5691],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5693,"children":5694},{"style":1050},[5695],{"type":998,"value":1322},{"type":993,"tag":1029,"props":5697,"children":5698},{"style":1325},[5699],{"type":998,"value":5700},"\"Success responses: ",{"type":993,"tag":1029,"props":5702,"children":5703},{"style":1061},[5704],{"type":998,"value":1333},{"type":993,"tag":1029,"props":5706,"children":5707},{"style":1044},[5708],{"type":998,"value":5709},"success_codes",{"type":993,"tag":1029,"props":5711,"children":5712},{"style":1061},[5713],{"type":998,"value":1343},{"type":993,"tag":1029,"props":5715,"children":5716},{"style":1325},[5717],{"type":998,"value":1348},{"type":993,"tag":1029,"props":5719,"children":5720},{"style":1044},[5721],{"type":998,"value":1353},{"type":993,"tag":1783,"props":5723,"children":5727},{"emoji":5724,"title":5725,"type":5726},"✅","Best Practices","success",[5728,5738,5748,5758,5768],{"type":993,"tag":1001,"props":5729,"children":5730},{},[5731,5736],{"type":993,"tag":1793,"props":5732,"children":5733},{},[5734],{"type":998,"value":5735},"Keep It Simple:",{"type":998,"value":5737}," Use lambda for simple, one-line operations only.",{"type":993,"tag":1001,"props":5739,"children":5740},{},[5741,5746],{"type":993,"tag":1793,"props":5742,"children":5743},{},[5744],{"type":998,"value":5745},"Readability First:",{"type":998,"value":5747}," If lambda makes code harder to read, use a regular function.",{"type":993,"tag":1001,"props":5749,"children":5750},{},[5751,5756],{"type":993,"tag":1793,"props":5752,"children":5753},{},[5754],{"type":998,"value":5755},"Avoid Complex Logic:",{"type":998,"value":5757}," Don't try to fit complex operations into lambda functions.",{"type":993,"tag":1001,"props":5759,"children":5760},{},[5761,5766],{"type":993,"tag":1793,"props":5762,"children":5763},{},[5764],{"type":998,"value":5765},"Use with Built-ins:",{"type":998,"value":5767}," Lambda works best with map(), filter(), sorted(), and similar functions.",{"type":993,"tag":1001,"props":5769,"children":5770},{},[5771,5776],{"type":993,"tag":1793,"props":5772,"children":5773},{},[5774],{"type":998,"value":5775},"Consider Alternatives:",{"type":998,"value":5777}," List comprehensions might be more readable than lambda + map/filter.",{"type":993,"tag":5779,"props":5780,"children":5782},"content-exercise",{":widget-view":5781,"category":6,"id":656},"true",[],{"type":993,"tag":5784,"props":5785,"children":5788},"exercise",{"hint":5786,"prompt":5787},"Use map() with lambda to double numbers, then filter() with lambda to keep only numbers > 10","Use lambda functions to double all numbers in a list and then filter only the numbers greater than 10.",[5789],{"type":993,"tag":1020,"props":5790,"children":5792},{"className":1022,"code":5791,"language":6,"meta":8,"style":8},"numbers = [2, 5, 8, 1, 9]\n\n# TODO: Use map() and lambda to double all numbers\ndoubled_numbers = # TODO: Your code here\n\n# TODO: Use filter() and lambda to keep only numbers > 10\nlarge_numbers = # TODO: Your code here\n\nprint(f\"Original: {numbers}\")\nprint(f\"Doubled: {list(doubled_numbers)}\")\nprint(f\"Large numbers: {list(large_numbers)}\")\n",[5793],{"type":993,"tag":1007,"props":5794,"children":5795},{"__ignoreMap":8},[5796,5851,5858,5876,5902,5909,5925,5949,5956,5997,6039],{"type":993,"tag":1029,"props":5797,"children":5798},{"class":1031,"line":12},[5799,5803,5807,5811,5815,5819,5823,5827,5831,5835,5839,5843,5847],{"type":993,"tag":1029,"props":5800,"children":5801},{"style":1044},[5802],{"type":998,"value":1047},{"type":993,"tag":1029,"props":5804,"children":5805},{"style":1050},[5806],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5808,"children":5809},{"style":1044},[5810],{"type":998,"value":1058},{"type":993,"tag":1029,"props":5812,"children":5813},{"style":1061},[5814],{"type":998,"value":1074},{"type":993,"tag":1029,"props":5816,"children":5817},{"style":1044},[5818],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5820,"children":5821},{"style":1061},[5822],{"type":998,"value":1101},{"type":993,"tag":1029,"props":5824,"children":5825},{"style":1044},[5826],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5828,"children":5829},{"style":1061},[5830],{"type":998,"value":1647},{"type":993,"tag":1029,"props":5832,"children":5833},{"style":1044},[5834],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5836,"children":5837},{"style":1061},[5838],{"type":998,"value":1064},{"type":993,"tag":1029,"props":5840,"children":5841},{"style":1044},[5842],{"type":998,"value":1069},{"type":993,"tag":1029,"props":5844,"children":5845},{"style":1061},[5846],{"type":998,"value":3082},{"type":993,"tag":1029,"props":5848,"children":5849},{"style":1044},[5850],{"type":998,"value":1106},{"type":993,"tag":1029,"props":5852,"children":5853},{"class":1031,"line":27},[5854],{"type":993,"tag":1029,"props":5855,"children":5856},{"emptyLinePlaceholder":13},[5857],{"type":998,"value":1114},{"type":993,"tag":1029,"props":5859,"children":5860},{"class":1031,"line":36},[5861,5866,5871],{"type":993,"tag":1029,"props":5862,"children":5863},{"style":1035},[5864],{"type":998,"value":5865},"# ",{"type":993,"tag":1029,"props":5867,"children":5868},{"style":1050},[5869],{"type":998,"value":5870},"TODO",{"type":993,"tag":1029,"props":5872,"children":5873},{"style":1035},[5874],{"type":998,"value":5875},": Use map() and lambda to double all numbers\n",{"type":993,"tag":1029,"props":5877,"children":5878},{"class":1031,"line":45},[5879,5884,5888,5893,5897],{"type":993,"tag":1029,"props":5880,"children":5881},{"style":1044},[5882],{"type":998,"value":5883},"doubled_numbers ",{"type":993,"tag":1029,"props":5885,"children":5886},{"style":1050},[5887],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5889,"children":5890},{"style":1035},[5891],{"type":998,"value":5892}," # ",{"type":993,"tag":1029,"props":5894,"children":5895},{"style":1050},[5896],{"type":998,"value":5870},{"type":993,"tag":1029,"props":5898,"children":5899},{"style":1035},[5900],{"type":998,"value":5901},": Your code here\n",{"type":993,"tag":1029,"props":5903,"children":5904},{"class":1031,"line":54},[5905],{"type":993,"tag":1029,"props":5906,"children":5907},{"emptyLinePlaceholder":13},[5908],{"type":998,"value":1114},{"type":993,"tag":1029,"props":5910,"children":5911},{"class":1031,"line":63},[5912,5916,5920],{"type":993,"tag":1029,"props":5913,"children":5914},{"style":1035},[5915],{"type":998,"value":5865},{"type":993,"tag":1029,"props":5917,"children":5918},{"style":1050},[5919],{"type":998,"value":5870},{"type":993,"tag":1029,"props":5921,"children":5922},{"style":1035},[5923],{"type":998,"value":5924},": Use filter() and lambda to keep only numbers > 10\n",{"type":993,"tag":1029,"props":5926,"children":5927},{"class":1031,"line":72},[5928,5933,5937,5941,5945],{"type":993,"tag":1029,"props":5929,"children":5930},{"style":1044},[5931],{"type":998,"value":5932},"large_numbers ",{"type":993,"tag":1029,"props":5934,"children":5935},{"style":1050},[5936],{"type":998,"value":1053},{"type":993,"tag":1029,"props":5938,"children":5939},{"style":1035},[5940],{"type":998,"value":5892},{"type":993,"tag":1029,"props":5942,"children":5943},{"style":1050},[5944],{"type":998,"value":5870},{"type":993,"tag":1029,"props":5946,"children":5947},{"style":1035},[5948],{"type":998,"value":5901},{"type":993,"tag":1029,"props":5950,"children":5951},{"class":1031,"line":81},[5952],{"type":993,"tag":1029,"props":5953,"children":5954},{"emptyLinePlaceholder":13},[5955],{"type":998,"value":1114},{"type":993,"tag":1029,"props":5957,"children":5958},{"class":1031,"line":91},[5959,5963,5967,5971,5976,5980,5985,5989,5993],{"type":993,"tag":1029,"props":5960,"children":5961},{"style":1061},[5962],{"type":998,"value":1313},{"type":993,"tag":1029,"props":5964,"children":5965},{"style":1044},[5966],{"type":998,"value":1237},{"type":993,"tag":1029,"props":5968,"children":5969},{"style":1050},[5970],{"type":998,"value":1322},{"type":993,"tag":1029,"props":5972,"children":5973},{"style":1325},[5974],{"type":998,"value":5975},"\"Original: ",{"type":993,"tag":1029,"props":5977,"children":5978},{"style":1061},[5979],{"type":998,"value":1333},{"type":993,"tag":1029,"props":5981,"children":5982},{"style":1044},[5983],{"type":998,"value":5984},"numbers",{"type":993,"tag":1029,"props":5986,"children":5987},{"style":1061},[5988],{"type":998,"value":1343},{"type":993,"tag":1029,"props":5990,"children":5991},{"style":1325},[5992],{"type":998,"value":1348},{"type":993,"tag":1029,"props":5994,"children":5995},{"style":1044},[5996],{"type":998,"value":1353},{"type":993,"tag":1029,"props":5998,"children":5999},{"class":1031,"line":100},[6000,6004,6008,6012,6017,6022,6027,6031,6035],{"type":993,"tag":1029,"props":6001,"children":6002},{"style":1061},[6003],{"type":998,"value":1313},{"type":993,"tag":1029,"props":6005,"children":6006},{"style":1044},[6007],{"type":998,"value":1237},{"type":993,"tag":1029,"props":6009,"children":6010},{"style":1050},[6011],{"type":998,"value":1322},{"type":993,"tag":1029,"props":6013,"children":6014},{"style":1325},[6015],{"type":998,"value":6016},"\"Doubled: ",{"type":993,"tag":1029,"props":6018,"children":6019},{"style":1061},[6020],{"type":998,"value":6021},"{list",{"type":993,"tag":1029,"props":6023,"children":6024},{"style":1044},[6025],{"type":998,"value":6026},"(doubled_numbers)",{"type":993,"tag":1029,"props":6028,"children":6029},{"style":1061},[6030],{"type":998,"value":1343},{"type":993,"tag":1029,"props":6032,"children":6033},{"style":1325},[6034],{"type":998,"value":1348},{"type":993,"tag":1029,"props":6036,"children":6037},{"style":1044},[6038],{"type":998,"value":1353},{"type":993,"tag":1029,"props":6040,"children":6041},{"class":1031,"line":109},[6042,6046,6050,6054,6059,6063,6068,6072,6076],{"type":993,"tag":1029,"props":6043,"children":6044},{"style":1061},[6045],{"type":998,"value":1313},{"type":993,"tag":1029,"props":6047,"children":6048},{"style":1044},[6049],{"type":998,"value":1237},{"type":993,"tag":1029,"props":6051,"children":6052},{"style":1050},[6053],{"type":998,"value":1322},{"type":993,"tag":1029,"props":6055,"children":6056},{"style":1325},[6057],{"type":998,"value":6058},"\"Large numbers: ",{"type":993,"tag":1029,"props":6060,"children":6061},{"style":1061},[6062],{"type":998,"value":6021},{"type":993,"tag":1029,"props":6064,"children":6065},{"style":1044},[6066],{"type":998,"value":6067},"(large_numbers)",{"type":993,"tag":1029,"props":6069,"children":6070},{"style":1061},[6071],{"type":998,"value":1343},{"type":993,"tag":1029,"props":6073,"children":6074},{"style":1325},[6075],{"type":998,"value":1348},{"type":993,"tag":1029,"props":6077,"children":6078},{"style":1044},[6079],{"type":998,"value":1353},{"type":993,"tag":1852,"props":6081,"children":6083},{"id":6082},"solution-and-explanation",[6084],{"type":998,"value":6085},"Solution and Explanation 💡",{"type":993,"tag":6087,"props":6088,"children":6089},"details",{},[6090,6098,6429,6437],{"type":993,"tag":6091,"props":6092,"children":6095},"summary",{"className":6093},[6094],"cursor-pointer",[6096],{"type":998,"value":6097},"Click to see the complete solution",{"type":993,"tag":1016,"props":6099,"children":6100},{},[6101],{"type":993,"tag":1020,"props":6102,"children":6104},{"className":1022,"code":6103,"language":6,"meta":8,"style":8},"numbers = [2, 5, 8, 1, 9]\n\n# Use map() and lambda to double all numbers\ndoubled_numbers = map(lambda x: x * 2, numbers)\n\n# Use filter() and lambda to keep only numbers > 10\nlarge_numbers = filter(lambda x: x > 10, doubled_numbers)\n\nprint(f\"Original: {numbers}\")\nprint(f\"Doubled: {list(map(lambda x: x * 2, numbers))}\")\nprint(f\"Large numbers: {list(large_numbers)}\")\n",[6105],{"type":993,"tag":1007,"props":6106,"children":6107},{"__ignoreMap":8},[6108,6163,6170,6178,6219,6226,6234,6276,6283,6322,6390],{"type":993,"tag":1029,"props":6109,"children":6110},{"class":1031,"line":12},[6111,6115,6119,6123,6127,6131,6135,6139,6143,6147,6151,6155,6159],{"type":993,"tag":1029,"props":6112,"children":6113},{"style":1044},[6114],{"type":998,"value":1047},{"type":993,"tag":1029,"props":6116,"children":6117},{"style":1050},[6118],{"type":998,"value":1053},{"type":993,"tag":1029,"props":6120,"children":6121},{"style":1044},[6122],{"type":998,"value":1058},{"type":993,"tag":1029,"props":6124,"children":6125},{"style":1061},[6126],{"type":998,"value":1074},{"type":993,"tag":1029,"props":6128,"children":6129},{"style":1044},[6130],{"type":998,"value":1069},{"type":993,"tag":1029,"props":6132,"children":6133},{"style":1061},[6134],{"type":998,"value":1101},{"type":993,"tag":1029,"props":6136,"children":6137},{"style":1044},[6138],{"type":998,"value":1069},{"type":993,"tag":1029,"props":6140,"children":6141},{"style":1061},[6142],{"type":998,"value":1647},{"type":993,"tag":1029,"props":6144,"children":6145},{"style":1044},[6146],{"type":998,"value":1069},{"type":993,"tag":1029,"props":6148,"children":6149},{"style":1061},[6150],{"type":998,"value":1064},{"type":993,"tag":1029,"props":6152,"children":6153},{"style":1044},[6154],{"type":998,"value":1069},{"type":993,"tag":1029,"props":6156,"children":6157},{"style":1061},[6158],{"type":998,"value":3082},{"type":993,"tag":1029,"props":6160,"children":6161},{"style":1044},[6162],{"type":998,"value":1106},{"type":993,"tag":1029,"props":6164,"children":6165},{"class":1031,"line":27},[6166],{"type":993,"tag":1029,"props":6167,"children":6168},{"emptyLinePlaceholder":13},[6169],{"type":998,"value":1114},{"type":993,"tag":1029,"props":6171,"children":6172},{"class":1031,"line":36},[6173],{"type":993,"tag":1029,"props":6174,"children":6175},{"style":1035},[6176],{"type":998,"value":6177},"# Use map() and lambda to double all numbers\n",{"type":993,"tag":1029,"props":6179,"children":6180},{"class":1031,"line":45},[6181,6185,6189,6194,6198,6202,6206,6210,6214],{"type":993,"tag":1029,"props":6182,"children":6183},{"style":1044},[6184],{"type":998,"value":5883},{"type":993,"tag":1029,"props":6186,"children":6187},{"style":1050},[6188],{"type":998,"value":1053},{"type":993,"tag":1029,"props":6190,"children":6191},{"style":1061},[6192],{"type":998,"value":6193}," map",{"type":993,"tag":1029,"props":6195,"children":6196},{"style":1044},[6197],{"type":998,"value":1237},{"type":993,"tag":1029,"props":6199,"children":6200},{"style":1050},[6201],{"type":998,"value":1280},{"type":993,"tag":1029,"props":6203,"children":6204},{"style":1044},[6205],{"type":998,"value":1192},{"type":993,"tag":1029,"props":6207,"children":6208},{"style":1050},[6209],{"type":998,"value":1481},{"type":993,"tag":1029,"props":6211,"children":6212},{"style":1061},[6213],{"type":998,"value":1293},{"type":993,"tag":1029,"props":6215,"children":6216},{"style":1044},[6217],{"type":998,"value":6218},", numbers)\n",{"type":993,"tag":1029,"props":6220,"children":6221},{"class":1031,"line":54},[6222],{"type":993,"tag":1029,"props":6223,"children":6224},{"emptyLinePlaceholder":13},[6225],{"type":998,"value":1114},{"type":993,"tag":1029,"props":6227,"children":6228},{"class":1031,"line":63},[6229],{"type":993,"tag":1029,"props":6230,"children":6231},{"style":1035},[6232],{"type":998,"value":6233},"# Use filter() and lambda to keep only numbers > 10\n",{"type":993,"tag":1029,"props":6235,"children":6236},{"class":1031,"line":72},[6237,6241,6245,6250,6254,6258,6262,6266,6271],{"type":993,"tag":1029,"props":6238,"children":6239},{"style":1044},[6240],{"type":998,"value":5932},{"type":993,"tag":1029,"props":6242,"children":6243},{"style":1050},[6244],{"type":998,"value":1053},{"type":993,"tag":1029,"props":6246,"children":6247},{"style":1061},[6248],{"type":998,"value":6249}," filter",{"type":993,"tag":1029,"props":6251,"children":6252},{"style":1044},[6253],{"type":998,"value":1237},{"type":993,"tag":1029,"props":6255,"children":6256},{"style":1050},[6257],{"type":998,"value":1280},{"type":993,"tag":1029,"props":6259,"children":6260},{"style":1044},[6261],{"type":998,"value":1192},{"type":993,"tag":1029,"props":6263,"children":6264},{"style":1050},[6265],{"type":998,"value":3507},{"type":993,"tag":1029,"props":6267,"children":6268},{"style":1061},[6269],{"type":998,"value":6270}," 10",{"type":993,"tag":1029,"props":6272,"children":6273},{"style":1044},[6274],{"type":998,"value":6275},", doubled_numbers)\n",{"type":993,"tag":1029,"props":6277,"children":6278},{"class":1031,"line":81},[6279],{"type":993,"tag":1029,"props":6280,"children":6281},{"emptyLinePlaceholder":13},[6282],{"type":998,"value":1114},{"type":993,"tag":1029,"props":6284,"children":6285},{"class":1031,"line":91},[6286,6290,6294,6298,6302,6306,6310,6314,6318],{"type":993,"tag":1029,"props":6287,"children":6288},{"style":1061},[6289],{"type":998,"value":1313},{"type":993,"tag":1029,"props":6291,"children":6292},{"style":1044},[6293],{"type":998,"value":1237},{"type":993,"tag":1029,"props":6295,"children":6296},{"style":1050},[6297],{"type":998,"value":1322},{"type":993,"tag":1029,"props":6299,"children":6300},{"style":1325},[6301],{"type":998,"value":5975},{"type":993,"tag":1029,"props":6303,"children":6304},{"style":1061},[6305],{"type":998,"value":1333},{"type":993,"tag":1029,"props":6307,"children":6308},{"style":1044},[6309],{"type":998,"value":5984},{"type":993,"tag":1029,"props":6311,"children":6312},{"style":1061},[6313],{"type":998,"value":1343},{"type":993,"tag":1029,"props":6315,"children":6316},{"style":1325},[6317],{"type":998,"value":1348},{"type":993,"tag":1029,"props":6319,"children":6320},{"style":1044},[6321],{"type":998,"value":1353},{"type":993,"tag":1029,"props":6323,"children":6324},{"class":1031,"line":100},[6325,6329,6333,6337,6341,6345,6349,6353,6357,6361,6365,6369,6373,6378,6382,6386],{"type":993,"tag":1029,"props":6326,"children":6327},{"style":1061},[6328],{"type":998,"value":1313},{"type":993,"tag":1029,"props":6330,"children":6331},{"style":1044},[6332],{"type":998,"value":1237},{"type":993,"tag":1029,"props":6334,"children":6335},{"style":1050},[6336],{"type":998,"value":1322},{"type":993,"tag":1029,"props":6338,"children":6339},{"style":1325},[6340],{"type":998,"value":6016},{"type":993,"tag":1029,"props":6342,"children":6343},{"style":1061},[6344],{"type":998,"value":6021},{"type":993,"tag":1029,"props":6346,"children":6347},{"style":1044},[6348],{"type":998,"value":1237},{"type":993,"tag":1029,"props":6350,"children":6351},{"style":1061},[6352],{"type":998,"value":1242},{"type":993,"tag":1029,"props":6354,"children":6355},{"style":1044},[6356],{"type":998,"value":1237},{"type":993,"tag":1029,"props":6358,"children":6359},{"style":1050},[6360],{"type":998,"value":1280},{"type":993,"tag":1029,"props":6362,"children":6363},{"style":1044},[6364],{"type":998,"value":1192},{"type":993,"tag":1029,"props":6366,"children":6367},{"style":1050},[6368],{"type":998,"value":1481},{"type":993,"tag":1029,"props":6370,"children":6371},{"style":1061},[6372],{"type":998,"value":1293},{"type":993,"tag":1029,"props":6374,"children":6375},{"style":1044},[6376],{"type":998,"value":6377},", numbers))",{"type":993,"tag":1029,"props":6379,"children":6380},{"style":1061},[6381],{"type":998,"value":1343},{"type":993,"tag":1029,"props":6383,"children":6384},{"style":1325},[6385],{"type":998,"value":1348},{"type":993,"tag":1029,"props":6387,"children":6388},{"style":1044},[6389],{"type":998,"value":1353},{"type":993,"tag":1029,"props":6391,"children":6392},{"class":1031,"line":109},[6393,6397,6401,6405,6409,6413,6417,6421,6425],{"type":993,"tag":1029,"props":6394,"children":6395},{"style":1061},[6396],{"type":998,"value":1313},{"type":993,"tag":1029,"props":6398,"children":6399},{"style":1044},[6400],{"type":998,"value":1237},{"type":993,"tag":1029,"props":6402,"children":6403},{"style":1050},[6404],{"type":998,"value":1322},{"type":993,"tag":1029,"props":6406,"children":6407},{"style":1325},[6408],{"type":998,"value":6058},{"type":993,"tag":1029,"props":6410,"children":6411},{"style":1061},[6412],{"type":998,"value":6021},{"type":993,"tag":1029,"props":6414,"children":6415},{"style":1044},[6416],{"type":998,"value":6067},{"type":993,"tag":1029,"props":6418,"children":6419},{"style":1061},[6420],{"type":998,"value":1343},{"type":993,"tag":1029,"props":6422,"children":6423},{"style":1325},[6424],{"type":998,"value":1348},{"type":993,"tag":1029,"props":6426,"children":6427},{"style":1044},[6428],{"type":998,"value":1353},{"type":993,"tag":1001,"props":6430,"children":6431},{},[6432],{"type":993,"tag":1793,"props":6433,"children":6434},{},[6435],{"type":998,"value":6436},"Key Learning Points:",{"type":993,"tag":6438,"props":6439,"children":6440},"ul",{},[6441,6461,6472,6483],{"type":993,"tag":6442,"props":6443,"children":6444},"li",{},[6445,6447,6452,6453,6459],{"type":998,"value":6446},"📌 ",{"type":993,"tag":1793,"props":6448,"children":6449},{},[6450],{"type":998,"value":6451},"Lambda syntax",{"type":998,"value":1938},{"type":993,"tag":1007,"props":6454,"children":6456},{"className":6455},[],[6457],{"type":998,"value":6458},"lambda parameter: expression",{"type":998,"value":6460}," creates anonymous functions",{"type":993,"tag":6442,"props":6462,"children":6463},{},[6464,6465,6470],{"type":998,"value":6446},{"type":993,"tag":1793,"props":6466,"children":6467},{},[6468],{"type":998,"value":6469},"map() with lambda",{"type":998,"value":6471},": Applies function to every item in a sequence",{"type":993,"tag":6442,"props":6473,"children":6474},{},[6475,6476,6481],{"type":998,"value":6446},{"type":993,"tag":1793,"props":6477,"children":6478},{},[6479],{"type":998,"value":6480},"filter() with lambda",{"type":998,"value":6482},": Selects items that meet a condition",{"type":993,"tag":6442,"props":6484,"children":6485},{},[6486,6487,6492],{"type":998,"value":6446},{"type":993,"tag":1793,"props":6488,"children":6489},{},[6490],{"type":998,"value":6491},"Chaining operations",{"type":998,"value":6493},": Can combine map() and filter() for data processing pipelines",{"type":993,"tag":1001,"props":6495,"children":6496},{},[6497,6499,6505],{"type":998,"value":6498},"Learn more about ",{"type":993,"tag":6500,"props":6501,"children":6502},"a",{"href":662},[6503],{"type":998,"value":6504},"function recursion",{"type":998,"value":6506}," to discover how functions can call themselves to solve complex problems elegantly.",{"type":993,"tag":1396,"props":6508,"children":6510},{"id":6509},"test-your-knowledge",[6511],{"type":998,"value":6512},"Test Your Knowledge",{"type":993,"tag":1001,"props":6514,"children":6515},{},[6516],{"type":998,"value":6517},"Test what you've learned about anonymous functions:",{"type":993,"tag":6519,"props":6520,"children":6524},"redirect-button",{"icon":6521,"label":6522,"url":6523},"pi pi-send","Take Quiz","/tutorial-quiz/python/anonymous-functions",[],{"type":993,"tag":1396,"props":6526,"children":6528},{"id":6527},"whats-next",[6529],{"type":998,"value":6530},"What's Next?",{"type":993,"tag":1001,"props":6532,"children":6533},{},[6534],{"type":998,"value":6535},"Now that you understand lambda functions, you're ready to explore function recursion. Recursive functions offer a powerful way to solve problems that can be broken down into smaller, similar subproblems.",{"type":993,"tag":1001,"props":6537,"children":6538},{},[6539,6541,6545],{"type":998,"value":6540},"Ready to continue? Check out our lesson on ",{"type":993,"tag":6500,"props":6542,"children":6543},{"href":662},[6544],{"type":998,"value":663},{"type":998,"value":1885},{"type":993,"tag":6547,"props":6548,"children":6549},"style",{},[6550],{"type":998,"value":6551},"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":6553},[6554,6555,6559,6564,6565,6569,6574,6575],{"id":1398,"depth":27,"text":1401},{"id":1842,"depth":27,"text":1845,"children":6556},[6557,6558],{"id":1854,"depth":36,"text":1857},{"id":2315,"depth":36,"text":2318},{"id":2798,"depth":27,"text":2801,"children":6560},[6561,6562,6563],{"id":2809,"depth":36,"text":2812},{"id":3215,"depth":36,"text":3218},{"id":3609,"depth":36,"text":3612},{"id":4022,"depth":27,"text":4025},{"id":4174,"depth":27,"text":4177,"children":6566},[6567,6568],{"id":4185,"depth":36,"text":4188},{"id":4561,"depth":36,"text":4564},{"id":5026,"depth":27,"text":5029,"children":6570},[6571,6572,6573],{"id":5032,"depth":36,"text":5035},{"id":5355,"depth":36,"text":5358},{"id":6082,"depth":36,"text":6085},{"id":6509,"depth":27,"text":6512},{"id":6527,"depth":27,"text":6530},1782373746024]