[{"data":1,"prerenderedAt":5910},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/creating-lists":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",[279],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"body":989,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},{"type":990,"children":991,"toc":5882},"root",[992,1000,1006,1011,1332,1339,1344,1349,1451,1458,1463,1968,1974,1987,1992,2070,2076,2081,2489,2494,2500,2505,2510,2604,2610,2615,3074,3080,3085,3090,3171,3177,3182,3528,3534,3539,3544,3636,3642,3647,4117,4123,4128,4133,4139,4144,4623,4629,4634,4640,4645,5150,5156,5161,5389,5394,5558,5564,5831,5837,5842,5847,5853,5865,5876],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":283},[997],{"type":998,"value":999},"text","📝 Creating Lists",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Creating lists is the foundation of working with collections in Python. There are multiple ways to create lists, each suited for different scenarios - from simple manual creation to dynamic generation based on patterns or conditions. Understanding these different approaches gives you flexibility in how you initialize and populate your data structures.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Whether you're starting with known values, generating sequences, or creating empty lists to fill later, Python provides intuitive and powerful methods for list creation.",{"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","# Different ways to create lists\n# Simple list with known values\nfruits = [\"apple\", \"banana\", \"cherry\"]\nprint(\"Fruits:\", fruits)\n\n# Empty list to fill later\nshopping_cart = []\nprint(\"Empty cart:\", shopping_cart)\n\n# List with mixed data types\nstudent_record = [\"Alice\", 20, 3.8, True]\nprint(\"Student:\", student_record)\n\n# List with repeated values\nzeros = [0] * 5\nprint(\"Zeros:\", zeros)\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1044,1094,1118,1126,1134,1151,1172,1179,1187,1239,1260,1267,1275,1311],{"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},"# Different ways to create lists\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039],{"type":993,"tag":1026,"props":1040,"children":1041},{"style":1032},[1042],{"type":998,"value":1043},"# Simple list with known values\n",{"type":993,"tag":1026,"props":1045,"children":1046},{"class":1028,"line":36},[1047,1053,1059,1064,1070,1075,1080,1084,1089],{"type":993,"tag":1026,"props":1048,"children":1050},{"style":1049},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1051],{"type":998,"value":1052},"fruits ",{"type":993,"tag":1026,"props":1054,"children":1056},{"style":1055},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1057],{"type":998,"value":1058},"=",{"type":993,"tag":1026,"props":1060,"children":1061},{"style":1049},[1062],{"type":998,"value":1063}," [",{"type":993,"tag":1026,"props":1065,"children":1067},{"style":1066},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1068],{"type":998,"value":1069},"\"apple\"",{"type":993,"tag":1026,"props":1071,"children":1072},{"style":1049},[1073],{"type":998,"value":1074},", ",{"type":993,"tag":1026,"props":1076,"children":1077},{"style":1066},[1078],{"type":998,"value":1079},"\"banana\"",{"type":993,"tag":1026,"props":1081,"children":1082},{"style":1049},[1083],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1085,"children":1086},{"style":1066},[1087],{"type":998,"value":1088},"\"cherry\"",{"type":993,"tag":1026,"props":1090,"children":1091},{"style":1049},[1092],{"type":998,"value":1093},"]\n",{"type":993,"tag":1026,"props":1095,"children":1096},{"class":1028,"line":45},[1097,1103,1108,1113],{"type":993,"tag":1026,"props":1098,"children":1100},{"style":1099},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1101],{"type":998,"value":1102},"print",{"type":993,"tag":1026,"props":1104,"children":1105},{"style":1049},[1106],{"type":998,"value":1107},"(",{"type":993,"tag":1026,"props":1109,"children":1110},{"style":1066},[1111],{"type":998,"value":1112},"\"Fruits:\"",{"type":993,"tag":1026,"props":1114,"children":1115},{"style":1049},[1116],{"type":998,"value":1117},", fruits)\n",{"type":993,"tag":1026,"props":1119,"children":1120},{"class":1028,"line":54},[1121],{"type":993,"tag":1026,"props":1122,"children":1123},{"emptyLinePlaceholder":13},[1124],{"type":998,"value":1125},"\n",{"type":993,"tag":1026,"props":1127,"children":1128},{"class":1028,"line":63},[1129],{"type":993,"tag":1026,"props":1130,"children":1131},{"style":1032},[1132],{"type":998,"value":1133},"# Empty list to fill later\n",{"type":993,"tag":1026,"props":1135,"children":1136},{"class":1028,"line":72},[1137,1142,1146],{"type":993,"tag":1026,"props":1138,"children":1139},{"style":1049},[1140],{"type":998,"value":1141},"shopping_cart ",{"type":993,"tag":1026,"props":1143,"children":1144},{"style":1055},[1145],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1147,"children":1148},{"style":1049},[1149],{"type":998,"value":1150}," []\n",{"type":993,"tag":1026,"props":1152,"children":1153},{"class":1028,"line":81},[1154,1158,1162,1167],{"type":993,"tag":1026,"props":1155,"children":1156},{"style":1099},[1157],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1159,"children":1160},{"style":1049},[1161],{"type":998,"value":1107},{"type":993,"tag":1026,"props":1163,"children":1164},{"style":1066},[1165],{"type":998,"value":1166},"\"Empty cart:\"",{"type":993,"tag":1026,"props":1168,"children":1169},{"style":1049},[1170],{"type":998,"value":1171},", shopping_cart)\n",{"type":993,"tag":1026,"props":1173,"children":1174},{"class":1028,"line":91},[1175],{"type":993,"tag":1026,"props":1176,"children":1177},{"emptyLinePlaceholder":13},[1178],{"type":998,"value":1125},{"type":993,"tag":1026,"props":1180,"children":1181},{"class":1028,"line":100},[1182],{"type":993,"tag":1026,"props":1183,"children":1184},{"style":1032},[1185],{"type":998,"value":1186},"# List with mixed data types\n",{"type":993,"tag":1026,"props":1188,"children":1189},{"class":1028,"line":109},[1190,1195,1199,1203,1208,1212,1217,1221,1226,1230,1235],{"type":993,"tag":1026,"props":1191,"children":1192},{"style":1049},[1193],{"type":998,"value":1194},"student_record ",{"type":993,"tag":1026,"props":1196,"children":1197},{"style":1055},[1198],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1200,"children":1201},{"style":1049},[1202],{"type":998,"value":1063},{"type":993,"tag":1026,"props":1204,"children":1205},{"style":1066},[1206],{"type":998,"value":1207},"\"Alice\"",{"type":993,"tag":1026,"props":1209,"children":1210},{"style":1049},[1211],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1213,"children":1214},{"style":1099},[1215],{"type":998,"value":1216},"20",{"type":993,"tag":1026,"props":1218,"children":1219},{"style":1049},[1220],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1222,"children":1223},{"style":1099},[1224],{"type":998,"value":1225},"3.8",{"type":993,"tag":1026,"props":1227,"children":1228},{"style":1049},[1229],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1231,"children":1232},{"style":1099},[1233],{"type":998,"value":1234},"True",{"type":993,"tag":1026,"props":1236,"children":1237},{"style":1049},[1238],{"type":998,"value":1093},{"type":993,"tag":1026,"props":1240,"children":1241},{"class":1028,"line":118},[1242,1246,1250,1255],{"type":993,"tag":1026,"props":1243,"children":1244},{"style":1099},[1245],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1247,"children":1248},{"style":1049},[1249],{"type":998,"value":1107},{"type":993,"tag":1026,"props":1251,"children":1252},{"style":1066},[1253],{"type":998,"value":1254},"\"Student:\"",{"type":993,"tag":1026,"props":1256,"children":1257},{"style":1049},[1258],{"type":998,"value":1259},", student_record)\n",{"type":993,"tag":1026,"props":1261,"children":1262},{"class":1028,"line":127},[1263],{"type":993,"tag":1026,"props":1264,"children":1265},{"emptyLinePlaceholder":13},[1266],{"type":998,"value":1125},{"type":993,"tag":1026,"props":1268,"children":1269},{"class":1028,"line":136},[1270],{"type":993,"tag":1026,"props":1271,"children":1272},{"style":1032},[1273],{"type":998,"value":1274},"# List with repeated values\n",{"type":993,"tag":1026,"props":1276,"children":1277},{"class":1028,"line":146},[1278,1283,1287,1291,1296,1301,1306],{"type":993,"tag":1026,"props":1279,"children":1280},{"style":1049},[1281],{"type":998,"value":1282},"zeros ",{"type":993,"tag":1026,"props":1284,"children":1285},{"style":1055},[1286],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1288,"children":1289},{"style":1049},[1290],{"type":998,"value":1063},{"type":993,"tag":1026,"props":1292,"children":1293},{"style":1099},[1294],{"type":998,"value":1295},"0",{"type":993,"tag":1026,"props":1297,"children":1298},{"style":1049},[1299],{"type":998,"value":1300},"] ",{"type":993,"tag":1026,"props":1302,"children":1303},{"style":1055},[1304],{"type":998,"value":1305},"*",{"type":993,"tag":1026,"props":1307,"children":1308},{"style":1099},[1309],{"type":998,"value":1310}," 5\n",{"type":993,"tag":1026,"props":1312,"children":1313},{"class":1028,"line":155},[1314,1318,1322,1327],{"type":993,"tag":1026,"props":1315,"children":1316},{"style":1099},[1317],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1319,"children":1320},{"style":1049},[1321],{"type":998,"value":1107},{"type":993,"tag":1026,"props":1323,"children":1324},{"style":1066},[1325],{"type":998,"value":1326},"\"Zeros:\"",{"type":993,"tag":1026,"props":1328,"children":1329},{"style":1049},[1330],{"type":998,"value":1331},", zeros)\n",{"type":993,"tag":1333,"props":1334,"children":1336},"h2",{"id":1335},"creating-lists-with-literals",[1337],{"type":998,"value":1338},"🎯 Creating Lists with Literals",{"type":993,"tag":1001,"props":1340,"children":1341},{},[1342],{"type":998,"value":1343},"The most straightforward way to create a list is using square brackets with comma-separated values. This method is perfect when you know the exact items you want to include from the start.",{"type":993,"tag":1001,"props":1345,"children":1346},{},[1347],{"type":998,"value":1348},"List literals are readable, explicit, and ideal for small to medium-sized collections with known values.",{"type":993,"tag":1350,"props":1351,"children":1355},"info-box",{"emoji":1352,"title":1353,"type":1354},"📋","List Literal Syntax","info",[1356,1373,1381,1425,1433],{"type":993,"tag":1001,"props":1357,"children":1358},{},[1359,1365,1367],{"type":993,"tag":1360,"props":1361,"children":1362},"strong",{},[1363],{"type":998,"value":1364},"Basic Syntax:",{"type":998,"value":1366}," ",{"type":993,"tag":1022,"props":1368,"children":1370},{"className":1369},[],[1371],{"type":998,"value":1372},"[item1, item2, item3, ...]",{"type":993,"tag":1001,"props":1374,"children":1375},{},[1376],{"type":993,"tag":1360,"props":1377,"children":1378},{},[1379],{"type":998,"value":1380},"Key Rules:",{"type":993,"tag":1382,"props":1383,"children":1384},"ul",{},[1385,1391,1396,1401,1412],{"type":993,"tag":1386,"props":1387,"children":1388},"li",{},[1389],{"type":998,"value":1390},"Items separated by commas",{"type":993,"tag":1386,"props":1392,"children":1393},{},[1394],{"type":998,"value":1395},"Can contain any data type",{"type":993,"tag":1386,"props":1397,"children":1398},{},[1399],{"type":998,"value":1400},"Can mix different data types",{"type":993,"tag":1386,"props":1402,"children":1403},{},[1404,1406],{"type":998,"value":1405},"Empty lists: ",{"type":993,"tag":1022,"props":1407,"children":1409},{"className":1408},[],[1410],{"type":998,"value":1411},"[]",{"type":993,"tag":1386,"props":1413,"children":1414},{},[1415,1417,1423],{"type":998,"value":1416},"Single item lists: ",{"type":993,"tag":1022,"props":1418,"children":1420},{"className":1419},[],[1421],{"type":998,"value":1422},"[item]",{"type":998,"value":1424}," (comma optional)",{"type":993,"tag":1001,"props":1426,"children":1427},{},[1428],{"type":993,"tag":1360,"props":1429,"children":1430},{},[1431],{"type":998,"value":1432},"Best Practices:",{"type":993,"tag":1382,"props":1434,"children":1435},{},[1436,1441,1446],{"type":993,"tag":1386,"props":1437,"children":1438},{},[1439],{"type":998,"value":1440},"Use for known, fixed data",{"type":993,"tag":1386,"props":1442,"children":1443},{},[1444],{"type":998,"value":1445},"Keep reasonable length for readability",{"type":993,"tag":1386,"props":1447,"children":1448},{},[1449],{"type":998,"value":1450},"Group related items logically",{"type":993,"tag":1452,"props":1453,"children":1455},"h3",{"id":1454},"different-data-type-examples",[1456],{"type":998,"value":1457},"Different Data Type Examples",{"type":993,"tag":1001,"props":1459,"children":1460},{},[1461],{"type":998,"value":1462},"Working with various types of data in list literals:",{"type":993,"tag":1012,"props":1464,"children":1465},{},[1466],{"type":993,"tag":1016,"props":1467,"children":1469},{"className":1018,"code":1468,"language":6,"meta":8,"style":8},"# String list\ncolors = [\"red\", \"green\", \"blue\", \"yellow\"]\nprint(\"Colors:\", colors)\n\n# Number list\nscores = [85, 92, 78, 96, 88]\nprint(\"Scores:\", scores)\n\n# Boolean list\nflags = [True, False, True, True]\nprint(\"Flags:\", flags)\n\n# Mixed data types\nprofile = [\"John\", 25, \"Engineer\", True, 75000.50]\nprint(\"Profile:\", profile)\n\n# Nested lists\nmatrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]\nprint(\"Matrix:\", matrix)\n",[1470],{"type":993,"tag":1022,"props":1471,"children":1472},{"__ignoreMap":8},[1473,1481,1533,1554,1561,1569,1630,1651,1658,1666,1715,1736,1743,1751,1811,1832,1839,1847,1947],{"type":993,"tag":1026,"props":1474,"children":1475},{"class":1028,"line":12},[1476],{"type":993,"tag":1026,"props":1477,"children":1478},{"style":1032},[1479],{"type":998,"value":1480},"# String list\n",{"type":993,"tag":1026,"props":1482,"children":1483},{"class":1028,"line":27},[1484,1489,1493,1497,1502,1506,1511,1515,1520,1524,1529],{"type":993,"tag":1026,"props":1485,"children":1486},{"style":1049},[1487],{"type":998,"value":1488},"colors ",{"type":993,"tag":1026,"props":1490,"children":1491},{"style":1055},[1492],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1494,"children":1495},{"style":1049},[1496],{"type":998,"value":1063},{"type":993,"tag":1026,"props":1498,"children":1499},{"style":1066},[1500],{"type":998,"value":1501},"\"red\"",{"type":993,"tag":1026,"props":1503,"children":1504},{"style":1049},[1505],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1507,"children":1508},{"style":1066},[1509],{"type":998,"value":1510},"\"green\"",{"type":993,"tag":1026,"props":1512,"children":1513},{"style":1049},[1514],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1516,"children":1517},{"style":1066},[1518],{"type":998,"value":1519},"\"blue\"",{"type":993,"tag":1026,"props":1521,"children":1522},{"style":1049},[1523],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1525,"children":1526},{"style":1066},[1527],{"type":998,"value":1528},"\"yellow\"",{"type":993,"tag":1026,"props":1530,"children":1531},{"style":1049},[1532],{"type":998,"value":1093},{"type":993,"tag":1026,"props":1534,"children":1535},{"class":1028,"line":36},[1536,1540,1544,1549],{"type":993,"tag":1026,"props":1537,"children":1538},{"style":1099},[1539],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1541,"children":1542},{"style":1049},[1543],{"type":998,"value":1107},{"type":993,"tag":1026,"props":1545,"children":1546},{"style":1066},[1547],{"type":998,"value":1548},"\"Colors:\"",{"type":993,"tag":1026,"props":1550,"children":1551},{"style":1049},[1552],{"type":998,"value":1553},", colors)\n",{"type":993,"tag":1026,"props":1555,"children":1556},{"class":1028,"line":45},[1557],{"type":993,"tag":1026,"props":1558,"children":1559},{"emptyLinePlaceholder":13},[1560],{"type":998,"value":1125},{"type":993,"tag":1026,"props":1562,"children":1563},{"class":1028,"line":54},[1564],{"type":993,"tag":1026,"props":1565,"children":1566},{"style":1032},[1567],{"type":998,"value":1568},"# Number list\n",{"type":993,"tag":1026,"props":1570,"children":1571},{"class":1028,"line":63},[1572,1577,1581,1585,1590,1594,1599,1603,1608,1612,1617,1621,1626],{"type":993,"tag":1026,"props":1573,"children":1574},{"style":1049},[1575],{"type":998,"value":1576},"scores ",{"type":993,"tag":1026,"props":1578,"children":1579},{"style":1055},[1580],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1582,"children":1583},{"style":1049},[1584],{"type":998,"value":1063},{"type":993,"tag":1026,"props":1586,"children":1587},{"style":1099},[1588],{"type":998,"value":1589},"85",{"type":993,"tag":1026,"props":1591,"children":1592},{"style":1049},[1593],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1595,"children":1596},{"style":1099},[1597],{"type":998,"value":1598},"92",{"type":993,"tag":1026,"props":1600,"children":1601},{"style":1049},[1602],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1604,"children":1605},{"style":1099},[1606],{"type":998,"value":1607},"78",{"type":993,"tag":1026,"props":1609,"children":1610},{"style":1049},[1611],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1613,"children":1614},{"style":1099},[1615],{"type":998,"value":1616},"96",{"type":993,"tag":1026,"props":1618,"children":1619},{"style":1049},[1620],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1622,"children":1623},{"style":1099},[1624],{"type":998,"value":1625},"88",{"type":993,"tag":1026,"props":1627,"children":1628},{"style":1049},[1629],{"type":998,"value":1093},{"type":993,"tag":1026,"props":1631,"children":1632},{"class":1028,"line":72},[1633,1637,1641,1646],{"type":993,"tag":1026,"props":1634,"children":1635},{"style":1099},[1636],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1638,"children":1639},{"style":1049},[1640],{"type":998,"value":1107},{"type":993,"tag":1026,"props":1642,"children":1643},{"style":1066},[1644],{"type":998,"value":1645},"\"Scores:\"",{"type":993,"tag":1026,"props":1647,"children":1648},{"style":1049},[1649],{"type":998,"value":1650},", scores)\n",{"type":993,"tag":1026,"props":1652,"children":1653},{"class":1028,"line":81},[1654],{"type":993,"tag":1026,"props":1655,"children":1656},{"emptyLinePlaceholder":13},[1657],{"type":998,"value":1125},{"type":993,"tag":1026,"props":1659,"children":1660},{"class":1028,"line":91},[1661],{"type":993,"tag":1026,"props":1662,"children":1663},{"style":1032},[1664],{"type":998,"value":1665},"# Boolean list\n",{"type":993,"tag":1026,"props":1667,"children":1668},{"class":1028,"line":100},[1669,1674,1678,1682,1686,1690,1695,1699,1703,1707,1711],{"type":993,"tag":1026,"props":1670,"children":1671},{"style":1049},[1672],{"type":998,"value":1673},"flags ",{"type":993,"tag":1026,"props":1675,"children":1676},{"style":1055},[1677],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1679,"children":1680},{"style":1049},[1681],{"type":998,"value":1063},{"type":993,"tag":1026,"props":1683,"children":1684},{"style":1099},[1685],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1687,"children":1688},{"style":1049},[1689],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1691,"children":1692},{"style":1099},[1693],{"type":998,"value":1694},"False",{"type":993,"tag":1026,"props":1696,"children":1697},{"style":1049},[1698],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1700,"children":1701},{"style":1099},[1702],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1704,"children":1705},{"style":1049},[1706],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1708,"children":1709},{"style":1099},[1710],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1712,"children":1713},{"style":1049},[1714],{"type":998,"value":1093},{"type":993,"tag":1026,"props":1716,"children":1717},{"class":1028,"line":109},[1718,1722,1726,1731],{"type":993,"tag":1026,"props":1719,"children":1720},{"style":1099},[1721],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1723,"children":1724},{"style":1049},[1725],{"type":998,"value":1107},{"type":993,"tag":1026,"props":1727,"children":1728},{"style":1066},[1729],{"type":998,"value":1730},"\"Flags:\"",{"type":993,"tag":1026,"props":1732,"children":1733},{"style":1049},[1734],{"type":998,"value":1735},", flags)\n",{"type":993,"tag":1026,"props":1737,"children":1738},{"class":1028,"line":118},[1739],{"type":993,"tag":1026,"props":1740,"children":1741},{"emptyLinePlaceholder":13},[1742],{"type":998,"value":1125},{"type":993,"tag":1026,"props":1744,"children":1745},{"class":1028,"line":127},[1746],{"type":993,"tag":1026,"props":1747,"children":1748},{"style":1032},[1749],{"type":998,"value":1750},"# Mixed data types\n",{"type":993,"tag":1026,"props":1752,"children":1753},{"class":1028,"line":136},[1754,1759,1763,1767,1772,1776,1781,1785,1790,1794,1798,1802,1807],{"type":993,"tag":1026,"props":1755,"children":1756},{"style":1049},[1757],{"type":998,"value":1758},"profile ",{"type":993,"tag":1026,"props":1760,"children":1761},{"style":1055},[1762],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1764,"children":1765},{"style":1049},[1766],{"type":998,"value":1063},{"type":993,"tag":1026,"props":1768,"children":1769},{"style":1066},[1770],{"type":998,"value":1771},"\"John\"",{"type":993,"tag":1026,"props":1773,"children":1774},{"style":1049},[1775],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1777,"children":1778},{"style":1099},[1779],{"type":998,"value":1780},"25",{"type":993,"tag":1026,"props":1782,"children":1783},{"style":1049},[1784],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1786,"children":1787},{"style":1066},[1788],{"type":998,"value":1789},"\"Engineer\"",{"type":993,"tag":1026,"props":1791,"children":1792},{"style":1049},[1793],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1795,"children":1796},{"style":1099},[1797],{"type":998,"value":1234},{"type":993,"tag":1026,"props":1799,"children":1800},{"style":1049},[1801],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1803,"children":1804},{"style":1099},[1805],{"type":998,"value":1806},"75000.50",{"type":993,"tag":1026,"props":1808,"children":1809},{"style":1049},[1810],{"type":998,"value":1093},{"type":993,"tag":1026,"props":1812,"children":1813},{"class":1028,"line":146},[1814,1818,1822,1827],{"type":993,"tag":1026,"props":1815,"children":1816},{"style":1099},[1817],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1819,"children":1820},{"style":1049},[1821],{"type":998,"value":1107},{"type":993,"tag":1026,"props":1823,"children":1824},{"style":1066},[1825],{"type":998,"value":1826},"\"Profile:\"",{"type":993,"tag":1026,"props":1828,"children":1829},{"style":1049},[1830],{"type":998,"value":1831},", profile)\n",{"type":993,"tag":1026,"props":1833,"children":1834},{"class":1028,"line":155},[1835],{"type":993,"tag":1026,"props":1836,"children":1837},{"emptyLinePlaceholder":13},[1838],{"type":998,"value":1125},{"type":993,"tag":1026,"props":1840,"children":1841},{"class":1028,"line":164},[1842],{"type":993,"tag":1026,"props":1843,"children":1844},{"style":1032},[1845],{"type":998,"value":1846},"# Nested lists\n",{"type":993,"tag":1026,"props":1848,"children":1849},{"class":1028,"line":173},[1850,1855,1859,1864,1869,1873,1878,1882,1887,1892,1897,1901,1906,1910,1915,1919,1924,1928,1933,1937,1942],{"type":993,"tag":1026,"props":1851,"children":1852},{"style":1049},[1853],{"type":998,"value":1854},"matrix ",{"type":993,"tag":1026,"props":1856,"children":1857},{"style":1055},[1858],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1860,"children":1861},{"style":1049},[1862],{"type":998,"value":1863}," [[",{"type":993,"tag":1026,"props":1865,"children":1866},{"style":1099},[1867],{"type":998,"value":1868},"1",{"type":993,"tag":1026,"props":1870,"children":1871},{"style":1049},[1872],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1874,"children":1875},{"style":1099},[1876],{"type":998,"value":1877},"2",{"type":993,"tag":1026,"props":1879,"children":1880},{"style":1049},[1881],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1883,"children":1884},{"style":1099},[1885],{"type":998,"value":1886},"3",{"type":993,"tag":1026,"props":1888,"children":1889},{"style":1049},[1890],{"type":998,"value":1891},"], [",{"type":993,"tag":1026,"props":1893,"children":1894},{"style":1099},[1895],{"type":998,"value":1896},"4",{"type":993,"tag":1026,"props":1898,"children":1899},{"style":1049},[1900],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1902,"children":1903},{"style":1099},[1904],{"type":998,"value":1905},"5",{"type":993,"tag":1026,"props":1907,"children":1908},{"style":1049},[1909],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1911,"children":1912},{"style":1099},[1913],{"type":998,"value":1914},"6",{"type":993,"tag":1026,"props":1916,"children":1917},{"style":1049},[1918],{"type":998,"value":1891},{"type":993,"tag":1026,"props":1920,"children":1921},{"style":1099},[1922],{"type":998,"value":1923},"7",{"type":993,"tag":1026,"props":1925,"children":1926},{"style":1049},[1927],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1929,"children":1930},{"style":1099},[1931],{"type":998,"value":1932},"8",{"type":993,"tag":1026,"props":1934,"children":1935},{"style":1049},[1936],{"type":998,"value":1074},{"type":993,"tag":1026,"props":1938,"children":1939},{"style":1099},[1940],{"type":998,"value":1941},"9",{"type":993,"tag":1026,"props":1943,"children":1944},{"style":1049},[1945],{"type":998,"value":1946},"]]\n",{"type":993,"tag":1026,"props":1948,"children":1949},{"class":1028,"line":182},[1950,1954,1958,1963],{"type":993,"tag":1026,"props":1951,"children":1952},{"style":1099},[1953],{"type":998,"value":1102},{"type":993,"tag":1026,"props":1955,"children":1956},{"style":1049},[1957],{"type":998,"value":1107},{"type":993,"tag":1026,"props":1959,"children":1960},{"style":1066},[1961],{"type":998,"value":1962},"\"Matrix:\"",{"type":993,"tag":1026,"props":1964,"children":1965},{"style":1049},[1966],{"type":998,"value":1967},", matrix)\n",{"type":993,"tag":1333,"props":1969,"children":1971},{"id":1970},"creating-empty-lists",[1972],{"type":998,"value":1973},"Creating Empty Lists",{"type":993,"tag":1001,"props":1975,"children":1976},{},[1977,1979,1985],{"type":998,"value":1978},"Empty lists are essential when you need to build collections dynamically during program execution. You can create empty lists and populate them using ",{"type":993,"tag":1980,"props":1981,"children":1982},"a",{"href":243},[1983],{"type":998,"value":1984},"loops",{"type":998,"value":1986},", user input, or conditional logic.",{"type":993,"tag":1001,"props":1988,"children":1989},{},[1990],{"type":998,"value":1991},"Starting with empty lists is common in data collection, filtering operations, and accumulation patterns.",{"type":993,"tag":1350,"props":1993,"children":1996},{"emoji":1994,"title":1995,"type":1354},"📪","Empty List Creation",[1997,2005,2029,2037,2060],{"type":993,"tag":1001,"props":1998,"children":1999},{},[2000],{"type":993,"tag":1360,"props":2001,"children":2002},{},[2003],{"type":998,"value":2004},"Two Methods:",{"type":993,"tag":1382,"props":2006,"children":2007},{},[2008,2018],{"type":993,"tag":1386,"props":2009,"children":2010},{},[2011,2013],{"type":998,"value":2012},"Square brackets: ",{"type":993,"tag":1022,"props":2014,"children":2016},{"className":2015},[],[2017],{"type":998,"value":1411},{"type":993,"tag":1386,"props":2019,"children":2020},{},[2021,2023],{"type":998,"value":2022},"Constructor: ",{"type":993,"tag":1022,"props":2024,"children":2026},{"className":2025},[],[2027],{"type":998,"value":2028},"list()",{"type":993,"tag":1001,"props":2030,"children":2031},{},[2032],{"type":993,"tag":1360,"props":2033,"children":2034},{},[2035],{"type":998,"value":2036},"When to Use:",{"type":993,"tag":1382,"props":2038,"children":2039},{},[2040,2045,2050,2055],{"type":993,"tag":1386,"props":2041,"children":2042},{},[2043],{"type":998,"value":2044},"Dynamic data collection",{"type":993,"tag":1386,"props":2046,"children":2047},{},[2048],{"type":998,"value":2049},"Building lists in loops",{"type":993,"tag":1386,"props":2051,"children":2052},{},[2053],{"type":998,"value":2054},"Conditional list building",{"type":993,"tag":1386,"props":2056,"children":2057},{},[2058],{"type":998,"value":2059},"Starting point for accumulation",{"type":993,"tag":1001,"props":2061,"children":2062},{},[2063,2068],{"type":993,"tag":1360,"props":2064,"children":2065},{},[2066],{"type":998,"value":2067},"Both methods are equivalent",{"type":998,"value":2069}," - choose based on preference and context.",{"type":993,"tag":1452,"props":2071,"children":2073},{"id":2072},"dynamic-list-building",[2074],{"type":998,"value":2075},"Dynamic List Building",{"type":993,"tag":1001,"props":2077,"children":2078},{},[2079],{"type":998,"value":2080},"Building lists during program execution with different approaches:",{"type":993,"tag":1012,"props":2082,"children":2083},{},[2084],{"type":993,"tag":1016,"props":2085,"children":2087},{"className":1018,"code":2086,"language":6,"meta":8,"style":8},"# Method 1: Empty square brackets\nnumbers = []\nfor i in range(1, 6):\n    numbers.append(i * 2)\nprint(\"Even numbers:\", numbers)\n\n# Method 2: list() constructor\nnames = list()\nnames.append(\"Alice\")\nnames.append(\"Bob\")\nnames.append(\"Charlie\")\nprint(\"Names:\", names)\n\n# Building lists conditionally\npositive_numbers = []\ntest_values = [-2, 5, -1, 8, 0, 3]\nfor value in test_values:\n    if value > 0:\n        positive_numbers.append(value)\nprint(\"Positive:\", positive_numbers)\n",[2088],{"type":993,"tag":1022,"props":2089,"children":2090},{"__ignoreMap":8},[2091,2099,2115,2159,2181,2202,2209,2217,2239,2255,2271,2287,2308,2315,2323,2339,2412,2433,2460,2468],{"type":993,"tag":1026,"props":2092,"children":2093},{"class":1028,"line":12},[2094],{"type":993,"tag":1026,"props":2095,"children":2096},{"style":1032},[2097],{"type":998,"value":2098},"# Method 1: Empty square brackets\n",{"type":993,"tag":1026,"props":2100,"children":2101},{"class":1028,"line":27},[2102,2107,2111],{"type":993,"tag":1026,"props":2103,"children":2104},{"style":1049},[2105],{"type":998,"value":2106},"numbers ",{"type":993,"tag":1026,"props":2108,"children":2109},{"style":1055},[2110],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2112,"children":2113},{"style":1049},[2114],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2116,"children":2117},{"class":1028,"line":36},[2118,2123,2128,2133,2138,2142,2146,2150,2154],{"type":993,"tag":1026,"props":2119,"children":2120},{"style":1055},[2121],{"type":998,"value":2122},"for",{"type":993,"tag":1026,"props":2124,"children":2125},{"style":1049},[2126],{"type":998,"value":2127}," i ",{"type":993,"tag":1026,"props":2129,"children":2130},{"style":1055},[2131],{"type":998,"value":2132},"in",{"type":993,"tag":1026,"props":2134,"children":2135},{"style":1099},[2136],{"type":998,"value":2137}," range",{"type":993,"tag":1026,"props":2139,"children":2140},{"style":1049},[2141],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2143,"children":2144},{"style":1099},[2145],{"type":998,"value":1868},{"type":993,"tag":1026,"props":2147,"children":2148},{"style":1049},[2149],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2151,"children":2152},{"style":1099},[2153],{"type":998,"value":1914},{"type":993,"tag":1026,"props":2155,"children":2156},{"style":1049},[2157],{"type":998,"value":2158},"):\n",{"type":993,"tag":1026,"props":2160,"children":2161},{"class":1028,"line":45},[2162,2167,2171,2176],{"type":993,"tag":1026,"props":2163,"children":2164},{"style":1049},[2165],{"type":998,"value":2166},"    numbers.append(i ",{"type":993,"tag":1026,"props":2168,"children":2169},{"style":1055},[2170],{"type":998,"value":1305},{"type":993,"tag":1026,"props":2172,"children":2173},{"style":1099},[2174],{"type":998,"value":2175}," 2",{"type":993,"tag":1026,"props":2177,"children":2178},{"style":1049},[2179],{"type":998,"value":2180},")\n",{"type":993,"tag":1026,"props":2182,"children":2183},{"class":1028,"line":54},[2184,2188,2192,2197],{"type":993,"tag":1026,"props":2185,"children":2186},{"style":1099},[2187],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2189,"children":2190},{"style":1049},[2191],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2193,"children":2194},{"style":1066},[2195],{"type":998,"value":2196},"\"Even numbers:\"",{"type":993,"tag":1026,"props":2198,"children":2199},{"style":1049},[2200],{"type":998,"value":2201},", numbers)\n",{"type":993,"tag":1026,"props":2203,"children":2204},{"class":1028,"line":63},[2205],{"type":993,"tag":1026,"props":2206,"children":2207},{"emptyLinePlaceholder":13},[2208],{"type":998,"value":1125},{"type":993,"tag":1026,"props":2210,"children":2211},{"class":1028,"line":72},[2212],{"type":993,"tag":1026,"props":2213,"children":2214},{"style":1032},[2215],{"type":998,"value":2216},"# Method 2: list() constructor\n",{"type":993,"tag":1026,"props":2218,"children":2219},{"class":1028,"line":81},[2220,2225,2229,2234],{"type":993,"tag":1026,"props":2221,"children":2222},{"style":1049},[2223],{"type":998,"value":2224},"names ",{"type":993,"tag":1026,"props":2226,"children":2227},{"style":1055},[2228],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2230,"children":2231},{"style":1099},[2232],{"type":998,"value":2233}," list",{"type":993,"tag":1026,"props":2235,"children":2236},{"style":1049},[2237],{"type":998,"value":2238},"()\n",{"type":993,"tag":1026,"props":2240,"children":2241},{"class":1028,"line":91},[2242,2247,2251],{"type":993,"tag":1026,"props":2243,"children":2244},{"style":1049},[2245],{"type":998,"value":2246},"names.append(",{"type":993,"tag":1026,"props":2248,"children":2249},{"style":1066},[2250],{"type":998,"value":1207},{"type":993,"tag":1026,"props":2252,"children":2253},{"style":1049},[2254],{"type":998,"value":2180},{"type":993,"tag":1026,"props":2256,"children":2257},{"class":1028,"line":100},[2258,2262,2267],{"type":993,"tag":1026,"props":2259,"children":2260},{"style":1049},[2261],{"type":998,"value":2246},{"type":993,"tag":1026,"props":2263,"children":2264},{"style":1066},[2265],{"type":998,"value":2266},"\"Bob\"",{"type":993,"tag":1026,"props":2268,"children":2269},{"style":1049},[2270],{"type":998,"value":2180},{"type":993,"tag":1026,"props":2272,"children":2273},{"class":1028,"line":109},[2274,2278,2283],{"type":993,"tag":1026,"props":2275,"children":2276},{"style":1049},[2277],{"type":998,"value":2246},{"type":993,"tag":1026,"props":2279,"children":2280},{"style":1066},[2281],{"type":998,"value":2282},"\"Charlie\"",{"type":993,"tag":1026,"props":2284,"children":2285},{"style":1049},[2286],{"type":998,"value":2180},{"type":993,"tag":1026,"props":2288,"children":2289},{"class":1028,"line":118},[2290,2294,2298,2303],{"type":993,"tag":1026,"props":2291,"children":2292},{"style":1099},[2293],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2295,"children":2296},{"style":1049},[2297],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2299,"children":2300},{"style":1066},[2301],{"type":998,"value":2302},"\"Names:\"",{"type":993,"tag":1026,"props":2304,"children":2305},{"style":1049},[2306],{"type":998,"value":2307},", names)\n",{"type":993,"tag":1026,"props":2309,"children":2310},{"class":1028,"line":127},[2311],{"type":993,"tag":1026,"props":2312,"children":2313},{"emptyLinePlaceholder":13},[2314],{"type":998,"value":1125},{"type":993,"tag":1026,"props":2316,"children":2317},{"class":1028,"line":136},[2318],{"type":993,"tag":1026,"props":2319,"children":2320},{"style":1032},[2321],{"type":998,"value":2322},"# Building lists conditionally\n",{"type":993,"tag":1026,"props":2324,"children":2325},{"class":1028,"line":146},[2326,2331,2335],{"type":993,"tag":1026,"props":2327,"children":2328},{"style":1049},[2329],{"type":998,"value":2330},"positive_numbers ",{"type":993,"tag":1026,"props":2332,"children":2333},{"style":1055},[2334],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2336,"children":2337},{"style":1049},[2338],{"type":998,"value":1150},{"type":993,"tag":1026,"props":2340,"children":2341},{"class":1028,"line":155},[2342,2347,2351,2355,2360,2364,2368,2372,2376,2380,2384,2388,2392,2396,2400,2404,2408],{"type":993,"tag":1026,"props":2343,"children":2344},{"style":1049},[2345],{"type":998,"value":2346},"test_values ",{"type":993,"tag":1026,"props":2348,"children":2349},{"style":1055},[2350],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2352,"children":2353},{"style":1049},[2354],{"type":998,"value":1063},{"type":993,"tag":1026,"props":2356,"children":2357},{"style":1055},[2358],{"type":998,"value":2359},"-",{"type":993,"tag":1026,"props":2361,"children":2362},{"style":1099},[2363],{"type":998,"value":1877},{"type":993,"tag":1026,"props":2365,"children":2366},{"style":1049},[2367],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2369,"children":2370},{"style":1099},[2371],{"type":998,"value":1905},{"type":993,"tag":1026,"props":2373,"children":2374},{"style":1049},[2375],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2377,"children":2378},{"style":1055},[2379],{"type":998,"value":2359},{"type":993,"tag":1026,"props":2381,"children":2382},{"style":1099},[2383],{"type":998,"value":1868},{"type":993,"tag":1026,"props":2385,"children":2386},{"style":1049},[2387],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2389,"children":2390},{"style":1099},[2391],{"type":998,"value":1932},{"type":993,"tag":1026,"props":2393,"children":2394},{"style":1049},[2395],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2397,"children":2398},{"style":1099},[2399],{"type":998,"value":1295},{"type":993,"tag":1026,"props":2401,"children":2402},{"style":1049},[2403],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2405,"children":2406},{"style":1099},[2407],{"type":998,"value":1886},{"type":993,"tag":1026,"props":2409,"children":2410},{"style":1049},[2411],{"type":998,"value":1093},{"type":993,"tag":1026,"props":2413,"children":2414},{"class":1028,"line":164},[2415,2419,2424,2428],{"type":993,"tag":1026,"props":2416,"children":2417},{"style":1055},[2418],{"type":998,"value":2122},{"type":993,"tag":1026,"props":2420,"children":2421},{"style":1049},[2422],{"type":998,"value":2423}," value ",{"type":993,"tag":1026,"props":2425,"children":2426},{"style":1055},[2427],{"type":998,"value":2132},{"type":993,"tag":1026,"props":2429,"children":2430},{"style":1049},[2431],{"type":998,"value":2432}," test_values:\n",{"type":993,"tag":1026,"props":2434,"children":2435},{"class":1028,"line":173},[2436,2441,2445,2450,2455],{"type":993,"tag":1026,"props":2437,"children":2438},{"style":1055},[2439],{"type":998,"value":2440},"    if",{"type":993,"tag":1026,"props":2442,"children":2443},{"style":1049},[2444],{"type":998,"value":2423},{"type":993,"tag":1026,"props":2446,"children":2447},{"style":1055},[2448],{"type":998,"value":2449},">",{"type":993,"tag":1026,"props":2451,"children":2452},{"style":1099},[2453],{"type":998,"value":2454}," 0",{"type":993,"tag":1026,"props":2456,"children":2457},{"style":1049},[2458],{"type":998,"value":2459},":\n",{"type":993,"tag":1026,"props":2461,"children":2462},{"class":1028,"line":182},[2463],{"type":993,"tag":1026,"props":2464,"children":2465},{"style":1049},[2466],{"type":998,"value":2467},"        positive_numbers.append(value)\n",{"type":993,"tag":1026,"props":2469,"children":2470},{"class":1028,"line":191},[2471,2475,2479,2484],{"type":993,"tag":1026,"props":2472,"children":2473},{"style":1099},[2474],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2476,"children":2477},{"style":1049},[2478],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2480,"children":2481},{"style":1066},[2482],{"type":998,"value":2483},"\"Positive:\"",{"type":993,"tag":1026,"props":2485,"children":2486},{"style":1049},[2487],{"type":998,"value":2488},", positive_numbers)\n",{"type":993,"tag":2490,"props":2491,"children":2493},"content-exercise",{":widget-view":2492,"category":6,"id":283},"true",[],{"type":993,"tag":1333,"props":2495,"children":2497},{"id":2496},"using-the-range-function",[2498],{"type":998,"value":2499},"🔢 Using the range() Function",{"type":993,"tag":1001,"props":2501,"children":2502},{},[2503],{"type":998,"value":2504},"The range() function combined with list() creates sequences of numbers efficiently. This approach is perfect for generating numeric sequences, indices, or patterns without manually typing each value.",{"type":993,"tag":1001,"props":2506,"children":2507},{},[2508],{"type":998,"value":2509},"Range-based list creation is essential for mathematical operations, iterations, and data generation.",{"type":993,"tag":1350,"props":2511,"children":2515},{"emoji":2512,"title":2513,"type":2514},"🎯","Range Function Syntax","success",[2516,2524,2560,2568],{"type":993,"tag":1001,"props":2517,"children":2518},{},[2519],{"type":993,"tag":1360,"props":2520,"children":2521},{},[2522],{"type":998,"value":2523},"Syntax Options:",{"type":993,"tag":1382,"props":2525,"children":2526},{},[2527,2538,2549],{"type":993,"tag":1386,"props":2528,"children":2529},{},[2530,2536],{"type":993,"tag":1022,"props":2531,"children":2533},{"className":2532},[],[2534],{"type":998,"value":2535},"range(stop)",{"type":998,"value":2537},": 0 to stop-1",{"type":993,"tag":1386,"props":2539,"children":2540},{},[2541,2547],{"type":993,"tag":1022,"props":2542,"children":2544},{"className":2543},[],[2545],{"type":998,"value":2546},"range(start, stop)",{"type":998,"value":2548},": start to stop-1",{"type":993,"tag":1386,"props":2550,"children":2551},{},[2552,2558],{"type":993,"tag":1022,"props":2553,"children":2555},{"className":2554},[],[2556],{"type":998,"value":2557},"range(start, stop, step)",{"type":998,"value":2559},": start to stop-1 with step",{"type":993,"tag":1001,"props":2561,"children":2562},{},[2563],{"type":993,"tag":1360,"props":2564,"children":2565},{},[2566],{"type":998,"value":2567},"Important Notes:",{"type":993,"tag":1382,"props":2569,"children":2570},{},[2571,2576,2581,2586,2599],{"type":993,"tag":1386,"props":2572,"children":2573},{},[2574],{"type":998,"value":2575},"Stop value is exclusive (not included)",{"type":993,"tag":1386,"props":2577,"children":2578},{},[2579],{"type":998,"value":2580},"Default start is 0",{"type":993,"tag":1386,"props":2582,"children":2583},{},[2584],{"type":998,"value":2585},"Default step is 1",{"type":993,"tag":1386,"props":2587,"children":2588},{},[2589,2591,2597],{"type":998,"value":2590},"Use ",{"type":993,"tag":1022,"props":2592,"children":2594},{"className":2593},[],[2595],{"type":998,"value":2596},"list(range(...))",{"type":998,"value":2598}," to create actual list",{"type":993,"tag":1386,"props":2600,"children":2601},{},[2602],{"type":998,"value":2603},"Negative steps create descending sequences",{"type":993,"tag":1452,"props":2605,"children":2607},{"id":2606},"number-sequence-examples",[2608],{"type":998,"value":2609},"Number Sequence Examples",{"type":993,"tag":1001,"props":2611,"children":2612},{},[2613],{"type":998,"value":2614},"Creating various number patterns with range():",{"type":993,"tag":1012,"props":2616,"children":2617},{},[2618],{"type":993,"tag":1016,"props":2619,"children":2621},{"className":1018,"code":2620,"language":6,"meta":8,"style":8},"# Basic sequence\nnumbers = list(range(10))\nprint(\"0 to 9:\", numbers)\n\n# Custom start and stop\nteens = list(range(13, 20))\nprint(\"Teen numbers:\", teens)\n\n# With step values\nevens = list(range(0, 21, 2))\nprint(\"Even numbers:\", evens)\n\n# Countdown sequence\ncountdown = list(range(10, 0, -1))\nprint(\"Countdown:\", countdown)\n\n# Creating indices for another list\nfruits = [\"apple\", \"banana\", \"cherry\", \"date\"]\nindices = list(range(len(fruits)))\nprint(\"Indices:\", indices)\n",[2622],{"type":993,"tag":1022,"props":2623,"children":2624},{"__ignoreMap":8},[2625,2633,2671,2691,2698,2706,2751,2772,2779,2787,2840,2860,2867,2875,2931,2952,2959,2967,3015,3053],{"type":993,"tag":1026,"props":2626,"children":2627},{"class":1028,"line":12},[2628],{"type":993,"tag":1026,"props":2629,"children":2630},{"style":1032},[2631],{"type":998,"value":2632},"# Basic sequence\n",{"type":993,"tag":1026,"props":2634,"children":2635},{"class":1028,"line":27},[2636,2640,2644,2648,2652,2657,2661,2666],{"type":993,"tag":1026,"props":2637,"children":2638},{"style":1049},[2639],{"type":998,"value":2106},{"type":993,"tag":1026,"props":2641,"children":2642},{"style":1055},[2643],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2645,"children":2646},{"style":1099},[2647],{"type":998,"value":2233},{"type":993,"tag":1026,"props":2649,"children":2650},{"style":1049},[2651],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2653,"children":2654},{"style":1099},[2655],{"type":998,"value":2656},"range",{"type":993,"tag":1026,"props":2658,"children":2659},{"style":1049},[2660],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2662,"children":2663},{"style":1099},[2664],{"type":998,"value":2665},"10",{"type":993,"tag":1026,"props":2667,"children":2668},{"style":1049},[2669],{"type":998,"value":2670},"))\n",{"type":993,"tag":1026,"props":2672,"children":2673},{"class":1028,"line":36},[2674,2678,2682,2687],{"type":993,"tag":1026,"props":2675,"children":2676},{"style":1099},[2677],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2679,"children":2680},{"style":1049},[2681],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2683,"children":2684},{"style":1066},[2685],{"type":998,"value":2686},"\"0 to 9:\"",{"type":993,"tag":1026,"props":2688,"children":2689},{"style":1049},[2690],{"type":998,"value":2201},{"type":993,"tag":1026,"props":2692,"children":2693},{"class":1028,"line":45},[2694],{"type":993,"tag":1026,"props":2695,"children":2696},{"emptyLinePlaceholder":13},[2697],{"type":998,"value":1125},{"type":993,"tag":1026,"props":2699,"children":2700},{"class":1028,"line":54},[2701],{"type":993,"tag":1026,"props":2702,"children":2703},{"style":1032},[2704],{"type":998,"value":2705},"# Custom start and stop\n",{"type":993,"tag":1026,"props":2707,"children":2708},{"class":1028,"line":63},[2709,2714,2718,2722,2726,2730,2734,2739,2743,2747],{"type":993,"tag":1026,"props":2710,"children":2711},{"style":1049},[2712],{"type":998,"value":2713},"teens ",{"type":993,"tag":1026,"props":2715,"children":2716},{"style":1055},[2717],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2719,"children":2720},{"style":1099},[2721],{"type":998,"value":2233},{"type":993,"tag":1026,"props":2723,"children":2724},{"style":1049},[2725],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2727,"children":2728},{"style":1099},[2729],{"type":998,"value":2656},{"type":993,"tag":1026,"props":2731,"children":2732},{"style":1049},[2733],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2735,"children":2736},{"style":1099},[2737],{"type":998,"value":2738},"13",{"type":993,"tag":1026,"props":2740,"children":2741},{"style":1049},[2742],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2744,"children":2745},{"style":1099},[2746],{"type":998,"value":1216},{"type":993,"tag":1026,"props":2748,"children":2749},{"style":1049},[2750],{"type":998,"value":2670},{"type":993,"tag":1026,"props":2752,"children":2753},{"class":1028,"line":72},[2754,2758,2762,2767],{"type":993,"tag":1026,"props":2755,"children":2756},{"style":1099},[2757],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2759,"children":2760},{"style":1049},[2761],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2763,"children":2764},{"style":1066},[2765],{"type":998,"value":2766},"\"Teen numbers:\"",{"type":993,"tag":1026,"props":2768,"children":2769},{"style":1049},[2770],{"type":998,"value":2771},", teens)\n",{"type":993,"tag":1026,"props":2773,"children":2774},{"class":1028,"line":81},[2775],{"type":993,"tag":1026,"props":2776,"children":2777},{"emptyLinePlaceholder":13},[2778],{"type":998,"value":1125},{"type":993,"tag":1026,"props":2780,"children":2781},{"class":1028,"line":91},[2782],{"type":993,"tag":1026,"props":2783,"children":2784},{"style":1032},[2785],{"type":998,"value":2786},"# With step values\n",{"type":993,"tag":1026,"props":2788,"children":2789},{"class":1028,"line":100},[2790,2795,2799,2803,2807,2811,2815,2819,2823,2828,2832,2836],{"type":993,"tag":1026,"props":2791,"children":2792},{"style":1049},[2793],{"type":998,"value":2794},"evens ",{"type":993,"tag":1026,"props":2796,"children":2797},{"style":1055},[2798],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2800,"children":2801},{"style":1099},[2802],{"type":998,"value":2233},{"type":993,"tag":1026,"props":2804,"children":2805},{"style":1049},[2806],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2808,"children":2809},{"style":1099},[2810],{"type":998,"value":2656},{"type":993,"tag":1026,"props":2812,"children":2813},{"style":1049},[2814],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2816,"children":2817},{"style":1099},[2818],{"type":998,"value":1295},{"type":993,"tag":1026,"props":2820,"children":2821},{"style":1049},[2822],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2824,"children":2825},{"style":1099},[2826],{"type":998,"value":2827},"21",{"type":993,"tag":1026,"props":2829,"children":2830},{"style":1049},[2831],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2833,"children":2834},{"style":1099},[2835],{"type":998,"value":1877},{"type":993,"tag":1026,"props":2837,"children":2838},{"style":1049},[2839],{"type":998,"value":2670},{"type":993,"tag":1026,"props":2841,"children":2842},{"class":1028,"line":109},[2843,2847,2851,2855],{"type":993,"tag":1026,"props":2844,"children":2845},{"style":1099},[2846],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2848,"children":2849},{"style":1049},[2850],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2852,"children":2853},{"style":1066},[2854],{"type":998,"value":2196},{"type":993,"tag":1026,"props":2856,"children":2857},{"style":1049},[2858],{"type":998,"value":2859},", evens)\n",{"type":993,"tag":1026,"props":2861,"children":2862},{"class":1028,"line":118},[2863],{"type":993,"tag":1026,"props":2864,"children":2865},{"emptyLinePlaceholder":13},[2866],{"type":998,"value":1125},{"type":993,"tag":1026,"props":2868,"children":2869},{"class":1028,"line":127},[2870],{"type":993,"tag":1026,"props":2871,"children":2872},{"style":1032},[2873],{"type":998,"value":2874},"# Countdown sequence\n",{"type":993,"tag":1026,"props":2876,"children":2877},{"class":1028,"line":136},[2878,2883,2887,2891,2895,2899,2903,2907,2911,2915,2919,2923,2927],{"type":993,"tag":1026,"props":2879,"children":2880},{"style":1049},[2881],{"type":998,"value":2882},"countdown ",{"type":993,"tag":1026,"props":2884,"children":2885},{"style":1055},[2886],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2888,"children":2889},{"style":1099},[2890],{"type":998,"value":2233},{"type":993,"tag":1026,"props":2892,"children":2893},{"style":1049},[2894],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2896,"children":2897},{"style":1099},[2898],{"type":998,"value":2656},{"type":993,"tag":1026,"props":2900,"children":2901},{"style":1049},[2902],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2904,"children":2905},{"style":1099},[2906],{"type":998,"value":2665},{"type":993,"tag":1026,"props":2908,"children":2909},{"style":1049},[2910],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2912,"children":2913},{"style":1099},[2914],{"type":998,"value":1295},{"type":993,"tag":1026,"props":2916,"children":2917},{"style":1049},[2918],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2920,"children":2921},{"style":1055},[2922],{"type":998,"value":2359},{"type":993,"tag":1026,"props":2924,"children":2925},{"style":1099},[2926],{"type":998,"value":1868},{"type":993,"tag":1026,"props":2928,"children":2929},{"style":1049},[2930],{"type":998,"value":2670},{"type":993,"tag":1026,"props":2932,"children":2933},{"class":1028,"line":146},[2934,2938,2942,2947],{"type":993,"tag":1026,"props":2935,"children":2936},{"style":1099},[2937],{"type":998,"value":1102},{"type":993,"tag":1026,"props":2939,"children":2940},{"style":1049},[2941],{"type":998,"value":1107},{"type":993,"tag":1026,"props":2943,"children":2944},{"style":1066},[2945],{"type":998,"value":2946},"\"Countdown:\"",{"type":993,"tag":1026,"props":2948,"children":2949},{"style":1049},[2950],{"type":998,"value":2951},", countdown)\n",{"type":993,"tag":1026,"props":2953,"children":2954},{"class":1028,"line":155},[2955],{"type":993,"tag":1026,"props":2956,"children":2957},{"emptyLinePlaceholder":13},[2958],{"type":998,"value":1125},{"type":993,"tag":1026,"props":2960,"children":2961},{"class":1028,"line":164},[2962],{"type":993,"tag":1026,"props":2963,"children":2964},{"style":1032},[2965],{"type":998,"value":2966},"# Creating indices for another list\n",{"type":993,"tag":1026,"props":2968,"children":2969},{"class":1028,"line":173},[2970,2974,2978,2982,2986,2990,2994,2998,3002,3006,3011],{"type":993,"tag":1026,"props":2971,"children":2972},{"style":1049},[2973],{"type":998,"value":1052},{"type":993,"tag":1026,"props":2975,"children":2976},{"style":1055},[2977],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2979,"children":2980},{"style":1049},[2981],{"type":998,"value":1063},{"type":993,"tag":1026,"props":2983,"children":2984},{"style":1066},[2985],{"type":998,"value":1069},{"type":993,"tag":1026,"props":2987,"children":2988},{"style":1049},[2989],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2991,"children":2992},{"style":1066},[2993],{"type":998,"value":1079},{"type":993,"tag":1026,"props":2995,"children":2996},{"style":1049},[2997],{"type":998,"value":1074},{"type":993,"tag":1026,"props":2999,"children":3000},{"style":1066},[3001],{"type":998,"value":1088},{"type":993,"tag":1026,"props":3003,"children":3004},{"style":1049},[3005],{"type":998,"value":1074},{"type":993,"tag":1026,"props":3007,"children":3008},{"style":1066},[3009],{"type":998,"value":3010},"\"date\"",{"type":993,"tag":1026,"props":3012,"children":3013},{"style":1049},[3014],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3016,"children":3017},{"class":1028,"line":182},[3018,3023,3027,3031,3035,3039,3043,3048],{"type":993,"tag":1026,"props":3019,"children":3020},{"style":1049},[3021],{"type":998,"value":3022},"indices ",{"type":993,"tag":1026,"props":3024,"children":3025},{"style":1055},[3026],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3028,"children":3029},{"style":1099},[3030],{"type":998,"value":2233},{"type":993,"tag":1026,"props":3032,"children":3033},{"style":1049},[3034],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3036,"children":3037},{"style":1099},[3038],{"type":998,"value":2656},{"type":993,"tag":1026,"props":3040,"children":3041},{"style":1049},[3042],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3044,"children":3045},{"style":1099},[3046],{"type":998,"value":3047},"len",{"type":993,"tag":1026,"props":3049,"children":3050},{"style":1049},[3051],{"type":998,"value":3052},"(fruits)))\n",{"type":993,"tag":1026,"props":3054,"children":3055},{"class":1028,"line":191},[3056,3060,3064,3069],{"type":993,"tag":1026,"props":3057,"children":3058},{"style":1099},[3059],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3061,"children":3062},{"style":1049},[3063],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3065,"children":3066},{"style":1066},[3067],{"type":998,"value":3068},"\"Indices:\"",{"type":993,"tag":1026,"props":3070,"children":3071},{"style":1049},[3072],{"type":998,"value":3073},", indices)\n",{"type":993,"tag":1333,"props":3075,"children":3077},{"id":3076},"list-repetition-and-multiplication",[3078],{"type":998,"value":3079},"List Repetition and Multiplication",{"type":993,"tag":1001,"props":3081,"children":3082},{},[3083],{"type":998,"value":3084},"Python allows you to create lists by repeating elements using the multiplication operator. This technique is useful for initializing lists with default values or creating patterns.",{"type":993,"tag":1001,"props":3086,"children":3087},{},[3088],{"type":998,"value":3089},"List repetition is particularly helpful for creating grids, initializing counters, or setting up data structures with default values.",{"type":993,"tag":1350,"props":3091,"children":3095},{"emoji":3092,"title":3093,"type":3094},"⚠️","List Repetition Warning","warning",[3096,3104,3127,3135],{"type":993,"tag":1001,"props":3097,"children":3098},{},[3099],{"type":993,"tag":1360,"props":3100,"children":3101},{},[3102],{"type":998,"value":3103},"Important Limitation:",{"type":993,"tag":1382,"props":3105,"children":3106},{},[3107,3112,3122],{"type":993,"tag":1386,"props":3108,"children":3109},{},[3110],{"type":998,"value":3111},"Works well with immutable objects (numbers, strings, booleans)",{"type":993,"tag":1386,"props":3113,"children":3114},{},[3115,3120],{"type":993,"tag":1360,"props":3116,"children":3117},{},[3118],{"type":998,"value":3119},"Avoid with mutable objects",{"type":998,"value":3121}," (lists, dictionaries)",{"type":993,"tag":1386,"props":3123,"children":3124},{},[3125],{"type":998,"value":3126},"Mutable objects create shared references, not copies",{"type":993,"tag":1001,"props":3128,"children":3129},{},[3130],{"type":993,"tag":1360,"props":3131,"children":3132},{},[3133],{"type":998,"value":3134},"Safe Usage:",{"type":993,"tag":1382,"props":3136,"children":3137},{},[3138,3149,3160],{"type":993,"tag":1386,"props":3139,"children":3140},{},[3141,3147],{"type":993,"tag":1022,"props":3142,"children":3144},{"className":3143},[],[3145],{"type":998,"value":3146},"[0] * 5",{"type":998,"value":3148}," ✓ (creates 5 separate zeros)",{"type":993,"tag":1386,"props":3150,"children":3151},{},[3152,3158],{"type":993,"tag":1022,"props":3153,"children":3155},{"className":3154},[],[3156],{"type":998,"value":3157},"[[]] * 3",{"type":998,"value":3159}," ✗ (creates 3 references to same list)",{"type":993,"tag":1386,"props":3161,"children":3162},{},[3163,3165],{"type":998,"value":3164},"Use list comprehension for mutable objects: ",{"type":993,"tag":1022,"props":3166,"children":3168},{"className":3167},[],[3169],{"type":998,"value":3170},"[[] for _ in range(3)]",{"type":993,"tag":1452,"props":3172,"children":3174},{"id":3173},"repetition-examples",[3175],{"type":998,"value":3176},"Repetition Examples",{"type":993,"tag":1001,"props":3178,"children":3179},{},[3180],{"type":998,"value":3181},"Creating lists with repeated elements safely:",{"type":993,"tag":1012,"props":3183,"children":3184},{},[3185],{"type":993,"tag":1016,"props":3186,"children":3188},{"className":1018,"code":3187,"language":6,"meta":8,"style":8},"# Repeating single values\nzeros = [0] * 5\nprint(\"Five zeros:\", zeros)\n\nones = [1] * 8\nprint(\"Eight ones:\", ones)\n\n# Repeating strings\ngreetings = [\"Hello\"] * 3\nprint(\"Greetings:\", greetings)\n\n# Creating patterns\npattern = [\"A\", \"B\"] * 4\nprint(\"Pattern:\", pattern)\n\n# Initializing with default values\nscores = [0] * 10\nprint(\"Initial scores:\", scores)\n",[3189],{"type":993,"tag":1022,"props":3190,"children":3191},{"__ignoreMap":8},[3192,3200,3231,3251,3258,3291,3312,3319,3327,3361,3382,3389,3397,3440,3461,3468,3476,3508],{"type":993,"tag":1026,"props":3193,"children":3194},{"class":1028,"line":12},[3195],{"type":993,"tag":1026,"props":3196,"children":3197},{"style":1032},[3198],{"type":998,"value":3199},"# Repeating single values\n",{"type":993,"tag":1026,"props":3201,"children":3202},{"class":1028,"line":27},[3203,3207,3211,3215,3219,3223,3227],{"type":993,"tag":1026,"props":3204,"children":3205},{"style":1049},[3206],{"type":998,"value":1282},{"type":993,"tag":1026,"props":3208,"children":3209},{"style":1055},[3210],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3212,"children":3213},{"style":1049},[3214],{"type":998,"value":1063},{"type":993,"tag":1026,"props":3216,"children":3217},{"style":1099},[3218],{"type":998,"value":1295},{"type":993,"tag":1026,"props":3220,"children":3221},{"style":1049},[3222],{"type":998,"value":1300},{"type":993,"tag":1026,"props":3224,"children":3225},{"style":1055},[3226],{"type":998,"value":1305},{"type":993,"tag":1026,"props":3228,"children":3229},{"style":1099},[3230],{"type":998,"value":1310},{"type":993,"tag":1026,"props":3232,"children":3233},{"class":1028,"line":36},[3234,3238,3242,3247],{"type":993,"tag":1026,"props":3235,"children":3236},{"style":1099},[3237],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3239,"children":3240},{"style":1049},[3241],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3243,"children":3244},{"style":1066},[3245],{"type":998,"value":3246},"\"Five zeros:\"",{"type":993,"tag":1026,"props":3248,"children":3249},{"style":1049},[3250],{"type":998,"value":1331},{"type":993,"tag":1026,"props":3252,"children":3253},{"class":1028,"line":45},[3254],{"type":993,"tag":1026,"props":3255,"children":3256},{"emptyLinePlaceholder":13},[3257],{"type":998,"value":1125},{"type":993,"tag":1026,"props":3259,"children":3260},{"class":1028,"line":54},[3261,3266,3270,3274,3278,3282,3286],{"type":993,"tag":1026,"props":3262,"children":3263},{"style":1049},[3264],{"type":998,"value":3265},"ones ",{"type":993,"tag":1026,"props":3267,"children":3268},{"style":1055},[3269],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3271,"children":3272},{"style":1049},[3273],{"type":998,"value":1063},{"type":993,"tag":1026,"props":3275,"children":3276},{"style":1099},[3277],{"type":998,"value":1868},{"type":993,"tag":1026,"props":3279,"children":3280},{"style":1049},[3281],{"type":998,"value":1300},{"type":993,"tag":1026,"props":3283,"children":3284},{"style":1055},[3285],{"type":998,"value":1305},{"type":993,"tag":1026,"props":3287,"children":3288},{"style":1099},[3289],{"type":998,"value":3290}," 8\n",{"type":993,"tag":1026,"props":3292,"children":3293},{"class":1028,"line":63},[3294,3298,3302,3307],{"type":993,"tag":1026,"props":3295,"children":3296},{"style":1099},[3297],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3299,"children":3300},{"style":1049},[3301],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3303,"children":3304},{"style":1066},[3305],{"type":998,"value":3306},"\"Eight ones:\"",{"type":993,"tag":1026,"props":3308,"children":3309},{"style":1049},[3310],{"type":998,"value":3311},", ones)\n",{"type":993,"tag":1026,"props":3313,"children":3314},{"class":1028,"line":72},[3315],{"type":993,"tag":1026,"props":3316,"children":3317},{"emptyLinePlaceholder":13},[3318],{"type":998,"value":1125},{"type":993,"tag":1026,"props":3320,"children":3321},{"class":1028,"line":81},[3322],{"type":993,"tag":1026,"props":3323,"children":3324},{"style":1032},[3325],{"type":998,"value":3326},"# Repeating strings\n",{"type":993,"tag":1026,"props":3328,"children":3329},{"class":1028,"line":91},[3330,3335,3339,3343,3348,3352,3356],{"type":993,"tag":1026,"props":3331,"children":3332},{"style":1049},[3333],{"type":998,"value":3334},"greetings ",{"type":993,"tag":1026,"props":3336,"children":3337},{"style":1055},[3338],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3340,"children":3341},{"style":1049},[3342],{"type":998,"value":1063},{"type":993,"tag":1026,"props":3344,"children":3345},{"style":1066},[3346],{"type":998,"value":3347},"\"Hello\"",{"type":993,"tag":1026,"props":3349,"children":3350},{"style":1049},[3351],{"type":998,"value":1300},{"type":993,"tag":1026,"props":3353,"children":3354},{"style":1055},[3355],{"type":998,"value":1305},{"type":993,"tag":1026,"props":3357,"children":3358},{"style":1099},[3359],{"type":998,"value":3360}," 3\n",{"type":993,"tag":1026,"props":3362,"children":3363},{"class":1028,"line":100},[3364,3368,3372,3377],{"type":993,"tag":1026,"props":3365,"children":3366},{"style":1099},[3367],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3369,"children":3370},{"style":1049},[3371],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3373,"children":3374},{"style":1066},[3375],{"type":998,"value":3376},"\"Greetings:\"",{"type":993,"tag":1026,"props":3378,"children":3379},{"style":1049},[3380],{"type":998,"value":3381},", greetings)\n",{"type":993,"tag":1026,"props":3383,"children":3384},{"class":1028,"line":109},[3385],{"type":993,"tag":1026,"props":3386,"children":3387},{"emptyLinePlaceholder":13},[3388],{"type":998,"value":1125},{"type":993,"tag":1026,"props":3390,"children":3391},{"class":1028,"line":118},[3392],{"type":993,"tag":1026,"props":3393,"children":3394},{"style":1032},[3395],{"type":998,"value":3396},"# Creating patterns\n",{"type":993,"tag":1026,"props":3398,"children":3399},{"class":1028,"line":127},[3400,3405,3409,3413,3418,3422,3427,3431,3435],{"type":993,"tag":1026,"props":3401,"children":3402},{"style":1049},[3403],{"type":998,"value":3404},"pattern ",{"type":993,"tag":1026,"props":3406,"children":3407},{"style":1055},[3408],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3410,"children":3411},{"style":1049},[3412],{"type":998,"value":1063},{"type":993,"tag":1026,"props":3414,"children":3415},{"style":1066},[3416],{"type":998,"value":3417},"\"A\"",{"type":993,"tag":1026,"props":3419,"children":3420},{"style":1049},[3421],{"type":998,"value":1074},{"type":993,"tag":1026,"props":3423,"children":3424},{"style":1066},[3425],{"type":998,"value":3426},"\"B\"",{"type":993,"tag":1026,"props":3428,"children":3429},{"style":1049},[3430],{"type":998,"value":1300},{"type":993,"tag":1026,"props":3432,"children":3433},{"style":1055},[3434],{"type":998,"value":1305},{"type":993,"tag":1026,"props":3436,"children":3437},{"style":1099},[3438],{"type":998,"value":3439}," 4\n",{"type":993,"tag":1026,"props":3441,"children":3442},{"class":1028,"line":136},[3443,3447,3451,3456],{"type":993,"tag":1026,"props":3444,"children":3445},{"style":1099},[3446],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3448,"children":3449},{"style":1049},[3450],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3452,"children":3453},{"style":1066},[3454],{"type":998,"value":3455},"\"Pattern:\"",{"type":993,"tag":1026,"props":3457,"children":3458},{"style":1049},[3459],{"type":998,"value":3460},", pattern)\n",{"type":993,"tag":1026,"props":3462,"children":3463},{"class":1028,"line":146},[3464],{"type":993,"tag":1026,"props":3465,"children":3466},{"emptyLinePlaceholder":13},[3467],{"type":998,"value":1125},{"type":993,"tag":1026,"props":3469,"children":3470},{"class":1028,"line":155},[3471],{"type":993,"tag":1026,"props":3472,"children":3473},{"style":1032},[3474],{"type":998,"value":3475},"# Initializing with default values\n",{"type":993,"tag":1026,"props":3477,"children":3478},{"class":1028,"line":164},[3479,3483,3487,3491,3495,3499,3503],{"type":993,"tag":1026,"props":3480,"children":3481},{"style":1049},[3482],{"type":998,"value":1576},{"type":993,"tag":1026,"props":3484,"children":3485},{"style":1055},[3486],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3488,"children":3489},{"style":1049},[3490],{"type":998,"value":1063},{"type":993,"tag":1026,"props":3492,"children":3493},{"style":1099},[3494],{"type":998,"value":1295},{"type":993,"tag":1026,"props":3496,"children":3497},{"style":1049},[3498],{"type":998,"value":1300},{"type":993,"tag":1026,"props":3500,"children":3501},{"style":1055},[3502],{"type":998,"value":1305},{"type":993,"tag":1026,"props":3504,"children":3505},{"style":1099},[3506],{"type":998,"value":3507}," 10\n",{"type":993,"tag":1026,"props":3509,"children":3510},{"class":1028,"line":173},[3511,3515,3519,3524],{"type":993,"tag":1026,"props":3512,"children":3513},{"style":1099},[3514],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3516,"children":3517},{"style":1049},[3518],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3520,"children":3521},{"style":1066},[3522],{"type":998,"value":3523},"\"Initial scores:\"",{"type":993,"tag":1026,"props":3525,"children":3526},{"style":1049},[3527],{"type":998,"value":1650},{"type":993,"tag":1333,"props":3529,"children":3531},{"id":3530},"list-comprehensions-for-creation",[3532],{"type":998,"value":3533},"List Comprehensions for Creation",{"type":993,"tag":1001,"props":3535,"children":3536},{},[3537],{"type":998,"value":3538},"List comprehensions provide a concise way to create lists based on existing sequences or mathematical expressions. They combine creation and transformation in a single, readable expression.",{"type":993,"tag":1001,"props":3540,"children":3541},{},[3542],{"type":998,"value":3543},"List comprehensions are powerful for generating lists with patterns, filtering data, or transforming existing collections.",{"type":993,"tag":1350,"props":3545,"children":3548},{"emoji":3546,"title":3547,"type":2514},"✨","List Comprehension Syntax",[3549,3575,3583,3606,3613],{"type":993,"tag":1001,"props":3550,"children":3551},{},[3552,3556,3557,3563,3568,3569],{"type":993,"tag":1360,"props":3553,"children":3554},{},[3555],{"type":998,"value":1364},{"type":998,"value":1366},{"type":993,"tag":1022,"props":3558,"children":3560},{"className":3559},[],[3561],{"type":998,"value":3562},"[expression for item in iterable]",{"type":993,"tag":1360,"props":3564,"children":3565},{},[3566],{"type":998,"value":3567},"With Condition:",{"type":998,"value":1366},{"type":993,"tag":1022,"props":3570,"children":3572},{"className":3571},[],[3573],{"type":998,"value":3574},"[expression for item in iterable if condition]",{"type":993,"tag":1001,"props":3576,"children":3577},{},[3578],{"type":993,"tag":1360,"props":3579,"children":3580},{},[3581],{"type":998,"value":3582},"Advantages:",{"type":993,"tag":1382,"props":3584,"children":3585},{},[3586,3591,3596,3601],{"type":993,"tag":1386,"props":3587,"children":3588},{},[3589],{"type":998,"value":3590},"More concise than loops",{"type":993,"tag":1386,"props":3592,"children":3593},{},[3594],{"type":998,"value":3595},"Often faster than equivalent loops",{"type":993,"tag":1386,"props":3597,"children":3598},{},[3599],{"type":998,"value":3600},"More readable for simple transformations",{"type":993,"tag":1386,"props":3602,"children":3603},{},[3604],{"type":998,"value":3605},"Functional programming style",{"type":993,"tag":1001,"props":3607,"children":3608},{},[3609],{"type":993,"tag":1360,"props":3610,"children":3611},{},[3612],{"type":998,"value":2036},{"type":993,"tag":1382,"props":3614,"children":3615},{},[3616,3621,3626,3631],{"type":993,"tag":1386,"props":3617,"children":3618},{},[3619],{"type":998,"value":3620},"Simple transformations",{"type":993,"tag":1386,"props":3622,"children":3623},{},[3624],{"type":998,"value":3625},"Filtering with conditions",{"type":993,"tag":1386,"props":3627,"children":3628},{},[3629],{"type":998,"value":3630},"Mathematical sequences",{"type":993,"tag":1386,"props":3632,"children":3633},{},[3634],{"type":998,"value":3635},"String manipulations",{"type":993,"tag":1452,"props":3637,"children":3639},{"id":3638},"comprehension-examples",[3640],{"type":998,"value":3641},"Comprehension Examples",{"type":993,"tag":1001,"props":3643,"children":3644},{},[3645],{"type":998,"value":3646},"Creating lists with comprehensions for various patterns:",{"type":993,"tag":1012,"props":3648,"children":3649},{},[3650],{"type":993,"tag":1016,"props":3651,"children":3653},{"className":1018,"code":3652,"language":6,"meta":8,"style":8},"# Basic number generation\nsquares = [x**2 for x in range(1, 6)]\nprint(\"Squares:\", squares)\n\n# Creating from existing list\nfruits = [\"apple\", \"banana\", \"cherry\"]\nlengths = [len(fruit) for fruit in fruits]\nprint(\"Fruit lengths:\", lengths)\n\n# With conditions\nnumbers = range(1, 11)\nevens = [x for x in numbers if x % 2 == 0]\nprint(\"Even numbers:\", evens)\n\n# String manipulation\nwords = [\"hello\", \"world\", \"python\"]\nuppercase = [word.upper() for word in words]\nprint(\"Uppercase:\", uppercase)\n",[3654],{"type":993,"tag":1022,"props":3655,"children":3656},{"__ignoreMap":8},[3657,3665,3730,3751,3758,3766,3805,3848,3869,3876,3884,3920,3984,4003,4010,4018,4061,4096],{"type":993,"tag":1026,"props":3658,"children":3659},{"class":1028,"line":12},[3660],{"type":993,"tag":1026,"props":3661,"children":3662},{"style":1032},[3663],{"type":998,"value":3664},"# Basic number generation\n",{"type":993,"tag":1026,"props":3666,"children":3667},{"class":1028,"line":27},[3668,3673,3677,3682,3687,3691,3696,3701,3705,3709,3713,3717,3721,3725],{"type":993,"tag":1026,"props":3669,"children":3670},{"style":1049},[3671],{"type":998,"value":3672},"squares ",{"type":993,"tag":1026,"props":3674,"children":3675},{"style":1055},[3676],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3678,"children":3679},{"style":1049},[3680],{"type":998,"value":3681}," [x",{"type":993,"tag":1026,"props":3683,"children":3684},{"style":1055},[3685],{"type":998,"value":3686},"**",{"type":993,"tag":1026,"props":3688,"children":3689},{"style":1099},[3690],{"type":998,"value":1877},{"type":993,"tag":1026,"props":3692,"children":3693},{"style":1055},[3694],{"type":998,"value":3695}," for",{"type":993,"tag":1026,"props":3697,"children":3698},{"style":1049},[3699],{"type":998,"value":3700}," x ",{"type":993,"tag":1026,"props":3702,"children":3703},{"style":1055},[3704],{"type":998,"value":2132},{"type":993,"tag":1026,"props":3706,"children":3707},{"style":1099},[3708],{"type":998,"value":2137},{"type":993,"tag":1026,"props":3710,"children":3711},{"style":1049},[3712],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3714,"children":3715},{"style":1099},[3716],{"type":998,"value":1868},{"type":993,"tag":1026,"props":3718,"children":3719},{"style":1049},[3720],{"type":998,"value":1074},{"type":993,"tag":1026,"props":3722,"children":3723},{"style":1099},[3724],{"type":998,"value":1914},{"type":993,"tag":1026,"props":3726,"children":3727},{"style":1049},[3728],{"type":998,"value":3729},")]\n",{"type":993,"tag":1026,"props":3731,"children":3732},{"class":1028,"line":36},[3733,3737,3741,3746],{"type":993,"tag":1026,"props":3734,"children":3735},{"style":1099},[3736],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3738,"children":3739},{"style":1049},[3740],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3742,"children":3743},{"style":1066},[3744],{"type":998,"value":3745},"\"Squares:\"",{"type":993,"tag":1026,"props":3747,"children":3748},{"style":1049},[3749],{"type":998,"value":3750},", squares)\n",{"type":993,"tag":1026,"props":3752,"children":3753},{"class":1028,"line":45},[3754],{"type":993,"tag":1026,"props":3755,"children":3756},{"emptyLinePlaceholder":13},[3757],{"type":998,"value":1125},{"type":993,"tag":1026,"props":3759,"children":3760},{"class":1028,"line":54},[3761],{"type":993,"tag":1026,"props":3762,"children":3763},{"style":1032},[3764],{"type":998,"value":3765},"# Creating from existing list\n",{"type":993,"tag":1026,"props":3767,"children":3768},{"class":1028,"line":63},[3769,3773,3777,3781,3785,3789,3793,3797,3801],{"type":993,"tag":1026,"props":3770,"children":3771},{"style":1049},[3772],{"type":998,"value":1052},{"type":993,"tag":1026,"props":3774,"children":3775},{"style":1055},[3776],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3778,"children":3779},{"style":1049},[3780],{"type":998,"value":1063},{"type":993,"tag":1026,"props":3782,"children":3783},{"style":1066},[3784],{"type":998,"value":1069},{"type":993,"tag":1026,"props":3786,"children":3787},{"style":1049},[3788],{"type":998,"value":1074},{"type":993,"tag":1026,"props":3790,"children":3791},{"style":1066},[3792],{"type":998,"value":1079},{"type":993,"tag":1026,"props":3794,"children":3795},{"style":1049},[3796],{"type":998,"value":1074},{"type":993,"tag":1026,"props":3798,"children":3799},{"style":1066},[3800],{"type":998,"value":1088},{"type":993,"tag":1026,"props":3802,"children":3803},{"style":1049},[3804],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3806,"children":3807},{"class":1028,"line":72},[3808,3813,3817,3821,3825,3830,3834,3839,3843],{"type":993,"tag":1026,"props":3809,"children":3810},{"style":1049},[3811],{"type":998,"value":3812},"lengths ",{"type":993,"tag":1026,"props":3814,"children":3815},{"style":1055},[3816],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3818,"children":3819},{"style":1049},[3820],{"type":998,"value":1063},{"type":993,"tag":1026,"props":3822,"children":3823},{"style":1099},[3824],{"type":998,"value":3047},{"type":993,"tag":1026,"props":3826,"children":3827},{"style":1049},[3828],{"type":998,"value":3829},"(fruit) ",{"type":993,"tag":1026,"props":3831,"children":3832},{"style":1055},[3833],{"type":998,"value":2122},{"type":993,"tag":1026,"props":3835,"children":3836},{"style":1049},[3837],{"type":998,"value":3838}," fruit ",{"type":993,"tag":1026,"props":3840,"children":3841},{"style":1055},[3842],{"type":998,"value":2132},{"type":993,"tag":1026,"props":3844,"children":3845},{"style":1049},[3846],{"type":998,"value":3847}," fruits]\n",{"type":993,"tag":1026,"props":3849,"children":3850},{"class":1028,"line":81},[3851,3855,3859,3864],{"type":993,"tag":1026,"props":3852,"children":3853},{"style":1099},[3854],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3856,"children":3857},{"style":1049},[3858],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3860,"children":3861},{"style":1066},[3862],{"type":998,"value":3863},"\"Fruit lengths:\"",{"type":993,"tag":1026,"props":3865,"children":3866},{"style":1049},[3867],{"type":998,"value":3868},", lengths)\n",{"type":993,"tag":1026,"props":3870,"children":3871},{"class":1028,"line":91},[3872],{"type":993,"tag":1026,"props":3873,"children":3874},{"emptyLinePlaceholder":13},[3875],{"type":998,"value":1125},{"type":993,"tag":1026,"props":3877,"children":3878},{"class":1028,"line":100},[3879],{"type":993,"tag":1026,"props":3880,"children":3881},{"style":1032},[3882],{"type":998,"value":3883},"# With conditions\n",{"type":993,"tag":1026,"props":3885,"children":3886},{"class":1028,"line":109},[3887,3891,3895,3899,3903,3907,3911,3916],{"type":993,"tag":1026,"props":3888,"children":3889},{"style":1049},[3890],{"type":998,"value":2106},{"type":993,"tag":1026,"props":3892,"children":3893},{"style":1055},[3894],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3896,"children":3897},{"style":1099},[3898],{"type":998,"value":2137},{"type":993,"tag":1026,"props":3900,"children":3901},{"style":1049},[3902],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3904,"children":3905},{"style":1099},[3906],{"type":998,"value":1868},{"type":993,"tag":1026,"props":3908,"children":3909},{"style":1049},[3910],{"type":998,"value":1074},{"type":993,"tag":1026,"props":3912,"children":3913},{"style":1099},[3914],{"type":998,"value":3915},"11",{"type":993,"tag":1026,"props":3917,"children":3918},{"style":1049},[3919],{"type":998,"value":2180},{"type":993,"tag":1026,"props":3921,"children":3922},{"class":1028,"line":118},[3923,3927,3931,3936,3940,3944,3948,3953,3958,3962,3967,3971,3976,3980],{"type":993,"tag":1026,"props":3924,"children":3925},{"style":1049},[3926],{"type":998,"value":2794},{"type":993,"tag":1026,"props":3928,"children":3929},{"style":1055},[3930],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3932,"children":3933},{"style":1049},[3934],{"type":998,"value":3935}," [x ",{"type":993,"tag":1026,"props":3937,"children":3938},{"style":1055},[3939],{"type":998,"value":2122},{"type":993,"tag":1026,"props":3941,"children":3942},{"style":1049},[3943],{"type":998,"value":3700},{"type":993,"tag":1026,"props":3945,"children":3946},{"style":1055},[3947],{"type":998,"value":2132},{"type":993,"tag":1026,"props":3949,"children":3950},{"style":1049},[3951],{"type":998,"value":3952}," numbers ",{"type":993,"tag":1026,"props":3954,"children":3955},{"style":1055},[3956],{"type":998,"value":3957},"if",{"type":993,"tag":1026,"props":3959,"children":3960},{"style":1049},[3961],{"type":998,"value":3700},{"type":993,"tag":1026,"props":3963,"children":3964},{"style":1055},[3965],{"type":998,"value":3966},"%",{"type":993,"tag":1026,"props":3968,"children":3969},{"style":1099},[3970],{"type":998,"value":2175},{"type":993,"tag":1026,"props":3972,"children":3973},{"style":1055},[3974],{"type":998,"value":3975}," ==",{"type":993,"tag":1026,"props":3977,"children":3978},{"style":1099},[3979],{"type":998,"value":2454},{"type":993,"tag":1026,"props":3981,"children":3982},{"style":1049},[3983],{"type":998,"value":1093},{"type":993,"tag":1026,"props":3985,"children":3986},{"class":1028,"line":127},[3987,3991,3995,3999],{"type":993,"tag":1026,"props":3988,"children":3989},{"style":1099},[3990],{"type":998,"value":1102},{"type":993,"tag":1026,"props":3992,"children":3993},{"style":1049},[3994],{"type":998,"value":1107},{"type":993,"tag":1026,"props":3996,"children":3997},{"style":1066},[3998],{"type":998,"value":2196},{"type":993,"tag":1026,"props":4000,"children":4001},{"style":1049},[4002],{"type":998,"value":2859},{"type":993,"tag":1026,"props":4004,"children":4005},{"class":1028,"line":136},[4006],{"type":993,"tag":1026,"props":4007,"children":4008},{"emptyLinePlaceholder":13},[4009],{"type":998,"value":1125},{"type":993,"tag":1026,"props":4011,"children":4012},{"class":1028,"line":146},[4013],{"type":993,"tag":1026,"props":4014,"children":4015},{"style":1032},[4016],{"type":998,"value":4017},"# String manipulation\n",{"type":993,"tag":1026,"props":4019,"children":4020},{"class":1028,"line":155},[4021,4026,4030,4034,4039,4043,4048,4052,4057],{"type":993,"tag":1026,"props":4022,"children":4023},{"style":1049},[4024],{"type":998,"value":4025},"words ",{"type":993,"tag":1026,"props":4027,"children":4028},{"style":1055},[4029],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4031,"children":4032},{"style":1049},[4033],{"type":998,"value":1063},{"type":993,"tag":1026,"props":4035,"children":4036},{"style":1066},[4037],{"type":998,"value":4038},"\"hello\"",{"type":993,"tag":1026,"props":4040,"children":4041},{"style":1049},[4042],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4044,"children":4045},{"style":1066},[4046],{"type":998,"value":4047},"\"world\"",{"type":993,"tag":1026,"props":4049,"children":4050},{"style":1049},[4051],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4053,"children":4054},{"style":1066},[4055],{"type":998,"value":4056},"\"python\"",{"type":993,"tag":1026,"props":4058,"children":4059},{"style":1049},[4060],{"type":998,"value":1093},{"type":993,"tag":1026,"props":4062,"children":4063},{"class":1028,"line":164},[4064,4069,4073,4078,4082,4087,4091],{"type":993,"tag":1026,"props":4065,"children":4066},{"style":1049},[4067],{"type":998,"value":4068},"uppercase ",{"type":993,"tag":1026,"props":4070,"children":4071},{"style":1055},[4072],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4074,"children":4075},{"style":1049},[4076],{"type":998,"value":4077}," [word.upper() ",{"type":993,"tag":1026,"props":4079,"children":4080},{"style":1055},[4081],{"type":998,"value":2122},{"type":993,"tag":1026,"props":4083,"children":4084},{"style":1049},[4085],{"type":998,"value":4086}," word ",{"type":993,"tag":1026,"props":4088,"children":4089},{"style":1055},[4090],{"type":998,"value":2132},{"type":993,"tag":1026,"props":4092,"children":4093},{"style":1049},[4094],{"type":998,"value":4095}," words]\n",{"type":993,"tag":1026,"props":4097,"children":4098},{"class":1028,"line":173},[4099,4103,4107,4112],{"type":993,"tag":1026,"props":4100,"children":4101},{"style":1099},[4102],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4104,"children":4105},{"style":1049},[4106],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4108,"children":4109},{"style":1066},[4110],{"type":998,"value":4111},"\"Uppercase:\"",{"type":993,"tag":1026,"props":4113,"children":4114},{"style":1049},[4115],{"type":998,"value":4116},", uppercase)\n",{"type":993,"tag":1333,"props":4118,"children":4120},{"id":4119},"converting-other-data-types",[4121],{"type":998,"value":4122},"Converting Other Data Types",{"type":993,"tag":1001,"props":4124,"children":4125},{},[4126],{"type":998,"value":4127},"You can create lists by converting other data types using the list() constructor. This approach is useful when working with strings, tuples, sets, or other iterable objects.",{"type":993,"tag":1001,"props":4129,"children":4130},{},[4131],{"type":998,"value":4132},"Type conversion expands your options for list creation and data manipulation.",{"type":993,"tag":1452,"props":4134,"children":4136},{"id":4135},"conversion-examples",[4137],{"type":998,"value":4138},"Conversion Examples",{"type":993,"tag":1001,"props":4140,"children":4141},{},[4142],{"type":998,"value":4143},"Converting various data types to lists:",{"type":993,"tag":1012,"props":4145,"children":4146},{},[4147],{"type":993,"tag":1016,"props":4148,"children":4150},{"className":1018,"code":4149,"language":6,"meta":8,"style":8},"# String to list of characters\nword = \"Python\"\nletters = list(word)\nprint(\"Letters:\", letters)\n\n# Tuple to list\ncoordinates = (10, 20, 30)\ncoord_list = list(coordinates)\nprint(\"Coordinates as list:\", coord_list)\n\n# Set to list (removes duplicates)\nnumbers_set = {3, 1, 4, 1, 5, 9, 2, 6}\nunique_numbers = list(numbers_set)\nprint(\"Unique numbers:\", unique_numbers)\n\n# Dictionary keys/values to lists\nstudent_grades = {\"Alice\": 85, \"Bob\": 92, \"Charlie\": 78}\nstudents = list(student_grades.keys())\ngrades = list(student_grades.values())\nprint(\"Students:\", students)\nprint(\"Grades:\", grades)\n",[4151],{"type":993,"tag":1022,"props":4152,"children":4153},{"__ignoreMap":8},[4154,4162,4179,4200,4221,4228,4236,4278,4299,4320,4327,4335,4417,4438,4459,4466,4474,4539,4560,4581,4602],{"type":993,"tag":1026,"props":4155,"children":4156},{"class":1028,"line":12},[4157],{"type":993,"tag":1026,"props":4158,"children":4159},{"style":1032},[4160],{"type":998,"value":4161},"# String to list of characters\n",{"type":993,"tag":1026,"props":4163,"children":4164},{"class":1028,"line":27},[4165,4170,4174],{"type":993,"tag":1026,"props":4166,"children":4167},{"style":1049},[4168],{"type":998,"value":4169},"word ",{"type":993,"tag":1026,"props":4171,"children":4172},{"style":1055},[4173],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4175,"children":4176},{"style":1066},[4177],{"type":998,"value":4178}," \"Python\"\n",{"type":993,"tag":1026,"props":4180,"children":4181},{"class":1028,"line":36},[4182,4187,4191,4195],{"type":993,"tag":1026,"props":4183,"children":4184},{"style":1049},[4185],{"type":998,"value":4186},"letters ",{"type":993,"tag":1026,"props":4188,"children":4189},{"style":1055},[4190],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4192,"children":4193},{"style":1099},[4194],{"type":998,"value":2233},{"type":993,"tag":1026,"props":4196,"children":4197},{"style":1049},[4198],{"type":998,"value":4199},"(word)\n",{"type":993,"tag":1026,"props":4201,"children":4202},{"class":1028,"line":45},[4203,4207,4211,4216],{"type":993,"tag":1026,"props":4204,"children":4205},{"style":1099},[4206],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4208,"children":4209},{"style":1049},[4210],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4212,"children":4213},{"style":1066},[4214],{"type":998,"value":4215},"\"Letters:\"",{"type":993,"tag":1026,"props":4217,"children":4218},{"style":1049},[4219],{"type":998,"value":4220},", letters)\n",{"type":993,"tag":1026,"props":4222,"children":4223},{"class":1028,"line":54},[4224],{"type":993,"tag":1026,"props":4225,"children":4226},{"emptyLinePlaceholder":13},[4227],{"type":998,"value":1125},{"type":993,"tag":1026,"props":4229,"children":4230},{"class":1028,"line":63},[4231],{"type":993,"tag":1026,"props":4232,"children":4233},{"style":1032},[4234],{"type":998,"value":4235},"# Tuple to list\n",{"type":993,"tag":1026,"props":4237,"children":4238},{"class":1028,"line":72},[4239,4244,4248,4253,4257,4261,4265,4269,4274],{"type":993,"tag":1026,"props":4240,"children":4241},{"style":1049},[4242],{"type":998,"value":4243},"coordinates ",{"type":993,"tag":1026,"props":4245,"children":4246},{"style":1055},[4247],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4249,"children":4250},{"style":1049},[4251],{"type":998,"value":4252}," (",{"type":993,"tag":1026,"props":4254,"children":4255},{"style":1099},[4256],{"type":998,"value":2665},{"type":993,"tag":1026,"props":4258,"children":4259},{"style":1049},[4260],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4262,"children":4263},{"style":1099},[4264],{"type":998,"value":1216},{"type":993,"tag":1026,"props":4266,"children":4267},{"style":1049},[4268],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4270,"children":4271},{"style":1099},[4272],{"type":998,"value":4273},"30",{"type":993,"tag":1026,"props":4275,"children":4276},{"style":1049},[4277],{"type":998,"value":2180},{"type":993,"tag":1026,"props":4279,"children":4280},{"class":1028,"line":81},[4281,4286,4290,4294],{"type":993,"tag":1026,"props":4282,"children":4283},{"style":1049},[4284],{"type":998,"value":4285},"coord_list ",{"type":993,"tag":1026,"props":4287,"children":4288},{"style":1055},[4289],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4291,"children":4292},{"style":1099},[4293],{"type":998,"value":2233},{"type":993,"tag":1026,"props":4295,"children":4296},{"style":1049},[4297],{"type":998,"value":4298},"(coordinates)\n",{"type":993,"tag":1026,"props":4300,"children":4301},{"class":1028,"line":91},[4302,4306,4310,4315],{"type":993,"tag":1026,"props":4303,"children":4304},{"style":1099},[4305],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4307,"children":4308},{"style":1049},[4309],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4311,"children":4312},{"style":1066},[4313],{"type":998,"value":4314},"\"Coordinates as list:\"",{"type":993,"tag":1026,"props":4316,"children":4317},{"style":1049},[4318],{"type":998,"value":4319},", coord_list)\n",{"type":993,"tag":1026,"props":4321,"children":4322},{"class":1028,"line":100},[4323],{"type":993,"tag":1026,"props":4324,"children":4325},{"emptyLinePlaceholder":13},[4326],{"type":998,"value":1125},{"type":993,"tag":1026,"props":4328,"children":4329},{"class":1028,"line":109},[4330],{"type":993,"tag":1026,"props":4331,"children":4332},{"style":1032},[4333],{"type":998,"value":4334},"# Set to list (removes duplicates)\n",{"type":993,"tag":1026,"props":4336,"children":4337},{"class":1028,"line":118},[4338,4343,4347,4352,4356,4360,4364,4368,4372,4376,4380,4384,4388,4392,4396,4400,4404,4408,4412],{"type":993,"tag":1026,"props":4339,"children":4340},{"style":1049},[4341],{"type":998,"value":4342},"numbers_set ",{"type":993,"tag":1026,"props":4344,"children":4345},{"style":1055},[4346],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4348,"children":4349},{"style":1049},[4350],{"type":998,"value":4351}," {",{"type":993,"tag":1026,"props":4353,"children":4354},{"style":1099},[4355],{"type":998,"value":1886},{"type":993,"tag":1026,"props":4357,"children":4358},{"style":1049},[4359],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4361,"children":4362},{"style":1099},[4363],{"type":998,"value":1868},{"type":993,"tag":1026,"props":4365,"children":4366},{"style":1049},[4367],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4369,"children":4370},{"style":1099},[4371],{"type":998,"value":1896},{"type":993,"tag":1026,"props":4373,"children":4374},{"style":1049},[4375],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4377,"children":4378},{"style":1099},[4379],{"type":998,"value":1868},{"type":993,"tag":1026,"props":4381,"children":4382},{"style":1049},[4383],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4385,"children":4386},{"style":1099},[4387],{"type":998,"value":1905},{"type":993,"tag":1026,"props":4389,"children":4390},{"style":1049},[4391],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4393,"children":4394},{"style":1099},[4395],{"type":998,"value":1941},{"type":993,"tag":1026,"props":4397,"children":4398},{"style":1049},[4399],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4401,"children":4402},{"style":1099},[4403],{"type":998,"value":1877},{"type":993,"tag":1026,"props":4405,"children":4406},{"style":1049},[4407],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4409,"children":4410},{"style":1099},[4411],{"type":998,"value":1914},{"type":993,"tag":1026,"props":4413,"children":4414},{"style":1049},[4415],{"type":998,"value":4416},"}\n",{"type":993,"tag":1026,"props":4418,"children":4419},{"class":1028,"line":127},[4420,4425,4429,4433],{"type":993,"tag":1026,"props":4421,"children":4422},{"style":1049},[4423],{"type":998,"value":4424},"unique_numbers ",{"type":993,"tag":1026,"props":4426,"children":4427},{"style":1055},[4428],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4430,"children":4431},{"style":1099},[4432],{"type":998,"value":2233},{"type":993,"tag":1026,"props":4434,"children":4435},{"style":1049},[4436],{"type":998,"value":4437},"(numbers_set)\n",{"type":993,"tag":1026,"props":4439,"children":4440},{"class":1028,"line":136},[4441,4445,4449,4454],{"type":993,"tag":1026,"props":4442,"children":4443},{"style":1099},[4444],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4446,"children":4447},{"style":1049},[4448],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4450,"children":4451},{"style":1066},[4452],{"type":998,"value":4453},"\"Unique numbers:\"",{"type":993,"tag":1026,"props":4455,"children":4456},{"style":1049},[4457],{"type":998,"value":4458},", unique_numbers)\n",{"type":993,"tag":1026,"props":4460,"children":4461},{"class":1028,"line":146},[4462],{"type":993,"tag":1026,"props":4463,"children":4464},{"emptyLinePlaceholder":13},[4465],{"type":998,"value":1125},{"type":993,"tag":1026,"props":4467,"children":4468},{"class":1028,"line":155},[4469],{"type":993,"tag":1026,"props":4470,"children":4471},{"style":1032},[4472],{"type":998,"value":4473},"# Dictionary keys/values to lists\n",{"type":993,"tag":1026,"props":4475,"children":4476},{"class":1028,"line":164},[4477,4482,4486,4490,4494,4499,4503,4507,4511,4515,4519,4523,4527,4531,4535],{"type":993,"tag":1026,"props":4478,"children":4479},{"style":1049},[4480],{"type":998,"value":4481},"student_grades ",{"type":993,"tag":1026,"props":4483,"children":4484},{"style":1055},[4485],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4487,"children":4488},{"style":1049},[4489],{"type":998,"value":4351},{"type":993,"tag":1026,"props":4491,"children":4492},{"style":1066},[4493],{"type":998,"value":1207},{"type":993,"tag":1026,"props":4495,"children":4496},{"style":1049},[4497],{"type":998,"value":4498},": ",{"type":993,"tag":1026,"props":4500,"children":4501},{"style":1099},[4502],{"type":998,"value":1589},{"type":993,"tag":1026,"props":4504,"children":4505},{"style":1049},[4506],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4508,"children":4509},{"style":1066},[4510],{"type":998,"value":2266},{"type":993,"tag":1026,"props":4512,"children":4513},{"style":1049},[4514],{"type":998,"value":4498},{"type":993,"tag":1026,"props":4516,"children":4517},{"style":1099},[4518],{"type":998,"value":1598},{"type":993,"tag":1026,"props":4520,"children":4521},{"style":1049},[4522],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4524,"children":4525},{"style":1066},[4526],{"type":998,"value":2282},{"type":993,"tag":1026,"props":4528,"children":4529},{"style":1049},[4530],{"type":998,"value":4498},{"type":993,"tag":1026,"props":4532,"children":4533},{"style":1099},[4534],{"type":998,"value":1607},{"type":993,"tag":1026,"props":4536,"children":4537},{"style":1049},[4538],{"type":998,"value":4416},{"type":993,"tag":1026,"props":4540,"children":4541},{"class":1028,"line":173},[4542,4547,4551,4555],{"type":993,"tag":1026,"props":4543,"children":4544},{"style":1049},[4545],{"type":998,"value":4546},"students ",{"type":993,"tag":1026,"props":4548,"children":4549},{"style":1055},[4550],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4552,"children":4553},{"style":1099},[4554],{"type":998,"value":2233},{"type":993,"tag":1026,"props":4556,"children":4557},{"style":1049},[4558],{"type":998,"value":4559},"(student_grades.keys())\n",{"type":993,"tag":1026,"props":4561,"children":4562},{"class":1028,"line":182},[4563,4568,4572,4576],{"type":993,"tag":1026,"props":4564,"children":4565},{"style":1049},[4566],{"type":998,"value":4567},"grades ",{"type":993,"tag":1026,"props":4569,"children":4570},{"style":1055},[4571],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4573,"children":4574},{"style":1099},[4575],{"type":998,"value":2233},{"type":993,"tag":1026,"props":4577,"children":4578},{"style":1049},[4579],{"type":998,"value":4580},"(student_grades.values())\n",{"type":993,"tag":1026,"props":4582,"children":4583},{"class":1028,"line":191},[4584,4588,4592,4597],{"type":993,"tag":1026,"props":4585,"children":4586},{"style":1099},[4587],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4589,"children":4590},{"style":1049},[4591],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4593,"children":4594},{"style":1066},[4595],{"type":998,"value":4596},"\"Students:\"",{"type":993,"tag":1026,"props":4598,"children":4599},{"style":1049},[4600],{"type":998,"value":4601},", students)\n",{"type":993,"tag":1026,"props":4603,"children":4604},{"class":1028,"line":201},[4605,4609,4613,4618],{"type":993,"tag":1026,"props":4606,"children":4607},{"style":1099},[4608],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4610,"children":4611},{"style":1049},[4612],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4614,"children":4615},{"style":1066},[4616],{"type":998,"value":4617},"\"Grades:\"",{"type":993,"tag":1026,"props":4619,"children":4620},{"style":1049},[4621],{"type":998,"value":4622},", grades)\n",{"type":993,"tag":1333,"props":4624,"children":4626},{"id":4625},"common-creation-patterns",[4627],{"type":998,"value":4628},"Common Creation Patterns",{"type":993,"tag":1001,"props":4630,"children":4631},{},[4632],{"type":998,"value":4633},"Several patterns appear frequently when creating lists in real-world programming. Understanding these patterns helps you recognize common scenarios and apply appropriate solutions.",{"type":993,"tag":1452,"props":4635,"children":4637},{"id":4636},"practical-creation-patterns",[4638],{"type":998,"value":4639},"Practical Creation Patterns",{"type":993,"tag":1001,"props":4641,"children":4642},{},[4643],{"type":998,"value":4644},"Real-world examples of list creation for different purposes:",{"type":993,"tag":1012,"props":4646,"children":4647},{},[4648],{"type":993,"tag":1016,"props":4649,"children":4651},{"className":1018,"code":4650,"language":6,"meta":8,"style":8},"# Initialization with default values\nscores = [0] * 10  # Ten scores initialized to zero\nprint(\"Initial scores:\", scores)\n\n# Creating lookup tables\nalphabet = list(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\")\nprint(\"Alphabet:\", alphabet[:5])  # Show first 5\n\n# Building from user input (simulated)\nuser_inputs = [\"apple\", \"banana\", \"cherry\"]\nshopping_list = []\nfor item in user_inputs:\n    shopping_list.append(item.lower())\nprint(\"Shopping list:\", shopping_list)\n\n# Creating test data\ntest_scores = [85 + i*2 for i in range(10)]\nprint(\"Test scores:\", test_scores)\n\n# Filtering and collecting\nall_numbers = range(-5, 6)\npositive_only = [x for x in all_numbers if x > 0]\nprint(\"Positive numbers:\", positive_only)\n",[4652],{"type":993,"tag":1022,"props":4653,"children":4654},{"__ignoreMap":8},[4655,4663,4700,4719,4726,4734,4763,4798,4805,4813,4853,4869,4890,4898,4919,4926,4934,5000,5021,5028,5036,5076,5129],{"type":993,"tag":1026,"props":4656,"children":4657},{"class":1028,"line":12},[4658],{"type":993,"tag":1026,"props":4659,"children":4660},{"style":1032},[4661],{"type":998,"value":4662},"# Initialization with default values\n",{"type":993,"tag":1026,"props":4664,"children":4665},{"class":1028,"line":27},[4666,4670,4674,4678,4682,4686,4690,4695],{"type":993,"tag":1026,"props":4667,"children":4668},{"style":1049},[4669],{"type":998,"value":1576},{"type":993,"tag":1026,"props":4671,"children":4672},{"style":1055},[4673],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4675,"children":4676},{"style":1049},[4677],{"type":998,"value":1063},{"type":993,"tag":1026,"props":4679,"children":4680},{"style":1099},[4681],{"type":998,"value":1295},{"type":993,"tag":1026,"props":4683,"children":4684},{"style":1049},[4685],{"type":998,"value":1300},{"type":993,"tag":1026,"props":4687,"children":4688},{"style":1055},[4689],{"type":998,"value":1305},{"type":993,"tag":1026,"props":4691,"children":4692},{"style":1099},[4693],{"type":998,"value":4694}," 10",{"type":993,"tag":1026,"props":4696,"children":4697},{"style":1032},[4698],{"type":998,"value":4699},"  # Ten scores initialized to zero\n",{"type":993,"tag":1026,"props":4701,"children":4702},{"class":1028,"line":36},[4703,4707,4711,4715],{"type":993,"tag":1026,"props":4704,"children":4705},{"style":1099},[4706],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4708,"children":4709},{"style":1049},[4710],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4712,"children":4713},{"style":1066},[4714],{"type":998,"value":3523},{"type":993,"tag":1026,"props":4716,"children":4717},{"style":1049},[4718],{"type":998,"value":1650},{"type":993,"tag":1026,"props":4720,"children":4721},{"class":1028,"line":45},[4722],{"type":993,"tag":1026,"props":4723,"children":4724},{"emptyLinePlaceholder":13},[4725],{"type":998,"value":1125},{"type":993,"tag":1026,"props":4727,"children":4728},{"class":1028,"line":54},[4729],{"type":993,"tag":1026,"props":4730,"children":4731},{"style":1032},[4732],{"type":998,"value":4733},"# Creating lookup tables\n",{"type":993,"tag":1026,"props":4735,"children":4736},{"class":1028,"line":63},[4737,4742,4746,4750,4754,4759],{"type":993,"tag":1026,"props":4738,"children":4739},{"style":1049},[4740],{"type":998,"value":4741},"alphabet ",{"type":993,"tag":1026,"props":4743,"children":4744},{"style":1055},[4745],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4747,"children":4748},{"style":1099},[4749],{"type":998,"value":2233},{"type":993,"tag":1026,"props":4751,"children":4752},{"style":1049},[4753],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4755,"children":4756},{"style":1066},[4757],{"type":998,"value":4758},"\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"",{"type":993,"tag":1026,"props":4760,"children":4761},{"style":1049},[4762],{"type":998,"value":2180},{"type":993,"tag":1026,"props":4764,"children":4765},{"class":1028,"line":72},[4766,4770,4774,4779,4784,4788,4793],{"type":993,"tag":1026,"props":4767,"children":4768},{"style":1099},[4769],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4771,"children":4772},{"style":1049},[4773],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4775,"children":4776},{"style":1066},[4777],{"type":998,"value":4778},"\"Alphabet:\"",{"type":993,"tag":1026,"props":4780,"children":4781},{"style":1049},[4782],{"type":998,"value":4783},", alphabet[:",{"type":993,"tag":1026,"props":4785,"children":4786},{"style":1099},[4787],{"type":998,"value":1905},{"type":993,"tag":1026,"props":4789,"children":4790},{"style":1049},[4791],{"type":998,"value":4792},"])  ",{"type":993,"tag":1026,"props":4794,"children":4795},{"style":1032},[4796],{"type":998,"value":4797},"# Show first 5\n",{"type":993,"tag":1026,"props":4799,"children":4800},{"class":1028,"line":81},[4801],{"type":993,"tag":1026,"props":4802,"children":4803},{"emptyLinePlaceholder":13},[4804],{"type":998,"value":1125},{"type":993,"tag":1026,"props":4806,"children":4807},{"class":1028,"line":91},[4808],{"type":993,"tag":1026,"props":4809,"children":4810},{"style":1032},[4811],{"type":998,"value":4812},"# Building from user input (simulated)\n",{"type":993,"tag":1026,"props":4814,"children":4815},{"class":1028,"line":100},[4816,4821,4825,4829,4833,4837,4841,4845,4849],{"type":993,"tag":1026,"props":4817,"children":4818},{"style":1049},[4819],{"type":998,"value":4820},"user_inputs ",{"type":993,"tag":1026,"props":4822,"children":4823},{"style":1055},[4824],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4826,"children":4827},{"style":1049},[4828],{"type":998,"value":1063},{"type":993,"tag":1026,"props":4830,"children":4831},{"style":1066},[4832],{"type":998,"value":1069},{"type":993,"tag":1026,"props":4834,"children":4835},{"style":1049},[4836],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4838,"children":4839},{"style":1066},[4840],{"type":998,"value":1079},{"type":993,"tag":1026,"props":4842,"children":4843},{"style":1049},[4844],{"type":998,"value":1074},{"type":993,"tag":1026,"props":4846,"children":4847},{"style":1066},[4848],{"type":998,"value":1088},{"type":993,"tag":1026,"props":4850,"children":4851},{"style":1049},[4852],{"type":998,"value":1093},{"type":993,"tag":1026,"props":4854,"children":4855},{"class":1028,"line":109},[4856,4861,4865],{"type":993,"tag":1026,"props":4857,"children":4858},{"style":1049},[4859],{"type":998,"value":4860},"shopping_list ",{"type":993,"tag":1026,"props":4862,"children":4863},{"style":1055},[4864],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4866,"children":4867},{"style":1049},[4868],{"type":998,"value":1150},{"type":993,"tag":1026,"props":4870,"children":4871},{"class":1028,"line":118},[4872,4876,4881,4885],{"type":993,"tag":1026,"props":4873,"children":4874},{"style":1055},[4875],{"type":998,"value":2122},{"type":993,"tag":1026,"props":4877,"children":4878},{"style":1049},[4879],{"type":998,"value":4880}," item ",{"type":993,"tag":1026,"props":4882,"children":4883},{"style":1055},[4884],{"type":998,"value":2132},{"type":993,"tag":1026,"props":4886,"children":4887},{"style":1049},[4888],{"type":998,"value":4889}," user_inputs:\n",{"type":993,"tag":1026,"props":4891,"children":4892},{"class":1028,"line":127},[4893],{"type":993,"tag":1026,"props":4894,"children":4895},{"style":1049},[4896],{"type":998,"value":4897},"    shopping_list.append(item.lower())\n",{"type":993,"tag":1026,"props":4899,"children":4900},{"class":1028,"line":136},[4901,4905,4909,4914],{"type":993,"tag":1026,"props":4902,"children":4903},{"style":1099},[4904],{"type":998,"value":1102},{"type":993,"tag":1026,"props":4906,"children":4907},{"style":1049},[4908],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4910,"children":4911},{"style":1066},[4912],{"type":998,"value":4913},"\"Shopping list:\"",{"type":993,"tag":1026,"props":4915,"children":4916},{"style":1049},[4917],{"type":998,"value":4918},", shopping_list)\n",{"type":993,"tag":1026,"props":4920,"children":4921},{"class":1028,"line":146},[4922],{"type":993,"tag":1026,"props":4923,"children":4924},{"emptyLinePlaceholder":13},[4925],{"type":998,"value":1125},{"type":993,"tag":1026,"props":4927,"children":4928},{"class":1028,"line":155},[4929],{"type":993,"tag":1026,"props":4930,"children":4931},{"style":1032},[4932],{"type":998,"value":4933},"# Creating test data\n",{"type":993,"tag":1026,"props":4935,"children":4936},{"class":1028,"line":164},[4937,4942,4946,4950,4954,4959,4964,4968,4972,4976,4980,4984,4988,4992,4996],{"type":993,"tag":1026,"props":4938,"children":4939},{"style":1049},[4940],{"type":998,"value":4941},"test_scores ",{"type":993,"tag":1026,"props":4943,"children":4944},{"style":1055},[4945],{"type":998,"value":1058},{"type":993,"tag":1026,"props":4947,"children":4948},{"style":1049},[4949],{"type":998,"value":1063},{"type":993,"tag":1026,"props":4951,"children":4952},{"style":1099},[4953],{"type":998,"value":1589},{"type":993,"tag":1026,"props":4955,"children":4956},{"style":1055},[4957],{"type":998,"value":4958}," +",{"type":993,"tag":1026,"props":4960,"children":4961},{"style":1049},[4962],{"type":998,"value":4963}," i",{"type":993,"tag":1026,"props":4965,"children":4966},{"style":1055},[4967],{"type":998,"value":1305},{"type":993,"tag":1026,"props":4969,"children":4970},{"style":1099},[4971],{"type":998,"value":1877},{"type":993,"tag":1026,"props":4973,"children":4974},{"style":1055},[4975],{"type":998,"value":3695},{"type":993,"tag":1026,"props":4977,"children":4978},{"style":1049},[4979],{"type":998,"value":2127},{"type":993,"tag":1026,"props":4981,"children":4982},{"style":1055},[4983],{"type":998,"value":2132},{"type":993,"tag":1026,"props":4985,"children":4986},{"style":1099},[4987],{"type":998,"value":2137},{"type":993,"tag":1026,"props":4989,"children":4990},{"style":1049},[4991],{"type":998,"value":1107},{"type":993,"tag":1026,"props":4993,"children":4994},{"style":1099},[4995],{"type":998,"value":2665},{"type":993,"tag":1026,"props":4997,"children":4998},{"style":1049},[4999],{"type":998,"value":3729},{"type":993,"tag":1026,"props":5001,"children":5002},{"class":1028,"line":173},[5003,5007,5011,5016],{"type":993,"tag":1026,"props":5004,"children":5005},{"style":1099},[5006],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5008,"children":5009},{"style":1049},[5010],{"type":998,"value":1107},{"type":993,"tag":1026,"props":5012,"children":5013},{"style":1066},[5014],{"type":998,"value":5015},"\"Test scores:\"",{"type":993,"tag":1026,"props":5017,"children":5018},{"style":1049},[5019],{"type":998,"value":5020},", test_scores)\n",{"type":993,"tag":1026,"props":5022,"children":5023},{"class":1028,"line":182},[5024],{"type":993,"tag":1026,"props":5025,"children":5026},{"emptyLinePlaceholder":13},[5027],{"type":998,"value":1125},{"type":993,"tag":1026,"props":5029,"children":5030},{"class":1028,"line":191},[5031],{"type":993,"tag":1026,"props":5032,"children":5033},{"style":1032},[5034],{"type":998,"value":5035},"# Filtering and collecting\n",{"type":993,"tag":1026,"props":5037,"children":5038},{"class":1028,"line":201},[5039,5044,5048,5052,5056,5060,5064,5068,5072],{"type":993,"tag":1026,"props":5040,"children":5041},{"style":1049},[5042],{"type":998,"value":5043},"all_numbers ",{"type":993,"tag":1026,"props":5045,"children":5046},{"style":1055},[5047],{"type":998,"value":1058},{"type":993,"tag":1026,"props":5049,"children":5050},{"style":1099},[5051],{"type":998,"value":2137},{"type":993,"tag":1026,"props":5053,"children":5054},{"style":1049},[5055],{"type":998,"value":1107},{"type":993,"tag":1026,"props":5057,"children":5058},{"style":1055},[5059],{"type":998,"value":2359},{"type":993,"tag":1026,"props":5061,"children":5062},{"style":1099},[5063],{"type":998,"value":1905},{"type":993,"tag":1026,"props":5065,"children":5066},{"style":1049},[5067],{"type":998,"value":1074},{"type":993,"tag":1026,"props":5069,"children":5070},{"style":1099},[5071],{"type":998,"value":1914},{"type":993,"tag":1026,"props":5073,"children":5074},{"style":1049},[5075],{"type":998,"value":2180},{"type":993,"tag":1026,"props":5077,"children":5078},{"class":1028,"line":210},[5079,5084,5088,5092,5096,5100,5104,5109,5113,5117,5121,5125],{"type":993,"tag":1026,"props":5080,"children":5081},{"style":1049},[5082],{"type":998,"value":5083},"positive_only ",{"type":993,"tag":1026,"props":5085,"children":5086},{"style":1055},[5087],{"type":998,"value":1058},{"type":993,"tag":1026,"props":5089,"children":5090},{"style":1049},[5091],{"type":998,"value":3935},{"type":993,"tag":1026,"props":5093,"children":5094},{"style":1055},[5095],{"type":998,"value":2122},{"type":993,"tag":1026,"props":5097,"children":5098},{"style":1049},[5099],{"type":998,"value":3700},{"type":993,"tag":1026,"props":5101,"children":5102},{"style":1055},[5103],{"type":998,"value":2132},{"type":993,"tag":1026,"props":5105,"children":5106},{"style":1049},[5107],{"type":998,"value":5108}," all_numbers ",{"type":993,"tag":1026,"props":5110,"children":5111},{"style":1055},[5112],{"type":998,"value":3957},{"type":993,"tag":1026,"props":5114,"children":5115},{"style":1049},[5116],{"type":998,"value":3700},{"type":993,"tag":1026,"props":5118,"children":5119},{"style":1055},[5120],{"type":998,"value":2449},{"type":993,"tag":1026,"props":5122,"children":5123},{"style":1099},[5124],{"type":998,"value":2454},{"type":993,"tag":1026,"props":5126,"children":5127},{"style":1049},[5128],{"type":998,"value":1093},{"type":993,"tag":1026,"props":5130,"children":5131},{"class":1028,"line":219},[5132,5136,5140,5145],{"type":993,"tag":1026,"props":5133,"children":5134},{"style":1099},[5135],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5137,"children":5138},{"style":1049},[5139],{"type":998,"value":1107},{"type":993,"tag":1026,"props":5141,"children":5142},{"style":1066},[5143],{"type":998,"value":5144},"\"Positive numbers:\"",{"type":993,"tag":1026,"props":5146,"children":5147},{"style":1049},[5148],{"type":998,"value":5149},", positive_only)\n",{"type":993,"tag":1333,"props":5151,"children":5153},{"id":5152},"list-creation-reference",[5154],{"type":998,"value":5155},"List Creation Reference",{"type":993,"tag":1001,"props":5157,"children":5158},{},[5159],{"type":998,"value":5160},"Python provides various methods for creating lists, each suited for different scenarios:",{"type":993,"tag":5162,"props":5163,"children":5164},"table",{},[5165,5194],{"type":993,"tag":5166,"props":5167,"children":5168},"thead",{},[5169],{"type":993,"tag":5170,"props":5171,"children":5172},"tr",{},[5173,5179,5184,5189],{"type":993,"tag":5174,"props":5175,"children":5176},"th",{},[5177],{"type":998,"value":5178},"Method",{"type":993,"tag":5174,"props":5180,"children":5181},{},[5182],{"type":998,"value":5183},"Syntax",{"type":993,"tag":5174,"props":5185,"children":5186},{},[5187],{"type":998,"value":5188},"Use Case",{"type":993,"tag":5174,"props":5190,"children":5191},{},[5192],{"type":998,"value":5193},"Example",{"type":993,"tag":5195,"props":5196,"children":5197},"tbody",{},[5198,5230,5266,5297,5327,5358],{"type":993,"tag":5170,"props":5199,"children":5200},{},[5201,5207,5216,5221],{"type":993,"tag":5202,"props":5203,"children":5204},"td",{},[5205],{"type":998,"value":5206},"Literal",{"type":993,"tag":5202,"props":5208,"children":5209},{},[5210],{"type":993,"tag":1022,"props":5211,"children":5213},{"className":5212},[],[5214],{"type":998,"value":5215},"[item1, item2, ...]",{"type":993,"tag":5202,"props":5217,"children":5218},{},[5219],{"type":998,"value":5220},"Known values",{"type":993,"tag":5202,"props":5222,"children":5223},{},[5224],{"type":993,"tag":1022,"props":5225,"children":5227},{"className":5226},[],[5228],{"type":998,"value":5229},"[1, 2, 3]",{"type":993,"tag":5170,"props":5231,"children":5232},{},[5233,5238,5253,5258],{"type":993,"tag":5202,"props":5234,"children":5235},{},[5236],{"type":998,"value":5237},"Empty",{"type":993,"tag":5202,"props":5239,"children":5240},{},[5241,5246,5248],{"type":993,"tag":1022,"props":5242,"children":5244},{"className":5243},[],[5245],{"type":998,"value":1411},{"type":998,"value":5247}," or ",{"type":993,"tag":1022,"props":5249,"children":5251},{"className":5250},[],[5252],{"type":998,"value":2028},{"type":993,"tag":5202,"props":5254,"children":5255},{},[5256],{"type":998,"value":5257},"Dynamic building",{"type":993,"tag":5202,"props":5259,"children":5260},{},[5261],{"type":993,"tag":1022,"props":5262,"children":5264},{"className":5263},[],[5265],{"type":998,"value":1411},{"type":993,"tag":5170,"props":5267,"children":5268},{},[5269,5274,5283,5288],{"type":993,"tag":5202,"props":5270,"children":5271},{},[5272],{"type":998,"value":5273},"Range",{"type":993,"tag":5202,"props":5275,"children":5276},{},[5277],{"type":993,"tag":1022,"props":5278,"children":5280},{"className":5279},[],[5281],{"type":998,"value":5282},"list(range(start, stop, step))",{"type":993,"tag":5202,"props":5284,"children":5285},{},[5286],{"type":998,"value":5287},"Numeric sequences",{"type":993,"tag":5202,"props":5289,"children":5290},{},[5291],{"type":993,"tag":1022,"props":5292,"children":5294},{"className":5293},[],[5295],{"type":998,"value":5296},"list(range(1, 6))",{"type":993,"tag":5170,"props":5298,"children":5299},{},[5300,5305,5314,5319],{"type":993,"tag":5202,"props":5301,"children":5302},{},[5303],{"type":998,"value":5304},"Repetition",{"type":993,"tag":5202,"props":5306,"children":5307},{},[5308],{"type":993,"tag":1022,"props":5309,"children":5311},{"className":5310},[],[5312],{"type":998,"value":5313},"[item] * count",{"type":993,"tag":5202,"props":5315,"children":5316},{},[5317],{"type":998,"value":5318},"Repeated values",{"type":993,"tag":5202,"props":5320,"children":5321},{},[5322],{"type":993,"tag":1022,"props":5323,"children":5325},{"className":5324},[],[5326],{"type":998,"value":3146},{"type":993,"tag":5170,"props":5328,"children":5329},{},[5330,5335,5344,5349],{"type":993,"tag":5202,"props":5331,"children":5332},{},[5333],{"type":998,"value":5334},"Comprehension",{"type":993,"tag":5202,"props":5336,"children":5337},{},[5338],{"type":993,"tag":1022,"props":5339,"children":5341},{"className":5340},[],[5342],{"type":998,"value":5343},"[expr for item in iterable]",{"type":993,"tag":5202,"props":5345,"children":5346},{},[5347],{"type":998,"value":5348},"Generated/filtered",{"type":993,"tag":5202,"props":5350,"children":5351},{},[5352],{"type":993,"tag":1022,"props":5353,"children":5355},{"className":5354},[],[5356],{"type":998,"value":5357},"[x**2 for x in range(5)]",{"type":993,"tag":5170,"props":5359,"children":5360},{},[5361,5366,5375,5380],{"type":993,"tag":5202,"props":5362,"children":5363},{},[5364],{"type":998,"value":5365},"Conversion",{"type":993,"tag":5202,"props":5367,"children":5368},{},[5369],{"type":993,"tag":1022,"props":5370,"children":5372},{"className":5371},[],[5373],{"type":998,"value":5374},"list(iterable)",{"type":993,"tag":5202,"props":5376,"children":5377},{},[5378],{"type":998,"value":5379},"From other types",{"type":993,"tag":5202,"props":5381,"children":5382},{},[5383],{"type":993,"tag":1022,"props":5384,"children":5386},{"className":5385},[],[5387],{"type":998,"value":5388},"list(\"hello\")",{"type":993,"tag":1001,"props":5390,"children":5391},{},[5392],{"type":998,"value":5393},"Choose the method that best fits your specific list creation needs.",{"type":993,"tag":5395,"props":5396,"children":5399},"exercise",{"hint":5397,"prompt":5398},"Use list comprehension for squares and list() function to convert the string!","Create a list of squares for numbers 1-8, then convert a string to a list of individual characters.",[5400],{"type":993,"tag":1016,"props":5401,"children":5403},{"className":1018,"code":5402,"language":6,"meta":8,"style":8},"# TODO: Part 1: Create squares of numbers 1-8 using list comprehension\nsquares = # TODO: Your code here - should create [1, 4, 9, 16, 25, 36, 49, 64]\n\n# TODO: Part 2: Convert \"PYTHON\" to a list of individual characters\nword = \"PYTHON\"\nletters = # TODO: Your code here - should create ['P', 'Y', 'T', 'H', 'O', 'N']\n\nprint(\"Squares:\", squares)\nprint(\"Letters:\", letters)\n",[5404],{"type":993,"tag":1022,"props":5405,"children":5406},{"__ignoreMap":8},[5407,5425,5450,5457,5473,5489,5513,5520,5539],{"type":993,"tag":1026,"props":5408,"children":5409},{"class":1028,"line":12},[5410,5415,5420],{"type":993,"tag":1026,"props":5411,"children":5412},{"style":1032},[5413],{"type":998,"value":5414},"# ",{"type":993,"tag":1026,"props":5416,"children":5417},{"style":1055},[5418],{"type":998,"value":5419},"TODO",{"type":993,"tag":1026,"props":5421,"children":5422},{"style":1032},[5423],{"type":998,"value":5424},": Part 1: Create squares of numbers 1-8 using list comprehension\n",{"type":993,"tag":1026,"props":5426,"children":5427},{"class":1028,"line":27},[5428,5432,5436,5441,5445],{"type":993,"tag":1026,"props":5429,"children":5430},{"style":1049},[5431],{"type":998,"value":3672},{"type":993,"tag":1026,"props":5433,"children":5434},{"style":1055},[5435],{"type":998,"value":1058},{"type":993,"tag":1026,"props":5437,"children":5438},{"style":1032},[5439],{"type":998,"value":5440}," # ",{"type":993,"tag":1026,"props":5442,"children":5443},{"style":1055},[5444],{"type":998,"value":5419},{"type":993,"tag":1026,"props":5446,"children":5447},{"style":1032},[5448],{"type":998,"value":5449},": Your code here - should create [1, 4, 9, 16, 25, 36, 49, 64]\n",{"type":993,"tag":1026,"props":5451,"children":5452},{"class":1028,"line":36},[5453],{"type":993,"tag":1026,"props":5454,"children":5455},{"emptyLinePlaceholder":13},[5456],{"type":998,"value":1125},{"type":993,"tag":1026,"props":5458,"children":5459},{"class":1028,"line":45},[5460,5464,5468],{"type":993,"tag":1026,"props":5461,"children":5462},{"style":1032},[5463],{"type":998,"value":5414},{"type":993,"tag":1026,"props":5465,"children":5466},{"style":1055},[5467],{"type":998,"value":5419},{"type":993,"tag":1026,"props":5469,"children":5470},{"style":1032},[5471],{"type":998,"value":5472},": Part 2: Convert \"PYTHON\" to a list of individual characters\n",{"type":993,"tag":1026,"props":5474,"children":5475},{"class":1028,"line":54},[5476,5480,5484],{"type":993,"tag":1026,"props":5477,"children":5478},{"style":1049},[5479],{"type":998,"value":4169},{"type":993,"tag":1026,"props":5481,"children":5482},{"style":1055},[5483],{"type":998,"value":1058},{"type":993,"tag":1026,"props":5485,"children":5486},{"style":1066},[5487],{"type":998,"value":5488}," \"PYTHON\"\n",{"type":993,"tag":1026,"props":5490,"children":5491},{"class":1028,"line":63},[5492,5496,5500,5504,5508],{"type":993,"tag":1026,"props":5493,"children":5494},{"style":1049},[5495],{"type":998,"value":4186},{"type":993,"tag":1026,"props":5497,"children":5498},{"style":1055},[5499],{"type":998,"value":1058},{"type":993,"tag":1026,"props":5501,"children":5502},{"style":1032},[5503],{"type":998,"value":5440},{"type":993,"tag":1026,"props":5505,"children":5506},{"style":1055},[5507],{"type":998,"value":5419},{"type":993,"tag":1026,"props":5509,"children":5510},{"style":1032},[5511],{"type":998,"value":5512},": Your code here - should create ['P', 'Y', 'T', 'H', 'O', 'N']\n",{"type":993,"tag":1026,"props":5514,"children":5515},{"class":1028,"line":72},[5516],{"type":993,"tag":1026,"props":5517,"children":5518},{"emptyLinePlaceholder":13},[5519],{"type":998,"value":1125},{"type":993,"tag":1026,"props":5521,"children":5522},{"class":1028,"line":81},[5523,5527,5531,5535],{"type":993,"tag":1026,"props":5524,"children":5525},{"style":1099},[5526],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5528,"children":5529},{"style":1049},[5530],{"type":998,"value":1107},{"type":993,"tag":1026,"props":5532,"children":5533},{"style":1066},[5534],{"type":998,"value":3745},{"type":993,"tag":1026,"props":5536,"children":5537},{"style":1049},[5538],{"type":998,"value":3750},{"type":993,"tag":1026,"props":5540,"children":5541},{"class":1028,"line":91},[5542,5546,5550,5554],{"type":993,"tag":1026,"props":5543,"children":5544},{"style":1099},[5545],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5547,"children":5548},{"style":1049},[5549],{"type":998,"value":1107},{"type":993,"tag":1026,"props":5551,"children":5552},{"style":1066},[5553],{"type":998,"value":4215},{"type":993,"tag":1026,"props":5555,"children":5556},{"style":1049},[5557],{"type":998,"value":4220},{"type":993,"tag":1452,"props":5559,"children":5561},{"id":5560},"solution-and-explanation",[5562],{"type":998,"value":5563},"Solution and Explanation 💡",{"type":993,"tag":5565,"props":5566,"children":5567},"details",{},[5568,5576,5747,5755],{"type":993,"tag":5569,"props":5570,"children":5573},"summary",{"className":5571},[5572],"cursor-pointer",[5574],{"type":998,"value":5575},"Click to see the complete solution",{"type":993,"tag":1012,"props":5577,"children":5578},{},[5579],{"type":993,"tag":1016,"props":5580,"children":5582},{"className":1018,"code":5581,"language":6,"meta":8,"style":8},"# Part 1: Create squares of numbers 1-8 using list comprehension\nsquares = [x**2 for x in range(1, 9)]\n\n# Part 2: Convert \"PYTHON\" to a list of individual characters\nword = \"PYTHON\"\nletters = list(word)\n\nprint(\"Squares:\", squares)\nprint(\"Letters:\", letters)\n",[5583],{"type":993,"tag":1022,"props":5584,"children":5585},{"__ignoreMap":8},[5586,5594,5653,5660,5668,5683,5702,5709,5728],{"type":993,"tag":1026,"props":5587,"children":5588},{"class":1028,"line":12},[5589],{"type":993,"tag":1026,"props":5590,"children":5591},{"style":1032},[5592],{"type":998,"value":5593},"# Part 1: Create squares of numbers 1-8 using list comprehension\n",{"type":993,"tag":1026,"props":5595,"children":5596},{"class":1028,"line":27},[5597,5601,5605,5609,5613,5617,5621,5625,5629,5633,5637,5641,5645,5649],{"type":993,"tag":1026,"props":5598,"children":5599},{"style":1049},[5600],{"type":998,"value":3672},{"type":993,"tag":1026,"props":5602,"children":5603},{"style":1055},[5604],{"type":998,"value":1058},{"type":993,"tag":1026,"props":5606,"children":5607},{"style":1049},[5608],{"type":998,"value":3681},{"type":993,"tag":1026,"props":5610,"children":5611},{"style":1055},[5612],{"type":998,"value":3686},{"type":993,"tag":1026,"props":5614,"children":5615},{"style":1099},[5616],{"type":998,"value":1877},{"type":993,"tag":1026,"props":5618,"children":5619},{"style":1055},[5620],{"type":998,"value":3695},{"type":993,"tag":1026,"props":5622,"children":5623},{"style":1049},[5624],{"type":998,"value":3700},{"type":993,"tag":1026,"props":5626,"children":5627},{"style":1055},[5628],{"type":998,"value":2132},{"type":993,"tag":1026,"props":5630,"children":5631},{"style":1099},[5632],{"type":998,"value":2137},{"type":993,"tag":1026,"props":5634,"children":5635},{"style":1049},[5636],{"type":998,"value":1107},{"type":993,"tag":1026,"props":5638,"children":5639},{"style":1099},[5640],{"type":998,"value":1868},{"type":993,"tag":1026,"props":5642,"children":5643},{"style":1049},[5644],{"type":998,"value":1074},{"type":993,"tag":1026,"props":5646,"children":5647},{"style":1099},[5648],{"type":998,"value":1941},{"type":993,"tag":1026,"props":5650,"children":5651},{"style":1049},[5652],{"type":998,"value":3729},{"type":993,"tag":1026,"props":5654,"children":5655},{"class":1028,"line":36},[5656],{"type":993,"tag":1026,"props":5657,"children":5658},{"emptyLinePlaceholder":13},[5659],{"type":998,"value":1125},{"type":993,"tag":1026,"props":5661,"children":5662},{"class":1028,"line":45},[5663],{"type":993,"tag":1026,"props":5664,"children":5665},{"style":1032},[5666],{"type":998,"value":5667},"# Part 2: Convert \"PYTHON\" to a list of individual characters\n",{"type":993,"tag":1026,"props":5669,"children":5670},{"class":1028,"line":54},[5671,5675,5679],{"type":993,"tag":1026,"props":5672,"children":5673},{"style":1049},[5674],{"type":998,"value":4169},{"type":993,"tag":1026,"props":5676,"children":5677},{"style":1055},[5678],{"type":998,"value":1058},{"type":993,"tag":1026,"props":5680,"children":5681},{"style":1066},[5682],{"type":998,"value":5488},{"type":993,"tag":1026,"props":5684,"children":5685},{"class":1028,"line":63},[5686,5690,5694,5698],{"type":993,"tag":1026,"props":5687,"children":5688},{"style":1049},[5689],{"type":998,"value":4186},{"type":993,"tag":1026,"props":5691,"children":5692},{"style":1055},[5693],{"type":998,"value":1058},{"type":993,"tag":1026,"props":5695,"children":5696},{"style":1099},[5697],{"type":998,"value":2233},{"type":993,"tag":1026,"props":5699,"children":5700},{"style":1049},[5701],{"type":998,"value":4199},{"type":993,"tag":1026,"props":5703,"children":5704},{"class":1028,"line":72},[5705],{"type":993,"tag":1026,"props":5706,"children":5707},{"emptyLinePlaceholder":13},[5708],{"type":998,"value":1125},{"type":993,"tag":1026,"props":5710,"children":5711},{"class":1028,"line":81},[5712,5716,5720,5724],{"type":993,"tag":1026,"props":5713,"children":5714},{"style":1099},[5715],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5717,"children":5718},{"style":1049},[5719],{"type":998,"value":1107},{"type":993,"tag":1026,"props":5721,"children":5722},{"style":1066},[5723],{"type":998,"value":3745},{"type":993,"tag":1026,"props":5725,"children":5726},{"style":1049},[5727],{"type":998,"value":3750},{"type":993,"tag":1026,"props":5729,"children":5730},{"class":1028,"line":91},[5731,5735,5739,5743],{"type":993,"tag":1026,"props":5732,"children":5733},{"style":1099},[5734],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5736,"children":5737},{"style":1049},[5738],{"type":998,"value":1107},{"type":993,"tag":1026,"props":5740,"children":5741},{"style":1066},[5742],{"type":998,"value":4215},{"type":993,"tag":1026,"props":5744,"children":5745},{"style":1049},[5746],{"type":998,"value":4220},{"type":993,"tag":1001,"props":5748,"children":5749},{},[5750],{"type":993,"tag":1360,"props":5751,"children":5752},{},[5753],{"type":998,"value":5754},"Key Learning Points:",{"type":993,"tag":1382,"props":5756,"children":5757},{},[5758,5777,5795,5812],{"type":993,"tag":1386,"props":5759,"children":5760},{},[5761,5763,5768,5769,5775],{"type":998,"value":5762},"📌 ",{"type":993,"tag":1360,"props":5764,"children":5765},{},[5766],{"type":998,"value":5767},"List comprehension",{"type":998,"value":4498},{"type":993,"tag":1022,"props":5770,"children":5772},{"className":5771},[],[5773],{"type":998,"value":5774},"[expression for variable in range()]",{"type":998,"value":5776}," creates lists efficiently",{"type":993,"tag":1386,"props":5778,"children":5779},{},[5780,5781,5786,5787,5793],{"type":998,"value":5762},{"type":993,"tag":1360,"props":5782,"children":5783},{},[5784],{"type":998,"value":5785},"Range function",{"type":998,"value":4498},{"type":993,"tag":1022,"props":5788,"children":5790},{"className":5789},[],[5791],{"type":998,"value":5792},"range(1, 9)",{"type":998,"value":5794}," gives numbers 1 through 8",{"type":993,"tag":1386,"props":5796,"children":5797},{},[5798,5799,5804,5805,5810],{"type":998,"value":5762},{"type":993,"tag":1360,"props":5800,"children":5801},{},[5802],{"type":998,"value":5803},"Type conversion",{"type":998,"value":4498},{"type":993,"tag":1022,"props":5806,"children":5808},{"className":5807},[],[5809],{"type":998,"value":2028},{"type":998,"value":5811}," function converts strings to character lists",{"type":993,"tag":1386,"props":5813,"children":5814},{},[5815,5816,5821,5823,5829],{"type":998,"value":5762},{"type":993,"tag":1360,"props":5817,"children":5818},{},[5819],{"type":998,"value":5820},"Squaring",{"type":998,"value":5822},": Use ",{"type":993,"tag":1022,"props":5824,"children":5826},{"className":5825},[],[5827],{"type":998,"value":5828},"**2",{"type":998,"value":5830}," operator to square numbers",{"type":993,"tag":1333,"props":5832,"children":5834},{"id":5833},"take-quiz",[5835],{"type":998,"value":5836},"Take Quiz",{"type":993,"tag":1001,"props":5838,"children":5839},{},[5840],{"type":998,"value":5841},"Test your understanding of creating lists:",{"type":993,"tag":5843,"props":5844,"children":5846},"redirect-button",{"label":5836,"url":5845},"/tutorial-quiz/python/creating-lists",[],{"type":993,"tag":1333,"props":5848,"children":5850},{"id":5849},"whats-next",[5851],{"type":998,"value":5852},"What's Next?",{"type":993,"tag":1001,"props":5854,"children":5855},{},[5856,5858,5863],{"type":998,"value":5857},"Now that you know how to create lists, you're ready to learn about ",{"type":993,"tag":1360,"props":5859,"children":5860},{},[5861],{"type":998,"value":5862},"accessing and reading data from lists",{"type":998,"value":5864},". This includes indexing, slicing, and various methods to retrieve information from your list collections.",{"type":993,"tag":1001,"props":5866,"children":5867},{},[5868,5870,5874],{"type":998,"value":5869},"Ready to continue? Check out our lesson on ",{"type":993,"tag":1980,"props":5871,"children":5872},{"href":289},[5873],{"type":998,"value":290},{"type":998,"value":5875}," to master list access techniques! 🔍",{"type":993,"tag":5877,"props":5878,"children":5879},"style",{},[5880],{"type":998,"value":5881},"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":5883},[5884,5887,5890,5893,5896,5899,5902,5905,5908,5909],{"id":1335,"depth":27,"text":1338,"children":5885},[5886],{"id":1454,"depth":36,"text":1457},{"id":1970,"depth":27,"text":1973,"children":5888},[5889],{"id":2072,"depth":36,"text":2075},{"id":2496,"depth":27,"text":2499,"children":5891},[5892],{"id":2606,"depth":36,"text":2609},{"id":3076,"depth":27,"text":3079,"children":5894},[5895],{"id":3173,"depth":36,"text":3176},{"id":3530,"depth":27,"text":3533,"children":5897},[5898],{"id":3638,"depth":36,"text":3641},{"id":4119,"depth":27,"text":4122,"children":5900},[5901],{"id":4135,"depth":36,"text":4138},{"id":4625,"depth":27,"text":4628,"children":5903},[5904],{"id":4636,"depth":36,"text":4639},{"id":5152,"depth":27,"text":5155,"children":5906},[5907],{"id":5560,"depth":36,"text":5563},{"id":5833,"depth":27,"text":5836},{"id":5849,"depth":27,"text":5852},1782373736353]