[{"data":1,"prerenderedAt":8338},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/reading-list-data":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[288],{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"body":989,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},{"type":990,"children":991,"toc":8310},"root",[992,1000,1006,1011,1358,1365,1370,1375,1465,1472,1477,1941,1947,1960,1965,2106,2112,2117,2651,2656,2662,2667,2672,2770,2776,2781,3327,3333,3346,3351,3357,3362,4049,4055,4060,4065,4168,4174,4179,4997,5003,5008,5013,5019,5024,6060,6066,6071,6077,6082,6998,7074,7080,7085,7427,7432,7779,7785,8259,8265,8270,8275,8281,8293,8304],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":292},[997],{"type":998,"value":999},"text","🔍 Reading List Data",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Reading data from lists is a fundamental skill that allows you to access, retrieve, and work with individual items or groups of items in your collections. Python provides powerful and flexible methods for reading list data, from simple indexing to advanced slicing techniques that let you extract exactly the data you need.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Understanding how to efficiently read list data is essential for data processing, analysis, and manipulation in Python programs.",{"type":993,"tag":1012,"props":1013,"children":1014},"code-try",{},[1015],{"type":993,"tag":1016,"props":1017,"children":1020},"pre",{"className":1018,"code":1019,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Basic list data reading\nfruits = [\"apple\", \"banana\", \"cherry\", \"date\", \"elderberry\"]\nnumbers = [10, 20, 30, 40, 50]\n\n# Accessing individual items\nprint(\"First fruit:\", fruits[0])\nprint(\"Last fruit:\", fruits[-1])\nprint(\"Third number:\", numbers[2])\n\n# Getting list information\nprint(\"Number of fruits:\", len(fruits))\nprint(\"Is 'banana' in fruits?\", \"banana\" in fruits)\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1104,1166,1174,1182,1215,1249,1279,1286,1294,1324],{"type":993,"tag":1026,"props":1027,"children":1029},"span",{"class":1028,"line":12},"line",[1030],{"type":993,"tag":1026,"props":1031,"children":1033},{"style":1032},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1034],{"type":998,"value":1035},"# Basic list data reading\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039,1045,1051,1056,1062,1067,1072,1076,1081,1085,1090,1094,1099],{"type":993,"tag":1026,"props":1040,"children":1042},{"style":1041},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1043],{"type":998,"value":1044},"fruits ",{"type":993,"tag":1026,"props":1046,"children":1048},{"style":1047},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1049],{"type":998,"value":1050},"=",{"type":993,"tag":1026,"props":1052,"children":1053},{"style":1041},[1054],{"type":998,"value":1055}," [",{"type":993,"tag":1026,"props":1057,"children":1059},{"style":1058},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1060],{"type":998,"value":1061},"\"apple\"",{"type":993,"tag":1026,"props":1063,"children":1064},{"style":1041},[1065],{"type":998,"value":1066},", ",{"type":993,"tag":1026,"props":1068,"children":1069},{"style":1058},[1070],{"type":998,"value":1071},"\"banana\"",{"type":993,"tag":1026,"props":1073,"children":1074},{"style":1041},[1075],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1077,"children":1078},{"style":1058},[1079],{"type":998,"value":1080},"\"cherry\"",{"type":993,"tag":1026,"props":1082,"children":1083},{"style":1041},[1084],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1086,"children":1087},{"style":1058},[1088],{"type":998,"value":1089},"\"date\"",{"type":993,"tag":1026,"props":1091,"children":1092},{"style":1041},[1093],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1095,"children":1096},{"style":1058},[1097],{"type":998,"value":1098},"\"elderberry\"",{"type":993,"tag":1026,"props":1100,"children":1101},{"style":1041},[1102],{"type":998,"value":1103},"]\n",{"type":993,"tag":1026,"props":1105,"children":1106},{"class":1028,"line":36},[1107,1112,1116,1120,1126,1130,1135,1139,1144,1148,1153,1157,1162],{"type":993,"tag":1026,"props":1108,"children":1109},{"style":1041},[1110],{"type":998,"value":1111},"numbers ",{"type":993,"tag":1026,"props":1113,"children":1114},{"style":1047},[1115],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1117,"children":1118},{"style":1041},[1119],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1121,"children":1123},{"style":1122},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1124],{"type":998,"value":1125},"10",{"type":993,"tag":1026,"props":1127,"children":1128},{"style":1041},[1129],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1131,"children":1132},{"style":1122},[1133],{"type":998,"value":1134},"20",{"type":993,"tag":1026,"props":1136,"children":1137},{"style":1041},[1138],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1140,"children":1141},{"style":1122},[1142],{"type":998,"value":1143},"30",{"type":993,"tag":1026,"props":1145,"children":1146},{"style":1041},[1147],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1149,"children":1150},{"style":1122},[1151],{"type":998,"value":1152},"40",{"type":993,"tag":1026,"props":1154,"children":1155},{"style":1041},[1156],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1158,"children":1159},{"style":1122},[1160],{"type":998,"value":1161},"50",{"type":993,"tag":1026,"props":1163,"children":1164},{"style":1041},[1165],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1167,"children":1168},{"class":1028,"line":45},[1169],{"type":993,"tag":1026,"props":1170,"children":1171},{"emptyLinePlaceholder":13},[1172],{"type":998,"value":1173},"\n",{"type":993,"tag":1026,"props":1175,"children":1176},{"class":1028,"line":54},[1177],{"type":993,"tag":1026,"props":1178,"children":1179},{"style":1032},[1180],{"type":998,"value":1181},"# Accessing individual items\n",{"type":993,"tag":1026,"props":1183,"children":1184},{"class":1028,"line":63},[1185,1190,1195,1200,1205,1210],{"type":993,"tag":1026,"props":1186,"children":1187},{"style":1122},[1188],{"type":998,"value":1189},"print",{"type":993,"tag":1026,"props":1191,"children":1192},{"style":1041},[1193],{"type":998,"value":1194},"(",{"type":993,"tag":1026,"props":1196,"children":1197},{"style":1058},[1198],{"type":998,"value":1199},"\"First fruit:\"",{"type":993,"tag":1026,"props":1201,"children":1202},{"style":1041},[1203],{"type":998,"value":1204},", fruits[",{"type":993,"tag":1026,"props":1206,"children":1207},{"style":1122},[1208],{"type":998,"value":1209},"0",{"type":993,"tag":1026,"props":1211,"children":1212},{"style":1041},[1213],{"type":998,"value":1214},"])\n",{"type":993,"tag":1026,"props":1216,"children":1217},{"class":1028,"line":72},[1218,1222,1226,1231,1235,1240,1245],{"type":993,"tag":1026,"props":1219,"children":1220},{"style":1122},[1221],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1223,"children":1224},{"style":1041},[1225],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1227,"children":1228},{"style":1058},[1229],{"type":998,"value":1230},"\"Last fruit:\"",{"type":993,"tag":1026,"props":1232,"children":1233},{"style":1041},[1234],{"type":998,"value":1204},{"type":993,"tag":1026,"props":1236,"children":1237},{"style":1047},[1238],{"type":998,"value":1239},"-",{"type":993,"tag":1026,"props":1241,"children":1242},{"style":1122},[1243],{"type":998,"value":1244},"1",{"type":993,"tag":1026,"props":1246,"children":1247},{"style":1041},[1248],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1250,"children":1251},{"class":1028,"line":81},[1252,1256,1260,1265,1270,1275],{"type":993,"tag":1026,"props":1253,"children":1254},{"style":1122},[1255],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1257,"children":1258},{"style":1041},[1259],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1261,"children":1262},{"style":1058},[1263],{"type":998,"value":1264},"\"Third number:\"",{"type":993,"tag":1026,"props":1266,"children":1267},{"style":1041},[1268],{"type":998,"value":1269},", numbers[",{"type":993,"tag":1026,"props":1271,"children":1272},{"style":1122},[1273],{"type":998,"value":1274},"2",{"type":993,"tag":1026,"props":1276,"children":1277},{"style":1041},[1278],{"type":998,"value":1214},{"type":993,"tag":1026,"props":1280,"children":1281},{"class":1028,"line":91},[1282],{"type":993,"tag":1026,"props":1283,"children":1284},{"emptyLinePlaceholder":13},[1285],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1287,"children":1288},{"class":1028,"line":100},[1289],{"type":993,"tag":1026,"props":1290,"children":1291},{"style":1032},[1292],{"type":998,"value":1293},"# Getting list information\n",{"type":993,"tag":1026,"props":1295,"children":1296},{"class":1028,"line":109},[1297,1301,1305,1310,1314,1319],{"type":993,"tag":1026,"props":1298,"children":1299},{"style":1122},[1300],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1302,"children":1303},{"style":1041},[1304],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1306,"children":1307},{"style":1058},[1308],{"type":998,"value":1309},"\"Number of fruits:\"",{"type":993,"tag":1026,"props":1311,"children":1312},{"style":1041},[1313],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1315,"children":1316},{"style":1122},[1317],{"type":998,"value":1318},"len",{"type":993,"tag":1026,"props":1320,"children":1321},{"style":1041},[1322],{"type":998,"value":1323},"(fruits))\n",{"type":993,"tag":1026,"props":1325,"children":1326},{"class":1028,"line":118},[1327,1331,1335,1340,1344,1348,1353],{"type":993,"tag":1026,"props":1328,"children":1329},{"style":1122},[1330],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1332,"children":1333},{"style":1041},[1334],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1336,"children":1337},{"style":1058},[1338],{"type":998,"value":1339},"\"Is 'banana' in fruits?\"",{"type":993,"tag":1026,"props":1341,"children":1342},{"style":1041},[1343],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1345,"children":1346},{"style":1058},[1347],{"type":998,"value":1071},{"type":993,"tag":1026,"props":1349,"children":1350},{"style":1047},[1351],{"type":998,"value":1352}," in",{"type":993,"tag":1026,"props":1354,"children":1355},{"style":1041},[1356],{"type":998,"value":1357}," fruits)\n",{"type":993,"tag":1359,"props":1360,"children":1362},"h2",{"id":1361},"index-based-access",[1363],{"type":998,"value":1364},"📍 Index-Based Access",{"type":993,"tag":1001,"props":1366,"children":1367},{},[1368],{"type":998,"value":1369},"Python uses zero-based indexing, meaning the first item is at index 0, the second at index 1, and so on. You can also use negative indices to access items from the end of the list, where -1 refers to the last item.",{"type":993,"tag":1001,"props":1371,"children":1372},{},[1373],{"type":998,"value":1374},"Index-based access is the most direct way to retrieve specific items when you know their position in the list.",{"type":993,"tag":1376,"props":1377,"children":1381},"info-box",{"emoji":1378,"title":1379,"type":1380},"🔢","List Indexing Rules","info",[1382,1391,1416,1424,1455],{"type":993,"tag":1001,"props":1383,"children":1384},{},[1385],{"type":993,"tag":1386,"props":1387,"children":1388},"strong",{},[1389],{"type":998,"value":1390},"Index System:",{"type":993,"tag":1392,"props":1393,"children":1394},"ul",{},[1395,1401,1406,1411],{"type":993,"tag":1396,"props":1397,"children":1398},"li",{},[1399],{"type":998,"value":1400},"First item: index 0 (not 1!)",{"type":993,"tag":1396,"props":1402,"children":1403},{},[1404],{"type":998,"value":1405},"Second item: index 1",{"type":993,"tag":1396,"props":1407,"children":1408},{},[1409],{"type":998,"value":1410},"Last item: index -1",{"type":993,"tag":1396,"props":1412,"children":1413},{},[1414],{"type":998,"value":1415},"Second to last: index -2",{"type":993,"tag":1001,"props":1417,"children":1418},{},[1419],{"type":993,"tag":1386,"props":1420,"children":1421},{},[1422],{"type":998,"value":1423},"Important Rules:",{"type":993,"tag":1392,"props":1425,"children":1426},{},[1427,1432,1437,1442],{"type":993,"tag":1396,"props":1428,"children":1429},{},[1430],{"type":998,"value":1431},"Indices must be integers",{"type":993,"tag":1396,"props":1433,"children":1434},{},[1435],{"type":998,"value":1436},"Index out of range causes IndexError",{"type":993,"tag":1396,"props":1438,"children":1439},{},[1440],{"type":998,"value":1441},"Negative indices count from the end",{"type":993,"tag":1396,"props":1443,"children":1444},{},[1445,1447,1453],{"type":998,"value":1446},"Use ",{"type":993,"tag":1022,"props":1448,"children":1450},{"className":1449},[],[1451],{"type":998,"value":1452},"len(list)",{"type":998,"value":1454}," to get total number of items",{"type":993,"tag":1001,"props":1456,"children":1457},{},[1458,1463],{"type":993,"tag":1386,"props":1459,"children":1460},{},[1461],{"type":998,"value":1462},"Valid Range:",{"type":998,"value":1464}," For list of length n, valid indices are 0 to n-1 (or -n to -1)",{"type":993,"tag":1466,"props":1467,"children":1469},"h3",{"id":1468},"indexing-examples",[1470],{"type":998,"value":1471},"Indexing Examples",{"type":993,"tag":1001,"props":1473,"children":1474},{},[1475],{"type":998,"value":1476},"Accessing items from different positions in the list:",{"type":993,"tag":1012,"props":1478,"children":1479},{},[1480],{"type":993,"tag":1016,"props":1481,"children":1483},{"className":1018,"code":1482,"language":6,"meta":8,"style":8},"# Positive indexing (from start)\ncolors = [\"red\", \"green\", \"blue\", \"yellow\", \"purple\"]\nprint(\"First color:\", colors[0])    # red\nprint(\"Second color:\", colors[1])   # green\nprint(\"Third color:\", colors[2])    # blue\n\n# Negative indexing (from end)\nprint(\"Last color:\", colors[-1])    # purple\nprint(\"Second last:\", colors[-2])   # yellow\nprint(\"Third last:\", colors[-3])    # blue\n\n# Using variables as indices\nindex = 2\nprint(f\"Color at index {index}:\", colors[index])\n\n# Getting multiple items by index\nfirst_three = [colors[0], colors[1], colors[2]]\nprint(\"First three colors:\", first_three)\n",[1484],{"type":993,"tag":1022,"props":1485,"children":1486},{"__ignoreMap":8},[1487,1495,1556,1591,1625,1658,1665,1673,1710,1747,1784,1791,1799,1816,1862,1869,1877,1920],{"type":993,"tag":1026,"props":1488,"children":1489},{"class":1028,"line":12},[1490],{"type":993,"tag":1026,"props":1491,"children":1492},{"style":1032},[1493],{"type":998,"value":1494},"# Positive indexing (from start)\n",{"type":993,"tag":1026,"props":1496,"children":1497},{"class":1028,"line":27},[1498,1503,1507,1511,1516,1520,1525,1529,1534,1538,1543,1547,1552],{"type":993,"tag":1026,"props":1499,"children":1500},{"style":1041},[1501],{"type":998,"value":1502},"colors ",{"type":993,"tag":1026,"props":1504,"children":1505},{"style":1047},[1506],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1508,"children":1509},{"style":1041},[1510],{"type":998,"value":1055},{"type":993,"tag":1026,"props":1512,"children":1513},{"style":1058},[1514],{"type":998,"value":1515},"\"red\"",{"type":993,"tag":1026,"props":1517,"children":1518},{"style":1041},[1519],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1521,"children":1522},{"style":1058},[1523],{"type":998,"value":1524},"\"green\"",{"type":993,"tag":1026,"props":1526,"children":1527},{"style":1041},[1528],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1530,"children":1531},{"style":1058},[1532],{"type":998,"value":1533},"\"blue\"",{"type":993,"tag":1026,"props":1535,"children":1536},{"style":1041},[1537],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1539,"children":1540},{"style":1058},[1541],{"type":998,"value":1542},"\"yellow\"",{"type":993,"tag":1026,"props":1544,"children":1545},{"style":1041},[1546],{"type":998,"value":1066},{"type":993,"tag":1026,"props":1548,"children":1549},{"style":1058},[1550],{"type":998,"value":1551},"\"purple\"",{"type":993,"tag":1026,"props":1553,"children":1554},{"style":1041},[1555],{"type":998,"value":1103},{"type":993,"tag":1026,"props":1557,"children":1558},{"class":1028,"line":36},[1559,1563,1567,1572,1577,1581,1586],{"type":993,"tag":1026,"props":1560,"children":1561},{"style":1122},[1562],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1564,"children":1565},{"style":1041},[1566],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1568,"children":1569},{"style":1058},[1570],{"type":998,"value":1571},"\"First color:\"",{"type":993,"tag":1026,"props":1573,"children":1574},{"style":1041},[1575],{"type":998,"value":1576},", colors[",{"type":993,"tag":1026,"props":1578,"children":1579},{"style":1122},[1580],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1582,"children":1583},{"style":1041},[1584],{"type":998,"value":1585},"])    ",{"type":993,"tag":1026,"props":1587,"children":1588},{"style":1032},[1589],{"type":998,"value":1590},"# red\n",{"type":993,"tag":1026,"props":1592,"children":1593},{"class":1028,"line":45},[1594,1598,1602,1607,1611,1615,1620],{"type":993,"tag":1026,"props":1595,"children":1596},{"style":1122},[1597],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1599,"children":1600},{"style":1041},[1601],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1603,"children":1604},{"style":1058},[1605],{"type":998,"value":1606},"\"Second color:\"",{"type":993,"tag":1026,"props":1608,"children":1609},{"style":1041},[1610],{"type":998,"value":1576},{"type":993,"tag":1026,"props":1612,"children":1613},{"style":1122},[1614],{"type":998,"value":1244},{"type":993,"tag":1026,"props":1616,"children":1617},{"style":1041},[1618],{"type":998,"value":1619},"])   ",{"type":993,"tag":1026,"props":1621,"children":1622},{"style":1032},[1623],{"type":998,"value":1624},"# green\n",{"type":993,"tag":1026,"props":1626,"children":1627},{"class":1028,"line":54},[1628,1632,1636,1641,1645,1649,1653],{"type":993,"tag":1026,"props":1629,"children":1630},{"style":1122},[1631],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1633,"children":1634},{"style":1041},[1635],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1637,"children":1638},{"style":1058},[1639],{"type":998,"value":1640},"\"Third color:\"",{"type":993,"tag":1026,"props":1642,"children":1643},{"style":1041},[1644],{"type":998,"value":1576},{"type":993,"tag":1026,"props":1646,"children":1647},{"style":1122},[1648],{"type":998,"value":1274},{"type":993,"tag":1026,"props":1650,"children":1651},{"style":1041},[1652],{"type":998,"value":1585},{"type":993,"tag":1026,"props":1654,"children":1655},{"style":1032},[1656],{"type":998,"value":1657},"# blue\n",{"type":993,"tag":1026,"props":1659,"children":1660},{"class":1028,"line":63},[1661],{"type":993,"tag":1026,"props":1662,"children":1663},{"emptyLinePlaceholder":13},[1664],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1666,"children":1667},{"class":1028,"line":72},[1668],{"type":993,"tag":1026,"props":1669,"children":1670},{"style":1032},[1671],{"type":998,"value":1672},"# Negative indexing (from end)\n",{"type":993,"tag":1026,"props":1674,"children":1675},{"class":1028,"line":81},[1676,1680,1684,1689,1693,1697,1701,1705],{"type":993,"tag":1026,"props":1677,"children":1678},{"style":1122},[1679],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1681,"children":1682},{"style":1041},[1683],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1685,"children":1686},{"style":1058},[1687],{"type":998,"value":1688},"\"Last color:\"",{"type":993,"tag":1026,"props":1690,"children":1691},{"style":1041},[1692],{"type":998,"value":1576},{"type":993,"tag":1026,"props":1694,"children":1695},{"style":1047},[1696],{"type":998,"value":1239},{"type":993,"tag":1026,"props":1698,"children":1699},{"style":1122},[1700],{"type":998,"value":1244},{"type":993,"tag":1026,"props":1702,"children":1703},{"style":1041},[1704],{"type":998,"value":1585},{"type":993,"tag":1026,"props":1706,"children":1707},{"style":1032},[1708],{"type":998,"value":1709},"# purple\n",{"type":993,"tag":1026,"props":1711,"children":1712},{"class":1028,"line":91},[1713,1717,1721,1726,1730,1734,1738,1742],{"type":993,"tag":1026,"props":1714,"children":1715},{"style":1122},[1716],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1718,"children":1719},{"style":1041},[1720],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1722,"children":1723},{"style":1058},[1724],{"type":998,"value":1725},"\"Second last:\"",{"type":993,"tag":1026,"props":1727,"children":1728},{"style":1041},[1729],{"type":998,"value":1576},{"type":993,"tag":1026,"props":1731,"children":1732},{"style":1047},[1733],{"type":998,"value":1239},{"type":993,"tag":1026,"props":1735,"children":1736},{"style":1122},[1737],{"type":998,"value":1274},{"type":993,"tag":1026,"props":1739,"children":1740},{"style":1041},[1741],{"type":998,"value":1619},{"type":993,"tag":1026,"props":1743,"children":1744},{"style":1032},[1745],{"type":998,"value":1746},"# yellow\n",{"type":993,"tag":1026,"props":1748,"children":1749},{"class":1028,"line":100},[1750,1754,1758,1763,1767,1771,1776,1780],{"type":993,"tag":1026,"props":1751,"children":1752},{"style":1122},[1753],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1755,"children":1756},{"style":1041},[1757],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1759,"children":1760},{"style":1058},[1761],{"type":998,"value":1762},"\"Third last:\"",{"type":993,"tag":1026,"props":1764,"children":1765},{"style":1041},[1766],{"type":998,"value":1576},{"type":993,"tag":1026,"props":1768,"children":1769},{"style":1047},[1770],{"type":998,"value":1239},{"type":993,"tag":1026,"props":1772,"children":1773},{"style":1122},[1774],{"type":998,"value":1775},"3",{"type":993,"tag":1026,"props":1777,"children":1778},{"style":1041},[1779],{"type":998,"value":1585},{"type":993,"tag":1026,"props":1781,"children":1782},{"style":1032},[1783],{"type":998,"value":1657},{"type":993,"tag":1026,"props":1785,"children":1786},{"class":1028,"line":109},[1787],{"type":993,"tag":1026,"props":1788,"children":1789},{"emptyLinePlaceholder":13},[1790],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1792,"children":1793},{"class":1028,"line":118},[1794],{"type":993,"tag":1026,"props":1795,"children":1796},{"style":1032},[1797],{"type":998,"value":1798},"# Using variables as indices\n",{"type":993,"tag":1026,"props":1800,"children":1801},{"class":1028,"line":127},[1802,1807,1811],{"type":993,"tag":1026,"props":1803,"children":1804},{"style":1041},[1805],{"type":998,"value":1806},"index ",{"type":993,"tag":1026,"props":1808,"children":1809},{"style":1047},[1810],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1812,"children":1813},{"style":1122},[1814],{"type":998,"value":1815}," 2\n",{"type":993,"tag":1026,"props":1817,"children":1818},{"class":1028,"line":136},[1819,1823,1827,1832,1837,1842,1847,1852,1857],{"type":993,"tag":1026,"props":1820,"children":1821},{"style":1122},[1822],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1824,"children":1825},{"style":1041},[1826],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1828,"children":1829},{"style":1047},[1830],{"type":998,"value":1831},"f",{"type":993,"tag":1026,"props":1833,"children":1834},{"style":1058},[1835],{"type":998,"value":1836},"\"Color at index ",{"type":993,"tag":1026,"props":1838,"children":1839},{"style":1122},[1840],{"type":998,"value":1841},"{",{"type":993,"tag":1026,"props":1843,"children":1844},{"style":1041},[1845],{"type":998,"value":1846},"index",{"type":993,"tag":1026,"props":1848,"children":1849},{"style":1122},[1850],{"type":998,"value":1851},"}",{"type":993,"tag":1026,"props":1853,"children":1854},{"style":1058},[1855],{"type":998,"value":1856},":\"",{"type":993,"tag":1026,"props":1858,"children":1859},{"style":1041},[1860],{"type":998,"value":1861},", colors[index])\n",{"type":993,"tag":1026,"props":1863,"children":1864},{"class":1028,"line":146},[1865],{"type":993,"tag":1026,"props":1866,"children":1867},{"emptyLinePlaceholder":13},[1868],{"type":998,"value":1173},{"type":993,"tag":1026,"props":1870,"children":1871},{"class":1028,"line":155},[1872],{"type":993,"tag":1026,"props":1873,"children":1874},{"style":1032},[1875],{"type":998,"value":1876},"# Getting multiple items by index\n",{"type":993,"tag":1026,"props":1878,"children":1879},{"class":1028,"line":164},[1880,1885,1889,1894,1898,1903,1907,1911,1915],{"type":993,"tag":1026,"props":1881,"children":1882},{"style":1041},[1883],{"type":998,"value":1884},"first_three ",{"type":993,"tag":1026,"props":1886,"children":1887},{"style":1047},[1888],{"type":998,"value":1050},{"type":993,"tag":1026,"props":1890,"children":1891},{"style":1041},[1892],{"type":998,"value":1893}," [colors[",{"type":993,"tag":1026,"props":1895,"children":1896},{"style":1122},[1897],{"type":998,"value":1209},{"type":993,"tag":1026,"props":1899,"children":1900},{"style":1041},[1901],{"type":998,"value":1902},"], colors[",{"type":993,"tag":1026,"props":1904,"children":1905},{"style":1122},[1906],{"type":998,"value":1244},{"type":993,"tag":1026,"props":1908,"children":1909},{"style":1041},[1910],{"type":998,"value":1902},{"type":993,"tag":1026,"props":1912,"children":1913},{"style":1122},[1914],{"type":998,"value":1274},{"type":993,"tag":1026,"props":1916,"children":1917},{"style":1041},[1918],{"type":998,"value":1919},"]]\n",{"type":993,"tag":1026,"props":1921,"children":1922},{"class":1028,"line":173},[1923,1927,1931,1936],{"type":993,"tag":1026,"props":1924,"children":1925},{"style":1122},[1926],{"type":998,"value":1189},{"type":993,"tag":1026,"props":1928,"children":1929},{"style":1041},[1930],{"type":998,"value":1194},{"type":993,"tag":1026,"props":1932,"children":1933},{"style":1058},[1934],{"type":998,"value":1935},"\"First three colors:\"",{"type":993,"tag":1026,"props":1937,"children":1938},{"style":1041},[1939],{"type":998,"value":1940},", first_three)\n",{"type":993,"tag":1359,"props":1942,"children":1944},{"id":1943},"️-list-slicing",[1945],{"type":998,"value":1946},"✂️ List Slicing",{"type":993,"tag":1001,"props":1948,"children":1949},{},[1950,1952,1958],{"type":998,"value":1951},"Slicing allows you to extract portions of a list using the syntax ",{"type":993,"tag":1022,"props":1953,"children":1955},{"className":1954},[],[1956],{"type":998,"value":1957},"list[start:stop:step]",{"type":998,"value":1959},". This powerful feature lets you get multiple consecutive items, reverse lists, or extract items at regular intervals.",{"type":993,"tag":1001,"props":1961,"children":1962},{},[1963],{"type":998,"value":1964},"Slicing is essential for data processing tasks where you need to work with subsets of your data.",{"type":993,"tag":1376,"props":1966,"children":1970},{"emoji":1967,"title":1968,"type":1969},"🎯","Slicing Syntax Guide","success",[1971,1986,1994,2030,2038,2096],{"type":993,"tag":1001,"props":1972,"children":1973},{},[1974,1979,1981],{"type":993,"tag":1386,"props":1975,"children":1976},{},[1977],{"type":998,"value":1978},"Syntax:",{"type":998,"value":1980}," ",{"type":993,"tag":1022,"props":1982,"children":1984},{"className":1983},[],[1985],{"type":998,"value":1957},{"type":993,"tag":1001,"props":1987,"children":1988},{},[1989],{"type":993,"tag":1386,"props":1990,"children":1991},{},[1992],{"type":998,"value":1993},"Parameters:",{"type":993,"tag":1392,"props":1995,"children":1996},{},[1997,2008,2019],{"type":993,"tag":1396,"props":1998,"children":1999},{},[2000,2006],{"type":993,"tag":1022,"props":2001,"children":2003},{"className":2002},[],[2004],{"type":998,"value":2005},"start",{"type":998,"value":2007},": Starting index (inclusive, default 0)",{"type":993,"tag":1396,"props":2009,"children":2010},{},[2011,2017],{"type":993,"tag":1022,"props":2012,"children":2014},{"className":2013},[],[2015],{"type":998,"value":2016},"stop",{"type":998,"value":2018},": Ending index (exclusive, default length)",{"type":993,"tag":1396,"props":2020,"children":2021},{},[2022,2028],{"type":993,"tag":1022,"props":2023,"children":2025},{"className":2024},[],[2026],{"type":998,"value":2027},"step",{"type":998,"value":2029},": Interval between items (default 1)",{"type":993,"tag":1001,"props":2031,"children":2032},{},[2033],{"type":993,"tag":1386,"props":2034,"children":2035},{},[2036],{"type":998,"value":2037},"Common Patterns:",{"type":993,"tag":1392,"props":2039,"children":2040},{},[2041,2052,2063,2074,2085],{"type":993,"tag":1396,"props":2042,"children":2043},{},[2044,2050],{"type":993,"tag":1022,"props":2045,"children":2047},{"className":2046},[],[2048],{"type":998,"value":2049},"list[:5]",{"type":998,"value":2051},": First 5 items",{"type":993,"tag":1396,"props":2053,"children":2054},{},[2055,2061],{"type":993,"tag":1022,"props":2056,"children":2058},{"className":2057},[],[2059],{"type":998,"value":2060},"list[2:]",{"type":998,"value":2062},": From index 2 to end",{"type":993,"tag":1396,"props":2064,"children":2065},{},[2066,2072],{"type":993,"tag":1022,"props":2067,"children":2069},{"className":2068},[],[2070],{"type":998,"value":2071},"list[1:4]",{"type":998,"value":2073},": Items at indices 1, 2, 3",{"type":993,"tag":1396,"props":2075,"children":2076},{},[2077,2083],{"type":993,"tag":1022,"props":2078,"children":2080},{"className":2079},[],[2081],{"type":998,"value":2082},"list[::-1]",{"type":998,"value":2084},": Reverse entire list",{"type":993,"tag":1396,"props":2086,"children":2087},{},[2088,2094],{"type":993,"tag":1022,"props":2089,"children":2091},{"className":2090},[],[2092],{"type":998,"value":2093},"list[::2]",{"type":998,"value":2095},": Every 2nd item",{"type":993,"tag":1001,"props":2097,"children":2098},{},[2099,2104],{"type":993,"tag":1386,"props":2100,"children":2101},{},[2102],{"type":998,"value":2103},"Remember:",{"type":998,"value":2105}," Stop index is exclusive (not included in result)",{"type":993,"tag":1466,"props":2107,"children":2109},{"id":2108},"slicing-examples",[2110],{"type":998,"value":2111},"Slicing Examples",{"type":993,"tag":1001,"props":2113,"children":2114},{},[2115],{"type":998,"value":2116},"Extracting various portions and patterns from lists:",{"type":993,"tag":1012,"props":2118,"children":2119},{},[2120],{"type":993,"tag":1016,"props":2121,"children":2123},{"className":1018,"code":2122,"language":6,"meta":8,"style":8},"# Basic slicing [start:stop]\nnumbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\nprint(\"First 5 numbers:\", numbers[0:5])    # [0, 1, 2, 3, 4]\nprint(\"Numbers 3-6:\", numbers[3:7])        # [3, 4, 5, 6]\nprint(\"Last 3 numbers:\", numbers[-3:])     # [7, 8, 9]\n\n# Omitting start or stop\nprint(\"From index 5:\", numbers[5:])        # [5, 6, 7, 8, 9]\nprint(\"Up to index 4:\", numbers[:4])       # [0, 1, 2, 3]\nprint(\"Entire list:\", numbers[:])          # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\n\n# Using step values\nprint(\"Every 2nd number:\", numbers[::2])   # [0, 2, 4, 6, 8]\nprint(\"Every 3rd from index 1:\", numbers[1::3])  # [1, 4, 7]\n\n# Reversing with negative step\nprint(\"Reversed list:\", numbers[::-1])     # [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]\nprint(\"Every 2nd reversed:\", numbers[::-2]) # [9, 7, 5, 3, 1]\n",[2124],{"type":993,"tag":1022,"props":2125,"children":2126},{"__ignoreMap":8},[2127,2135,2236,2278,2320,2358,2365,2373,2407,2442,2468,2475,2483,2517,2560,2567,2575,2613],{"type":993,"tag":1026,"props":2128,"children":2129},{"class":1028,"line":12},[2130],{"type":993,"tag":1026,"props":2131,"children":2132},{"style":1032},[2133],{"type":998,"value":2134},"# Basic slicing [start:stop]\n",{"type":993,"tag":1026,"props":2136,"children":2137},{"class":1028,"line":27},[2138,2142,2146,2150,2154,2158,2162,2166,2170,2174,2178,2182,2187,2191,2196,2200,2205,2209,2214,2218,2223,2227,2232],{"type":993,"tag":1026,"props":2139,"children":2140},{"style":1041},[2141],{"type":998,"value":1111},{"type":993,"tag":1026,"props":2143,"children":2144},{"style":1047},[2145],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2147,"children":2148},{"style":1041},[2149],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2151,"children":2152},{"style":1122},[2153],{"type":998,"value":1209},{"type":993,"tag":1026,"props":2155,"children":2156},{"style":1041},[2157],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2159,"children":2160},{"style":1122},[2161],{"type":998,"value":1244},{"type":993,"tag":1026,"props":2163,"children":2164},{"style":1041},[2165],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2167,"children":2168},{"style":1122},[2169],{"type":998,"value":1274},{"type":993,"tag":1026,"props":2171,"children":2172},{"style":1041},[2173],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2175,"children":2176},{"style":1122},[2177],{"type":998,"value":1775},{"type":993,"tag":1026,"props":2179,"children":2180},{"style":1041},[2181],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2183,"children":2184},{"style":1122},[2185],{"type":998,"value":2186},"4",{"type":993,"tag":1026,"props":2188,"children":2189},{"style":1041},[2190],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2192,"children":2193},{"style":1122},[2194],{"type":998,"value":2195},"5",{"type":993,"tag":1026,"props":2197,"children":2198},{"style":1041},[2199],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2201,"children":2202},{"style":1122},[2203],{"type":998,"value":2204},"6",{"type":993,"tag":1026,"props":2206,"children":2207},{"style":1041},[2208],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2210,"children":2211},{"style":1122},[2212],{"type":998,"value":2213},"7",{"type":993,"tag":1026,"props":2215,"children":2216},{"style":1041},[2217],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2219,"children":2220},{"style":1122},[2221],{"type":998,"value":2222},"8",{"type":993,"tag":1026,"props":2224,"children":2225},{"style":1041},[2226],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2228,"children":2229},{"style":1122},[2230],{"type":998,"value":2231},"9",{"type":993,"tag":1026,"props":2233,"children":2234},{"style":1041},[2235],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2237,"children":2238},{"class":1028,"line":36},[2239,2243,2247,2252,2256,2260,2265,2269,2273],{"type":993,"tag":1026,"props":2240,"children":2241},{"style":1122},[2242],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2244,"children":2245},{"style":1041},[2246],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2248,"children":2249},{"style":1058},[2250],{"type":998,"value":2251},"\"First 5 numbers:\"",{"type":993,"tag":1026,"props":2253,"children":2254},{"style":1041},[2255],{"type":998,"value":1269},{"type":993,"tag":1026,"props":2257,"children":2258},{"style":1122},[2259],{"type":998,"value":1209},{"type":993,"tag":1026,"props":2261,"children":2262},{"style":1041},[2263],{"type":998,"value":2264},":",{"type":993,"tag":1026,"props":2266,"children":2267},{"style":1122},[2268],{"type":998,"value":2195},{"type":993,"tag":1026,"props":2270,"children":2271},{"style":1041},[2272],{"type":998,"value":1585},{"type":993,"tag":1026,"props":2274,"children":2275},{"style":1032},[2276],{"type":998,"value":2277},"# [0, 1, 2, 3, 4]\n",{"type":993,"tag":1026,"props":2279,"children":2280},{"class":1028,"line":45},[2281,2285,2289,2294,2298,2302,2306,2310,2315],{"type":993,"tag":1026,"props":2282,"children":2283},{"style":1122},[2284],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2286,"children":2287},{"style":1041},[2288],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2290,"children":2291},{"style":1058},[2292],{"type":998,"value":2293},"\"Numbers 3-6:\"",{"type":993,"tag":1026,"props":2295,"children":2296},{"style":1041},[2297],{"type":998,"value":1269},{"type":993,"tag":1026,"props":2299,"children":2300},{"style":1122},[2301],{"type":998,"value":1775},{"type":993,"tag":1026,"props":2303,"children":2304},{"style":1041},[2305],{"type":998,"value":2264},{"type":993,"tag":1026,"props":2307,"children":2308},{"style":1122},[2309],{"type":998,"value":2213},{"type":993,"tag":1026,"props":2311,"children":2312},{"style":1041},[2313],{"type":998,"value":2314},"])        ",{"type":993,"tag":1026,"props":2316,"children":2317},{"style":1032},[2318],{"type":998,"value":2319},"# [3, 4, 5, 6]\n",{"type":993,"tag":1026,"props":2321,"children":2322},{"class":1028,"line":54},[2323,2327,2331,2336,2340,2344,2348,2353],{"type":993,"tag":1026,"props":2324,"children":2325},{"style":1122},[2326],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2328,"children":2329},{"style":1041},[2330],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2332,"children":2333},{"style":1058},[2334],{"type":998,"value":2335},"\"Last 3 numbers:\"",{"type":993,"tag":1026,"props":2337,"children":2338},{"style":1041},[2339],{"type":998,"value":1269},{"type":993,"tag":1026,"props":2341,"children":2342},{"style":1047},[2343],{"type":998,"value":1239},{"type":993,"tag":1026,"props":2345,"children":2346},{"style":1122},[2347],{"type":998,"value":1775},{"type":993,"tag":1026,"props":2349,"children":2350},{"style":1041},[2351],{"type":998,"value":2352},":])     ",{"type":993,"tag":1026,"props":2354,"children":2355},{"style":1032},[2356],{"type":998,"value":2357},"# [7, 8, 9]\n",{"type":993,"tag":1026,"props":2359,"children":2360},{"class":1028,"line":63},[2361],{"type":993,"tag":1026,"props":2362,"children":2363},{"emptyLinePlaceholder":13},[2364],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2366,"children":2367},{"class":1028,"line":72},[2368],{"type":993,"tag":1026,"props":2369,"children":2370},{"style":1032},[2371],{"type":998,"value":2372},"# Omitting start or stop\n",{"type":993,"tag":1026,"props":2374,"children":2375},{"class":1028,"line":81},[2376,2380,2384,2389,2393,2397,2402],{"type":993,"tag":1026,"props":2377,"children":2378},{"style":1122},[2379],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2381,"children":2382},{"style":1041},[2383],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2385,"children":2386},{"style":1058},[2387],{"type":998,"value":2388},"\"From index 5:\"",{"type":993,"tag":1026,"props":2390,"children":2391},{"style":1041},[2392],{"type":998,"value":1269},{"type":993,"tag":1026,"props":2394,"children":2395},{"style":1122},[2396],{"type":998,"value":2195},{"type":993,"tag":1026,"props":2398,"children":2399},{"style":1041},[2400],{"type":998,"value":2401},":])        ",{"type":993,"tag":1026,"props":2403,"children":2404},{"style":1032},[2405],{"type":998,"value":2406},"# [5, 6, 7, 8, 9]\n",{"type":993,"tag":1026,"props":2408,"children":2409},{"class":1028,"line":91},[2410,2414,2418,2423,2428,2432,2437],{"type":993,"tag":1026,"props":2411,"children":2412},{"style":1122},[2413],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2415,"children":2416},{"style":1041},[2417],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2419,"children":2420},{"style":1058},[2421],{"type":998,"value":2422},"\"Up to index 4:\"",{"type":993,"tag":1026,"props":2424,"children":2425},{"style":1041},[2426],{"type":998,"value":2427},", numbers[:",{"type":993,"tag":1026,"props":2429,"children":2430},{"style":1122},[2431],{"type":998,"value":2186},{"type":993,"tag":1026,"props":2433,"children":2434},{"style":1041},[2435],{"type":998,"value":2436},"])       ",{"type":993,"tag":1026,"props":2438,"children":2439},{"style":1032},[2440],{"type":998,"value":2441},"# [0, 1, 2, 3]\n",{"type":993,"tag":1026,"props":2443,"children":2444},{"class":1028,"line":100},[2445,2449,2453,2458,2463],{"type":993,"tag":1026,"props":2446,"children":2447},{"style":1122},[2448],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2450,"children":2451},{"style":1041},[2452],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2454,"children":2455},{"style":1058},[2456],{"type":998,"value":2457},"\"Entire list:\"",{"type":993,"tag":1026,"props":2459,"children":2460},{"style":1041},[2461],{"type":998,"value":2462},", numbers[:])          ",{"type":993,"tag":1026,"props":2464,"children":2465},{"style":1032},[2466],{"type":998,"value":2467},"# [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\n",{"type":993,"tag":1026,"props":2469,"children":2470},{"class":1028,"line":109},[2471],{"type":993,"tag":1026,"props":2472,"children":2473},{"emptyLinePlaceholder":13},[2474],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2476,"children":2477},{"class":1028,"line":118},[2478],{"type":993,"tag":1026,"props":2479,"children":2480},{"style":1032},[2481],{"type":998,"value":2482},"# Using step values\n",{"type":993,"tag":1026,"props":2484,"children":2485},{"class":1028,"line":127},[2486,2490,2494,2499,2504,2508,2512],{"type":993,"tag":1026,"props":2487,"children":2488},{"style":1122},[2489],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2491,"children":2492},{"style":1041},[2493],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2495,"children":2496},{"style":1058},[2497],{"type":998,"value":2498},"\"Every 2nd number:\"",{"type":993,"tag":1026,"props":2500,"children":2501},{"style":1041},[2502],{"type":998,"value":2503},", numbers[::",{"type":993,"tag":1026,"props":2505,"children":2506},{"style":1122},[2507],{"type":998,"value":1274},{"type":993,"tag":1026,"props":2509,"children":2510},{"style":1041},[2511],{"type":998,"value":1619},{"type":993,"tag":1026,"props":2513,"children":2514},{"style":1032},[2515],{"type":998,"value":2516},"# [0, 2, 4, 6, 8]\n",{"type":993,"tag":1026,"props":2518,"children":2519},{"class":1028,"line":136},[2520,2524,2528,2533,2537,2541,2546,2550,2555],{"type":993,"tag":1026,"props":2521,"children":2522},{"style":1122},[2523],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2525,"children":2526},{"style":1041},[2527],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2529,"children":2530},{"style":1058},[2531],{"type":998,"value":2532},"\"Every 3rd from index 1:\"",{"type":993,"tag":1026,"props":2534,"children":2535},{"style":1041},[2536],{"type":998,"value":1269},{"type":993,"tag":1026,"props":2538,"children":2539},{"style":1122},[2540],{"type":998,"value":1244},{"type":993,"tag":1026,"props":2542,"children":2543},{"style":1041},[2544],{"type":998,"value":2545},"::",{"type":993,"tag":1026,"props":2547,"children":2548},{"style":1122},[2549],{"type":998,"value":1775},{"type":993,"tag":1026,"props":2551,"children":2552},{"style":1041},[2553],{"type":998,"value":2554},"])  ",{"type":993,"tag":1026,"props":2556,"children":2557},{"style":1032},[2558],{"type":998,"value":2559},"# [1, 4, 7]\n",{"type":993,"tag":1026,"props":2561,"children":2562},{"class":1028,"line":146},[2563],{"type":993,"tag":1026,"props":2564,"children":2565},{"emptyLinePlaceholder":13},[2566],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2568,"children":2569},{"class":1028,"line":155},[2570],{"type":993,"tag":1026,"props":2571,"children":2572},{"style":1032},[2573],{"type":998,"value":2574},"# Reversing with negative step\n",{"type":993,"tag":1026,"props":2576,"children":2577},{"class":1028,"line":164},[2578,2582,2586,2591,2595,2599,2603,2608],{"type":993,"tag":1026,"props":2579,"children":2580},{"style":1122},[2581],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2583,"children":2584},{"style":1041},[2585],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2587,"children":2588},{"style":1058},[2589],{"type":998,"value":2590},"\"Reversed list:\"",{"type":993,"tag":1026,"props":2592,"children":2593},{"style":1041},[2594],{"type":998,"value":2503},{"type":993,"tag":1026,"props":2596,"children":2597},{"style":1047},[2598],{"type":998,"value":1239},{"type":993,"tag":1026,"props":2600,"children":2601},{"style":1122},[2602],{"type":998,"value":1244},{"type":993,"tag":1026,"props":2604,"children":2605},{"style":1041},[2606],{"type":998,"value":2607},"])     ",{"type":993,"tag":1026,"props":2609,"children":2610},{"style":1032},[2611],{"type":998,"value":2612},"# [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]\n",{"type":993,"tag":1026,"props":2614,"children":2615},{"class":1028,"line":173},[2616,2620,2624,2629,2633,2637,2641,2646],{"type":993,"tag":1026,"props":2617,"children":2618},{"style":1122},[2619],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2621,"children":2622},{"style":1041},[2623],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2625,"children":2626},{"style":1058},[2627],{"type":998,"value":2628},"\"Every 2nd reversed:\"",{"type":993,"tag":1026,"props":2630,"children":2631},{"style":1041},[2632],{"type":998,"value":2503},{"type":993,"tag":1026,"props":2634,"children":2635},{"style":1047},[2636],{"type":998,"value":1239},{"type":993,"tag":1026,"props":2638,"children":2639},{"style":1122},[2640],{"type":998,"value":1274},{"type":993,"tag":1026,"props":2642,"children":2643},{"style":1041},[2644],{"type":998,"value":2645},"]) ",{"type":993,"tag":1026,"props":2647,"children":2648},{"style":1032},[2649],{"type":998,"value":2650},"# [9, 7, 5, 3, 1]\n",{"type":993,"tag":2652,"props":2653,"children":2655},"content-exercise",{":widget-view":2654,"category":6,"id":292},"true",[],{"type":993,"tag":1359,"props":2657,"children":2659},{"id":2658},"finding-items-in-lists",[2660],{"type":998,"value":2661},"🔍 Finding Items in Lists",{"type":993,"tag":1001,"props":2663,"children":2664},{},[2665],{"type":998,"value":2666},"Python provides several methods to locate items within lists. You can check for existence, find positions, and count occurrences of specific values.",{"type":993,"tag":1001,"props":2668,"children":2669},{},[2670],{"type":998,"value":2671},"These search capabilities are crucial for data validation, filtering, and conditional processing.",{"type":993,"tag":1376,"props":2673,"children":2676},{"emoji":2674,"title":2675,"type":1380},"🎪","List Search Methods",[2677,2685,2721,2729],{"type":993,"tag":1001,"props":2678,"children":2679},{},[2680],{"type":993,"tag":1386,"props":2681,"children":2682},{},[2683],{"type":998,"value":2684},"Main Search Methods:",{"type":993,"tag":1392,"props":2686,"children":2687},{},[2688,2699,2710],{"type":993,"tag":1396,"props":2689,"children":2690},{},[2691,2697],{"type":993,"tag":1022,"props":2692,"children":2694},{"className":2693},[],[2695],{"type":998,"value":2696},"item in list",{"type":998,"value":2698},": Check if item exists (returns True/False)",{"type":993,"tag":1396,"props":2700,"children":2701},{},[2702,2708],{"type":993,"tag":1022,"props":2703,"children":2705},{"className":2704},[],[2706],{"type":998,"value":2707},"list.index(item)",{"type":998,"value":2709},": Find first occurrence index",{"type":993,"tag":1396,"props":2711,"children":2712},{},[2713,2719],{"type":993,"tag":1022,"props":2714,"children":2716},{"className":2715},[],[2717],{"type":998,"value":2718},"list.count(item)",{"type":998,"value":2720},": Count total occurrences",{"type":993,"tag":1001,"props":2722,"children":2723},{},[2724],{"type":993,"tag":1386,"props":2725,"children":2726},{},[2727],{"type":998,"value":2728},"Important Notes:",{"type":993,"tag":1392,"props":2730,"children":2731},{},[2732,2743,2754,2765],{"type":993,"tag":1396,"props":2733,"children":2734},{},[2735,2741],{"type":993,"tag":1022,"props":2736,"children":2738},{"className":2737},[],[2739],{"type":998,"value":2740},"index()",{"type":998,"value":2742}," raises ValueError if item not found",{"type":993,"tag":1396,"props":2744,"children":2745},{},[2746,2752],{"type":993,"tag":1022,"props":2747,"children":2749},{"className":2748},[],[2750],{"type":998,"value":2751},"in",{"type":998,"value":2753}," operator is fastest for existence checking",{"type":993,"tag":1396,"props":2755,"children":2756},{},[2757,2763],{"type":993,"tag":1022,"props":2758,"children":2760},{"className":2759},[],[2761],{"type":998,"value":2762},"count()",{"type":998,"value":2764}," returns 0 if item not found",{"type":993,"tag":1396,"props":2766,"children":2767},{},[2768],{"type":998,"value":2769},"Search is case-sensitive for strings",{"type":993,"tag":1466,"props":2771,"children":2773},{"id":2772},"search-examples",[2774],{"type":998,"value":2775},"Search Examples",{"type":993,"tag":1001,"props":2777,"children":2778},{},[2779],{"type":998,"value":2780},"Finding and locating items in lists safely:",{"type":993,"tag":1012,"props":2782,"children":2783},{},[2784],{"type":993,"tag":1016,"props":2785,"children":2787},{"className":1018,"code":2786,"language":6,"meta":8,"style":8},"# Checking if item exists\nfruits = [\"apple\", \"banana\", \"cherry\", \"banana\", \"date\"]\nprint(\"Is 'banana' in fruits?\", \"banana\" in fruits)\nprint(\"Is 'grape' in fruits?\", \"grape\" in fruits)\n\n# Finding index of first occurrence\nbanana_index = fruits.index(\"banana\")\nprint(\"First 'banana' at index:\", banana_index)\n\n# Counting occurrences\nbanana_count = fruits.count(\"banana\")\nprint(\"Number of 'banana' items:\", banana_count)\n\n# Safe index finding (avoiding errors)\ntry:\n    grape_index = fruits.index(\"grape\")\n    print(\"Grape found at:\", grape_index)\nexcept ValueError:\n    print(\"Grape not found in the list\")\n\n# Finding all indices of an item\ndef find_all_indices(lst, item):\n    indices = []\n    for i, value in enumerate(lst):\n        if value == item:\n            indices.append(i)\n    return indices\n\nall_banana_indices = find_all_indices(fruits, \"banana\")\nprint(\"All 'banana' indices:\", all_banana_indices)\n",[2788],{"type":993,"tag":1022,"props":2789,"children":2790},{"__ignoreMap":8},[2791,2799,2854,2885,2918,2925,2933,2959,2980,2987,2995,3020,3041,3048,3056,3069,3093,3115,3132,3152,3159,3167,3186,3203,3230,3253,3261,3274,3281,3306],{"type":993,"tag":1026,"props":2792,"children":2793},{"class":1028,"line":12},[2794],{"type":993,"tag":1026,"props":2795,"children":2796},{"style":1032},[2797],{"type":998,"value":2798},"# Checking if item exists\n",{"type":993,"tag":1026,"props":2800,"children":2801},{"class":1028,"line":27},[2802,2806,2810,2814,2818,2822,2826,2830,2834,2838,2842,2846,2850],{"type":993,"tag":1026,"props":2803,"children":2804},{"style":1041},[2805],{"type":998,"value":1044},{"type":993,"tag":1026,"props":2807,"children":2808},{"style":1047},[2809],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2811,"children":2812},{"style":1041},[2813],{"type":998,"value":1055},{"type":993,"tag":1026,"props":2815,"children":2816},{"style":1058},[2817],{"type":998,"value":1061},{"type":993,"tag":1026,"props":2819,"children":2820},{"style":1041},[2821],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2823,"children":2824},{"style":1058},[2825],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2827,"children":2828},{"style":1041},[2829],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2831,"children":2832},{"style":1058},[2833],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2835,"children":2836},{"style":1041},[2837],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2839,"children":2840},{"style":1058},[2841],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2843,"children":2844},{"style":1041},[2845],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2847,"children":2848},{"style":1058},[2849],{"type":998,"value":1089},{"type":993,"tag":1026,"props":2851,"children":2852},{"style":1041},[2853],{"type":998,"value":1103},{"type":993,"tag":1026,"props":2855,"children":2856},{"class":1028,"line":36},[2857,2861,2865,2869,2873,2877,2881],{"type":993,"tag":1026,"props":2858,"children":2859},{"style":1122},[2860],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2862,"children":2863},{"style":1041},[2864],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2866,"children":2867},{"style":1058},[2868],{"type":998,"value":1339},{"type":993,"tag":1026,"props":2870,"children":2871},{"style":1041},[2872],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2874,"children":2875},{"style":1058},[2876],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2878,"children":2879},{"style":1047},[2880],{"type":998,"value":1352},{"type":993,"tag":1026,"props":2882,"children":2883},{"style":1041},[2884],{"type":998,"value":1357},{"type":993,"tag":1026,"props":2886,"children":2887},{"class":1028,"line":45},[2888,2892,2896,2901,2905,2910,2914],{"type":993,"tag":1026,"props":2889,"children":2890},{"style":1122},[2891],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2893,"children":2894},{"style":1041},[2895],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2897,"children":2898},{"style":1058},[2899],{"type":998,"value":2900},"\"Is 'grape' in fruits?\"",{"type":993,"tag":1026,"props":2902,"children":2903},{"style":1041},[2904],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2906,"children":2907},{"style":1058},[2908],{"type":998,"value":2909},"\"grape\"",{"type":993,"tag":1026,"props":2911,"children":2912},{"style":1047},[2913],{"type":998,"value":1352},{"type":993,"tag":1026,"props":2915,"children":2916},{"style":1041},[2917],{"type":998,"value":1357},{"type":993,"tag":1026,"props":2919,"children":2920},{"class":1028,"line":54},[2921],{"type":993,"tag":1026,"props":2922,"children":2923},{"emptyLinePlaceholder":13},[2924],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2926,"children":2927},{"class":1028,"line":63},[2928],{"type":993,"tag":1026,"props":2929,"children":2930},{"style":1032},[2931],{"type":998,"value":2932},"# Finding index of first occurrence\n",{"type":993,"tag":1026,"props":2934,"children":2935},{"class":1028,"line":72},[2936,2941,2945,2950,2954],{"type":993,"tag":1026,"props":2937,"children":2938},{"style":1041},[2939],{"type":998,"value":2940},"banana_index ",{"type":993,"tag":1026,"props":2942,"children":2943},{"style":1047},[2944],{"type":998,"value":1050},{"type":993,"tag":1026,"props":2946,"children":2947},{"style":1041},[2948],{"type":998,"value":2949}," fruits.index(",{"type":993,"tag":1026,"props":2951,"children":2952},{"style":1058},[2953],{"type":998,"value":1071},{"type":993,"tag":1026,"props":2955,"children":2956},{"style":1041},[2957],{"type":998,"value":2958},")\n",{"type":993,"tag":1026,"props":2960,"children":2961},{"class":1028,"line":81},[2962,2966,2970,2975],{"type":993,"tag":1026,"props":2963,"children":2964},{"style":1122},[2965],{"type":998,"value":1189},{"type":993,"tag":1026,"props":2967,"children":2968},{"style":1041},[2969],{"type":998,"value":1194},{"type":993,"tag":1026,"props":2971,"children":2972},{"style":1058},[2973],{"type":998,"value":2974},"\"First 'banana' at index:\"",{"type":993,"tag":1026,"props":2976,"children":2977},{"style":1041},[2978],{"type":998,"value":2979},", banana_index)\n",{"type":993,"tag":1026,"props":2981,"children":2982},{"class":1028,"line":91},[2983],{"type":993,"tag":1026,"props":2984,"children":2985},{"emptyLinePlaceholder":13},[2986],{"type":998,"value":1173},{"type":993,"tag":1026,"props":2988,"children":2989},{"class":1028,"line":100},[2990],{"type":993,"tag":1026,"props":2991,"children":2992},{"style":1032},[2993],{"type":998,"value":2994},"# Counting occurrences\n",{"type":993,"tag":1026,"props":2996,"children":2997},{"class":1028,"line":109},[2998,3003,3007,3012,3016],{"type":993,"tag":1026,"props":2999,"children":3000},{"style":1041},[3001],{"type":998,"value":3002},"banana_count ",{"type":993,"tag":1026,"props":3004,"children":3005},{"style":1047},[3006],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3008,"children":3009},{"style":1041},[3010],{"type":998,"value":3011}," fruits.count(",{"type":993,"tag":1026,"props":3013,"children":3014},{"style":1058},[3015],{"type":998,"value":1071},{"type":993,"tag":1026,"props":3017,"children":3018},{"style":1041},[3019],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3021,"children":3022},{"class":1028,"line":118},[3023,3027,3031,3036],{"type":993,"tag":1026,"props":3024,"children":3025},{"style":1122},[3026],{"type":998,"value":1189},{"type":993,"tag":1026,"props":3028,"children":3029},{"style":1041},[3030],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3032,"children":3033},{"style":1058},[3034],{"type":998,"value":3035},"\"Number of 'banana' items:\"",{"type":993,"tag":1026,"props":3037,"children":3038},{"style":1041},[3039],{"type":998,"value":3040},", banana_count)\n",{"type":993,"tag":1026,"props":3042,"children":3043},{"class":1028,"line":127},[3044],{"type":993,"tag":1026,"props":3045,"children":3046},{"emptyLinePlaceholder":13},[3047],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3049,"children":3050},{"class":1028,"line":136},[3051],{"type":993,"tag":1026,"props":3052,"children":3053},{"style":1032},[3054],{"type":998,"value":3055},"# Safe index finding (avoiding errors)\n",{"type":993,"tag":1026,"props":3057,"children":3058},{"class":1028,"line":146},[3059,3064],{"type":993,"tag":1026,"props":3060,"children":3061},{"style":1047},[3062],{"type":998,"value":3063},"try",{"type":993,"tag":1026,"props":3065,"children":3066},{"style":1041},[3067],{"type":998,"value":3068},":\n",{"type":993,"tag":1026,"props":3070,"children":3071},{"class":1028,"line":155},[3072,3077,3081,3085,3089],{"type":993,"tag":1026,"props":3073,"children":3074},{"style":1041},[3075],{"type":998,"value":3076},"    grape_index ",{"type":993,"tag":1026,"props":3078,"children":3079},{"style":1047},[3080],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3082,"children":3083},{"style":1041},[3084],{"type":998,"value":2949},{"type":993,"tag":1026,"props":3086,"children":3087},{"style":1058},[3088],{"type":998,"value":2909},{"type":993,"tag":1026,"props":3090,"children":3091},{"style":1041},[3092],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3094,"children":3095},{"class":1028,"line":164},[3096,3101,3105,3110],{"type":993,"tag":1026,"props":3097,"children":3098},{"style":1122},[3099],{"type":998,"value":3100},"    print",{"type":993,"tag":1026,"props":3102,"children":3103},{"style":1041},[3104],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3106,"children":3107},{"style":1058},[3108],{"type":998,"value":3109},"\"Grape found at:\"",{"type":993,"tag":1026,"props":3111,"children":3112},{"style":1041},[3113],{"type":998,"value":3114},", grape_index)\n",{"type":993,"tag":1026,"props":3116,"children":3117},{"class":1028,"line":173},[3118,3123,3128],{"type":993,"tag":1026,"props":3119,"children":3120},{"style":1047},[3121],{"type":998,"value":3122},"except",{"type":993,"tag":1026,"props":3124,"children":3125},{"style":1122},[3126],{"type":998,"value":3127}," ValueError",{"type":993,"tag":1026,"props":3129,"children":3130},{"style":1041},[3131],{"type":998,"value":3068},{"type":993,"tag":1026,"props":3133,"children":3134},{"class":1028,"line":182},[3135,3139,3143,3148],{"type":993,"tag":1026,"props":3136,"children":3137},{"style":1122},[3138],{"type":998,"value":3100},{"type":993,"tag":1026,"props":3140,"children":3141},{"style":1041},[3142],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3144,"children":3145},{"style":1058},[3146],{"type":998,"value":3147},"\"Grape not found in the list\"",{"type":993,"tag":1026,"props":3149,"children":3150},{"style":1041},[3151],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3153,"children":3154},{"class":1028,"line":191},[3155],{"type":993,"tag":1026,"props":3156,"children":3157},{"emptyLinePlaceholder":13},[3158],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3160,"children":3161},{"class":1028,"line":201},[3162],{"type":993,"tag":1026,"props":3163,"children":3164},{"style":1032},[3165],{"type":998,"value":3166},"# Finding all indices of an item\n",{"type":993,"tag":1026,"props":3168,"children":3169},{"class":1028,"line":210},[3170,3175,3181],{"type":993,"tag":1026,"props":3171,"children":3172},{"style":1047},[3173],{"type":998,"value":3174},"def",{"type":993,"tag":1026,"props":3176,"children":3178},{"style":3177},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[3179],{"type":998,"value":3180}," find_all_indices",{"type":993,"tag":1026,"props":3182,"children":3183},{"style":1041},[3184],{"type":998,"value":3185},"(lst, item):\n",{"type":993,"tag":1026,"props":3187,"children":3188},{"class":1028,"line":219},[3189,3194,3198],{"type":993,"tag":1026,"props":3190,"children":3191},{"style":1041},[3192],{"type":998,"value":3193},"    indices ",{"type":993,"tag":1026,"props":3195,"children":3196},{"style":1047},[3197],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3199,"children":3200},{"style":1041},[3201],{"type":998,"value":3202}," []\n",{"type":993,"tag":1026,"props":3204,"children":3205},{"class":1028,"line":228},[3206,3211,3216,3220,3225],{"type":993,"tag":1026,"props":3207,"children":3208},{"style":1047},[3209],{"type":998,"value":3210},"    for",{"type":993,"tag":1026,"props":3212,"children":3213},{"style":1041},[3214],{"type":998,"value":3215}," i, value ",{"type":993,"tag":1026,"props":3217,"children":3218},{"style":1047},[3219],{"type":998,"value":2751},{"type":993,"tag":1026,"props":3221,"children":3222},{"style":1122},[3223],{"type":998,"value":3224}," enumerate",{"type":993,"tag":1026,"props":3226,"children":3227},{"style":1041},[3228],{"type":998,"value":3229},"(lst):\n",{"type":993,"tag":1026,"props":3231,"children":3232},{"class":1028,"line":238},[3233,3238,3243,3248],{"type":993,"tag":1026,"props":3234,"children":3235},{"style":1047},[3236],{"type":998,"value":3237},"        if",{"type":993,"tag":1026,"props":3239,"children":3240},{"style":1041},[3241],{"type":998,"value":3242}," value ",{"type":993,"tag":1026,"props":3244,"children":3245},{"style":1047},[3246],{"type":998,"value":3247},"==",{"type":993,"tag":1026,"props":3249,"children":3250},{"style":1041},[3251],{"type":998,"value":3252}," item:\n",{"type":993,"tag":1026,"props":3254,"children":3255},{"class":1028,"line":247},[3256],{"type":993,"tag":1026,"props":3257,"children":3258},{"style":1041},[3259],{"type":998,"value":3260},"            indices.append(i)\n",{"type":993,"tag":1026,"props":3262,"children":3263},{"class":1028,"line":256},[3264,3269],{"type":993,"tag":1026,"props":3265,"children":3266},{"style":1047},[3267],{"type":998,"value":3268},"    return",{"type":993,"tag":1026,"props":3270,"children":3271},{"style":1041},[3272],{"type":998,"value":3273}," indices\n",{"type":993,"tag":1026,"props":3275,"children":3276},{"class":1028,"line":265},[3277],{"type":993,"tag":1026,"props":3278,"children":3279},{"emptyLinePlaceholder":13},[3280],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3282,"children":3283},{"class":1028,"line":274},[3284,3289,3293,3298,3302],{"type":993,"tag":1026,"props":3285,"children":3286},{"style":1041},[3287],{"type":998,"value":3288},"all_banana_indices ",{"type":993,"tag":1026,"props":3290,"children":3291},{"style":1047},[3292],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3294,"children":3295},{"style":1041},[3296],{"type":998,"value":3297}," find_all_indices(fruits, ",{"type":993,"tag":1026,"props":3299,"children":3300},{"style":1058},[3301],{"type":998,"value":1071},{"type":993,"tag":1026,"props":3303,"children":3304},{"style":1041},[3305],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3307,"children":3308},{"class":1028,"line":284},[3309,3313,3317,3322],{"type":993,"tag":1026,"props":3310,"children":3311},{"style":1122},[3312],{"type":998,"value":1189},{"type":993,"tag":1026,"props":3314,"children":3315},{"style":1041},[3316],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3318,"children":3319},{"style":1058},[3320],{"type":998,"value":3321},"\"All 'banana' indices:\"",{"type":993,"tag":1026,"props":3323,"children":3324},{"style":1041},[3325],{"type":998,"value":3326},", all_banana_indices)\n",{"type":993,"tag":1359,"props":3328,"children":3330},{"id":3329},"iterating-through-lists",[3331],{"type":998,"value":3332},"Iterating Through Lists",{"type":993,"tag":1001,"props":3334,"children":3335},{},[3336,3338,3344],{"type":998,"value":3337},"Iteration allows you to process each item in a list systematically. Python provides multiple ways to iterate, including simple ",{"type":993,"tag":3339,"props":3340,"children":3341},"a",{"href":243},[3342],{"type":998,"value":3343},"loops",{"type":998,"value":3345},", enumeration for index access, and various built-in functions.",{"type":993,"tag":1001,"props":3347,"children":3348},{},[3349],{"type":998,"value":3350},"Iteration is fundamental for data processing, analysis, and transformation operations.",{"type":993,"tag":1466,"props":3352,"children":3354},{"id":3353},"iteration-examples",[3355],{"type":998,"value":3356},"Iteration Examples",{"type":993,"tag":1001,"props":3358,"children":3359},{},[3360],{"type":998,"value":3361},"Different approaches to processing list items:",{"type":993,"tag":1012,"props":3363,"children":3364},{},[3365],{"type":993,"tag":1016,"props":3366,"children":3368},{"className":1018,"code":3367,"language":6,"meta":8,"style":8},"# Simple iteration\nscores = [85, 92, 78, 96, 88]\nprint(\"All scores:\")\nfor score in scores:\n    print(f\"Score: {score}\")\n\n# Iteration with index using enumerate\nprint(\"\\nScores with positions:\")\nfor index, score in enumerate(scores):\n    print(f\"Position {index}: {score}\")\n\n# Custom start index\nprint(\"\\nScores numbered from 1:\")\nfor position, score in enumerate(scores, 1):\n    print(f\"Test {position}: {score}\")\n\n# Using range and len\nprint(\"\\nUsing range and len:\")\nfor i in range(len(scores)):\n    print(f\"Index {i}: {scores[i]}\")\n\n# Conditional iteration\nprint(\"\\nHigh scores (90+):\")\nfor score in scores:\n    if score >= 90:\n        print(f\"High score: {score}\")\n",[3369],{"type":993,"tag":1022,"props":3370,"children":3371},{"__ignoreMap":8},[3372,3380,3441,3461,3483,3525,3532,3540,3569,3594,3651,3658,3666,3694,3728,3785,3792,3800,3828,3862,3920,3927,3935,3963,3982,4008],{"type":993,"tag":1026,"props":3373,"children":3374},{"class":1028,"line":12},[3375],{"type":993,"tag":1026,"props":3376,"children":3377},{"style":1032},[3378],{"type":998,"value":3379},"# Simple iteration\n",{"type":993,"tag":1026,"props":3381,"children":3382},{"class":1028,"line":27},[3383,3388,3392,3396,3401,3405,3410,3414,3419,3423,3428,3432,3437],{"type":993,"tag":1026,"props":3384,"children":3385},{"style":1041},[3386],{"type":998,"value":3387},"scores ",{"type":993,"tag":1026,"props":3389,"children":3390},{"style":1047},[3391],{"type":998,"value":1050},{"type":993,"tag":1026,"props":3393,"children":3394},{"style":1041},[3395],{"type":998,"value":1055},{"type":993,"tag":1026,"props":3397,"children":3398},{"style":1122},[3399],{"type":998,"value":3400},"85",{"type":993,"tag":1026,"props":3402,"children":3403},{"style":1041},[3404],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3406,"children":3407},{"style":1122},[3408],{"type":998,"value":3409},"92",{"type":993,"tag":1026,"props":3411,"children":3412},{"style":1041},[3413],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3415,"children":3416},{"style":1122},[3417],{"type":998,"value":3418},"78",{"type":993,"tag":1026,"props":3420,"children":3421},{"style":1041},[3422],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3424,"children":3425},{"style":1122},[3426],{"type":998,"value":3427},"96",{"type":993,"tag":1026,"props":3429,"children":3430},{"style":1041},[3431],{"type":998,"value":1066},{"type":993,"tag":1026,"props":3433,"children":3434},{"style":1122},[3435],{"type":998,"value":3436},"88",{"type":993,"tag":1026,"props":3438,"children":3439},{"style":1041},[3440],{"type":998,"value":1103},{"type":993,"tag":1026,"props":3442,"children":3443},{"class":1028,"line":36},[3444,3448,3452,3457],{"type":993,"tag":1026,"props":3445,"children":3446},{"style":1122},[3447],{"type":998,"value":1189},{"type":993,"tag":1026,"props":3449,"children":3450},{"style":1041},[3451],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3453,"children":3454},{"style":1058},[3455],{"type":998,"value":3456},"\"All scores:\"",{"type":993,"tag":1026,"props":3458,"children":3459},{"style":1041},[3460],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3462,"children":3463},{"class":1028,"line":45},[3464,3469,3474,3478],{"type":993,"tag":1026,"props":3465,"children":3466},{"style":1047},[3467],{"type":998,"value":3468},"for",{"type":993,"tag":1026,"props":3470,"children":3471},{"style":1041},[3472],{"type":998,"value":3473}," score ",{"type":993,"tag":1026,"props":3475,"children":3476},{"style":1047},[3477],{"type":998,"value":2751},{"type":993,"tag":1026,"props":3479,"children":3480},{"style":1041},[3481],{"type":998,"value":3482}," scores:\n",{"type":993,"tag":1026,"props":3484,"children":3485},{"class":1028,"line":54},[3486,3490,3494,3498,3503,3507,3512,3516,3521],{"type":993,"tag":1026,"props":3487,"children":3488},{"style":1122},[3489],{"type":998,"value":3100},{"type":993,"tag":1026,"props":3491,"children":3492},{"style":1041},[3493],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3495,"children":3496},{"style":1047},[3497],{"type":998,"value":1831},{"type":993,"tag":1026,"props":3499,"children":3500},{"style":1058},[3501],{"type":998,"value":3502},"\"Score: ",{"type":993,"tag":1026,"props":3504,"children":3505},{"style":1122},[3506],{"type":998,"value":1841},{"type":993,"tag":1026,"props":3508,"children":3509},{"style":1041},[3510],{"type":998,"value":3511},"score",{"type":993,"tag":1026,"props":3513,"children":3514},{"style":1122},[3515],{"type":998,"value":1851},{"type":993,"tag":1026,"props":3517,"children":3518},{"style":1058},[3519],{"type":998,"value":3520},"\"",{"type":993,"tag":1026,"props":3522,"children":3523},{"style":1041},[3524],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3526,"children":3527},{"class":1028,"line":63},[3528],{"type":993,"tag":1026,"props":3529,"children":3530},{"emptyLinePlaceholder":13},[3531],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3533,"children":3534},{"class":1028,"line":72},[3535],{"type":993,"tag":1026,"props":3536,"children":3537},{"style":1032},[3538],{"type":998,"value":3539},"# Iteration with index using enumerate\n",{"type":993,"tag":1026,"props":3541,"children":3542},{"class":1028,"line":81},[3543,3547,3551,3555,3560,3565],{"type":993,"tag":1026,"props":3544,"children":3545},{"style":1122},[3546],{"type":998,"value":1189},{"type":993,"tag":1026,"props":3548,"children":3549},{"style":1041},[3550],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3552,"children":3553},{"style":1058},[3554],{"type":998,"value":3520},{"type":993,"tag":1026,"props":3556,"children":3557},{"style":1122},[3558],{"type":998,"value":3559},"\\n",{"type":993,"tag":1026,"props":3561,"children":3562},{"style":1058},[3563],{"type":998,"value":3564},"Scores with positions:\"",{"type":993,"tag":1026,"props":3566,"children":3567},{"style":1041},[3568],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3570,"children":3571},{"class":1028,"line":91},[3572,3576,3581,3585,3589],{"type":993,"tag":1026,"props":3573,"children":3574},{"style":1047},[3575],{"type":998,"value":3468},{"type":993,"tag":1026,"props":3577,"children":3578},{"style":1041},[3579],{"type":998,"value":3580}," index, score ",{"type":993,"tag":1026,"props":3582,"children":3583},{"style":1047},[3584],{"type":998,"value":2751},{"type":993,"tag":1026,"props":3586,"children":3587},{"style":1122},[3588],{"type":998,"value":3224},{"type":993,"tag":1026,"props":3590,"children":3591},{"style":1041},[3592],{"type":998,"value":3593},"(scores):\n",{"type":993,"tag":1026,"props":3595,"children":3596},{"class":1028,"line":100},[3597,3601,3605,3609,3614,3618,3622,3626,3631,3635,3639,3643,3647],{"type":993,"tag":1026,"props":3598,"children":3599},{"style":1122},[3600],{"type":998,"value":3100},{"type":993,"tag":1026,"props":3602,"children":3603},{"style":1041},[3604],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3606,"children":3607},{"style":1047},[3608],{"type":998,"value":1831},{"type":993,"tag":1026,"props":3610,"children":3611},{"style":1058},[3612],{"type":998,"value":3613},"\"Position ",{"type":993,"tag":1026,"props":3615,"children":3616},{"style":1122},[3617],{"type":998,"value":1841},{"type":993,"tag":1026,"props":3619,"children":3620},{"style":1041},[3621],{"type":998,"value":1846},{"type":993,"tag":1026,"props":3623,"children":3624},{"style":1122},[3625],{"type":998,"value":1851},{"type":993,"tag":1026,"props":3627,"children":3628},{"style":1058},[3629],{"type":998,"value":3630},": ",{"type":993,"tag":1026,"props":3632,"children":3633},{"style":1122},[3634],{"type":998,"value":1841},{"type":993,"tag":1026,"props":3636,"children":3637},{"style":1041},[3638],{"type":998,"value":3511},{"type":993,"tag":1026,"props":3640,"children":3641},{"style":1122},[3642],{"type":998,"value":1851},{"type":993,"tag":1026,"props":3644,"children":3645},{"style":1058},[3646],{"type":998,"value":3520},{"type":993,"tag":1026,"props":3648,"children":3649},{"style":1041},[3650],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3652,"children":3653},{"class":1028,"line":109},[3654],{"type":993,"tag":1026,"props":3655,"children":3656},{"emptyLinePlaceholder":13},[3657],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3659,"children":3660},{"class":1028,"line":118},[3661],{"type":993,"tag":1026,"props":3662,"children":3663},{"style":1032},[3664],{"type":998,"value":3665},"# Custom start index\n",{"type":993,"tag":1026,"props":3667,"children":3668},{"class":1028,"line":127},[3669,3673,3677,3681,3685,3690],{"type":993,"tag":1026,"props":3670,"children":3671},{"style":1122},[3672],{"type":998,"value":1189},{"type":993,"tag":1026,"props":3674,"children":3675},{"style":1041},[3676],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3678,"children":3679},{"style":1058},[3680],{"type":998,"value":3520},{"type":993,"tag":1026,"props":3682,"children":3683},{"style":1122},[3684],{"type":998,"value":3559},{"type":993,"tag":1026,"props":3686,"children":3687},{"style":1058},[3688],{"type":998,"value":3689},"Scores numbered from 1:\"",{"type":993,"tag":1026,"props":3691,"children":3692},{"style":1041},[3693],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3695,"children":3696},{"class":1028,"line":136},[3697,3701,3706,3710,3714,3719,3723],{"type":993,"tag":1026,"props":3698,"children":3699},{"style":1047},[3700],{"type":998,"value":3468},{"type":993,"tag":1026,"props":3702,"children":3703},{"style":1041},[3704],{"type":998,"value":3705}," position, score ",{"type":993,"tag":1026,"props":3707,"children":3708},{"style":1047},[3709],{"type":998,"value":2751},{"type":993,"tag":1026,"props":3711,"children":3712},{"style":1122},[3713],{"type":998,"value":3224},{"type":993,"tag":1026,"props":3715,"children":3716},{"style":1041},[3717],{"type":998,"value":3718},"(scores, ",{"type":993,"tag":1026,"props":3720,"children":3721},{"style":1122},[3722],{"type":998,"value":1244},{"type":993,"tag":1026,"props":3724,"children":3725},{"style":1041},[3726],{"type":998,"value":3727},"):\n",{"type":993,"tag":1026,"props":3729,"children":3730},{"class":1028,"line":146},[3731,3735,3739,3743,3748,3752,3757,3761,3765,3769,3773,3777,3781],{"type":993,"tag":1026,"props":3732,"children":3733},{"style":1122},[3734],{"type":998,"value":3100},{"type":993,"tag":1026,"props":3736,"children":3737},{"style":1041},[3738],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3740,"children":3741},{"style":1047},[3742],{"type":998,"value":1831},{"type":993,"tag":1026,"props":3744,"children":3745},{"style":1058},[3746],{"type":998,"value":3747},"\"Test ",{"type":993,"tag":1026,"props":3749,"children":3750},{"style":1122},[3751],{"type":998,"value":1841},{"type":993,"tag":1026,"props":3753,"children":3754},{"style":1041},[3755],{"type":998,"value":3756},"position",{"type":993,"tag":1026,"props":3758,"children":3759},{"style":1122},[3760],{"type":998,"value":1851},{"type":993,"tag":1026,"props":3762,"children":3763},{"style":1058},[3764],{"type":998,"value":3630},{"type":993,"tag":1026,"props":3766,"children":3767},{"style":1122},[3768],{"type":998,"value":1841},{"type":993,"tag":1026,"props":3770,"children":3771},{"style":1041},[3772],{"type":998,"value":3511},{"type":993,"tag":1026,"props":3774,"children":3775},{"style":1122},[3776],{"type":998,"value":1851},{"type":993,"tag":1026,"props":3778,"children":3779},{"style":1058},[3780],{"type":998,"value":3520},{"type":993,"tag":1026,"props":3782,"children":3783},{"style":1041},[3784],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3786,"children":3787},{"class":1028,"line":155},[3788],{"type":993,"tag":1026,"props":3789,"children":3790},{"emptyLinePlaceholder":13},[3791],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3793,"children":3794},{"class":1028,"line":164},[3795],{"type":993,"tag":1026,"props":3796,"children":3797},{"style":1032},[3798],{"type":998,"value":3799},"# Using range and len\n",{"type":993,"tag":1026,"props":3801,"children":3802},{"class":1028,"line":173},[3803,3807,3811,3815,3819,3824],{"type":993,"tag":1026,"props":3804,"children":3805},{"style":1122},[3806],{"type":998,"value":1189},{"type":993,"tag":1026,"props":3808,"children":3809},{"style":1041},[3810],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3812,"children":3813},{"style":1058},[3814],{"type":998,"value":3520},{"type":993,"tag":1026,"props":3816,"children":3817},{"style":1122},[3818],{"type":998,"value":3559},{"type":993,"tag":1026,"props":3820,"children":3821},{"style":1058},[3822],{"type":998,"value":3823},"Using range and len:\"",{"type":993,"tag":1026,"props":3825,"children":3826},{"style":1041},[3827],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3829,"children":3830},{"class":1028,"line":182},[3831,3835,3840,3844,3849,3853,3857],{"type":993,"tag":1026,"props":3832,"children":3833},{"style":1047},[3834],{"type":998,"value":3468},{"type":993,"tag":1026,"props":3836,"children":3837},{"style":1041},[3838],{"type":998,"value":3839}," i ",{"type":993,"tag":1026,"props":3841,"children":3842},{"style":1047},[3843],{"type":998,"value":2751},{"type":993,"tag":1026,"props":3845,"children":3846},{"style":1122},[3847],{"type":998,"value":3848}," range",{"type":993,"tag":1026,"props":3850,"children":3851},{"style":1041},[3852],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3854,"children":3855},{"style":1122},[3856],{"type":998,"value":1318},{"type":993,"tag":1026,"props":3858,"children":3859},{"style":1041},[3860],{"type":998,"value":3861},"(scores)):\n",{"type":993,"tag":1026,"props":3863,"children":3864},{"class":1028,"line":191},[3865,3869,3873,3877,3882,3886,3891,3895,3899,3903,3908,3912,3916],{"type":993,"tag":1026,"props":3866,"children":3867},{"style":1122},[3868],{"type":998,"value":3100},{"type":993,"tag":1026,"props":3870,"children":3871},{"style":1041},[3872],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3874,"children":3875},{"style":1047},[3876],{"type":998,"value":1831},{"type":993,"tag":1026,"props":3878,"children":3879},{"style":1058},[3880],{"type":998,"value":3881},"\"Index ",{"type":993,"tag":1026,"props":3883,"children":3884},{"style":1122},[3885],{"type":998,"value":1841},{"type":993,"tag":1026,"props":3887,"children":3888},{"style":1041},[3889],{"type":998,"value":3890},"i",{"type":993,"tag":1026,"props":3892,"children":3893},{"style":1122},[3894],{"type":998,"value":1851},{"type":993,"tag":1026,"props":3896,"children":3897},{"style":1058},[3898],{"type":998,"value":3630},{"type":993,"tag":1026,"props":3900,"children":3901},{"style":1122},[3902],{"type":998,"value":1841},{"type":993,"tag":1026,"props":3904,"children":3905},{"style":1041},[3906],{"type":998,"value":3907},"scores[i]",{"type":993,"tag":1026,"props":3909,"children":3910},{"style":1122},[3911],{"type":998,"value":1851},{"type":993,"tag":1026,"props":3913,"children":3914},{"style":1058},[3915],{"type":998,"value":3520},{"type":993,"tag":1026,"props":3917,"children":3918},{"style":1041},[3919],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3921,"children":3922},{"class":1028,"line":201},[3923],{"type":993,"tag":1026,"props":3924,"children":3925},{"emptyLinePlaceholder":13},[3926],{"type":998,"value":1173},{"type":993,"tag":1026,"props":3928,"children":3929},{"class":1028,"line":210},[3930],{"type":993,"tag":1026,"props":3931,"children":3932},{"style":1032},[3933],{"type":998,"value":3934},"# Conditional iteration\n",{"type":993,"tag":1026,"props":3936,"children":3937},{"class":1028,"line":219},[3938,3942,3946,3950,3954,3959],{"type":993,"tag":1026,"props":3939,"children":3940},{"style":1122},[3941],{"type":998,"value":1189},{"type":993,"tag":1026,"props":3943,"children":3944},{"style":1041},[3945],{"type":998,"value":1194},{"type":993,"tag":1026,"props":3947,"children":3948},{"style":1058},[3949],{"type":998,"value":3520},{"type":993,"tag":1026,"props":3951,"children":3952},{"style":1122},[3953],{"type":998,"value":3559},{"type":993,"tag":1026,"props":3955,"children":3956},{"style":1058},[3957],{"type":998,"value":3958},"High scores (90+):\"",{"type":993,"tag":1026,"props":3960,"children":3961},{"style":1041},[3962],{"type":998,"value":2958},{"type":993,"tag":1026,"props":3964,"children":3965},{"class":1028,"line":228},[3966,3970,3974,3978],{"type":993,"tag":1026,"props":3967,"children":3968},{"style":1047},[3969],{"type":998,"value":3468},{"type":993,"tag":1026,"props":3971,"children":3972},{"style":1041},[3973],{"type":998,"value":3473},{"type":993,"tag":1026,"props":3975,"children":3976},{"style":1047},[3977],{"type":998,"value":2751},{"type":993,"tag":1026,"props":3979,"children":3980},{"style":1041},[3981],{"type":998,"value":3482},{"type":993,"tag":1026,"props":3983,"children":3984},{"class":1028,"line":238},[3985,3990,3994,3999,4004],{"type":993,"tag":1026,"props":3986,"children":3987},{"style":1047},[3988],{"type":998,"value":3989},"    if",{"type":993,"tag":1026,"props":3991,"children":3992},{"style":1041},[3993],{"type":998,"value":3473},{"type":993,"tag":1026,"props":3995,"children":3996},{"style":1047},[3997],{"type":998,"value":3998},">=",{"type":993,"tag":1026,"props":4000,"children":4001},{"style":1122},[4002],{"type":998,"value":4003}," 90",{"type":993,"tag":1026,"props":4005,"children":4006},{"style":1041},[4007],{"type":998,"value":3068},{"type":993,"tag":1026,"props":4009,"children":4010},{"class":1028,"line":247},[4011,4016,4020,4024,4029,4033,4037,4041,4045],{"type":993,"tag":1026,"props":4012,"children":4013},{"style":1122},[4014],{"type":998,"value":4015},"        print",{"type":993,"tag":1026,"props":4017,"children":4018},{"style":1041},[4019],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4021,"children":4022},{"style":1047},[4023],{"type":998,"value":1831},{"type":993,"tag":1026,"props":4025,"children":4026},{"style":1058},[4027],{"type":998,"value":4028},"\"High score: ",{"type":993,"tag":1026,"props":4030,"children":4031},{"style":1122},[4032],{"type":998,"value":1841},{"type":993,"tag":1026,"props":4034,"children":4035},{"style":1041},[4036],{"type":998,"value":3511},{"type":993,"tag":1026,"props":4038,"children":4039},{"style":1122},[4040],{"type":998,"value":1851},{"type":993,"tag":1026,"props":4042,"children":4043},{"style":1058},[4044],{"type":998,"value":3520},{"type":993,"tag":1026,"props":4046,"children":4047},{"style":1041},[4048],{"type":998,"value":2958},{"type":993,"tag":1359,"props":4050,"children":4052},{"id":4051},"list-information-methods",[4053],{"type":998,"value":4054},"List Information Methods",{"type":993,"tag":1001,"props":4056,"children":4057},{},[4058],{"type":998,"value":4059},"Python provides built-in functions and methods to get information about lists, such as length, minimum and maximum values, and sum of numeric lists.",{"type":993,"tag":1001,"props":4061,"children":4062},{},[4063],{"type":998,"value":4064},"These information methods are essential for data analysis and validation tasks.",{"type":993,"tag":1376,"props":4066,"children":4070},{"emoji":4067,"title":4068,"type":4069},"📊","Information Methods","warning",[4071,4079,4125,4133,4158],{"type":993,"tag":1001,"props":4072,"children":4073},{},[4074],{"type":993,"tag":1386,"props":4075,"children":4076},{},[4077],{"type":998,"value":4078},"Numeric Operations:",{"type":993,"tag":1392,"props":4080,"children":4081},{},[4082,4092,4103,4114],{"type":993,"tag":1396,"props":4083,"children":4084},{},[4085,4090],{"type":993,"tag":1022,"props":4086,"children":4088},{"className":4087},[],[4089],{"type":998,"value":1452},{"type":998,"value":4091},": Number of items",{"type":993,"tag":1396,"props":4093,"children":4094},{},[4095,4101],{"type":993,"tag":1022,"props":4096,"children":4098},{"className":4097},[],[4099],{"type":998,"value":4100},"min(list)",{"type":998,"value":4102},": Smallest value",{"type":993,"tag":1396,"props":4104,"children":4105},{},[4106,4112],{"type":993,"tag":1022,"props":4107,"children":4109},{"className":4108},[],[4110],{"type":998,"value":4111},"max(list)",{"type":998,"value":4113},": Largest value",{"type":993,"tag":1396,"props":4115,"children":4116},{},[4117,4123],{"type":993,"tag":1022,"props":4118,"children":4120},{"className":4119},[],[4121],{"type":998,"value":4122},"sum(list)",{"type":998,"value":4124},": Total of numeric values",{"type":993,"tag":1001,"props":4126,"children":4127},{},[4128],{"type":993,"tag":1386,"props":4129,"children":4130},{},[4131],{"type":998,"value":4132},"Boolean Operations:",{"type":993,"tag":1392,"props":4134,"children":4135},{},[4136,4147],{"type":993,"tag":1396,"props":4137,"children":4138},{},[4139,4145],{"type":993,"tag":1022,"props":4140,"children":4142},{"className":4141},[],[4143],{"type":998,"value":4144},"any(list)",{"type":998,"value":4146},": True if any item is truthy",{"type":993,"tag":1396,"props":4148,"children":4149},{},[4150,4156],{"type":993,"tag":1022,"props":4151,"children":4153},{"className":4152},[],[4154],{"type":998,"value":4155},"all(list)",{"type":998,"value":4157},": True if all items are truthy",{"type":993,"tag":1001,"props":4159,"children":4160},{},[4161,4166],{"type":993,"tag":1386,"props":4162,"children":4163},{},[4164],{"type":998,"value":4165},"Note:",{"type":998,"value":4167}," min/max work with strings (alphabetical) and numbers",{"type":993,"tag":1466,"props":4169,"children":4171},{"id":4170},"information-examples",[4172],{"type":998,"value":4173},"Information Examples",{"type":993,"tag":1001,"props":4175,"children":4176},{},[4177],{"type":998,"value":4178},"Getting insights about list contents:",{"type":993,"tag":1012,"props":4180,"children":4181},{},[4182],{"type":993,"tag":1016,"props":4183,"children":4185},{"className":1018,"code":4184,"language":6,"meta":8,"style":8},"# Basic information\nnumbers = [15, 8, 23, 42, 4, 16, 35]\nprint(\"Numbers:\", numbers)\nprint(\"Length:\", len(numbers))\nprint(\"Minimum:\", min(numbers))\nprint(\"Maximum:\", max(numbers))\nprint(\"Sum:\", sum(numbers))\nprint(\"Average:\", sum(numbers) / len(numbers))\n\n# String list information\nnames = [\"Alice\", \"Bob\", \"Charlie\", \"Diana\"]\nprint(\"\\nNames:\", names)\nprint(\"Length:\", len(names))\nprint(\"First alphabetically:\", min(names))\nprint(\"Last alphabetically:\", max(names))\n\n# Checking list properties\nprint(\"\\nList properties:\")\nprint(\"Is numbers list empty?\", len(numbers) == 0)\nprint(\"Are all numbers positive?\", all(n > 0 for n in numbers))\nprint(\"Are any numbers > 30?\", any(n > 30 for n in numbers))\n\n# Getting unique values (using set)\nrepeated_numbers = [1, 2, 2, 3, 3, 3, 4]\nunique_values = list(set(repeated_numbers))\nprint(\"\\nOriginal:\", repeated_numbers)\nprint(\"Unique values:\", unique_values)\n",[4186],{"type":993,"tag":1022,"props":4187,"children":4188},{"__ignoreMap":8},[4189,4197,4273,4294,4323,4352,4381,4410,4453,4460,4468,4520,4549,4577,4605,4633,4640,4648,4676,4717,4775,4829,4836,4844,4916,4947,4976],{"type":993,"tag":1026,"props":4190,"children":4191},{"class":1028,"line":12},[4192],{"type":993,"tag":1026,"props":4193,"children":4194},{"style":1032},[4195],{"type":998,"value":4196},"# Basic information\n",{"type":993,"tag":1026,"props":4198,"children":4199},{"class":1028,"line":27},[4200,4204,4208,4212,4217,4221,4225,4229,4234,4238,4243,4247,4251,4255,4260,4264,4269],{"type":993,"tag":1026,"props":4201,"children":4202},{"style":1041},[4203],{"type":998,"value":1111},{"type":993,"tag":1026,"props":4205,"children":4206},{"style":1047},[4207],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4209,"children":4210},{"style":1041},[4211],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4213,"children":4214},{"style":1122},[4215],{"type":998,"value":4216},"15",{"type":993,"tag":1026,"props":4218,"children":4219},{"style":1041},[4220],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4222,"children":4223},{"style":1122},[4224],{"type":998,"value":2222},{"type":993,"tag":1026,"props":4226,"children":4227},{"style":1041},[4228],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4230,"children":4231},{"style":1122},[4232],{"type":998,"value":4233},"23",{"type":993,"tag":1026,"props":4235,"children":4236},{"style":1041},[4237],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4239,"children":4240},{"style":1122},[4241],{"type":998,"value":4242},"42",{"type":993,"tag":1026,"props":4244,"children":4245},{"style":1041},[4246],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4248,"children":4249},{"style":1122},[4250],{"type":998,"value":2186},{"type":993,"tag":1026,"props":4252,"children":4253},{"style":1041},[4254],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4256,"children":4257},{"style":1122},[4258],{"type":998,"value":4259},"16",{"type":993,"tag":1026,"props":4261,"children":4262},{"style":1041},[4263],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4265,"children":4266},{"style":1122},[4267],{"type":998,"value":4268},"35",{"type":993,"tag":1026,"props":4270,"children":4271},{"style":1041},[4272],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4274,"children":4275},{"class":1028,"line":36},[4276,4280,4284,4289],{"type":993,"tag":1026,"props":4277,"children":4278},{"style":1122},[4279],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4281,"children":4282},{"style":1041},[4283],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4285,"children":4286},{"style":1058},[4287],{"type":998,"value":4288},"\"Numbers:\"",{"type":993,"tag":1026,"props":4290,"children":4291},{"style":1041},[4292],{"type":998,"value":4293},", numbers)\n",{"type":993,"tag":1026,"props":4295,"children":4296},{"class":1028,"line":45},[4297,4301,4305,4310,4314,4318],{"type":993,"tag":1026,"props":4298,"children":4299},{"style":1122},[4300],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4302,"children":4303},{"style":1041},[4304],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4306,"children":4307},{"style":1058},[4308],{"type":998,"value":4309},"\"Length:\"",{"type":993,"tag":1026,"props":4311,"children":4312},{"style":1041},[4313],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4315,"children":4316},{"style":1122},[4317],{"type":998,"value":1318},{"type":993,"tag":1026,"props":4319,"children":4320},{"style":1041},[4321],{"type":998,"value":4322},"(numbers))\n",{"type":993,"tag":1026,"props":4324,"children":4325},{"class":1028,"line":54},[4326,4330,4334,4339,4343,4348],{"type":993,"tag":1026,"props":4327,"children":4328},{"style":1122},[4329],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4331,"children":4332},{"style":1041},[4333],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4335,"children":4336},{"style":1058},[4337],{"type":998,"value":4338},"\"Minimum:\"",{"type":993,"tag":1026,"props":4340,"children":4341},{"style":1041},[4342],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4344,"children":4345},{"style":1122},[4346],{"type":998,"value":4347},"min",{"type":993,"tag":1026,"props":4349,"children":4350},{"style":1041},[4351],{"type":998,"value":4322},{"type":993,"tag":1026,"props":4353,"children":4354},{"class":1028,"line":63},[4355,4359,4363,4368,4372,4377],{"type":993,"tag":1026,"props":4356,"children":4357},{"style":1122},[4358],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4360,"children":4361},{"style":1041},[4362],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4364,"children":4365},{"style":1058},[4366],{"type":998,"value":4367},"\"Maximum:\"",{"type":993,"tag":1026,"props":4369,"children":4370},{"style":1041},[4371],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4373,"children":4374},{"style":1122},[4375],{"type":998,"value":4376},"max",{"type":993,"tag":1026,"props":4378,"children":4379},{"style":1041},[4380],{"type":998,"value":4322},{"type":993,"tag":1026,"props":4382,"children":4383},{"class":1028,"line":72},[4384,4388,4392,4397,4401,4406],{"type":993,"tag":1026,"props":4385,"children":4386},{"style":1122},[4387],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4389,"children":4390},{"style":1041},[4391],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4393,"children":4394},{"style":1058},[4395],{"type":998,"value":4396},"\"Sum:\"",{"type":993,"tag":1026,"props":4398,"children":4399},{"style":1041},[4400],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4402,"children":4403},{"style":1122},[4404],{"type":998,"value":4405},"sum",{"type":993,"tag":1026,"props":4407,"children":4408},{"style":1041},[4409],{"type":998,"value":4322},{"type":993,"tag":1026,"props":4411,"children":4412},{"class":1028,"line":81},[4413,4417,4421,4426,4430,4434,4439,4444,4449],{"type":993,"tag":1026,"props":4414,"children":4415},{"style":1122},[4416],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4418,"children":4419},{"style":1041},[4420],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4422,"children":4423},{"style":1058},[4424],{"type":998,"value":4425},"\"Average:\"",{"type":993,"tag":1026,"props":4427,"children":4428},{"style":1041},[4429],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4431,"children":4432},{"style":1122},[4433],{"type":998,"value":4405},{"type":993,"tag":1026,"props":4435,"children":4436},{"style":1041},[4437],{"type":998,"value":4438},"(numbers) ",{"type":993,"tag":1026,"props":4440,"children":4441},{"style":1047},[4442],{"type":998,"value":4443},"/",{"type":993,"tag":1026,"props":4445,"children":4446},{"style":1122},[4447],{"type":998,"value":4448}," len",{"type":993,"tag":1026,"props":4450,"children":4451},{"style":1041},[4452],{"type":998,"value":4322},{"type":993,"tag":1026,"props":4454,"children":4455},{"class":1028,"line":91},[4456],{"type":993,"tag":1026,"props":4457,"children":4458},{"emptyLinePlaceholder":13},[4459],{"type":998,"value":1173},{"type":993,"tag":1026,"props":4461,"children":4462},{"class":1028,"line":100},[4463],{"type":993,"tag":1026,"props":4464,"children":4465},{"style":1032},[4466],{"type":998,"value":4467},"# String list information\n",{"type":993,"tag":1026,"props":4469,"children":4470},{"class":1028,"line":109},[4471,4476,4480,4484,4489,4493,4498,4502,4507,4511,4516],{"type":993,"tag":1026,"props":4472,"children":4473},{"style":1041},[4474],{"type":998,"value":4475},"names ",{"type":993,"tag":1026,"props":4477,"children":4478},{"style":1047},[4479],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4481,"children":4482},{"style":1041},[4483],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4485,"children":4486},{"style":1058},[4487],{"type":998,"value":4488},"\"Alice\"",{"type":993,"tag":1026,"props":4490,"children":4491},{"style":1041},[4492],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4494,"children":4495},{"style":1058},[4496],{"type":998,"value":4497},"\"Bob\"",{"type":993,"tag":1026,"props":4499,"children":4500},{"style":1041},[4501],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4503,"children":4504},{"style":1058},[4505],{"type":998,"value":4506},"\"Charlie\"",{"type":993,"tag":1026,"props":4508,"children":4509},{"style":1041},[4510],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4512,"children":4513},{"style":1058},[4514],{"type":998,"value":4515},"\"Diana\"",{"type":993,"tag":1026,"props":4517,"children":4518},{"style":1041},[4519],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4521,"children":4522},{"class":1028,"line":118},[4523,4527,4531,4535,4539,4544],{"type":993,"tag":1026,"props":4524,"children":4525},{"style":1122},[4526],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4528,"children":4529},{"style":1041},[4530],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4532,"children":4533},{"style":1058},[4534],{"type":998,"value":3520},{"type":993,"tag":1026,"props":4536,"children":4537},{"style":1122},[4538],{"type":998,"value":3559},{"type":993,"tag":1026,"props":4540,"children":4541},{"style":1058},[4542],{"type":998,"value":4543},"Names:\"",{"type":993,"tag":1026,"props":4545,"children":4546},{"style":1041},[4547],{"type":998,"value":4548},", names)\n",{"type":993,"tag":1026,"props":4550,"children":4551},{"class":1028,"line":127},[4552,4556,4560,4564,4568,4572],{"type":993,"tag":1026,"props":4553,"children":4554},{"style":1122},[4555],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4557,"children":4558},{"style":1041},[4559],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4561,"children":4562},{"style":1058},[4563],{"type":998,"value":4309},{"type":993,"tag":1026,"props":4565,"children":4566},{"style":1041},[4567],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4569,"children":4570},{"style":1122},[4571],{"type":998,"value":1318},{"type":993,"tag":1026,"props":4573,"children":4574},{"style":1041},[4575],{"type":998,"value":4576},"(names))\n",{"type":993,"tag":1026,"props":4578,"children":4579},{"class":1028,"line":136},[4580,4584,4588,4593,4597,4601],{"type":993,"tag":1026,"props":4581,"children":4582},{"style":1122},[4583],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4585,"children":4586},{"style":1041},[4587],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4589,"children":4590},{"style":1058},[4591],{"type":998,"value":4592},"\"First alphabetically:\"",{"type":993,"tag":1026,"props":4594,"children":4595},{"style":1041},[4596],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4598,"children":4599},{"style":1122},[4600],{"type":998,"value":4347},{"type":993,"tag":1026,"props":4602,"children":4603},{"style":1041},[4604],{"type":998,"value":4576},{"type":993,"tag":1026,"props":4606,"children":4607},{"class":1028,"line":146},[4608,4612,4616,4621,4625,4629],{"type":993,"tag":1026,"props":4609,"children":4610},{"style":1122},[4611],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4613,"children":4614},{"style":1041},[4615],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4617,"children":4618},{"style":1058},[4619],{"type":998,"value":4620},"\"Last alphabetically:\"",{"type":993,"tag":1026,"props":4622,"children":4623},{"style":1041},[4624],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4626,"children":4627},{"style":1122},[4628],{"type":998,"value":4376},{"type":993,"tag":1026,"props":4630,"children":4631},{"style":1041},[4632],{"type":998,"value":4576},{"type":993,"tag":1026,"props":4634,"children":4635},{"class":1028,"line":155},[4636],{"type":993,"tag":1026,"props":4637,"children":4638},{"emptyLinePlaceholder":13},[4639],{"type":998,"value":1173},{"type":993,"tag":1026,"props":4641,"children":4642},{"class":1028,"line":164},[4643],{"type":993,"tag":1026,"props":4644,"children":4645},{"style":1032},[4646],{"type":998,"value":4647},"# Checking list properties\n",{"type":993,"tag":1026,"props":4649,"children":4650},{"class":1028,"line":173},[4651,4655,4659,4663,4667,4672],{"type":993,"tag":1026,"props":4652,"children":4653},{"style":1122},[4654],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4656,"children":4657},{"style":1041},[4658],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4660,"children":4661},{"style":1058},[4662],{"type":998,"value":3520},{"type":993,"tag":1026,"props":4664,"children":4665},{"style":1122},[4666],{"type":998,"value":3559},{"type":993,"tag":1026,"props":4668,"children":4669},{"style":1058},[4670],{"type":998,"value":4671},"List properties:\"",{"type":993,"tag":1026,"props":4673,"children":4674},{"style":1041},[4675],{"type":998,"value":2958},{"type":993,"tag":1026,"props":4677,"children":4678},{"class":1028,"line":182},[4679,4683,4687,4692,4696,4700,4704,4708,4713],{"type":993,"tag":1026,"props":4680,"children":4681},{"style":1122},[4682],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4684,"children":4685},{"style":1041},[4686],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4688,"children":4689},{"style":1058},[4690],{"type":998,"value":4691},"\"Is numbers list empty?\"",{"type":993,"tag":1026,"props":4693,"children":4694},{"style":1041},[4695],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4697,"children":4698},{"style":1122},[4699],{"type":998,"value":1318},{"type":993,"tag":1026,"props":4701,"children":4702},{"style":1041},[4703],{"type":998,"value":4438},{"type":993,"tag":1026,"props":4705,"children":4706},{"style":1047},[4707],{"type":998,"value":3247},{"type":993,"tag":1026,"props":4709,"children":4710},{"style":1122},[4711],{"type":998,"value":4712}," 0",{"type":993,"tag":1026,"props":4714,"children":4715},{"style":1041},[4716],{"type":998,"value":2958},{"type":993,"tag":1026,"props":4718,"children":4719},{"class":1028,"line":191},[4720,4724,4728,4733,4737,4742,4747,4752,4756,4761,4766,4770],{"type":993,"tag":1026,"props":4721,"children":4722},{"style":1122},[4723],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4725,"children":4726},{"style":1041},[4727],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4729,"children":4730},{"style":1058},[4731],{"type":998,"value":4732},"\"Are all numbers positive?\"",{"type":993,"tag":1026,"props":4734,"children":4735},{"style":1041},[4736],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4738,"children":4739},{"style":1122},[4740],{"type":998,"value":4741},"all",{"type":993,"tag":1026,"props":4743,"children":4744},{"style":1041},[4745],{"type":998,"value":4746},"(n ",{"type":993,"tag":1026,"props":4748,"children":4749},{"style":1047},[4750],{"type":998,"value":4751},">",{"type":993,"tag":1026,"props":4753,"children":4754},{"style":1122},[4755],{"type":998,"value":4712},{"type":993,"tag":1026,"props":4757,"children":4758},{"style":1047},[4759],{"type":998,"value":4760}," for",{"type":993,"tag":1026,"props":4762,"children":4763},{"style":1041},[4764],{"type":998,"value":4765}," n ",{"type":993,"tag":1026,"props":4767,"children":4768},{"style":1047},[4769],{"type":998,"value":2751},{"type":993,"tag":1026,"props":4771,"children":4772},{"style":1041},[4773],{"type":998,"value":4774}," numbers))\n",{"type":993,"tag":1026,"props":4776,"children":4777},{"class":1028,"line":201},[4778,4782,4786,4791,4795,4800,4804,4808,4813,4817,4821,4825],{"type":993,"tag":1026,"props":4779,"children":4780},{"style":1122},[4781],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4783,"children":4784},{"style":1041},[4785],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4787,"children":4788},{"style":1058},[4789],{"type":998,"value":4790},"\"Are any numbers > 30?\"",{"type":993,"tag":1026,"props":4792,"children":4793},{"style":1041},[4794],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4796,"children":4797},{"style":1122},[4798],{"type":998,"value":4799},"any",{"type":993,"tag":1026,"props":4801,"children":4802},{"style":1041},[4803],{"type":998,"value":4746},{"type":993,"tag":1026,"props":4805,"children":4806},{"style":1047},[4807],{"type":998,"value":4751},{"type":993,"tag":1026,"props":4809,"children":4810},{"style":1122},[4811],{"type":998,"value":4812}," 30",{"type":993,"tag":1026,"props":4814,"children":4815},{"style":1047},[4816],{"type":998,"value":4760},{"type":993,"tag":1026,"props":4818,"children":4819},{"style":1041},[4820],{"type":998,"value":4765},{"type":993,"tag":1026,"props":4822,"children":4823},{"style":1047},[4824],{"type":998,"value":2751},{"type":993,"tag":1026,"props":4826,"children":4827},{"style":1041},[4828],{"type":998,"value":4774},{"type":993,"tag":1026,"props":4830,"children":4831},{"class":1028,"line":210},[4832],{"type":993,"tag":1026,"props":4833,"children":4834},{"emptyLinePlaceholder":13},[4835],{"type":998,"value":1173},{"type":993,"tag":1026,"props":4837,"children":4838},{"class":1028,"line":219},[4839],{"type":993,"tag":1026,"props":4840,"children":4841},{"style":1032},[4842],{"type":998,"value":4843},"# Getting unique values (using set)\n",{"type":993,"tag":1026,"props":4845,"children":4846},{"class":1028,"line":228},[4847,4852,4856,4860,4864,4868,4872,4876,4880,4884,4888,4892,4896,4900,4904,4908,4912],{"type":993,"tag":1026,"props":4848,"children":4849},{"style":1041},[4850],{"type":998,"value":4851},"repeated_numbers ",{"type":993,"tag":1026,"props":4853,"children":4854},{"style":1047},[4855],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4857,"children":4858},{"style":1041},[4859],{"type":998,"value":1055},{"type":993,"tag":1026,"props":4861,"children":4862},{"style":1122},[4863],{"type":998,"value":1244},{"type":993,"tag":1026,"props":4865,"children":4866},{"style":1041},[4867],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4869,"children":4870},{"style":1122},[4871],{"type":998,"value":1274},{"type":993,"tag":1026,"props":4873,"children":4874},{"style":1041},[4875],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4877,"children":4878},{"style":1122},[4879],{"type":998,"value":1274},{"type":993,"tag":1026,"props":4881,"children":4882},{"style":1041},[4883],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4885,"children":4886},{"style":1122},[4887],{"type":998,"value":1775},{"type":993,"tag":1026,"props":4889,"children":4890},{"style":1041},[4891],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4893,"children":4894},{"style":1122},[4895],{"type":998,"value":1775},{"type":993,"tag":1026,"props":4897,"children":4898},{"style":1041},[4899],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4901,"children":4902},{"style":1122},[4903],{"type":998,"value":1775},{"type":993,"tag":1026,"props":4905,"children":4906},{"style":1041},[4907],{"type":998,"value":1066},{"type":993,"tag":1026,"props":4909,"children":4910},{"style":1122},[4911],{"type":998,"value":2186},{"type":993,"tag":1026,"props":4913,"children":4914},{"style":1041},[4915],{"type":998,"value":1103},{"type":993,"tag":1026,"props":4917,"children":4918},{"class":1028,"line":238},[4919,4924,4928,4933,4937,4942],{"type":993,"tag":1026,"props":4920,"children":4921},{"style":1041},[4922],{"type":998,"value":4923},"unique_values ",{"type":993,"tag":1026,"props":4925,"children":4926},{"style":1047},[4927],{"type":998,"value":1050},{"type":993,"tag":1026,"props":4929,"children":4930},{"style":1122},[4931],{"type":998,"value":4932}," list",{"type":993,"tag":1026,"props":4934,"children":4935},{"style":1041},[4936],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4938,"children":4939},{"style":1122},[4940],{"type":998,"value":4941},"set",{"type":993,"tag":1026,"props":4943,"children":4944},{"style":1041},[4945],{"type":998,"value":4946},"(repeated_numbers))\n",{"type":993,"tag":1026,"props":4948,"children":4949},{"class":1028,"line":247},[4950,4954,4958,4962,4966,4971],{"type":993,"tag":1026,"props":4951,"children":4952},{"style":1122},[4953],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4955,"children":4956},{"style":1041},[4957],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4959,"children":4960},{"style":1058},[4961],{"type":998,"value":3520},{"type":993,"tag":1026,"props":4963,"children":4964},{"style":1122},[4965],{"type":998,"value":3559},{"type":993,"tag":1026,"props":4967,"children":4968},{"style":1058},[4969],{"type":998,"value":4970},"Original:\"",{"type":993,"tag":1026,"props":4972,"children":4973},{"style":1041},[4974],{"type":998,"value":4975},", repeated_numbers)\n",{"type":993,"tag":1026,"props":4977,"children":4978},{"class":1028,"line":256},[4979,4983,4987,4992],{"type":993,"tag":1026,"props":4980,"children":4981},{"style":1122},[4982],{"type":998,"value":1189},{"type":993,"tag":1026,"props":4984,"children":4985},{"style":1041},[4986],{"type":998,"value":1194},{"type":993,"tag":1026,"props":4988,"children":4989},{"style":1058},[4990],{"type":998,"value":4991},"\"Unique values:\"",{"type":993,"tag":1026,"props":4993,"children":4994},{"style":1041},[4995],{"type":998,"value":4996},", unique_values)\n",{"type":993,"tag":1359,"props":4998,"children":5000},{"id":4999},"advanced-reading-techniques",[5001],{"type":998,"value":5002},"Advanced Reading Techniques",{"type":993,"tag":1001,"props":5004,"children":5005},{},[5006],{"type":998,"value":5007},"Beyond basic access methods, Python offers advanced techniques for reading list data, including unpacking, filtering, and using built-in functions for complex operations.",{"type":993,"tag":1001,"props":5009,"children":5010},{},[5011],{"type":998,"value":5012},"These advanced techniques enable sophisticated data processing and manipulation.",{"type":993,"tag":1466,"props":5014,"children":5016},{"id":5015},"advanced-examples",[5017],{"type":998,"value":5018},"Advanced Examples",{"type":993,"tag":1001,"props":5020,"children":5021},{},[5022],{"type":998,"value":5023},"Powerful techniques for complex data operations:",{"type":993,"tag":1012,"props":5025,"children":5026},{},[5027],{"type":993,"tag":1016,"props":5028,"children":5030},{"className":1018,"code":5029,"language":6,"meta":8,"style":8},"# List unpacking\ncoordinates = [10, 20, 30]\nx, y, z = coordinates\nprint(f\"Coordinates: x={x}, y={y}, z={z}\")\n\n# * Partial unpacking with\nnumbers = [1, 2, 3, 4, 5, 6]\nfirst, second, *rest = numbers\nprint(f\"First: {first}, Second: {second}, Rest: {rest}\")\n\n# Filtering with list comprehensions\nscores = [85, 92, 78, 96, 88, 73, 91]\nhigh_scores = [score for score in scores if score >= 90]\nprint(\"High scores:\", high_scores)\n\n# Using filter() function\ndef is_even(n):\n    return n % 2 == 0\n\nnumbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\neven_numbers = list(filter(is_even, numbers))\nprint(\"Even numbers:\", even_numbers)\n\n# Using map() for transformation\nwords = [\"hello\", \"world\", \"python\"]\nlengths = list(map(len, words))\nprint(\"Word lengths:\", lengths)\n\n# Combining techniques\ndata = [(\"Alice\", 85), (\"Bob\", 92), (\"Charlie\", 78)]\nnames = [item[0] for item in data]\nscores = [item[1] for item in data]\nprint(\"Names:\", names)\nprint(\"Scores:\", scores)\n",[5031],{"type":993,"tag":1022,"props":5032,"children":5033},{"__ignoreMap":8},[5034,5042,5082,5099,5176,5183,5191,5254,5281,5358,5365,5373,5446,5501,5522,5529,5537,5554,5585,5592,5687,5717,5738,5745,5753,5796,5834,5855,5862,5870,5937,5980,6019,6039],{"type":993,"tag":1026,"props":5035,"children":5036},{"class":1028,"line":12},[5037],{"type":993,"tag":1026,"props":5038,"children":5039},{"style":1032},[5040],{"type":998,"value":5041},"# List unpacking\n",{"type":993,"tag":1026,"props":5043,"children":5044},{"class":1028,"line":27},[5045,5050,5054,5058,5062,5066,5070,5074,5078],{"type":993,"tag":1026,"props":5046,"children":5047},{"style":1041},[5048],{"type":998,"value":5049},"coordinates ",{"type":993,"tag":1026,"props":5051,"children":5052},{"style":1047},[5053],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5055,"children":5056},{"style":1041},[5057],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5059,"children":5060},{"style":1122},[5061],{"type":998,"value":1125},{"type":993,"tag":1026,"props":5063,"children":5064},{"style":1041},[5065],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5067,"children":5068},{"style":1122},[5069],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5071,"children":5072},{"style":1041},[5073],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5075,"children":5076},{"style":1122},[5077],{"type":998,"value":1143},{"type":993,"tag":1026,"props":5079,"children":5080},{"style":1041},[5081],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5083,"children":5084},{"class":1028,"line":36},[5085,5090,5094],{"type":993,"tag":1026,"props":5086,"children":5087},{"style":1041},[5088],{"type":998,"value":5089},"x, y, z ",{"type":993,"tag":1026,"props":5091,"children":5092},{"style":1047},[5093],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5095,"children":5096},{"style":1041},[5097],{"type":998,"value":5098}," coordinates\n",{"type":993,"tag":1026,"props":5100,"children":5101},{"class":1028,"line":45},[5102,5106,5110,5114,5119,5123,5128,5132,5137,5141,5146,5150,5155,5159,5164,5168,5172],{"type":993,"tag":1026,"props":5103,"children":5104},{"style":1122},[5105],{"type":998,"value":1189},{"type":993,"tag":1026,"props":5107,"children":5108},{"style":1041},[5109],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5111,"children":5112},{"style":1047},[5113],{"type":998,"value":1831},{"type":993,"tag":1026,"props":5115,"children":5116},{"style":1058},[5117],{"type":998,"value":5118},"\"Coordinates: x=",{"type":993,"tag":1026,"props":5120,"children":5121},{"style":1122},[5122],{"type":998,"value":1841},{"type":993,"tag":1026,"props":5124,"children":5125},{"style":1041},[5126],{"type":998,"value":5127},"x",{"type":993,"tag":1026,"props":5129,"children":5130},{"style":1122},[5131],{"type":998,"value":1851},{"type":993,"tag":1026,"props":5133,"children":5134},{"style":1058},[5135],{"type":998,"value":5136},", y=",{"type":993,"tag":1026,"props":5138,"children":5139},{"style":1122},[5140],{"type":998,"value":1841},{"type":993,"tag":1026,"props":5142,"children":5143},{"style":1041},[5144],{"type":998,"value":5145},"y",{"type":993,"tag":1026,"props":5147,"children":5148},{"style":1122},[5149],{"type":998,"value":1851},{"type":993,"tag":1026,"props":5151,"children":5152},{"style":1058},[5153],{"type":998,"value":5154},", z=",{"type":993,"tag":1026,"props":5156,"children":5157},{"style":1122},[5158],{"type":998,"value":1841},{"type":993,"tag":1026,"props":5160,"children":5161},{"style":1041},[5162],{"type":998,"value":5163},"z",{"type":993,"tag":1026,"props":5165,"children":5166},{"style":1122},[5167],{"type":998,"value":1851},{"type":993,"tag":1026,"props":5169,"children":5170},{"style":1058},[5171],{"type":998,"value":3520},{"type":993,"tag":1026,"props":5173,"children":5174},{"style":1041},[5175],{"type":998,"value":2958},{"type":993,"tag":1026,"props":5177,"children":5178},{"class":1028,"line":54},[5179],{"type":993,"tag":1026,"props":5180,"children":5181},{"emptyLinePlaceholder":13},[5182],{"type":998,"value":1173},{"type":993,"tag":1026,"props":5184,"children":5185},{"class":1028,"line":63},[5186],{"type":993,"tag":1026,"props":5187,"children":5188},{"style":1032},[5189],{"type":998,"value":5190},"# * Partial unpacking with\n",{"type":993,"tag":1026,"props":5192,"children":5193},{"class":1028,"line":72},[5194,5198,5202,5206,5210,5214,5218,5222,5226,5230,5234,5238,5242,5246,5250],{"type":993,"tag":1026,"props":5195,"children":5196},{"style":1041},[5197],{"type":998,"value":1111},{"type":993,"tag":1026,"props":5199,"children":5200},{"style":1047},[5201],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5203,"children":5204},{"style":1041},[5205],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5207,"children":5208},{"style":1122},[5209],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5211,"children":5212},{"style":1041},[5213],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5215,"children":5216},{"style":1122},[5217],{"type":998,"value":1274},{"type":993,"tag":1026,"props":5219,"children":5220},{"style":1041},[5221],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5223,"children":5224},{"style":1122},[5225],{"type":998,"value":1775},{"type":993,"tag":1026,"props":5227,"children":5228},{"style":1041},[5229],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5231,"children":5232},{"style":1122},[5233],{"type":998,"value":2186},{"type":993,"tag":1026,"props":5235,"children":5236},{"style":1041},[5237],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5239,"children":5240},{"style":1122},[5241],{"type":998,"value":2195},{"type":993,"tag":1026,"props":5243,"children":5244},{"style":1041},[5245],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5247,"children":5248},{"style":1122},[5249],{"type":998,"value":2204},{"type":993,"tag":1026,"props":5251,"children":5252},{"style":1041},[5253],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5255,"children":5256},{"class":1028,"line":81},[5257,5262,5267,5272,5276],{"type":993,"tag":1026,"props":5258,"children":5259},{"style":1041},[5260],{"type":998,"value":5261},"first, second, ",{"type":993,"tag":1026,"props":5263,"children":5264},{"style":1047},[5265],{"type":998,"value":5266},"*",{"type":993,"tag":1026,"props":5268,"children":5269},{"style":1041},[5270],{"type":998,"value":5271},"rest ",{"type":993,"tag":1026,"props":5273,"children":5274},{"style":1047},[5275],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5277,"children":5278},{"style":1041},[5279],{"type":998,"value":5280}," numbers\n",{"type":993,"tag":1026,"props":5282,"children":5283},{"class":1028,"line":91},[5284,5288,5292,5296,5301,5305,5310,5314,5319,5323,5328,5332,5337,5341,5346,5350,5354],{"type":993,"tag":1026,"props":5285,"children":5286},{"style":1122},[5287],{"type":998,"value":1189},{"type":993,"tag":1026,"props":5289,"children":5290},{"style":1041},[5291],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5293,"children":5294},{"style":1047},[5295],{"type":998,"value":1831},{"type":993,"tag":1026,"props":5297,"children":5298},{"style":1058},[5299],{"type":998,"value":5300},"\"First: ",{"type":993,"tag":1026,"props":5302,"children":5303},{"style":1122},[5304],{"type":998,"value":1841},{"type":993,"tag":1026,"props":5306,"children":5307},{"style":1041},[5308],{"type":998,"value":5309},"first",{"type":993,"tag":1026,"props":5311,"children":5312},{"style":1122},[5313],{"type":998,"value":1851},{"type":993,"tag":1026,"props":5315,"children":5316},{"style":1058},[5317],{"type":998,"value":5318},", Second: ",{"type":993,"tag":1026,"props":5320,"children":5321},{"style":1122},[5322],{"type":998,"value":1841},{"type":993,"tag":1026,"props":5324,"children":5325},{"style":1041},[5326],{"type":998,"value":5327},"second",{"type":993,"tag":1026,"props":5329,"children":5330},{"style":1122},[5331],{"type":998,"value":1851},{"type":993,"tag":1026,"props":5333,"children":5334},{"style":1058},[5335],{"type":998,"value":5336},", Rest: ",{"type":993,"tag":1026,"props":5338,"children":5339},{"style":1122},[5340],{"type":998,"value":1841},{"type":993,"tag":1026,"props":5342,"children":5343},{"style":1041},[5344],{"type":998,"value":5345},"rest",{"type":993,"tag":1026,"props":5347,"children":5348},{"style":1122},[5349],{"type":998,"value":1851},{"type":993,"tag":1026,"props":5351,"children":5352},{"style":1058},[5353],{"type":998,"value":3520},{"type":993,"tag":1026,"props":5355,"children":5356},{"style":1041},[5357],{"type":998,"value":2958},{"type":993,"tag":1026,"props":5359,"children":5360},{"class":1028,"line":100},[5361],{"type":993,"tag":1026,"props":5362,"children":5363},{"emptyLinePlaceholder":13},[5364],{"type":998,"value":1173},{"type":993,"tag":1026,"props":5366,"children":5367},{"class":1028,"line":109},[5368],{"type":993,"tag":1026,"props":5369,"children":5370},{"style":1032},[5371],{"type":998,"value":5372},"# Filtering with list comprehensions\n",{"type":993,"tag":1026,"props":5374,"children":5375},{"class":1028,"line":118},[5376,5380,5384,5388,5392,5396,5400,5404,5408,5412,5416,5420,5424,5428,5433,5437,5442],{"type":993,"tag":1026,"props":5377,"children":5378},{"style":1041},[5379],{"type":998,"value":3387},{"type":993,"tag":1026,"props":5381,"children":5382},{"style":1047},[5383],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5385,"children":5386},{"style":1041},[5387],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5389,"children":5390},{"style":1122},[5391],{"type":998,"value":3400},{"type":993,"tag":1026,"props":5393,"children":5394},{"style":1041},[5395],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5397,"children":5398},{"style":1122},[5399],{"type":998,"value":3409},{"type":993,"tag":1026,"props":5401,"children":5402},{"style":1041},[5403],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5405,"children":5406},{"style":1122},[5407],{"type":998,"value":3418},{"type":993,"tag":1026,"props":5409,"children":5410},{"style":1041},[5411],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5413,"children":5414},{"style":1122},[5415],{"type":998,"value":3427},{"type":993,"tag":1026,"props":5417,"children":5418},{"style":1041},[5419],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5421,"children":5422},{"style":1122},[5423],{"type":998,"value":3436},{"type":993,"tag":1026,"props":5425,"children":5426},{"style":1041},[5427],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5429,"children":5430},{"style":1122},[5431],{"type":998,"value":5432},"73",{"type":993,"tag":1026,"props":5434,"children":5435},{"style":1041},[5436],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5438,"children":5439},{"style":1122},[5440],{"type":998,"value":5441},"91",{"type":993,"tag":1026,"props":5443,"children":5444},{"style":1041},[5445],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5447,"children":5448},{"class":1028,"line":127},[5449,5454,5458,5463,5467,5471,5475,5480,5485,5489,5493,5497],{"type":993,"tag":1026,"props":5450,"children":5451},{"style":1041},[5452],{"type":998,"value":5453},"high_scores ",{"type":993,"tag":1026,"props":5455,"children":5456},{"style":1047},[5457],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5459,"children":5460},{"style":1041},[5461],{"type":998,"value":5462}," [score ",{"type":993,"tag":1026,"props":5464,"children":5465},{"style":1047},[5466],{"type":998,"value":3468},{"type":993,"tag":1026,"props":5468,"children":5469},{"style":1041},[5470],{"type":998,"value":3473},{"type":993,"tag":1026,"props":5472,"children":5473},{"style":1047},[5474],{"type":998,"value":2751},{"type":993,"tag":1026,"props":5476,"children":5477},{"style":1041},[5478],{"type":998,"value":5479}," scores ",{"type":993,"tag":1026,"props":5481,"children":5482},{"style":1047},[5483],{"type":998,"value":5484},"if",{"type":993,"tag":1026,"props":5486,"children":5487},{"style":1041},[5488],{"type":998,"value":3473},{"type":993,"tag":1026,"props":5490,"children":5491},{"style":1047},[5492],{"type":998,"value":3998},{"type":993,"tag":1026,"props":5494,"children":5495},{"style":1122},[5496],{"type":998,"value":4003},{"type":993,"tag":1026,"props":5498,"children":5499},{"style":1041},[5500],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5502,"children":5503},{"class":1028,"line":136},[5504,5508,5512,5517],{"type":993,"tag":1026,"props":5505,"children":5506},{"style":1122},[5507],{"type":998,"value":1189},{"type":993,"tag":1026,"props":5509,"children":5510},{"style":1041},[5511],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5513,"children":5514},{"style":1058},[5515],{"type":998,"value":5516},"\"High scores:\"",{"type":993,"tag":1026,"props":5518,"children":5519},{"style":1041},[5520],{"type":998,"value":5521},", high_scores)\n",{"type":993,"tag":1026,"props":5523,"children":5524},{"class":1028,"line":146},[5525],{"type":993,"tag":1026,"props":5526,"children":5527},{"emptyLinePlaceholder":13},[5528],{"type":998,"value":1173},{"type":993,"tag":1026,"props":5530,"children":5531},{"class":1028,"line":155},[5532],{"type":993,"tag":1026,"props":5533,"children":5534},{"style":1032},[5535],{"type":998,"value":5536},"# Using filter() function\n",{"type":993,"tag":1026,"props":5538,"children":5539},{"class":1028,"line":164},[5540,5544,5549],{"type":993,"tag":1026,"props":5541,"children":5542},{"style":1047},[5543],{"type":998,"value":3174},{"type":993,"tag":1026,"props":5545,"children":5546},{"style":3177},[5547],{"type":998,"value":5548}," is_even",{"type":993,"tag":1026,"props":5550,"children":5551},{"style":1041},[5552],{"type":998,"value":5553},"(n):\n",{"type":993,"tag":1026,"props":5555,"children":5556},{"class":1028,"line":173},[5557,5561,5565,5570,5575,5580],{"type":993,"tag":1026,"props":5558,"children":5559},{"style":1047},[5560],{"type":998,"value":3268},{"type":993,"tag":1026,"props":5562,"children":5563},{"style":1041},[5564],{"type":998,"value":4765},{"type":993,"tag":1026,"props":5566,"children":5567},{"style":1047},[5568],{"type":998,"value":5569},"%",{"type":993,"tag":1026,"props":5571,"children":5572},{"style":1122},[5573],{"type":998,"value":5574}," 2",{"type":993,"tag":1026,"props":5576,"children":5577},{"style":1047},[5578],{"type":998,"value":5579}," ==",{"type":993,"tag":1026,"props":5581,"children":5582},{"style":1122},[5583],{"type":998,"value":5584}," 0\n",{"type":993,"tag":1026,"props":5586,"children":5587},{"class":1028,"line":182},[5588],{"type":993,"tag":1026,"props":5589,"children":5590},{"emptyLinePlaceholder":13},[5591],{"type":998,"value":1173},{"type":993,"tag":1026,"props":5593,"children":5594},{"class":1028,"line":191},[5595,5599,5603,5607,5611,5615,5619,5623,5627,5631,5635,5639,5643,5647,5651,5655,5659,5663,5667,5671,5675,5679,5683],{"type":993,"tag":1026,"props":5596,"children":5597},{"style":1041},[5598],{"type":998,"value":1111},{"type":993,"tag":1026,"props":5600,"children":5601},{"style":1047},[5602],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5604,"children":5605},{"style":1041},[5606],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5608,"children":5609},{"style":1122},[5610],{"type":998,"value":1244},{"type":993,"tag":1026,"props":5612,"children":5613},{"style":1041},[5614],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5616,"children":5617},{"style":1122},[5618],{"type":998,"value":1274},{"type":993,"tag":1026,"props":5620,"children":5621},{"style":1041},[5622],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5624,"children":5625},{"style":1122},[5626],{"type":998,"value":1775},{"type":993,"tag":1026,"props":5628,"children":5629},{"style":1041},[5630],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5632,"children":5633},{"style":1122},[5634],{"type":998,"value":2186},{"type":993,"tag":1026,"props":5636,"children":5637},{"style":1041},[5638],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5640,"children":5641},{"style":1122},[5642],{"type":998,"value":2195},{"type":993,"tag":1026,"props":5644,"children":5645},{"style":1041},[5646],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5648,"children":5649},{"style":1122},[5650],{"type":998,"value":2204},{"type":993,"tag":1026,"props":5652,"children":5653},{"style":1041},[5654],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5656,"children":5657},{"style":1122},[5658],{"type":998,"value":2213},{"type":993,"tag":1026,"props":5660,"children":5661},{"style":1041},[5662],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5664,"children":5665},{"style":1122},[5666],{"type":998,"value":2222},{"type":993,"tag":1026,"props":5668,"children":5669},{"style":1041},[5670],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5672,"children":5673},{"style":1122},[5674],{"type":998,"value":2231},{"type":993,"tag":1026,"props":5676,"children":5677},{"style":1041},[5678],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5680,"children":5681},{"style":1122},[5682],{"type":998,"value":1125},{"type":993,"tag":1026,"props":5684,"children":5685},{"style":1041},[5686],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5688,"children":5689},{"class":1028,"line":201},[5690,5695,5699,5703,5707,5712],{"type":993,"tag":1026,"props":5691,"children":5692},{"style":1041},[5693],{"type":998,"value":5694},"even_numbers ",{"type":993,"tag":1026,"props":5696,"children":5697},{"style":1047},[5698],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5700,"children":5701},{"style":1122},[5702],{"type":998,"value":4932},{"type":993,"tag":1026,"props":5704,"children":5705},{"style":1041},[5706],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5708,"children":5709},{"style":1122},[5710],{"type":998,"value":5711},"filter",{"type":993,"tag":1026,"props":5713,"children":5714},{"style":1041},[5715],{"type":998,"value":5716},"(is_even, numbers))\n",{"type":993,"tag":1026,"props":5718,"children":5719},{"class":1028,"line":210},[5720,5724,5728,5733],{"type":993,"tag":1026,"props":5721,"children":5722},{"style":1122},[5723],{"type":998,"value":1189},{"type":993,"tag":1026,"props":5725,"children":5726},{"style":1041},[5727],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5729,"children":5730},{"style":1058},[5731],{"type":998,"value":5732},"\"Even numbers:\"",{"type":993,"tag":1026,"props":5734,"children":5735},{"style":1041},[5736],{"type":998,"value":5737},", even_numbers)\n",{"type":993,"tag":1026,"props":5739,"children":5740},{"class":1028,"line":219},[5741],{"type":993,"tag":1026,"props":5742,"children":5743},{"emptyLinePlaceholder":13},[5744],{"type":998,"value":1173},{"type":993,"tag":1026,"props":5746,"children":5747},{"class":1028,"line":228},[5748],{"type":993,"tag":1026,"props":5749,"children":5750},{"style":1032},[5751],{"type":998,"value":5752},"# Using map() for transformation\n",{"type":993,"tag":1026,"props":5754,"children":5755},{"class":1028,"line":238},[5756,5761,5765,5769,5774,5778,5783,5787,5792],{"type":993,"tag":1026,"props":5757,"children":5758},{"style":1041},[5759],{"type":998,"value":5760},"words ",{"type":993,"tag":1026,"props":5762,"children":5763},{"style":1047},[5764],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5766,"children":5767},{"style":1041},[5768],{"type":998,"value":1055},{"type":993,"tag":1026,"props":5770,"children":5771},{"style":1058},[5772],{"type":998,"value":5773},"\"hello\"",{"type":993,"tag":1026,"props":5775,"children":5776},{"style":1041},[5777],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5779,"children":5780},{"style":1058},[5781],{"type":998,"value":5782},"\"world\"",{"type":993,"tag":1026,"props":5784,"children":5785},{"style":1041},[5786],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5788,"children":5789},{"style":1058},[5790],{"type":998,"value":5791},"\"python\"",{"type":993,"tag":1026,"props":5793,"children":5794},{"style":1041},[5795],{"type":998,"value":1103},{"type":993,"tag":1026,"props":5797,"children":5798},{"class":1028,"line":247},[5799,5804,5808,5812,5816,5821,5825,5829],{"type":993,"tag":1026,"props":5800,"children":5801},{"style":1041},[5802],{"type":998,"value":5803},"lengths ",{"type":993,"tag":1026,"props":5805,"children":5806},{"style":1047},[5807],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5809,"children":5810},{"style":1122},[5811],{"type":998,"value":4932},{"type":993,"tag":1026,"props":5813,"children":5814},{"style":1041},[5815],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5817,"children":5818},{"style":1122},[5819],{"type":998,"value":5820},"map",{"type":993,"tag":1026,"props":5822,"children":5823},{"style":1041},[5824],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5826,"children":5827},{"style":1122},[5828],{"type":998,"value":1318},{"type":993,"tag":1026,"props":5830,"children":5831},{"style":1041},[5832],{"type":998,"value":5833},", words))\n",{"type":993,"tag":1026,"props":5835,"children":5836},{"class":1028,"line":256},[5837,5841,5845,5850],{"type":993,"tag":1026,"props":5838,"children":5839},{"style":1122},[5840],{"type":998,"value":1189},{"type":993,"tag":1026,"props":5842,"children":5843},{"style":1041},[5844],{"type":998,"value":1194},{"type":993,"tag":1026,"props":5846,"children":5847},{"style":1058},[5848],{"type":998,"value":5849},"\"Word lengths:\"",{"type":993,"tag":1026,"props":5851,"children":5852},{"style":1041},[5853],{"type":998,"value":5854},", lengths)\n",{"type":993,"tag":1026,"props":5856,"children":5857},{"class":1028,"line":265},[5858],{"type":993,"tag":1026,"props":5859,"children":5860},{"emptyLinePlaceholder":13},[5861],{"type":998,"value":1173},{"type":993,"tag":1026,"props":5863,"children":5864},{"class":1028,"line":274},[5865],{"type":993,"tag":1026,"props":5866,"children":5867},{"style":1032},[5868],{"type":998,"value":5869},"# Combining techniques\n",{"type":993,"tag":1026,"props":5871,"children":5872},{"class":1028,"line":284},[5873,5878,5882,5887,5891,5895,5899,5904,5908,5912,5916,5920,5924,5928,5932],{"type":993,"tag":1026,"props":5874,"children":5875},{"style":1041},[5876],{"type":998,"value":5877},"data ",{"type":993,"tag":1026,"props":5879,"children":5880},{"style":1047},[5881],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5883,"children":5884},{"style":1041},[5885],{"type":998,"value":5886}," [(",{"type":993,"tag":1026,"props":5888,"children":5889},{"style":1058},[5890],{"type":998,"value":4488},{"type":993,"tag":1026,"props":5892,"children":5893},{"style":1041},[5894],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5896,"children":5897},{"style":1122},[5898],{"type":998,"value":3400},{"type":993,"tag":1026,"props":5900,"children":5901},{"style":1041},[5902],{"type":998,"value":5903},"), (",{"type":993,"tag":1026,"props":5905,"children":5906},{"style":1058},[5907],{"type":998,"value":4497},{"type":993,"tag":1026,"props":5909,"children":5910},{"style":1041},[5911],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5913,"children":5914},{"style":1122},[5915],{"type":998,"value":3409},{"type":993,"tag":1026,"props":5917,"children":5918},{"style":1041},[5919],{"type":998,"value":5903},{"type":993,"tag":1026,"props":5921,"children":5922},{"style":1058},[5923],{"type":998,"value":4506},{"type":993,"tag":1026,"props":5925,"children":5926},{"style":1041},[5927],{"type":998,"value":1066},{"type":993,"tag":1026,"props":5929,"children":5930},{"style":1122},[5931],{"type":998,"value":3418},{"type":993,"tag":1026,"props":5933,"children":5934},{"style":1041},[5935],{"type":998,"value":5936},")]\n",{"type":993,"tag":1026,"props":5938,"children":5939},{"class":1028,"line":293},[5940,5944,5948,5953,5957,5962,5966,5971,5975],{"type":993,"tag":1026,"props":5941,"children":5942},{"style":1041},[5943],{"type":998,"value":4475},{"type":993,"tag":1026,"props":5945,"children":5946},{"style":1047},[5947],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5949,"children":5950},{"style":1041},[5951],{"type":998,"value":5952}," [item[",{"type":993,"tag":1026,"props":5954,"children":5955},{"style":1122},[5956],{"type":998,"value":1209},{"type":993,"tag":1026,"props":5958,"children":5959},{"style":1041},[5960],{"type":998,"value":5961},"] ",{"type":993,"tag":1026,"props":5963,"children":5964},{"style":1047},[5965],{"type":998,"value":3468},{"type":993,"tag":1026,"props":5967,"children":5968},{"style":1041},[5969],{"type":998,"value":5970}," item ",{"type":993,"tag":1026,"props":5972,"children":5973},{"style":1047},[5974],{"type":998,"value":2751},{"type":993,"tag":1026,"props":5976,"children":5977},{"style":1041},[5978],{"type":998,"value":5979}," data]\n",{"type":993,"tag":1026,"props":5981,"children":5982},{"class":1028,"line":302},[5983,5987,5991,5995,5999,6003,6007,6011,6015],{"type":993,"tag":1026,"props":5984,"children":5985},{"style":1041},[5986],{"type":998,"value":3387},{"type":993,"tag":1026,"props":5988,"children":5989},{"style":1047},[5990],{"type":998,"value":1050},{"type":993,"tag":1026,"props":5992,"children":5993},{"style":1041},[5994],{"type":998,"value":5952},{"type":993,"tag":1026,"props":5996,"children":5997},{"style":1122},[5998],{"type":998,"value":1244},{"type":993,"tag":1026,"props":6000,"children":6001},{"style":1041},[6002],{"type":998,"value":5961},{"type":993,"tag":1026,"props":6004,"children":6005},{"style":1047},[6006],{"type":998,"value":3468},{"type":993,"tag":1026,"props":6008,"children":6009},{"style":1041},[6010],{"type":998,"value":5970},{"type":993,"tag":1026,"props":6012,"children":6013},{"style":1047},[6014],{"type":998,"value":2751},{"type":993,"tag":1026,"props":6016,"children":6017},{"style":1041},[6018],{"type":998,"value":5979},{"type":993,"tag":1026,"props":6020,"children":6021},{"class":1028,"line":311},[6022,6026,6030,6035],{"type":993,"tag":1026,"props":6023,"children":6024},{"style":1122},[6025],{"type":998,"value":1189},{"type":993,"tag":1026,"props":6027,"children":6028},{"style":1041},[6029],{"type":998,"value":1194},{"type":993,"tag":1026,"props":6031,"children":6032},{"style":1058},[6033],{"type":998,"value":6034},"\"Names:\"",{"type":993,"tag":1026,"props":6036,"children":6037},{"style":1041},[6038],{"type":998,"value":4548},{"type":993,"tag":1026,"props":6040,"children":6041},{"class":1028,"line":320},[6042,6046,6050,6055],{"type":993,"tag":1026,"props":6043,"children":6044},{"style":1122},[6045],{"type":998,"value":1189},{"type":993,"tag":1026,"props":6047,"children":6048},{"style":1041},[6049],{"type":998,"value":1194},{"type":993,"tag":1026,"props":6051,"children":6052},{"style":1058},[6053],{"type":998,"value":6054},"\"Scores:\"",{"type":993,"tag":1026,"props":6056,"children":6057},{"style":1041},[6058],{"type":998,"value":6059},", scores)\n",{"type":993,"tag":1359,"props":6061,"children":6063},{"id":6062},"common-reading-patterns",[6064],{"type":998,"value":6065},"Common Reading Patterns",{"type":993,"tag":1001,"props":6067,"children":6068},{},[6069],{"type":998,"value":6070},"Several patterns appear frequently when reading list data in real-world programming. Understanding these patterns helps you solve common data processing tasks efficiently.",{"type":993,"tag":1466,"props":6072,"children":6074},{"id":6073},"practical-patterns",[6075],{"type":998,"value":6076},"Practical Patterns",{"type":993,"tag":1001,"props":6078,"children":6079},{},[6080],{"type":998,"value":6081},"Real-world examples of list data reading:",{"type":993,"tag":1012,"props":6083,"children":6084},{},[6085],{"type":993,"tag":1016,"props":6086,"children":6088},{"className":1018,"code":6087,"language":6,"meta":8,"style":8},"# Finding specific items\nstudents = [\"Alice\", \"Bob\", \"Charlie\", \"Diana\", \"Eve\"]\ntarget_student = \"Charlie\"\nif target_student in students:\n    position = students.index(target_student)\n    print(f\"{target_student} found at position {position}\")\n\n# Processing pairs of items\nnumbers = [1, 2, 3, 4, 5, 6]\npairs = [(numbers[i], numbers[i+1]) for i in range(len(numbers)-1)]\nprint(\"Adjacent pairs:\", pairs)\n\n# Finding items meeting criteria\nscores = [85, 92, 78, 96, 88, 73, 91]\npassing_scores = [score for score in scores if score >= 80]\nfailing_scores = [score for score in scores if score \u003C 80]\nprint(\"Passing scores:\", passing_scores)\nprint(\"Failing scores:\", failing_scores)\n\n# Getting first and last items safely\ndef get_first_last(lst):\n    if len(lst) == 0:\n        return None, None\n    elif len(lst) == 1:\n        return lst[0], lst[0]\n    else:\n        return lst[0], lst[-1]\n\nfirst, last = get_first_last(scores)\nprint(f\"First score: {first}, Last score: {last}\")\n\n# Sampling data\nevery_third = scores[::3]\nprint(\"Every third score:\", every_third)\n",[6089],{"type":993,"tag":1022,"props":6090,"children":6091},{"__ignoreMap":8},[6092,6100,6157,6174,6195,6212,6269,6276,6284,6347,6418,6439,6446,6454,6525,6578,6631,6652,6673,6680,6688,6704,6732,6754,6783,6812,6824,6855,6862,6879,6937,6944,6952,6977],{"type":993,"tag":1026,"props":6093,"children":6094},{"class":1028,"line":12},[6095],{"type":993,"tag":1026,"props":6096,"children":6097},{"style":1032},[6098],{"type":998,"value":6099},"# Finding specific items\n",{"type":993,"tag":1026,"props":6101,"children":6102},{"class":1028,"line":27},[6103,6108,6112,6116,6120,6124,6128,6132,6136,6140,6144,6148,6153],{"type":993,"tag":1026,"props":6104,"children":6105},{"style":1041},[6106],{"type":998,"value":6107},"students ",{"type":993,"tag":1026,"props":6109,"children":6110},{"style":1047},[6111],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6113,"children":6114},{"style":1041},[6115],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6117,"children":6118},{"style":1058},[6119],{"type":998,"value":4488},{"type":993,"tag":1026,"props":6121,"children":6122},{"style":1041},[6123],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6125,"children":6126},{"style":1058},[6127],{"type":998,"value":4497},{"type":993,"tag":1026,"props":6129,"children":6130},{"style":1041},[6131],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6133,"children":6134},{"style":1058},[6135],{"type":998,"value":4506},{"type":993,"tag":1026,"props":6137,"children":6138},{"style":1041},[6139],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6141,"children":6142},{"style":1058},[6143],{"type":998,"value":4515},{"type":993,"tag":1026,"props":6145,"children":6146},{"style":1041},[6147],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6149,"children":6150},{"style":1058},[6151],{"type":998,"value":6152},"\"Eve\"",{"type":993,"tag":1026,"props":6154,"children":6155},{"style":1041},[6156],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6158,"children":6159},{"class":1028,"line":36},[6160,6165,6169],{"type":993,"tag":1026,"props":6161,"children":6162},{"style":1041},[6163],{"type":998,"value":6164},"target_student ",{"type":993,"tag":1026,"props":6166,"children":6167},{"style":1047},[6168],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6170,"children":6171},{"style":1058},[6172],{"type":998,"value":6173}," \"Charlie\"\n",{"type":993,"tag":1026,"props":6175,"children":6176},{"class":1028,"line":45},[6177,6181,6186,6190],{"type":993,"tag":1026,"props":6178,"children":6179},{"style":1047},[6180],{"type":998,"value":5484},{"type":993,"tag":1026,"props":6182,"children":6183},{"style":1041},[6184],{"type":998,"value":6185}," target_student ",{"type":993,"tag":1026,"props":6187,"children":6188},{"style":1047},[6189],{"type":998,"value":2751},{"type":993,"tag":1026,"props":6191,"children":6192},{"style":1041},[6193],{"type":998,"value":6194}," students:\n",{"type":993,"tag":1026,"props":6196,"children":6197},{"class":1028,"line":54},[6198,6203,6207],{"type":993,"tag":1026,"props":6199,"children":6200},{"style":1041},[6201],{"type":998,"value":6202},"    position ",{"type":993,"tag":1026,"props":6204,"children":6205},{"style":1047},[6206],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6208,"children":6209},{"style":1041},[6210],{"type":998,"value":6211}," students.index(target_student)\n",{"type":993,"tag":1026,"props":6213,"children":6214},{"class":1028,"line":63},[6215,6219,6223,6227,6231,6235,6240,6244,6249,6253,6257,6261,6265],{"type":993,"tag":1026,"props":6216,"children":6217},{"style":1122},[6218],{"type":998,"value":3100},{"type":993,"tag":1026,"props":6220,"children":6221},{"style":1041},[6222],{"type":998,"value":1194},{"type":993,"tag":1026,"props":6224,"children":6225},{"style":1047},[6226],{"type":998,"value":1831},{"type":993,"tag":1026,"props":6228,"children":6229},{"style":1058},[6230],{"type":998,"value":3520},{"type":993,"tag":1026,"props":6232,"children":6233},{"style":1122},[6234],{"type":998,"value":1841},{"type":993,"tag":1026,"props":6236,"children":6237},{"style":1041},[6238],{"type":998,"value":6239},"target_student",{"type":993,"tag":1026,"props":6241,"children":6242},{"style":1122},[6243],{"type":998,"value":1851},{"type":993,"tag":1026,"props":6245,"children":6246},{"style":1058},[6247],{"type":998,"value":6248}," found at position ",{"type":993,"tag":1026,"props":6250,"children":6251},{"style":1122},[6252],{"type":998,"value":1841},{"type":993,"tag":1026,"props":6254,"children":6255},{"style":1041},[6256],{"type":998,"value":3756},{"type":993,"tag":1026,"props":6258,"children":6259},{"style":1122},[6260],{"type":998,"value":1851},{"type":993,"tag":1026,"props":6262,"children":6263},{"style":1058},[6264],{"type":998,"value":3520},{"type":993,"tag":1026,"props":6266,"children":6267},{"style":1041},[6268],{"type":998,"value":2958},{"type":993,"tag":1026,"props":6270,"children":6271},{"class":1028,"line":72},[6272],{"type":993,"tag":1026,"props":6273,"children":6274},{"emptyLinePlaceholder":13},[6275],{"type":998,"value":1173},{"type":993,"tag":1026,"props":6277,"children":6278},{"class":1028,"line":81},[6279],{"type":993,"tag":1026,"props":6280,"children":6281},{"style":1032},[6282],{"type":998,"value":6283},"# Processing pairs of items\n",{"type":993,"tag":1026,"props":6285,"children":6286},{"class":1028,"line":91},[6287,6291,6295,6299,6303,6307,6311,6315,6319,6323,6327,6331,6335,6339,6343],{"type":993,"tag":1026,"props":6288,"children":6289},{"style":1041},[6290],{"type":998,"value":1111},{"type":993,"tag":1026,"props":6292,"children":6293},{"style":1047},[6294],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6296,"children":6297},{"style":1041},[6298],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6300,"children":6301},{"style":1122},[6302],{"type":998,"value":1244},{"type":993,"tag":1026,"props":6304,"children":6305},{"style":1041},[6306],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6308,"children":6309},{"style":1122},[6310],{"type":998,"value":1274},{"type":993,"tag":1026,"props":6312,"children":6313},{"style":1041},[6314],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6316,"children":6317},{"style":1122},[6318],{"type":998,"value":1775},{"type":993,"tag":1026,"props":6320,"children":6321},{"style":1041},[6322],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6324,"children":6325},{"style":1122},[6326],{"type":998,"value":2186},{"type":993,"tag":1026,"props":6328,"children":6329},{"style":1041},[6330],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6332,"children":6333},{"style":1122},[6334],{"type":998,"value":2195},{"type":993,"tag":1026,"props":6336,"children":6337},{"style":1041},[6338],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6340,"children":6341},{"style":1122},[6342],{"type":998,"value":2204},{"type":993,"tag":1026,"props":6344,"children":6345},{"style":1041},[6346],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6348,"children":6349},{"class":1028,"line":100},[6350,6355,6359,6364,6369,6373,6377,6381,6385,6389,6393,6397,6401,6406,6410,6414],{"type":993,"tag":1026,"props":6351,"children":6352},{"style":1041},[6353],{"type":998,"value":6354},"pairs ",{"type":993,"tag":1026,"props":6356,"children":6357},{"style":1047},[6358],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6360,"children":6361},{"style":1041},[6362],{"type":998,"value":6363}," [(numbers[i], numbers[i",{"type":993,"tag":1026,"props":6365,"children":6366},{"style":1047},[6367],{"type":998,"value":6368},"+",{"type":993,"tag":1026,"props":6370,"children":6371},{"style":1122},[6372],{"type":998,"value":1244},{"type":993,"tag":1026,"props":6374,"children":6375},{"style":1041},[6376],{"type":998,"value":2645},{"type":993,"tag":1026,"props":6378,"children":6379},{"style":1047},[6380],{"type":998,"value":3468},{"type":993,"tag":1026,"props":6382,"children":6383},{"style":1041},[6384],{"type":998,"value":3839},{"type":993,"tag":1026,"props":6386,"children":6387},{"style":1047},[6388],{"type":998,"value":2751},{"type":993,"tag":1026,"props":6390,"children":6391},{"style":1122},[6392],{"type":998,"value":3848},{"type":993,"tag":1026,"props":6394,"children":6395},{"style":1041},[6396],{"type":998,"value":1194},{"type":993,"tag":1026,"props":6398,"children":6399},{"style":1122},[6400],{"type":998,"value":1318},{"type":993,"tag":1026,"props":6402,"children":6403},{"style":1041},[6404],{"type":998,"value":6405},"(numbers)",{"type":993,"tag":1026,"props":6407,"children":6408},{"style":1047},[6409],{"type":998,"value":1239},{"type":993,"tag":1026,"props":6411,"children":6412},{"style":1122},[6413],{"type":998,"value":1244},{"type":993,"tag":1026,"props":6415,"children":6416},{"style":1041},[6417],{"type":998,"value":5936},{"type":993,"tag":1026,"props":6419,"children":6420},{"class":1028,"line":109},[6421,6425,6429,6434],{"type":993,"tag":1026,"props":6422,"children":6423},{"style":1122},[6424],{"type":998,"value":1189},{"type":993,"tag":1026,"props":6426,"children":6427},{"style":1041},[6428],{"type":998,"value":1194},{"type":993,"tag":1026,"props":6430,"children":6431},{"style":1058},[6432],{"type":998,"value":6433},"\"Adjacent pairs:\"",{"type":993,"tag":1026,"props":6435,"children":6436},{"style":1041},[6437],{"type":998,"value":6438},", pairs)\n",{"type":993,"tag":1026,"props":6440,"children":6441},{"class":1028,"line":118},[6442],{"type":993,"tag":1026,"props":6443,"children":6444},{"emptyLinePlaceholder":13},[6445],{"type":998,"value":1173},{"type":993,"tag":1026,"props":6447,"children":6448},{"class":1028,"line":127},[6449],{"type":993,"tag":1026,"props":6450,"children":6451},{"style":1032},[6452],{"type":998,"value":6453},"# Finding items meeting criteria\n",{"type":993,"tag":1026,"props":6455,"children":6456},{"class":1028,"line":136},[6457,6461,6465,6469,6473,6477,6481,6485,6489,6493,6497,6501,6505,6509,6513,6517,6521],{"type":993,"tag":1026,"props":6458,"children":6459},{"style":1041},[6460],{"type":998,"value":3387},{"type":993,"tag":1026,"props":6462,"children":6463},{"style":1047},[6464],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6466,"children":6467},{"style":1041},[6468],{"type":998,"value":1055},{"type":993,"tag":1026,"props":6470,"children":6471},{"style":1122},[6472],{"type":998,"value":3400},{"type":993,"tag":1026,"props":6474,"children":6475},{"style":1041},[6476],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6478,"children":6479},{"style":1122},[6480],{"type":998,"value":3409},{"type":993,"tag":1026,"props":6482,"children":6483},{"style":1041},[6484],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6486,"children":6487},{"style":1122},[6488],{"type":998,"value":3418},{"type":993,"tag":1026,"props":6490,"children":6491},{"style":1041},[6492],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6494,"children":6495},{"style":1122},[6496],{"type":998,"value":3427},{"type":993,"tag":1026,"props":6498,"children":6499},{"style":1041},[6500],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6502,"children":6503},{"style":1122},[6504],{"type":998,"value":3436},{"type":993,"tag":1026,"props":6506,"children":6507},{"style":1041},[6508],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6510,"children":6511},{"style":1122},[6512],{"type":998,"value":5432},{"type":993,"tag":1026,"props":6514,"children":6515},{"style":1041},[6516],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6518,"children":6519},{"style":1122},[6520],{"type":998,"value":5441},{"type":993,"tag":1026,"props":6522,"children":6523},{"style":1041},[6524],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6526,"children":6527},{"class":1028,"line":146},[6528,6533,6537,6541,6545,6549,6553,6557,6561,6565,6569,6574],{"type":993,"tag":1026,"props":6529,"children":6530},{"style":1041},[6531],{"type":998,"value":6532},"passing_scores ",{"type":993,"tag":1026,"props":6534,"children":6535},{"style":1047},[6536],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6538,"children":6539},{"style":1041},[6540],{"type":998,"value":5462},{"type":993,"tag":1026,"props":6542,"children":6543},{"style":1047},[6544],{"type":998,"value":3468},{"type":993,"tag":1026,"props":6546,"children":6547},{"style":1041},[6548],{"type":998,"value":3473},{"type":993,"tag":1026,"props":6550,"children":6551},{"style":1047},[6552],{"type":998,"value":2751},{"type":993,"tag":1026,"props":6554,"children":6555},{"style":1041},[6556],{"type":998,"value":5479},{"type":993,"tag":1026,"props":6558,"children":6559},{"style":1047},[6560],{"type":998,"value":5484},{"type":993,"tag":1026,"props":6562,"children":6563},{"style":1041},[6564],{"type":998,"value":3473},{"type":993,"tag":1026,"props":6566,"children":6567},{"style":1047},[6568],{"type":998,"value":3998},{"type":993,"tag":1026,"props":6570,"children":6571},{"style":1122},[6572],{"type":998,"value":6573}," 80",{"type":993,"tag":1026,"props":6575,"children":6576},{"style":1041},[6577],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6579,"children":6580},{"class":1028,"line":155},[6581,6586,6590,6594,6598,6602,6606,6610,6614,6618,6623,6627],{"type":993,"tag":1026,"props":6582,"children":6583},{"style":1041},[6584],{"type":998,"value":6585},"failing_scores ",{"type":993,"tag":1026,"props":6587,"children":6588},{"style":1047},[6589],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6591,"children":6592},{"style":1041},[6593],{"type":998,"value":5462},{"type":993,"tag":1026,"props":6595,"children":6596},{"style":1047},[6597],{"type":998,"value":3468},{"type":993,"tag":1026,"props":6599,"children":6600},{"style":1041},[6601],{"type":998,"value":3473},{"type":993,"tag":1026,"props":6603,"children":6604},{"style":1047},[6605],{"type":998,"value":2751},{"type":993,"tag":1026,"props":6607,"children":6608},{"style":1041},[6609],{"type":998,"value":5479},{"type":993,"tag":1026,"props":6611,"children":6612},{"style":1047},[6613],{"type":998,"value":5484},{"type":993,"tag":1026,"props":6615,"children":6616},{"style":1041},[6617],{"type":998,"value":3473},{"type":993,"tag":1026,"props":6619,"children":6620},{"style":1047},[6621],{"type":998,"value":6622},"\u003C",{"type":993,"tag":1026,"props":6624,"children":6625},{"style":1122},[6626],{"type":998,"value":6573},{"type":993,"tag":1026,"props":6628,"children":6629},{"style":1041},[6630],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6632,"children":6633},{"class":1028,"line":164},[6634,6638,6642,6647],{"type":993,"tag":1026,"props":6635,"children":6636},{"style":1122},[6637],{"type":998,"value":1189},{"type":993,"tag":1026,"props":6639,"children":6640},{"style":1041},[6641],{"type":998,"value":1194},{"type":993,"tag":1026,"props":6643,"children":6644},{"style":1058},[6645],{"type":998,"value":6646},"\"Passing scores:\"",{"type":993,"tag":1026,"props":6648,"children":6649},{"style":1041},[6650],{"type":998,"value":6651},", passing_scores)\n",{"type":993,"tag":1026,"props":6653,"children":6654},{"class":1028,"line":173},[6655,6659,6663,6668],{"type":993,"tag":1026,"props":6656,"children":6657},{"style":1122},[6658],{"type":998,"value":1189},{"type":993,"tag":1026,"props":6660,"children":6661},{"style":1041},[6662],{"type":998,"value":1194},{"type":993,"tag":1026,"props":6664,"children":6665},{"style":1058},[6666],{"type":998,"value":6667},"\"Failing scores:\"",{"type":993,"tag":1026,"props":6669,"children":6670},{"style":1041},[6671],{"type":998,"value":6672},", failing_scores)\n",{"type":993,"tag":1026,"props":6674,"children":6675},{"class":1028,"line":182},[6676],{"type":993,"tag":1026,"props":6677,"children":6678},{"emptyLinePlaceholder":13},[6679],{"type":998,"value":1173},{"type":993,"tag":1026,"props":6681,"children":6682},{"class":1028,"line":191},[6683],{"type":993,"tag":1026,"props":6684,"children":6685},{"style":1032},[6686],{"type":998,"value":6687},"# Getting first and last items safely\n",{"type":993,"tag":1026,"props":6689,"children":6690},{"class":1028,"line":201},[6691,6695,6700],{"type":993,"tag":1026,"props":6692,"children":6693},{"style":1047},[6694],{"type":998,"value":3174},{"type":993,"tag":1026,"props":6696,"children":6697},{"style":3177},[6698],{"type":998,"value":6699}," get_first_last",{"type":993,"tag":1026,"props":6701,"children":6702},{"style":1041},[6703],{"type":998,"value":3229},{"type":993,"tag":1026,"props":6705,"children":6706},{"class":1028,"line":210},[6707,6711,6715,6720,6724,6728],{"type":993,"tag":1026,"props":6708,"children":6709},{"style":1047},[6710],{"type":998,"value":3989},{"type":993,"tag":1026,"props":6712,"children":6713},{"style":1122},[6714],{"type":998,"value":4448},{"type":993,"tag":1026,"props":6716,"children":6717},{"style":1041},[6718],{"type":998,"value":6719},"(lst) ",{"type":993,"tag":1026,"props":6721,"children":6722},{"style":1047},[6723],{"type":998,"value":3247},{"type":993,"tag":1026,"props":6725,"children":6726},{"style":1122},[6727],{"type":998,"value":4712},{"type":993,"tag":1026,"props":6729,"children":6730},{"style":1041},[6731],{"type":998,"value":3068},{"type":993,"tag":1026,"props":6733,"children":6734},{"class":1028,"line":219},[6735,6740,6745,6749],{"type":993,"tag":1026,"props":6736,"children":6737},{"style":1047},[6738],{"type":998,"value":6739},"        return",{"type":993,"tag":1026,"props":6741,"children":6742},{"style":1122},[6743],{"type":998,"value":6744}," None",{"type":993,"tag":1026,"props":6746,"children":6747},{"style":1041},[6748],{"type":998,"value":1066},{"type":993,"tag":1026,"props":6750,"children":6751},{"style":1122},[6752],{"type":998,"value":6753},"None\n",{"type":993,"tag":1026,"props":6755,"children":6756},{"class":1028,"line":228},[6757,6762,6766,6770,6774,6779],{"type":993,"tag":1026,"props":6758,"children":6759},{"style":1047},[6760],{"type":998,"value":6761},"    elif",{"type":993,"tag":1026,"props":6763,"children":6764},{"style":1122},[6765],{"type":998,"value":4448},{"type":993,"tag":1026,"props":6767,"children":6768},{"style":1041},[6769],{"type":998,"value":6719},{"type":993,"tag":1026,"props":6771,"children":6772},{"style":1047},[6773],{"type":998,"value":3247},{"type":993,"tag":1026,"props":6775,"children":6776},{"style":1122},[6777],{"type":998,"value":6778}," 1",{"type":993,"tag":1026,"props":6780,"children":6781},{"style":1041},[6782],{"type":998,"value":3068},{"type":993,"tag":1026,"props":6784,"children":6785},{"class":1028,"line":238},[6786,6790,6795,6799,6804,6808],{"type":993,"tag":1026,"props":6787,"children":6788},{"style":1047},[6789],{"type":998,"value":6739},{"type":993,"tag":1026,"props":6791,"children":6792},{"style":1041},[6793],{"type":998,"value":6794}," lst[",{"type":993,"tag":1026,"props":6796,"children":6797},{"style":1122},[6798],{"type":998,"value":1209},{"type":993,"tag":1026,"props":6800,"children":6801},{"style":1041},[6802],{"type":998,"value":6803},"], lst[",{"type":993,"tag":1026,"props":6805,"children":6806},{"style":1122},[6807],{"type":998,"value":1209},{"type":993,"tag":1026,"props":6809,"children":6810},{"style":1041},[6811],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6813,"children":6814},{"class":1028,"line":247},[6815,6820],{"type":993,"tag":1026,"props":6816,"children":6817},{"style":1047},[6818],{"type":998,"value":6819},"    else",{"type":993,"tag":1026,"props":6821,"children":6822},{"style":1041},[6823],{"type":998,"value":3068},{"type":993,"tag":1026,"props":6825,"children":6826},{"class":1028,"line":256},[6827,6831,6835,6839,6843,6847,6851],{"type":993,"tag":1026,"props":6828,"children":6829},{"style":1047},[6830],{"type":998,"value":6739},{"type":993,"tag":1026,"props":6832,"children":6833},{"style":1041},[6834],{"type":998,"value":6794},{"type":993,"tag":1026,"props":6836,"children":6837},{"style":1122},[6838],{"type":998,"value":1209},{"type":993,"tag":1026,"props":6840,"children":6841},{"style":1041},[6842],{"type":998,"value":6803},{"type":993,"tag":1026,"props":6844,"children":6845},{"style":1047},[6846],{"type":998,"value":1239},{"type":993,"tag":1026,"props":6848,"children":6849},{"style":1122},[6850],{"type":998,"value":1244},{"type":993,"tag":1026,"props":6852,"children":6853},{"style":1041},[6854],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6856,"children":6857},{"class":1028,"line":265},[6858],{"type":993,"tag":1026,"props":6859,"children":6860},{"emptyLinePlaceholder":13},[6861],{"type":998,"value":1173},{"type":993,"tag":1026,"props":6863,"children":6864},{"class":1028,"line":274},[6865,6870,6874],{"type":993,"tag":1026,"props":6866,"children":6867},{"style":1041},[6868],{"type":998,"value":6869},"first, last ",{"type":993,"tag":1026,"props":6871,"children":6872},{"style":1047},[6873],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6875,"children":6876},{"style":1041},[6877],{"type":998,"value":6878}," get_first_last(scores)\n",{"type":993,"tag":1026,"props":6880,"children":6881},{"class":1028,"line":284},[6882,6886,6890,6894,6899,6903,6907,6911,6916,6920,6925,6929,6933],{"type":993,"tag":1026,"props":6883,"children":6884},{"style":1122},[6885],{"type":998,"value":1189},{"type":993,"tag":1026,"props":6887,"children":6888},{"style":1041},[6889],{"type":998,"value":1194},{"type":993,"tag":1026,"props":6891,"children":6892},{"style":1047},[6893],{"type":998,"value":1831},{"type":993,"tag":1026,"props":6895,"children":6896},{"style":1058},[6897],{"type":998,"value":6898},"\"First score: ",{"type":993,"tag":1026,"props":6900,"children":6901},{"style":1122},[6902],{"type":998,"value":1841},{"type":993,"tag":1026,"props":6904,"children":6905},{"style":1041},[6906],{"type":998,"value":5309},{"type":993,"tag":1026,"props":6908,"children":6909},{"style":1122},[6910],{"type":998,"value":1851},{"type":993,"tag":1026,"props":6912,"children":6913},{"style":1058},[6914],{"type":998,"value":6915},", Last score: ",{"type":993,"tag":1026,"props":6917,"children":6918},{"style":1122},[6919],{"type":998,"value":1841},{"type":993,"tag":1026,"props":6921,"children":6922},{"style":1041},[6923],{"type":998,"value":6924},"last",{"type":993,"tag":1026,"props":6926,"children":6927},{"style":1122},[6928],{"type":998,"value":1851},{"type":993,"tag":1026,"props":6930,"children":6931},{"style":1058},[6932],{"type":998,"value":3520},{"type":993,"tag":1026,"props":6934,"children":6935},{"style":1041},[6936],{"type":998,"value":2958},{"type":993,"tag":1026,"props":6938,"children":6939},{"class":1028,"line":293},[6940],{"type":993,"tag":1026,"props":6941,"children":6942},{"emptyLinePlaceholder":13},[6943],{"type":998,"value":1173},{"type":993,"tag":1026,"props":6945,"children":6946},{"class":1028,"line":302},[6947],{"type":993,"tag":1026,"props":6948,"children":6949},{"style":1032},[6950],{"type":998,"value":6951},"# Sampling data\n",{"type":993,"tag":1026,"props":6953,"children":6954},{"class":1028,"line":311},[6955,6960,6964,6969,6973],{"type":993,"tag":1026,"props":6956,"children":6957},{"style":1041},[6958],{"type":998,"value":6959},"every_third ",{"type":993,"tag":1026,"props":6961,"children":6962},{"style":1047},[6963],{"type":998,"value":1050},{"type":993,"tag":1026,"props":6965,"children":6966},{"style":1041},[6967],{"type":998,"value":6968}," scores[::",{"type":993,"tag":1026,"props":6970,"children":6971},{"style":1122},[6972],{"type":998,"value":1775},{"type":993,"tag":1026,"props":6974,"children":6975},{"style":1041},[6976],{"type":998,"value":1103},{"type":993,"tag":1026,"props":6978,"children":6979},{"class":1028,"line":320},[6980,6984,6988,6993],{"type":993,"tag":1026,"props":6981,"children":6982},{"style":1122},[6983],{"type":998,"value":1189},{"type":993,"tag":1026,"props":6985,"children":6986},{"style":1041},[6987],{"type":998,"value":1194},{"type":993,"tag":1026,"props":6989,"children":6990},{"style":1058},[6991],{"type":998,"value":6992},"\"Every third score:\"",{"type":993,"tag":1026,"props":6994,"children":6995},{"style":1041},[6996],{"type":998,"value":6997},", every_third)\n",{"type":993,"tag":1376,"props":6999,"children":7002},{"emoji":7000,"title":7001,"type":4069},"⚡","Reading Best Practices",[7003,7011,7034,7042],{"type":993,"tag":1001,"props":7004,"children":7005},{},[7006],{"type":993,"tag":1386,"props":7007,"children":7008},{},[7009],{"type":998,"value":7010},"Safety Guidelines:",{"type":993,"tag":1392,"props":7012,"children":7013},{},[7014,7019,7024,7029],{"type":993,"tag":1396,"props":7015,"children":7016},{},[7017],{"type":998,"value":7018},"Always check list length before accessing indices",{"type":993,"tag":1396,"props":7020,"children":7021},{},[7022],{"type":998,"value":7023},"Use try/except when searching for items that might not exist",{"type":993,"tag":1396,"props":7025,"children":7026},{},[7027],{"type":998,"value":7028},"Consider using negative indices for end-relative access",{"type":993,"tag":1396,"props":7030,"children":7031},{},[7032],{"type":998,"value":7033},"Use slicing for multiple items instead of individual index access",{"type":993,"tag":1001,"props":7035,"children":7036},{},[7037],{"type":993,"tag":1386,"props":7038,"children":7039},{},[7040],{"type":998,"value":7041},"Performance Tips:",{"type":993,"tag":1392,"props":7043,"children":7044},{},[7045,7056,7061],{"type":993,"tag":1396,"props":7046,"children":7047},{},[7048,7049,7054],{"type":998,"value":1446},{"type":993,"tag":1022,"props":7050,"children":7052},{"className":7051},[],[7053],{"type":998,"value":2751},{"type":998,"value":7055}," operator for existence checking (fastest)",{"type":993,"tag":1396,"props":7057,"children":7058},{},[7059],{"type":998,"value":7060},"Use list comprehensions for filtering (often faster than loops)",{"type":993,"tag":1396,"props":7062,"children":7063},{},[7064,7066,7072],{"type":998,"value":7065},"Consider ",{"type":993,"tag":1022,"props":7067,"children":7069},{"className":7068},[],[7070],{"type":998,"value":7071},"enumerate()",{"type":998,"value":7073}," when you need both index and value",{"type":993,"tag":1359,"props":7075,"children":7077},{"id":7076},"list-reading-reference",[7078],{"type":998,"value":7079},"List Reading Reference",{"type":993,"tag":1001,"props":7081,"children":7082},{},[7083],{"type":998,"value":7084},"Python provides various methods and techniques for reading list data:",{"type":993,"tag":7086,"props":7087,"children":7088},"table",{},[7089,7118],{"type":993,"tag":7090,"props":7091,"children":7092},"thead",{},[7093],{"type":993,"tag":7094,"props":7095,"children":7096},"tr",{},[7097,7103,7108,7113],{"type":993,"tag":7098,"props":7099,"children":7100},"th",{},[7101],{"type":998,"value":7102},"Method",{"type":993,"tag":7098,"props":7104,"children":7105},{},[7106],{"type":998,"value":7107},"Purpose",{"type":993,"tag":7098,"props":7109,"children":7110},{},[7111],{"type":998,"value":7112},"Example",{"type":993,"tag":7098,"props":7114,"children":7115},{},[7116],{"type":998,"value":7117},"Result",{"type":993,"tag":7119,"props":7120,"children":7121},"tbody",{},[7122,7154,7185,7215,7245,7275,7305,7335,7366,7396],{"type":993,"tag":7094,"props":7123,"children":7124},{},[7125,7135,7140,7149],{"type":993,"tag":7126,"props":7127,"children":7128},"td",{},[7129],{"type":993,"tag":1022,"props":7130,"children":7132},{"className":7131},[],[7133],{"type":998,"value":7134},"list[index]",{"type":993,"tag":7126,"props":7136,"children":7137},{},[7138],{"type":998,"value":7139},"Access single item",{"type":993,"tag":7126,"props":7141,"children":7142},{},[7143],{"type":993,"tag":1022,"props":7144,"children":7146},{"className":7145},[],[7147],{"type":998,"value":7148},"fruits[0]",{"type":993,"tag":7126,"props":7150,"children":7151},{},[7152],{"type":998,"value":7153},"First item",{"type":993,"tag":7094,"props":7155,"children":7156},{},[7157,7166,7171,7180],{"type":993,"tag":7126,"props":7158,"children":7159},{},[7160],{"type":993,"tag":1022,"props":7161,"children":7163},{"className":7162},[],[7164],{"type":998,"value":7165},"list[start:stop]",{"type":993,"tag":7126,"props":7167,"children":7168},{},[7169],{"type":998,"value":7170},"Slice portion",{"type":993,"tag":7126,"props":7172,"children":7173},{},[7174],{"type":993,"tag":1022,"props":7175,"children":7177},{"className":7176},[],[7178],{"type":998,"value":7179},"numbers[1:4]",{"type":993,"tag":7126,"props":7181,"children":7182},{},[7183],{"type":998,"value":7184},"Items 1-3",{"type":993,"tag":7094,"props":7186,"children":7187},{},[7188,7196,7201,7210],{"type":993,"tag":7126,"props":7189,"children":7190},{},[7191],{"type":993,"tag":1022,"props":7192,"children":7194},{"className":7193},[],[7195],{"type":998,"value":2082},{"type":993,"tag":7126,"props":7197,"children":7198},{},[7199],{"type":998,"value":7200},"Reverse list",{"type":993,"tag":7126,"props":7202,"children":7203},{},[7204],{"type":993,"tag":1022,"props":7205,"children":7207},{"className":7206},[],[7208],{"type":998,"value":7209},"data[::-1]",{"type":993,"tag":7126,"props":7211,"children":7212},{},[7213],{"type":998,"value":7214},"Reversed copy",{"type":993,"tag":7094,"props":7216,"children":7217},{},[7218,7226,7231,7240],{"type":993,"tag":7126,"props":7219,"children":7220},{},[7221],{"type":993,"tag":1022,"props":7222,"children":7224},{"className":7223},[],[7225],{"type":998,"value":2696},{"type":993,"tag":7126,"props":7227,"children":7228},{},[7229],{"type":998,"value":7230},"Check existence",{"type":993,"tag":7126,"props":7232,"children":7233},{},[7234],{"type":993,"tag":1022,"props":7235,"children":7237},{"className":7236},[],[7238],{"type":998,"value":7239},"'apple' in fruits",{"type":993,"tag":7126,"props":7241,"children":7242},{},[7243],{"type":998,"value":7244},"True/False",{"type":993,"tag":7094,"props":7246,"children":7247},{},[7248,7256,7261,7270],{"type":993,"tag":7126,"props":7249,"children":7250},{},[7251],{"type":993,"tag":1022,"props":7252,"children":7254},{"className":7253},[],[7255],{"type":998,"value":2707},{"type":993,"tag":7126,"props":7257,"children":7258},{},[7259],{"type":998,"value":7260},"Find position",{"type":993,"tag":7126,"props":7262,"children":7263},{},[7264],{"type":993,"tag":1022,"props":7265,"children":7267},{"className":7266},[],[7268],{"type":998,"value":7269},"fruits.index('apple')",{"type":993,"tag":7126,"props":7271,"children":7272},{},[7273],{"type":998,"value":7274},"Index number",{"type":993,"tag":7094,"props":7276,"children":7277},{},[7278,7286,7291,7300],{"type":993,"tag":7126,"props":7279,"children":7280},{},[7281],{"type":993,"tag":1022,"props":7282,"children":7284},{"className":7283},[],[7285],{"type":998,"value":2718},{"type":993,"tag":7126,"props":7287,"children":7288},{},[7289],{"type":998,"value":7290},"Count occurrences",{"type":993,"tag":7126,"props":7292,"children":7293},{},[7294],{"type":993,"tag":1022,"props":7295,"children":7297},{"className":7296},[],[7298],{"type":998,"value":7299},"numbers.count(5)",{"type":993,"tag":7126,"props":7301,"children":7302},{},[7303],{"type":998,"value":7304},"Count",{"type":993,"tag":7094,"props":7306,"children":7307},{},[7308,7316,7321,7330],{"type":993,"tag":7126,"props":7309,"children":7310},{},[7311],{"type":993,"tag":1022,"props":7312,"children":7314},{"className":7313},[],[7315],{"type":998,"value":1452},{"type":993,"tag":7126,"props":7317,"children":7318},{},[7319],{"type":998,"value":7320},"Get length",{"type":993,"tag":7126,"props":7322,"children":7323},{},[7324],{"type":993,"tag":1022,"props":7325,"children":7327},{"className":7326},[],[7328],{"type":998,"value":7329},"len(fruits)",{"type":993,"tag":7126,"props":7331,"children":7332},{},[7333],{"type":998,"value":7334},"Number of items",{"type":993,"tag":7094,"props":7336,"children":7337},{},[7338,7347,7352,7361],{"type":993,"tag":7126,"props":7339,"children":7340},{},[7341],{"type":993,"tag":1022,"props":7342,"children":7344},{"className":7343},[],[7345],{"type":998,"value":7346},"min/max(list)",{"type":993,"tag":7126,"props":7348,"children":7349},{},[7350],{"type":998,"value":7351},"Find extremes",{"type":993,"tag":7126,"props":7353,"children":7354},{},[7355],{"type":993,"tag":1022,"props":7356,"children":7358},{"className":7357},[],[7359],{"type":998,"value":7360},"min(numbers)",{"type":993,"tag":7126,"props":7362,"children":7363},{},[7364],{"type":998,"value":7365},"Smallest value",{"type":993,"tag":7094,"props":7367,"children":7368},{},[7369,7377,7382,7391],{"type":993,"tag":7126,"props":7370,"children":7371},{},[7372],{"type":993,"tag":1022,"props":7373,"children":7375},{"className":7374},[],[7376],{"type":998,"value":4122},{"type":993,"tag":7126,"props":7378,"children":7379},{},[7380],{"type":998,"value":7381},"Sum numbers",{"type":993,"tag":7126,"props":7383,"children":7384},{},[7385],{"type":993,"tag":1022,"props":7386,"children":7388},{"className":7387},[],[7389],{"type":998,"value":7390},"sum(numbers)",{"type":993,"tag":7126,"props":7392,"children":7393},{},[7394],{"type":998,"value":7395},"Total",{"type":993,"tag":7094,"props":7397,"children":7398},{},[7399,7408,7413,7422],{"type":993,"tag":7126,"props":7400,"children":7401},{},[7402],{"type":993,"tag":1022,"props":7403,"children":7405},{"className":7404},[],[7406],{"type":998,"value":7407},"enumerate(list)",{"type":993,"tag":7126,"props":7409,"children":7410},{},[7411],{"type":998,"value":7412},"Index + value",{"type":993,"tag":7126,"props":7414,"children":7415},{},[7416],{"type":993,"tag":1022,"props":7417,"children":7419},{"className":7418},[],[7420],{"type":998,"value":7421},"enumerate(fruits)",{"type":993,"tag":7126,"props":7423,"children":7424},{},[7425],{"type":998,"value":7426},"(index, value) pairs",{"type":993,"tag":1001,"props":7428,"children":7429},{},[7430],{"type":998,"value":7431},"Choose the appropriate method based on your specific data reading needs.",{"type":993,"tag":7433,"props":7434,"children":7437},"exercise",{"hint":7435,"prompt":7436},"Use slicing for parts of the list and list comprehension with multiple conditions!","Extract specific data from a list using slicing and find items that meet multiple conditions.",[7438],{"type":993,"tag":1016,"props":7439,"children":7441},{"className":1018,"code":7440,"language":6,"meta":8,"style":8},"numbers = [12, 45, 23, 67, 34, 89, 56, 78, 90, 43, 21, 65]\n\n# TODO: Part 1: Get the middle 6 numbers (skip first 3 and last 3)\nmiddle_numbers = # TODO: Your code here\n\n# TODO: Part 2: Find numbers that are both > 50 AND even\nlarge_evens = # TODO: Your code here\n\n# 1 TODO: Part 3: Get every 3rd number starting from index\nevery_third = # TODO: Your code here\n\nprint(\"Middle 6 numbers:\", middle_numbers)\nprint(\"Large even numbers:\", large_evens)\nprint(\"Every 3rd from index 1:\", every_third)\n",[7442],{"type":993,"tag":1022,"props":7443,"children":7444},{"__ignoreMap":8},[7445,7566,7573,7591,7617,7624,7640,7664,7671,7688,7711,7718,7739,7760],{"type":993,"tag":1026,"props":7446,"children":7447},{"class":1028,"line":12},[7448,7452,7456,7460,7465,7469,7474,7478,7482,7486,7491,7495,7500,7504,7509,7513,7518,7522,7526,7530,7535,7539,7544,7548,7553,7557,7562],{"type":993,"tag":1026,"props":7449,"children":7450},{"style":1041},[7451],{"type":998,"value":1111},{"type":993,"tag":1026,"props":7453,"children":7454},{"style":1047},[7455],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7457,"children":7458},{"style":1041},[7459],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7461,"children":7462},{"style":1122},[7463],{"type":998,"value":7464},"12",{"type":993,"tag":1026,"props":7466,"children":7467},{"style":1041},[7468],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7470,"children":7471},{"style":1122},[7472],{"type":998,"value":7473},"45",{"type":993,"tag":1026,"props":7475,"children":7476},{"style":1041},[7477],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7479,"children":7480},{"style":1122},[7481],{"type":998,"value":4233},{"type":993,"tag":1026,"props":7483,"children":7484},{"style":1041},[7485],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7487,"children":7488},{"style":1122},[7489],{"type":998,"value":7490},"67",{"type":993,"tag":1026,"props":7492,"children":7493},{"style":1041},[7494],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7496,"children":7497},{"style":1122},[7498],{"type":998,"value":7499},"34",{"type":993,"tag":1026,"props":7501,"children":7502},{"style":1041},[7503],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7505,"children":7506},{"style":1122},[7507],{"type":998,"value":7508},"89",{"type":993,"tag":1026,"props":7510,"children":7511},{"style":1041},[7512],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7514,"children":7515},{"style":1122},[7516],{"type":998,"value":7517},"56",{"type":993,"tag":1026,"props":7519,"children":7520},{"style":1041},[7521],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7523,"children":7524},{"style":1122},[7525],{"type":998,"value":3418},{"type":993,"tag":1026,"props":7527,"children":7528},{"style":1041},[7529],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7531,"children":7532},{"style":1122},[7533],{"type":998,"value":7534},"90",{"type":993,"tag":1026,"props":7536,"children":7537},{"style":1041},[7538],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7540,"children":7541},{"style":1122},[7542],{"type":998,"value":7543},"43",{"type":993,"tag":1026,"props":7545,"children":7546},{"style":1041},[7547],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7549,"children":7550},{"style":1122},[7551],{"type":998,"value":7552},"21",{"type":993,"tag":1026,"props":7554,"children":7555},{"style":1041},[7556],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7558,"children":7559},{"style":1122},[7560],{"type":998,"value":7561},"65",{"type":993,"tag":1026,"props":7563,"children":7564},{"style":1041},[7565],{"type":998,"value":1103},{"type":993,"tag":1026,"props":7567,"children":7568},{"class":1028,"line":27},[7569],{"type":993,"tag":1026,"props":7570,"children":7571},{"emptyLinePlaceholder":13},[7572],{"type":998,"value":1173},{"type":993,"tag":1026,"props":7574,"children":7575},{"class":1028,"line":36},[7576,7581,7586],{"type":993,"tag":1026,"props":7577,"children":7578},{"style":1032},[7579],{"type":998,"value":7580},"# ",{"type":993,"tag":1026,"props":7582,"children":7583},{"style":1047},[7584],{"type":998,"value":7585},"TODO",{"type":993,"tag":1026,"props":7587,"children":7588},{"style":1032},[7589],{"type":998,"value":7590},": Part 1: Get the middle 6 numbers (skip first 3 and last 3)\n",{"type":993,"tag":1026,"props":7592,"children":7593},{"class":1028,"line":45},[7594,7599,7603,7608,7612],{"type":993,"tag":1026,"props":7595,"children":7596},{"style":1041},[7597],{"type":998,"value":7598},"middle_numbers ",{"type":993,"tag":1026,"props":7600,"children":7601},{"style":1047},[7602],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7604,"children":7605},{"style":1032},[7606],{"type":998,"value":7607}," # ",{"type":993,"tag":1026,"props":7609,"children":7610},{"style":1047},[7611],{"type":998,"value":7585},{"type":993,"tag":1026,"props":7613,"children":7614},{"style":1032},[7615],{"type":998,"value":7616},": Your code here\n",{"type":993,"tag":1026,"props":7618,"children":7619},{"class":1028,"line":54},[7620],{"type":993,"tag":1026,"props":7621,"children":7622},{"emptyLinePlaceholder":13},[7623],{"type":998,"value":1173},{"type":993,"tag":1026,"props":7625,"children":7626},{"class":1028,"line":63},[7627,7631,7635],{"type":993,"tag":1026,"props":7628,"children":7629},{"style":1032},[7630],{"type":998,"value":7580},{"type":993,"tag":1026,"props":7632,"children":7633},{"style":1047},[7634],{"type":998,"value":7585},{"type":993,"tag":1026,"props":7636,"children":7637},{"style":1032},[7638],{"type":998,"value":7639},": Part 2: Find numbers that are both > 50 AND even\n",{"type":993,"tag":1026,"props":7641,"children":7642},{"class":1028,"line":72},[7643,7648,7652,7656,7660],{"type":993,"tag":1026,"props":7644,"children":7645},{"style":1041},[7646],{"type":998,"value":7647},"large_evens ",{"type":993,"tag":1026,"props":7649,"children":7650},{"style":1047},[7651],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7653,"children":7654},{"style":1032},[7655],{"type":998,"value":7607},{"type":993,"tag":1026,"props":7657,"children":7658},{"style":1047},[7659],{"type":998,"value":7585},{"type":993,"tag":1026,"props":7661,"children":7662},{"style":1032},[7663],{"type":998,"value":7616},{"type":993,"tag":1026,"props":7665,"children":7666},{"class":1028,"line":81},[7667],{"type":993,"tag":1026,"props":7668,"children":7669},{"emptyLinePlaceholder":13},[7670],{"type":998,"value":1173},{"type":993,"tag":1026,"props":7672,"children":7673},{"class":1028,"line":91},[7674,7679,7683],{"type":993,"tag":1026,"props":7675,"children":7676},{"style":1032},[7677],{"type":998,"value":7678},"# 1 ",{"type":993,"tag":1026,"props":7680,"children":7681},{"style":1047},[7682],{"type":998,"value":7585},{"type":993,"tag":1026,"props":7684,"children":7685},{"style":1032},[7686],{"type":998,"value":7687},": Part 3: Get every 3rd number starting from index\n",{"type":993,"tag":1026,"props":7689,"children":7690},{"class":1028,"line":100},[7691,7695,7699,7703,7707],{"type":993,"tag":1026,"props":7692,"children":7693},{"style":1041},[7694],{"type":998,"value":6959},{"type":993,"tag":1026,"props":7696,"children":7697},{"style":1047},[7698],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7700,"children":7701},{"style":1032},[7702],{"type":998,"value":7607},{"type":993,"tag":1026,"props":7704,"children":7705},{"style":1047},[7706],{"type":998,"value":7585},{"type":993,"tag":1026,"props":7708,"children":7709},{"style":1032},[7710],{"type":998,"value":7616},{"type":993,"tag":1026,"props":7712,"children":7713},{"class":1028,"line":109},[7714],{"type":993,"tag":1026,"props":7715,"children":7716},{"emptyLinePlaceholder":13},[7717],{"type":998,"value":1173},{"type":993,"tag":1026,"props":7719,"children":7720},{"class":1028,"line":118},[7721,7725,7729,7734],{"type":993,"tag":1026,"props":7722,"children":7723},{"style":1122},[7724],{"type":998,"value":1189},{"type":993,"tag":1026,"props":7726,"children":7727},{"style":1041},[7728],{"type":998,"value":1194},{"type":993,"tag":1026,"props":7730,"children":7731},{"style":1058},[7732],{"type":998,"value":7733},"\"Middle 6 numbers:\"",{"type":993,"tag":1026,"props":7735,"children":7736},{"style":1041},[7737],{"type":998,"value":7738},", middle_numbers)\n",{"type":993,"tag":1026,"props":7740,"children":7741},{"class":1028,"line":127},[7742,7746,7750,7755],{"type":993,"tag":1026,"props":7743,"children":7744},{"style":1122},[7745],{"type":998,"value":1189},{"type":993,"tag":1026,"props":7747,"children":7748},{"style":1041},[7749],{"type":998,"value":1194},{"type":993,"tag":1026,"props":7751,"children":7752},{"style":1058},[7753],{"type":998,"value":7754},"\"Large even numbers:\"",{"type":993,"tag":1026,"props":7756,"children":7757},{"style":1041},[7758],{"type":998,"value":7759},", large_evens)\n",{"type":993,"tag":1026,"props":7761,"children":7762},{"class":1028,"line":136},[7763,7767,7771,7775],{"type":993,"tag":1026,"props":7764,"children":7765},{"style":1122},[7766],{"type":998,"value":1189},{"type":993,"tag":1026,"props":7768,"children":7769},{"style":1041},[7770],{"type":998,"value":1194},{"type":993,"tag":1026,"props":7772,"children":7773},{"style":1058},[7774],{"type":998,"value":2532},{"type":993,"tag":1026,"props":7776,"children":7777},{"style":1041},[7778],{"type":998,"value":6997},{"type":993,"tag":1466,"props":7780,"children":7782},{"id":7781},"solution-and-explanation",[7783],{"type":998,"value":7784},"Solution and Explanation 💡",{"type":993,"tag":7786,"props":7787,"children":7788},"details",{},[7789,7797,8174,8182],{"type":993,"tag":7790,"props":7791,"children":7794},"summary",{"className":7792},[7793],"cursor-pointer",[7795],{"type":998,"value":7796},"Click to see the complete solution",{"type":993,"tag":1012,"props":7798,"children":7799},{},[7800],{"type":993,"tag":1016,"props":7801,"children":7803},{"className":1018,"code":7802,"language":6,"meta":8,"style":8},"numbers = [12, 45, 23, 67, 34, 89, 56, 78, 90, 43, 21, 65]\n\n# Part 1: Get the middle 6 numbers (skip first 3 and last 3)\nmiddle_numbers = numbers[3:-3]\n\n# Part 2: Find numbers that are both > 50 AND even\nlarge_evens = [num for num in numbers if num > 50 and num % 2 == 0]\n\n# 1 Part 3: Get every 3rd number starting from index\nevery_third = numbers[1::3]\n\nprint(\"Middle 6 numbers:\", middle_numbers)\nprint(\"Large even numbers:\", large_evens)\nprint(\"Every 3rd from index 1:\", every_third)\n",[7804],{"type":993,"tag":1022,"props":7805,"children":7806},{"__ignoreMap":8},[7807,7918,7925,7933,7969,7976,7984,8064,8071,8079,8110,8117,8136,8155],{"type":993,"tag":1026,"props":7808,"children":7809},{"class":1028,"line":12},[7810,7814,7818,7822,7826,7830,7834,7838,7842,7846,7850,7854,7858,7862,7866,7870,7874,7878,7882,7886,7890,7894,7898,7902,7906,7910,7914],{"type":993,"tag":1026,"props":7811,"children":7812},{"style":1041},[7813],{"type":998,"value":1111},{"type":993,"tag":1026,"props":7815,"children":7816},{"style":1047},[7817],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7819,"children":7820},{"style":1041},[7821],{"type":998,"value":1055},{"type":993,"tag":1026,"props":7823,"children":7824},{"style":1122},[7825],{"type":998,"value":7464},{"type":993,"tag":1026,"props":7827,"children":7828},{"style":1041},[7829],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7831,"children":7832},{"style":1122},[7833],{"type":998,"value":7473},{"type":993,"tag":1026,"props":7835,"children":7836},{"style":1041},[7837],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7839,"children":7840},{"style":1122},[7841],{"type":998,"value":4233},{"type":993,"tag":1026,"props":7843,"children":7844},{"style":1041},[7845],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7847,"children":7848},{"style":1122},[7849],{"type":998,"value":7490},{"type":993,"tag":1026,"props":7851,"children":7852},{"style":1041},[7853],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7855,"children":7856},{"style":1122},[7857],{"type":998,"value":7499},{"type":993,"tag":1026,"props":7859,"children":7860},{"style":1041},[7861],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7863,"children":7864},{"style":1122},[7865],{"type":998,"value":7508},{"type":993,"tag":1026,"props":7867,"children":7868},{"style":1041},[7869],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7871,"children":7872},{"style":1122},[7873],{"type":998,"value":7517},{"type":993,"tag":1026,"props":7875,"children":7876},{"style":1041},[7877],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7879,"children":7880},{"style":1122},[7881],{"type":998,"value":3418},{"type":993,"tag":1026,"props":7883,"children":7884},{"style":1041},[7885],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7887,"children":7888},{"style":1122},[7889],{"type":998,"value":7534},{"type":993,"tag":1026,"props":7891,"children":7892},{"style":1041},[7893],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7895,"children":7896},{"style":1122},[7897],{"type":998,"value":7543},{"type":993,"tag":1026,"props":7899,"children":7900},{"style":1041},[7901],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7903,"children":7904},{"style":1122},[7905],{"type":998,"value":7552},{"type":993,"tag":1026,"props":7907,"children":7908},{"style":1041},[7909],{"type":998,"value":1066},{"type":993,"tag":1026,"props":7911,"children":7912},{"style":1122},[7913],{"type":998,"value":7561},{"type":993,"tag":1026,"props":7915,"children":7916},{"style":1041},[7917],{"type":998,"value":1103},{"type":993,"tag":1026,"props":7919,"children":7920},{"class":1028,"line":27},[7921],{"type":993,"tag":1026,"props":7922,"children":7923},{"emptyLinePlaceholder":13},[7924],{"type":998,"value":1173},{"type":993,"tag":1026,"props":7926,"children":7927},{"class":1028,"line":36},[7928],{"type":993,"tag":1026,"props":7929,"children":7930},{"style":1032},[7931],{"type":998,"value":7932},"# Part 1: Get the middle 6 numbers (skip first 3 and last 3)\n",{"type":993,"tag":1026,"props":7934,"children":7935},{"class":1028,"line":45},[7936,7940,7944,7949,7953,7957,7961,7965],{"type":993,"tag":1026,"props":7937,"children":7938},{"style":1041},[7939],{"type":998,"value":7598},{"type":993,"tag":1026,"props":7941,"children":7942},{"style":1047},[7943],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7945,"children":7946},{"style":1041},[7947],{"type":998,"value":7948}," numbers[",{"type":993,"tag":1026,"props":7950,"children":7951},{"style":1122},[7952],{"type":998,"value":1775},{"type":993,"tag":1026,"props":7954,"children":7955},{"style":1041},[7956],{"type":998,"value":2264},{"type":993,"tag":1026,"props":7958,"children":7959},{"style":1047},[7960],{"type":998,"value":1239},{"type":993,"tag":1026,"props":7962,"children":7963},{"style":1122},[7964],{"type":998,"value":1775},{"type":993,"tag":1026,"props":7966,"children":7967},{"style":1041},[7968],{"type":998,"value":1103},{"type":993,"tag":1026,"props":7970,"children":7971},{"class":1028,"line":54},[7972],{"type":993,"tag":1026,"props":7973,"children":7974},{"emptyLinePlaceholder":13},[7975],{"type":998,"value":1173},{"type":993,"tag":1026,"props":7977,"children":7978},{"class":1028,"line":63},[7979],{"type":993,"tag":1026,"props":7980,"children":7981},{"style":1032},[7982],{"type":998,"value":7983},"# Part 2: Find numbers that are both > 50 AND even\n",{"type":993,"tag":1026,"props":7985,"children":7986},{"class":1028,"line":72},[7987,7991,7995,8000,8004,8009,8013,8018,8022,8026,8030,8035,8040,8044,8048,8052,8056,8060],{"type":993,"tag":1026,"props":7988,"children":7989},{"style":1041},[7990],{"type":998,"value":7647},{"type":993,"tag":1026,"props":7992,"children":7993},{"style":1047},[7994],{"type":998,"value":1050},{"type":993,"tag":1026,"props":7996,"children":7997},{"style":1041},[7998],{"type":998,"value":7999}," [num ",{"type":993,"tag":1026,"props":8001,"children":8002},{"style":1047},[8003],{"type":998,"value":3468},{"type":993,"tag":1026,"props":8005,"children":8006},{"style":1041},[8007],{"type":998,"value":8008}," num ",{"type":993,"tag":1026,"props":8010,"children":8011},{"style":1047},[8012],{"type":998,"value":2751},{"type":993,"tag":1026,"props":8014,"children":8015},{"style":1041},[8016],{"type":998,"value":8017}," numbers ",{"type":993,"tag":1026,"props":8019,"children":8020},{"style":1047},[8021],{"type":998,"value":5484},{"type":993,"tag":1026,"props":8023,"children":8024},{"style":1041},[8025],{"type":998,"value":8008},{"type":993,"tag":1026,"props":8027,"children":8028},{"style":1047},[8029],{"type":998,"value":4751},{"type":993,"tag":1026,"props":8031,"children":8032},{"style":1122},[8033],{"type":998,"value":8034}," 50",{"type":993,"tag":1026,"props":8036,"children":8037},{"style":1047},[8038],{"type":998,"value":8039}," and",{"type":993,"tag":1026,"props":8041,"children":8042},{"style":1041},[8043],{"type":998,"value":8008},{"type":993,"tag":1026,"props":8045,"children":8046},{"style":1047},[8047],{"type":998,"value":5569},{"type":993,"tag":1026,"props":8049,"children":8050},{"style":1122},[8051],{"type":998,"value":5574},{"type":993,"tag":1026,"props":8053,"children":8054},{"style":1047},[8055],{"type":998,"value":5579},{"type":993,"tag":1026,"props":8057,"children":8058},{"style":1122},[8059],{"type":998,"value":4712},{"type":993,"tag":1026,"props":8061,"children":8062},{"style":1041},[8063],{"type":998,"value":1103},{"type":993,"tag":1026,"props":8065,"children":8066},{"class":1028,"line":81},[8067],{"type":993,"tag":1026,"props":8068,"children":8069},{"emptyLinePlaceholder":13},[8070],{"type":998,"value":1173},{"type":993,"tag":1026,"props":8072,"children":8073},{"class":1028,"line":91},[8074],{"type":993,"tag":1026,"props":8075,"children":8076},{"style":1032},[8077],{"type":998,"value":8078},"# 1 Part 3: Get every 3rd number starting from index\n",{"type":993,"tag":1026,"props":8080,"children":8081},{"class":1028,"line":100},[8082,8086,8090,8094,8098,8102,8106],{"type":993,"tag":1026,"props":8083,"children":8084},{"style":1041},[8085],{"type":998,"value":6959},{"type":993,"tag":1026,"props":8087,"children":8088},{"style":1047},[8089],{"type":998,"value":1050},{"type":993,"tag":1026,"props":8091,"children":8092},{"style":1041},[8093],{"type":998,"value":7948},{"type":993,"tag":1026,"props":8095,"children":8096},{"style":1122},[8097],{"type":998,"value":1244},{"type":993,"tag":1026,"props":8099,"children":8100},{"style":1041},[8101],{"type":998,"value":2545},{"type":993,"tag":1026,"props":8103,"children":8104},{"style":1122},[8105],{"type":998,"value":1775},{"type":993,"tag":1026,"props":8107,"children":8108},{"style":1041},[8109],{"type":998,"value":1103},{"type":993,"tag":1026,"props":8111,"children":8112},{"class":1028,"line":109},[8113],{"type":993,"tag":1026,"props":8114,"children":8115},{"emptyLinePlaceholder":13},[8116],{"type":998,"value":1173},{"type":993,"tag":1026,"props":8118,"children":8119},{"class":1028,"line":118},[8120,8124,8128,8132],{"type":993,"tag":1026,"props":8121,"children":8122},{"style":1122},[8123],{"type":998,"value":1189},{"type":993,"tag":1026,"props":8125,"children":8126},{"style":1041},[8127],{"type":998,"value":1194},{"type":993,"tag":1026,"props":8129,"children":8130},{"style":1058},[8131],{"type":998,"value":7733},{"type":993,"tag":1026,"props":8133,"children":8134},{"style":1041},[8135],{"type":998,"value":7738},{"type":993,"tag":1026,"props":8137,"children":8138},{"class":1028,"line":127},[8139,8143,8147,8151],{"type":993,"tag":1026,"props":8140,"children":8141},{"style":1122},[8142],{"type":998,"value":1189},{"type":993,"tag":1026,"props":8144,"children":8145},{"style":1041},[8146],{"type":998,"value":1194},{"type":993,"tag":1026,"props":8148,"children":8149},{"style":1058},[8150],{"type":998,"value":7754},{"type":993,"tag":1026,"props":8152,"children":8153},{"style":1041},[8154],{"type":998,"value":7759},{"type":993,"tag":1026,"props":8156,"children":8157},{"class":1028,"line":136},[8158,8162,8166,8170],{"type":993,"tag":1026,"props":8159,"children":8160},{"style":1122},[8161],{"type":998,"value":1189},{"type":993,"tag":1026,"props":8163,"children":8164},{"style":1041},[8165],{"type":998,"value":1194},{"type":993,"tag":1026,"props":8167,"children":8168},{"style":1058},[8169],{"type":998,"value":2532},{"type":993,"tag":1026,"props":8171,"children":8172},{"style":1041},[8173],{"type":998,"value":6997},{"type":993,"tag":1001,"props":8175,"children":8176},{},[8177],{"type":993,"tag":1386,"props":8178,"children":8179},{},[8180],{"type":998,"value":8181},"Key Learning Points:",{"type":993,"tag":1392,"props":8183,"children":8184},{},[8185,8204,8223,8241],{"type":993,"tag":1396,"props":8186,"children":8187},{},[8188,8190,8195,8196,8202],{"type":998,"value":8189},"📌 ",{"type":993,"tag":1386,"props":8191,"children":8192},{},[8193],{"type":998,"value":8194},"Slice notation",{"type":998,"value":3630},{"type":993,"tag":1022,"props":8197,"children":8199},{"className":8198},[],[8200],{"type":998,"value":8201},"[3:-3]",{"type":998,"value":8203}," skips first 3 and last 3 elements",{"type":993,"tag":1396,"props":8205,"children":8206},{},[8207,8208,8213,8215,8221],{"type":998,"value":8189},{"type":993,"tag":1386,"props":8209,"children":8210},{},[8211],{"type":998,"value":8212},"Multiple conditions",{"type":998,"value":8214},": Use ",{"type":993,"tag":1022,"props":8216,"children":8218},{"className":8217},[],[8219],{"type":998,"value":8220},"and",{"type":998,"value":8222}," to combine conditions in list comprehension",{"type":993,"tag":1396,"props":8224,"children":8225},{},[8226,8227,8232,8233,8239],{"type":998,"value":8189},{"type":993,"tag":1386,"props":8228,"children":8229},{},[8230],{"type":998,"value":8231},"Step slicing",{"type":998,"value":3630},{"type":993,"tag":1022,"props":8234,"children":8236},{"className":8235},[],[8237],{"type":998,"value":8238},"[start::step]",{"type":998,"value":8240}," takes every nth element",{"type":993,"tag":1396,"props":8242,"children":8243},{},[8244,8245,8250,8251,8257],{"type":998,"value":8189},{"type":993,"tag":1386,"props":8246,"children":8247},{},[8248],{"type":998,"value":8249},"Modulo operator",{"type":998,"value":3630},{"type":993,"tag":1022,"props":8252,"children":8254},{"className":8253},[],[8255],{"type":998,"value":8256},"% 2 == 0",{"type":998,"value":8258}," checks if number is even",{"type":993,"tag":1359,"props":8260,"children":8262},{"id":8261},"take-quiz",[8263],{"type":998,"value":8264},"Take Quiz",{"type":993,"tag":1001,"props":8266,"children":8267},{},[8268],{"type":998,"value":8269},"Test your understanding of reading list data:",{"type":993,"tag":8271,"props":8272,"children":8274},"redirect-button",{"label":8264,"url":8273},"/tutorial-quiz/python/reading-list-data",[],{"type":993,"tag":1359,"props":8276,"children":8278},{"id":8277},"whats-next",[8279],{"type":998,"value":8280},"What's Next?",{"type":993,"tag":1001,"props":8282,"children":8283},{},[8284,8286,8291],{"type":998,"value":8285},"Now that you can read data from lists effectively, you're ready to learn about ",{"type":993,"tag":1386,"props":8287,"children":8288},{},[8289],{"type":998,"value":8290},"modifying lists",{"type":998,"value":8292},". This includes changing existing items, updating values, and transforming list contents.",{"type":993,"tag":1001,"props":8294,"children":8295},{},[8296,8298,8302],{"type":998,"value":8297},"Ready to continue? Check out our lesson on ",{"type":993,"tag":3339,"props":8299,"children":8300},{"href":298},[8301],{"type":998,"value":299},{"type":998,"value":8303}," to learn data manipulation techniques! 🔧",{"type":993,"tag":8305,"props":8306,"children":8307},"style",{},[8308],{"type":998,"value":8309},"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":8311},[8312,8315,8318,8321,8324,8327,8330,8333,8336,8337],{"id":1361,"depth":27,"text":1364,"children":8313},[8314],{"id":1468,"depth":36,"text":1471},{"id":1943,"depth":27,"text":1946,"children":8316},[8317],{"id":2108,"depth":36,"text":2111},{"id":2658,"depth":27,"text":2661,"children":8319},[8320],{"id":2772,"depth":36,"text":2775},{"id":3329,"depth":27,"text":3332,"children":8322},[8323],{"id":3353,"depth":36,"text":3356},{"id":4051,"depth":27,"text":4054,"children":8325},[8326],{"id":4170,"depth":36,"text":4173},{"id":4999,"depth":27,"text":5002,"children":8328},[8329],{"id":5015,"depth":36,"text":5018},{"id":6062,"depth":27,"text":6065,"children":8331},[8332],{"id":6073,"depth":36,"text":6076},{"id":7076,"depth":27,"text":7079,"children":8334},[8335],{"id":7781,"depth":36,"text":7784},{"id":8261,"depth":27,"text":8264},{"id":8277,"depth":27,"text":8280},1782373736480]