[{"data":1,"prerenderedAt":3556},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/file-operations":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524,"expanded":13},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615,"expanded":13},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679,"expanded":13},"/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,"expanded":13},"/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",[807,961],{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"body":989,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20},{"type":990,"children":991,"toc":3547},"root",[992,1000,1006,1011,1665,1672,1677,1897,1904,1909,2654,2660,2665,3321,3327,3332,3451,3456,3462,3467,3519,3524,3530,3541],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":811},[997],{"type":998,"value":999},"text","📁 File Operations",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"File operations in Python let your programs save information, read existing data, and work with files on your computer. Think of it as giving your program the ability to remember things between runs - like saving your game progress or reading a shopping list from a text file.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Whether you're reading configuration files, saving user data, or processing documents, file operations are essential for building useful applications.",{"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","# 🎯 Quick Start: File Operations Demo\n# Create and write to a file\nwith open(\"hello.txt\", \"w\") as file:\n    file.write(\"Hello, Python Files!\")\n    file.write(\"\\nFile operations are awesome!\")\n\n# Read the file back\nwith open(\"hello.txt\", \"r\") as file:\n    content = file.read()\n    print(\"📄 File content:\")\n    print(content)\n\n# Check if file exists\nimport os\nprint(f\"✅ File exists: {os.path.exists('hello.txt')}\")\n\n# Simple file workflow\nprint(\"\\n🔄 File Workflow Demo:\")\ndata = [\"Learn Python\", \"Practice coding\", \"Build projects\"]\n\n# Write list to file\nwith open(\"goals.txt\", \"w\") as file:\n    for item in data:\n        file.write(f\"• {item}\\n\")\n\n# Read and display\nwith open(\"goals.txt\", \"r\") as file:\n    print(\"📋 My Goals:\")\n    print(file.read())\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1044,1102,1125,1155,1163,1171,1215,1237,1258,1270,1277,1285,1298,1353,1360,1368,1396,1441,1448,1456,1500,1523,1566,1573,1581,1624,1644],{"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},"# 🎯 Quick Start: File Operations Demo\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},"# Create and write to a file\n",{"type":993,"tag":1026,"props":1045,"children":1046},{"class":1028,"line":36},[1047,1053,1059,1065,1071,1076,1081,1086,1091,1097],{"type":993,"tag":1026,"props":1048,"children":1050},{"style":1049},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1051],{"type":998,"value":1052},"with",{"type":993,"tag":1026,"props":1054,"children":1056},{"style":1055},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1057],{"type":998,"value":1058}," open",{"type":993,"tag":1026,"props":1060,"children":1062},{"style":1061},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1063],{"type":998,"value":1064},"(",{"type":993,"tag":1026,"props":1066,"children":1068},{"style":1067},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1069],{"type":998,"value":1070},"\"hello.txt\"",{"type":993,"tag":1026,"props":1072,"children":1073},{"style":1061},[1074],{"type":998,"value":1075},", ",{"type":993,"tag":1026,"props":1077,"children":1078},{"style":1067},[1079],{"type":998,"value":1080},"\"w\"",{"type":993,"tag":1026,"props":1082,"children":1083},{"style":1061},[1084],{"type":998,"value":1085},") ",{"type":993,"tag":1026,"props":1087,"children":1088},{"style":1049},[1089],{"type":998,"value":1090},"as",{"type":993,"tag":1026,"props":1092,"children":1094},{"style":1093},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[1095],{"type":998,"value":1096}," file",{"type":993,"tag":1026,"props":1098,"children":1099},{"style":1061},[1100],{"type":998,"value":1101},":\n",{"type":993,"tag":1026,"props":1103,"children":1104},{"class":1028,"line":45},[1105,1110,1115,1120],{"type":993,"tag":1026,"props":1106,"children":1107},{"style":1093},[1108],{"type":998,"value":1109},"    file",{"type":993,"tag":1026,"props":1111,"children":1112},{"style":1061},[1113],{"type":998,"value":1114},".write(",{"type":993,"tag":1026,"props":1116,"children":1117},{"style":1067},[1118],{"type":998,"value":1119},"\"Hello, Python Files!\"",{"type":993,"tag":1026,"props":1121,"children":1122},{"style":1061},[1123],{"type":998,"value":1124},")\n",{"type":993,"tag":1026,"props":1126,"children":1127},{"class":1028,"line":54},[1128,1132,1136,1141,1146,1151],{"type":993,"tag":1026,"props":1129,"children":1130},{"style":1093},[1131],{"type":998,"value":1109},{"type":993,"tag":1026,"props":1133,"children":1134},{"style":1061},[1135],{"type":998,"value":1114},{"type":993,"tag":1026,"props":1137,"children":1138},{"style":1067},[1139],{"type":998,"value":1140},"\"",{"type":993,"tag":1026,"props":1142,"children":1143},{"style":1055},[1144],{"type":998,"value":1145},"\\n",{"type":993,"tag":1026,"props":1147,"children":1148},{"style":1067},[1149],{"type":998,"value":1150},"File operations are awesome!\"",{"type":993,"tag":1026,"props":1152,"children":1153},{"style":1061},[1154],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1156,"children":1157},{"class":1028,"line":63},[1158],{"type":993,"tag":1026,"props":1159,"children":1160},{"emptyLinePlaceholder":13},[1161],{"type":998,"value":1162},"\n",{"type":993,"tag":1026,"props":1164,"children":1165},{"class":1028,"line":72},[1166],{"type":993,"tag":1026,"props":1167,"children":1168},{"style":1032},[1169],{"type":998,"value":1170},"# Read the file back\n",{"type":993,"tag":1026,"props":1172,"children":1173},{"class":1028,"line":81},[1174,1178,1182,1186,1190,1194,1199,1203,1207,1211],{"type":993,"tag":1026,"props":1175,"children":1176},{"style":1049},[1177],{"type":998,"value":1052},{"type":993,"tag":1026,"props":1179,"children":1180},{"style":1055},[1181],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1183,"children":1184},{"style":1061},[1185],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1187,"children":1188},{"style":1067},[1189],{"type":998,"value":1070},{"type":993,"tag":1026,"props":1191,"children":1192},{"style":1061},[1193],{"type":998,"value":1075},{"type":993,"tag":1026,"props":1195,"children":1196},{"style":1067},[1197],{"type":998,"value":1198},"\"r\"",{"type":993,"tag":1026,"props":1200,"children":1201},{"style":1061},[1202],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1204,"children":1205},{"style":1049},[1206],{"type":998,"value":1090},{"type":993,"tag":1026,"props":1208,"children":1209},{"style":1093},[1210],{"type":998,"value":1096},{"type":993,"tag":1026,"props":1212,"children":1213},{"style":1061},[1214],{"type":998,"value":1101},{"type":993,"tag":1026,"props":1216,"children":1217},{"class":1028,"line":91},[1218,1223,1228,1232],{"type":993,"tag":1026,"props":1219,"children":1220},{"style":1061},[1221],{"type":998,"value":1222},"    content ",{"type":993,"tag":1026,"props":1224,"children":1225},{"style":1049},[1226],{"type":998,"value":1227},"=",{"type":993,"tag":1026,"props":1229,"children":1230},{"style":1093},[1231],{"type":998,"value":1096},{"type":993,"tag":1026,"props":1233,"children":1234},{"style":1061},[1235],{"type":998,"value":1236},".read()\n",{"type":993,"tag":1026,"props":1238,"children":1239},{"class":1028,"line":100},[1240,1245,1249,1254],{"type":993,"tag":1026,"props":1241,"children":1242},{"style":1055},[1243],{"type":998,"value":1244},"    print",{"type":993,"tag":1026,"props":1246,"children":1247},{"style":1061},[1248],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1250,"children":1251},{"style":1067},[1252],{"type":998,"value":1253},"\"📄 File content:\"",{"type":993,"tag":1026,"props":1255,"children":1256},{"style":1061},[1257],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1259,"children":1260},{"class":1028,"line":109},[1261,1265],{"type":993,"tag":1026,"props":1262,"children":1263},{"style":1055},[1264],{"type":998,"value":1244},{"type":993,"tag":1026,"props":1266,"children":1267},{"style":1061},[1268],{"type":998,"value":1269},"(content)\n",{"type":993,"tag":1026,"props":1271,"children":1272},{"class":1028,"line":118},[1273],{"type":993,"tag":1026,"props":1274,"children":1275},{"emptyLinePlaceholder":13},[1276],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1278,"children":1279},{"class":1028,"line":127},[1280],{"type":993,"tag":1026,"props":1281,"children":1282},{"style":1032},[1283],{"type":998,"value":1284},"# Check if file exists\n",{"type":993,"tag":1026,"props":1286,"children":1287},{"class":1028,"line":136},[1288,1293],{"type":993,"tag":1026,"props":1289,"children":1290},{"style":1049},[1291],{"type":998,"value":1292},"import",{"type":993,"tag":1026,"props":1294,"children":1295},{"style":1061},[1296],{"type":998,"value":1297}," os\n",{"type":993,"tag":1026,"props":1299,"children":1300},{"class":1028,"line":146},[1301,1306,1310,1315,1320,1325,1330,1335,1340,1345,1349],{"type":993,"tag":1026,"props":1302,"children":1303},{"style":1055},[1304],{"type":998,"value":1305},"print",{"type":993,"tag":1026,"props":1307,"children":1308},{"style":1061},[1309],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1311,"children":1312},{"style":1049},[1313],{"type":998,"value":1314},"f",{"type":993,"tag":1026,"props":1316,"children":1317},{"style":1067},[1318],{"type":998,"value":1319},"\"✅ File exists: ",{"type":993,"tag":1026,"props":1321,"children":1322},{"style":1055},[1323],{"type":998,"value":1324},"{",{"type":993,"tag":1026,"props":1326,"children":1327},{"style":1061},[1328],{"type":998,"value":1329},"os.path.exists(",{"type":993,"tag":1026,"props":1331,"children":1332},{"style":1067},[1333],{"type":998,"value":1334},"'hello.txt'",{"type":993,"tag":1026,"props":1336,"children":1337},{"style":1061},[1338],{"type":998,"value":1339},")",{"type":993,"tag":1026,"props":1341,"children":1342},{"style":1055},[1343],{"type":998,"value":1344},"}",{"type":993,"tag":1026,"props":1346,"children":1347},{"style":1067},[1348],{"type":998,"value":1140},{"type":993,"tag":1026,"props":1350,"children":1351},{"style":1061},[1352],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1354,"children":1355},{"class":1028,"line":155},[1356],{"type":993,"tag":1026,"props":1357,"children":1358},{"emptyLinePlaceholder":13},[1359],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1361,"children":1362},{"class":1028,"line":164},[1363],{"type":993,"tag":1026,"props":1364,"children":1365},{"style":1032},[1366],{"type":998,"value":1367},"# Simple file workflow\n",{"type":993,"tag":1026,"props":1369,"children":1370},{"class":1028,"line":173},[1371,1375,1379,1383,1387,1392],{"type":993,"tag":1026,"props":1372,"children":1373},{"style":1055},[1374],{"type":998,"value":1305},{"type":993,"tag":1026,"props":1376,"children":1377},{"style":1061},[1378],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1380,"children":1381},{"style":1067},[1382],{"type":998,"value":1140},{"type":993,"tag":1026,"props":1384,"children":1385},{"style":1055},[1386],{"type":998,"value":1145},{"type":993,"tag":1026,"props":1388,"children":1389},{"style":1067},[1390],{"type":998,"value":1391},"🔄 File Workflow Demo:\"",{"type":993,"tag":1026,"props":1393,"children":1394},{"style":1061},[1395],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1397,"children":1398},{"class":1028,"line":182},[1399,1404,1408,1413,1418,1422,1427,1431,1436],{"type":993,"tag":1026,"props":1400,"children":1401},{"style":1061},[1402],{"type":998,"value":1403},"data ",{"type":993,"tag":1026,"props":1405,"children":1406},{"style":1049},[1407],{"type":998,"value":1227},{"type":993,"tag":1026,"props":1409,"children":1410},{"style":1061},[1411],{"type":998,"value":1412}," [",{"type":993,"tag":1026,"props":1414,"children":1415},{"style":1067},[1416],{"type":998,"value":1417},"\"Learn Python\"",{"type":993,"tag":1026,"props":1419,"children":1420},{"style":1061},[1421],{"type":998,"value":1075},{"type":993,"tag":1026,"props":1423,"children":1424},{"style":1067},[1425],{"type":998,"value":1426},"\"Practice coding\"",{"type":993,"tag":1026,"props":1428,"children":1429},{"style":1061},[1430],{"type":998,"value":1075},{"type":993,"tag":1026,"props":1432,"children":1433},{"style":1067},[1434],{"type":998,"value":1435},"\"Build projects\"",{"type":993,"tag":1026,"props":1437,"children":1438},{"style":1061},[1439],{"type":998,"value":1440},"]\n",{"type":993,"tag":1026,"props":1442,"children":1443},{"class":1028,"line":191},[1444],{"type":993,"tag":1026,"props":1445,"children":1446},{"emptyLinePlaceholder":13},[1447],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1449,"children":1450},{"class":1028,"line":201},[1451],{"type":993,"tag":1026,"props":1452,"children":1453},{"style":1032},[1454],{"type":998,"value":1455},"# Write list to file\n",{"type":993,"tag":1026,"props":1457,"children":1458},{"class":1028,"line":210},[1459,1463,1467,1471,1476,1480,1484,1488,1492,1496],{"type":993,"tag":1026,"props":1460,"children":1461},{"style":1049},[1462],{"type":998,"value":1052},{"type":993,"tag":1026,"props":1464,"children":1465},{"style":1055},[1466],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1468,"children":1469},{"style":1061},[1470],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1472,"children":1473},{"style":1067},[1474],{"type":998,"value":1475},"\"goals.txt\"",{"type":993,"tag":1026,"props":1477,"children":1478},{"style":1061},[1479],{"type":998,"value":1075},{"type":993,"tag":1026,"props":1481,"children":1482},{"style":1067},[1483],{"type":998,"value":1080},{"type":993,"tag":1026,"props":1485,"children":1486},{"style":1061},[1487],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1489,"children":1490},{"style":1049},[1491],{"type":998,"value":1090},{"type":993,"tag":1026,"props":1493,"children":1494},{"style":1093},[1495],{"type":998,"value":1096},{"type":993,"tag":1026,"props":1497,"children":1498},{"style":1061},[1499],{"type":998,"value":1101},{"type":993,"tag":1026,"props":1501,"children":1502},{"class":1028,"line":219},[1503,1508,1513,1518],{"type":993,"tag":1026,"props":1504,"children":1505},{"style":1049},[1506],{"type":998,"value":1507},"    for",{"type":993,"tag":1026,"props":1509,"children":1510},{"style":1061},[1511],{"type":998,"value":1512}," item ",{"type":993,"tag":1026,"props":1514,"children":1515},{"style":1049},[1516],{"type":998,"value":1517},"in",{"type":993,"tag":1026,"props":1519,"children":1520},{"style":1061},[1521],{"type":998,"value":1522}," data:\n",{"type":993,"tag":1026,"props":1524,"children":1525},{"class":1028,"line":228},[1526,1531,1535,1539,1544,1548,1553,1558,1562],{"type":993,"tag":1026,"props":1527,"children":1528},{"style":1093},[1529],{"type":998,"value":1530},"        file",{"type":993,"tag":1026,"props":1532,"children":1533},{"style":1061},[1534],{"type":998,"value":1114},{"type":993,"tag":1026,"props":1536,"children":1537},{"style":1049},[1538],{"type":998,"value":1314},{"type":993,"tag":1026,"props":1540,"children":1541},{"style":1067},[1542],{"type":998,"value":1543},"\"• ",{"type":993,"tag":1026,"props":1545,"children":1546},{"style":1055},[1547],{"type":998,"value":1324},{"type":993,"tag":1026,"props":1549,"children":1550},{"style":1061},[1551],{"type":998,"value":1552},"item",{"type":993,"tag":1026,"props":1554,"children":1555},{"style":1055},[1556],{"type":998,"value":1557},"}\\n",{"type":993,"tag":1026,"props":1559,"children":1560},{"style":1067},[1561],{"type":998,"value":1140},{"type":993,"tag":1026,"props":1563,"children":1564},{"style":1061},[1565],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1567,"children":1568},{"class":1028,"line":238},[1569],{"type":993,"tag":1026,"props":1570,"children":1571},{"emptyLinePlaceholder":13},[1572],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1574,"children":1575},{"class":1028,"line":247},[1576],{"type":993,"tag":1026,"props":1577,"children":1578},{"style":1032},[1579],{"type":998,"value":1580},"# Read and display\n",{"type":993,"tag":1026,"props":1582,"children":1583},{"class":1028,"line":256},[1584,1588,1592,1596,1600,1604,1608,1612,1616,1620],{"type":993,"tag":1026,"props":1585,"children":1586},{"style":1049},[1587],{"type":998,"value":1052},{"type":993,"tag":1026,"props":1589,"children":1590},{"style":1055},[1591],{"type":998,"value":1058},{"type":993,"tag":1026,"props":1593,"children":1594},{"style":1061},[1595],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1597,"children":1598},{"style":1067},[1599],{"type":998,"value":1475},{"type":993,"tag":1026,"props":1601,"children":1602},{"style":1061},[1603],{"type":998,"value":1075},{"type":993,"tag":1026,"props":1605,"children":1606},{"style":1067},[1607],{"type":998,"value":1198},{"type":993,"tag":1026,"props":1609,"children":1610},{"style":1061},[1611],{"type":998,"value":1085},{"type":993,"tag":1026,"props":1613,"children":1614},{"style":1049},[1615],{"type":998,"value":1090},{"type":993,"tag":1026,"props":1617,"children":1618},{"style":1093},[1619],{"type":998,"value":1096},{"type":993,"tag":1026,"props":1621,"children":1622},{"style":1061},[1623],{"type":998,"value":1101},{"type":993,"tag":1026,"props":1625,"children":1626},{"class":1028,"line":265},[1627,1631,1635,1640],{"type":993,"tag":1026,"props":1628,"children":1629},{"style":1055},[1630],{"type":998,"value":1244},{"type":993,"tag":1026,"props":1632,"children":1633},{"style":1061},[1634],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1636,"children":1637},{"style":1067},[1638],{"type":998,"value":1639},"\"📋 My Goals:\"",{"type":993,"tag":1026,"props":1641,"children":1642},{"style":1061},[1643],{"type":998,"value":1124},{"type":993,"tag":1026,"props":1645,"children":1646},{"class":1028,"line":274},[1647,1651,1655,1660],{"type":993,"tag":1026,"props":1648,"children":1649},{"style":1055},[1650],{"type":998,"value":1244},{"type":993,"tag":1026,"props":1652,"children":1653},{"style":1061},[1654],{"type":998,"value":1064},{"type":993,"tag":1026,"props":1656,"children":1657},{"style":1093},[1658],{"type":998,"value":1659},"file",{"type":993,"tag":1026,"props":1661,"children":1662},{"style":1061},[1663],{"type":998,"value":1664},".read())\n",{"type":993,"tag":1666,"props":1667,"children":1669},"h2",{"id":1668},"understanding-file-operations",[1670],{"type":998,"value":1671},"🎯 Understanding File Operations",{"type":993,"tag":1001,"props":1673,"children":1674},{},[1675],{"type":998,"value":1676},"File operations provide three main capabilities: reading existing files, writing new content, and managing files on your system.",{"type":993,"tag":1678,"props":1679,"children":1683},"info-box",{"emoji":1680,"title":1681,"type":1682},"💡","File Operations Essentials","info",[1684,1693,1701,1726,1734,1757,1765,1788,1796,1846,1854],{"type":993,"tag":1001,"props":1685,"children":1686},{},[1687],{"type":993,"tag":1688,"props":1689,"children":1690},"strong",{},[1691],{"type":998,"value":1692},"Core Operations:",{"type":993,"tag":1001,"props":1694,"children":1695},{},[1696],{"type":993,"tag":1688,"props":1697,"children":1698},{},[1699],{"type":998,"value":1700},"📖 Reading Files:",{"type":993,"tag":1702,"props":1703,"children":1704},"ul",{},[1705,1711,1716,1721],{"type":993,"tag":1706,"props":1707,"children":1708},"li",{},[1709],{"type":998,"value":1710},"Load text files, configuration files, data files",{"type":993,"tag":1706,"props":1712,"children":1713},{},[1714],{"type":998,"value":1715},"Process large files line by line for efficiency",{"type":993,"tag":1706,"props":1717,"children":1718},{},[1719],{"type":998,"value":1720},"Handle different file formats (text, CSV, JSON)",{"type":993,"tag":1706,"props":1722,"children":1723},{},[1724],{"type":998,"value":1725},"Manage errors when files don't exist",{"type":993,"tag":1001,"props":1727,"children":1728},{},[1729],{"type":993,"tag":1688,"props":1730,"children":1731},{},[1732],{"type":998,"value":1733},"✍️ Writing Files:",{"type":993,"tag":1702,"props":1735,"children":1736},{},[1737,1742,1747,1752],{"type":993,"tag":1706,"props":1738,"children":1739},{},[1740],{"type":998,"value":1741},"Create new files with your data",{"type":993,"tag":1706,"props":1743,"children":1744},{},[1745],{"type":998,"value":1746},"Save user preferences and application settings",{"type":993,"tag":1706,"props":1748,"children":1749},{},[1750],{"type":998,"value":1751},"Generate reports and output files",{"type":993,"tag":1706,"props":1753,"children":1754},{},[1755],{"type":998,"value":1756},"Append new information to existing files",{"type":993,"tag":1001,"props":1758,"children":1759},{},[1760],{"type":993,"tag":1688,"props":1761,"children":1762},{},[1763],{"type":998,"value":1764},"🗂️ File Management:",{"type":993,"tag":1702,"props":1766,"children":1767},{},[1768,1773,1778,1783],{"type":993,"tag":1706,"props":1769,"children":1770},{},[1771],{"type":998,"value":1772},"Check if files exist before using them",{"type":993,"tag":1706,"props":1774,"children":1775},{},[1776],{"type":998,"value":1777},"Get file information (size, date modified)",{"type":993,"tag":1706,"props":1779,"children":1780},{},[1781],{"type":998,"value":1782},"Organize files into directories",{"type":993,"tag":1706,"props":1784,"children":1785},{},[1786],{"type":998,"value":1787},"Clean up temporary files",{"type":993,"tag":1001,"props":1789,"children":1790},{},[1791],{"type":993,"tag":1688,"props":1792,"children":1793},{},[1794],{"type":998,"value":1795},"Best Practices:",{"type":993,"tag":1702,"props":1797,"children":1798},{},[1799,1816,1826,1836],{"type":993,"tag":1706,"props":1800,"children":1801},{},[1802,1814],{"type":993,"tag":1688,"props":1803,"children":1804},{},[1805,1807,1812],{"type":998,"value":1806},"Always use ",{"type":993,"tag":1022,"props":1808,"children":1810},{"className":1809},[],[1811],{"type":998,"value":1052},{"type":998,"value":1813}," statements",{"type":998,"value":1815}," - they automatically close files",{"type":993,"tag":1706,"props":1817,"children":1818},{},[1819,1824],{"type":993,"tag":1688,"props":1820,"children":1821},{},[1822],{"type":998,"value":1823},"Handle errors gracefully",{"type":998,"value":1825}," - files might not exist or be locked",{"type":993,"tag":1706,"props":1827,"children":1828},{},[1829,1834],{"type":993,"tag":1688,"props":1830,"children":1831},{},[1832],{"type":998,"value":1833},"Specify text encoding",{"type":998,"value":1835}," - prevents character display issues",{"type":993,"tag":1706,"props":1837,"children":1838},{},[1839,1844],{"type":993,"tag":1688,"props":1840,"children":1841},{},[1842],{"type":998,"value":1843},"Choose the right file mode",{"type":998,"value":1845}," - read, write, or append",{"type":993,"tag":1001,"props":1847,"children":1848},{},[1849],{"type":993,"tag":1688,"props":1850,"children":1851},{},[1852],{"type":998,"value":1853},"Common Use Cases:",{"type":993,"tag":1702,"props":1855,"children":1856},{},[1857,1867,1877,1887],{"type":993,"tag":1706,"props":1858,"children":1859},{},[1860,1865],{"type":993,"tag":1688,"props":1861,"children":1862},{},[1863],{"type":998,"value":1864},"Settings Files",{"type":998,"value":1866},": Store app preferences",{"type":993,"tag":1706,"props":1868,"children":1869},{},[1870,1875],{"type":993,"tag":1688,"props":1871,"children":1872},{},[1873],{"type":998,"value":1874},"Log Files",{"type":998,"value":1876},": Record what your program does",{"type":993,"tag":1706,"props":1878,"children":1879},{},[1880,1885],{"type":993,"tag":1688,"props":1881,"children":1882},{},[1883],{"type":998,"value":1884},"Data Files",{"type":998,"value":1886},": Save and load user information",{"type":993,"tag":1706,"props":1888,"children":1889},{},[1890,1895],{"type":993,"tag":1688,"props":1891,"children":1892},{},[1893],{"type":998,"value":1894},"Reports",{"type":998,"value":1896},": Generate formatted output",{"type":993,"tag":1898,"props":1899,"children":1901},"h3",{"id":1900},"text-file-processing",[1902],{"type":998,"value":1903},"📝 Text File Processing",{"type":993,"tag":1001,"props":1905,"children":1906},{},[1907],{"type":998,"value":1908},"Text files are perfect for human-readable data like configuration files, logs, and simple data storage.",{"type":993,"tag":1012,"props":1910,"children":1911},{},[1912],{"type":993,"tag":1016,"props":1913,"children":1915},{"className":1018,"code":1914,"language":6,"meta":8,"style":8},"# 📋 Configuration File Example\nconfig_text = \"\"\"# My App Settings\napp_name = \"My Python App\"\nversion = \"1.0\"\ndebug = true\nmax_users = 50\n\"\"\"\n\n# Save configuration\nwith open(\"config.txt\", \"w\") as file:\n    file.write(config_text)\n\n# Read and parse configuration\nprint(\"⚙️ App Configuration:\")\nwith open(\"config.txt\", \"r\") as file:\n    for line in file:\n        line = line.strip()\n        if line and not line.startswith(\"#\"):\n            print(f\"  {line}\")\n\n# User data example\nusers = [\"Alice,Engineer,25\", \"Bob,Designer,30\", \"Carol,Manager,28\"]\n\nwith open(\"users.txt\", \"w\") as file:\n    file.write(\"Name,Job,Age\\n\")  # Header\n    for user in users:\n        file.write(user + \"\\n\")\n\nprint(\"\\n👥 User Database:\")\nwith open(\"users.txt\", \"r\") as file:\n    header = file.readline().strip()\n    print(f\"📊 {header}\")\n    for line in file:\n        print(f\"  {line.strip()}\")\n",[1916],{"type":993,"tag":1022,"props":1917,"children":1918},{"__ignoreMap":8},[1919,1927,1944,1952,1960,1968,1976,1984,1991,1999,2043,2055,2062,2070,2090,2133,2157,2174,2211,2252,2259,2267,2310,2317,2361,2395,2416,2450,2457,2485,2528,2549,2590,2613],{"type":993,"tag":1026,"props":1920,"children":1921},{"class":1028,"line":12},[1922],{"type":993,"tag":1026,"props":1923,"children":1924},{"style":1032},[1925],{"type":998,"value":1926},"# 📋 Configuration File Example\n",{"type":993,"tag":1026,"props":1928,"children":1929},{"class":1028,"line":27},[1930,1935,1939],{"type":993,"tag":1026,"props":1931,"children":1932},{"style":1061},[1933],{"type":998,"value":1934},"config_text ",{"type":993,"tag":1026,"props":1936,"children":1937},{"style":1049},[1938],{"type":998,"value":1227},{"type":993,"tag":1026,"props":1940,"children":1941},{"style":1067},[1942],{"type":998,"value":1943}," \"\"\"# My App Settings\n",{"type":993,"tag":1026,"props":1945,"children":1946},{"class":1028,"line":36},[1947],{"type":993,"tag":1026,"props":1948,"children":1949},{"style":1067},[1950],{"type":998,"value":1951},"app_name = \"My Python App\"\n",{"type":993,"tag":1026,"props":1953,"children":1954},{"class":1028,"line":45},[1955],{"type":993,"tag":1026,"props":1956,"children":1957},{"style":1067},[1958],{"type":998,"value":1959},"version = \"1.0\"\n",{"type":993,"tag":1026,"props":1961,"children":1962},{"class":1028,"line":54},[1963],{"type":993,"tag":1026,"props":1964,"children":1965},{"style":1067},[1966],{"type":998,"value":1967},"debug = true\n",{"type":993,"tag":1026,"props":1969,"children":1970},{"class":1028,"line":63},[1971],{"type":993,"tag":1026,"props":1972,"children":1973},{"style":1067},[1974],{"type":998,"value":1975},"max_users = 50\n",{"type":993,"tag":1026,"props":1977,"children":1978},{"class":1028,"line":72},[1979],{"type":993,"tag":1026,"props":1980,"children":1981},{"style":1067},[1982],{"type":998,"value":1983},"\"\"\"\n",{"type":993,"tag":1026,"props":1985,"children":1986},{"class":1028,"line":81},[1987],{"type":993,"tag":1026,"props":1988,"children":1989},{"emptyLinePlaceholder":13},[1990],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1992,"children":1993},{"class":1028,"line":91},[1994],{"type":993,"tag":1026,"props":1995,"children":1996},{"style":1032},[1997],{"type":998,"value":1998},"# Save configuration\n",{"type":993,"tag":1026,"props":2000,"children":2001},{"class":1028,"line":100},[2002,2006,2010,2014,2019,2023,2027,2031,2035,2039],{"type":993,"tag":1026,"props":2003,"children":2004},{"style":1049},[2005],{"type":998,"value":1052},{"type":993,"tag":1026,"props":2007,"children":2008},{"style":1055},[2009],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2011,"children":2012},{"style":1061},[2013],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2015,"children":2016},{"style":1067},[2017],{"type":998,"value":2018},"\"config.txt\"",{"type":993,"tag":1026,"props":2020,"children":2021},{"style":1061},[2022],{"type":998,"value":1075},{"type":993,"tag":1026,"props":2024,"children":2025},{"style":1067},[2026],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2028,"children":2029},{"style":1061},[2030],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2032,"children":2033},{"style":1049},[2034],{"type":998,"value":1090},{"type":993,"tag":1026,"props":2036,"children":2037},{"style":1093},[2038],{"type":998,"value":1096},{"type":993,"tag":1026,"props":2040,"children":2041},{"style":1061},[2042],{"type":998,"value":1101},{"type":993,"tag":1026,"props":2044,"children":2045},{"class":1028,"line":109},[2046,2050],{"type":993,"tag":1026,"props":2047,"children":2048},{"style":1093},[2049],{"type":998,"value":1109},{"type":993,"tag":1026,"props":2051,"children":2052},{"style":1061},[2053],{"type":998,"value":2054},".write(config_text)\n",{"type":993,"tag":1026,"props":2056,"children":2057},{"class":1028,"line":118},[2058],{"type":993,"tag":1026,"props":2059,"children":2060},{"emptyLinePlaceholder":13},[2061],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2063,"children":2064},{"class":1028,"line":127},[2065],{"type":993,"tag":1026,"props":2066,"children":2067},{"style":1032},[2068],{"type":998,"value":2069},"# Read and parse configuration\n",{"type":993,"tag":1026,"props":2071,"children":2072},{"class":1028,"line":136},[2073,2077,2081,2086],{"type":993,"tag":1026,"props":2074,"children":2075},{"style":1055},[2076],{"type":998,"value":1305},{"type":993,"tag":1026,"props":2078,"children":2079},{"style":1061},[2080],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2082,"children":2083},{"style":1067},[2084],{"type":998,"value":2085},"\"⚙️ App Configuration:\"",{"type":993,"tag":1026,"props":2087,"children":2088},{"style":1061},[2089],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2091,"children":2092},{"class":1028,"line":146},[2093,2097,2101,2105,2109,2113,2117,2121,2125,2129],{"type":993,"tag":1026,"props":2094,"children":2095},{"style":1049},[2096],{"type":998,"value":1052},{"type":993,"tag":1026,"props":2098,"children":2099},{"style":1055},[2100],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2102,"children":2103},{"style":1061},[2104],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2106,"children":2107},{"style":1067},[2108],{"type":998,"value":2018},{"type":993,"tag":1026,"props":2110,"children":2111},{"style":1061},[2112],{"type":998,"value":1075},{"type":993,"tag":1026,"props":2114,"children":2115},{"style":1067},[2116],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2118,"children":2119},{"style":1061},[2120],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2122,"children":2123},{"style":1049},[2124],{"type":998,"value":1090},{"type":993,"tag":1026,"props":2126,"children":2127},{"style":1093},[2128],{"type":998,"value":1096},{"type":993,"tag":1026,"props":2130,"children":2131},{"style":1061},[2132],{"type":998,"value":1101},{"type":993,"tag":1026,"props":2134,"children":2135},{"class":1028,"line":155},[2136,2140,2145,2149,2153],{"type":993,"tag":1026,"props":2137,"children":2138},{"style":1049},[2139],{"type":998,"value":1507},{"type":993,"tag":1026,"props":2141,"children":2142},{"style":1061},[2143],{"type":998,"value":2144}," line ",{"type":993,"tag":1026,"props":2146,"children":2147},{"style":1049},[2148],{"type":998,"value":1517},{"type":993,"tag":1026,"props":2150,"children":2151},{"style":1093},[2152],{"type":998,"value":1096},{"type":993,"tag":1026,"props":2154,"children":2155},{"style":1061},[2156],{"type":998,"value":1101},{"type":993,"tag":1026,"props":2158,"children":2159},{"class":1028,"line":164},[2160,2165,2169],{"type":993,"tag":1026,"props":2161,"children":2162},{"style":1061},[2163],{"type":998,"value":2164},"        line ",{"type":993,"tag":1026,"props":2166,"children":2167},{"style":1049},[2168],{"type":998,"value":1227},{"type":993,"tag":1026,"props":2170,"children":2171},{"style":1061},[2172],{"type":998,"value":2173}," line.strip()\n",{"type":993,"tag":1026,"props":2175,"children":2176},{"class":1028,"line":173},[2177,2182,2186,2191,2196,2201,2206],{"type":993,"tag":1026,"props":2178,"children":2179},{"style":1049},[2180],{"type":998,"value":2181},"        if",{"type":993,"tag":1026,"props":2183,"children":2184},{"style":1061},[2185],{"type":998,"value":2144},{"type":993,"tag":1026,"props":2187,"children":2188},{"style":1049},[2189],{"type":998,"value":2190},"and",{"type":993,"tag":1026,"props":2192,"children":2193},{"style":1049},[2194],{"type":998,"value":2195}," not",{"type":993,"tag":1026,"props":2197,"children":2198},{"style":1061},[2199],{"type":998,"value":2200}," line.startswith(",{"type":993,"tag":1026,"props":2202,"children":2203},{"style":1067},[2204],{"type":998,"value":2205},"\"#\"",{"type":993,"tag":1026,"props":2207,"children":2208},{"style":1061},[2209],{"type":998,"value":2210},"):\n",{"type":993,"tag":1026,"props":2212,"children":2213},{"class":1028,"line":182},[2214,2219,2223,2227,2232,2236,2240,2244,2248],{"type":993,"tag":1026,"props":2215,"children":2216},{"style":1055},[2217],{"type":998,"value":2218},"            print",{"type":993,"tag":1026,"props":2220,"children":2221},{"style":1061},[2222],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2224,"children":2225},{"style":1049},[2226],{"type":998,"value":1314},{"type":993,"tag":1026,"props":2228,"children":2229},{"style":1067},[2230],{"type":998,"value":2231},"\"  ",{"type":993,"tag":1026,"props":2233,"children":2234},{"style":1055},[2235],{"type":998,"value":1324},{"type":993,"tag":1026,"props":2237,"children":2238},{"style":1061},[2239],{"type":998,"value":1028},{"type":993,"tag":1026,"props":2241,"children":2242},{"style":1055},[2243],{"type":998,"value":1344},{"type":993,"tag":1026,"props":2245,"children":2246},{"style":1067},[2247],{"type":998,"value":1140},{"type":993,"tag":1026,"props":2249,"children":2250},{"style":1061},[2251],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2253,"children":2254},{"class":1028,"line":191},[2255],{"type":993,"tag":1026,"props":2256,"children":2257},{"emptyLinePlaceholder":13},[2258],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2260,"children":2261},{"class":1028,"line":201},[2262],{"type":993,"tag":1026,"props":2263,"children":2264},{"style":1032},[2265],{"type":998,"value":2266},"# User data example\n",{"type":993,"tag":1026,"props":2268,"children":2269},{"class":1028,"line":210},[2270,2275,2279,2283,2288,2292,2297,2301,2306],{"type":993,"tag":1026,"props":2271,"children":2272},{"style":1061},[2273],{"type":998,"value":2274},"users ",{"type":993,"tag":1026,"props":2276,"children":2277},{"style":1049},[2278],{"type":998,"value":1227},{"type":993,"tag":1026,"props":2280,"children":2281},{"style":1061},[2282],{"type":998,"value":1412},{"type":993,"tag":1026,"props":2284,"children":2285},{"style":1067},[2286],{"type":998,"value":2287},"\"Alice,Engineer,25\"",{"type":993,"tag":1026,"props":2289,"children":2290},{"style":1061},[2291],{"type":998,"value":1075},{"type":993,"tag":1026,"props":2293,"children":2294},{"style":1067},[2295],{"type":998,"value":2296},"\"Bob,Designer,30\"",{"type":993,"tag":1026,"props":2298,"children":2299},{"style":1061},[2300],{"type":998,"value":1075},{"type":993,"tag":1026,"props":2302,"children":2303},{"style":1067},[2304],{"type":998,"value":2305},"\"Carol,Manager,28\"",{"type":993,"tag":1026,"props":2307,"children":2308},{"style":1061},[2309],{"type":998,"value":1440},{"type":993,"tag":1026,"props":2311,"children":2312},{"class":1028,"line":219},[2313],{"type":993,"tag":1026,"props":2314,"children":2315},{"emptyLinePlaceholder":13},[2316],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2318,"children":2319},{"class":1028,"line":228},[2320,2324,2328,2332,2337,2341,2345,2349,2353,2357],{"type":993,"tag":1026,"props":2321,"children":2322},{"style":1049},[2323],{"type":998,"value":1052},{"type":993,"tag":1026,"props":2325,"children":2326},{"style":1055},[2327],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2329,"children":2330},{"style":1061},[2331],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2333,"children":2334},{"style":1067},[2335],{"type":998,"value":2336},"\"users.txt\"",{"type":993,"tag":1026,"props":2338,"children":2339},{"style":1061},[2340],{"type":998,"value":1075},{"type":993,"tag":1026,"props":2342,"children":2343},{"style":1067},[2344],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2346,"children":2347},{"style":1061},[2348],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2350,"children":2351},{"style":1049},[2352],{"type":998,"value":1090},{"type":993,"tag":1026,"props":2354,"children":2355},{"style":1093},[2356],{"type":998,"value":1096},{"type":993,"tag":1026,"props":2358,"children":2359},{"style":1061},[2360],{"type":998,"value":1101},{"type":993,"tag":1026,"props":2362,"children":2363},{"class":1028,"line":238},[2364,2368,2372,2377,2381,2385,2390],{"type":993,"tag":1026,"props":2365,"children":2366},{"style":1093},[2367],{"type":998,"value":1109},{"type":993,"tag":1026,"props":2369,"children":2370},{"style":1061},[2371],{"type":998,"value":1114},{"type":993,"tag":1026,"props":2373,"children":2374},{"style":1067},[2375],{"type":998,"value":2376},"\"Name,Job,Age",{"type":993,"tag":1026,"props":2378,"children":2379},{"style":1055},[2380],{"type":998,"value":1145},{"type":993,"tag":1026,"props":2382,"children":2383},{"style":1067},[2384],{"type":998,"value":1140},{"type":993,"tag":1026,"props":2386,"children":2387},{"style":1061},[2388],{"type":998,"value":2389},")  ",{"type":993,"tag":1026,"props":2391,"children":2392},{"style":1032},[2393],{"type":998,"value":2394},"# Header\n",{"type":993,"tag":1026,"props":2396,"children":2397},{"class":1028,"line":247},[2398,2402,2407,2411],{"type":993,"tag":1026,"props":2399,"children":2400},{"style":1049},[2401],{"type":998,"value":1507},{"type":993,"tag":1026,"props":2403,"children":2404},{"style":1061},[2405],{"type":998,"value":2406}," user ",{"type":993,"tag":1026,"props":2408,"children":2409},{"style":1049},[2410],{"type":998,"value":1517},{"type":993,"tag":1026,"props":2412,"children":2413},{"style":1061},[2414],{"type":998,"value":2415}," users:\n",{"type":993,"tag":1026,"props":2417,"children":2418},{"class":1028,"line":256},[2419,2423,2428,2433,2438,2442,2446],{"type":993,"tag":1026,"props":2420,"children":2421},{"style":1093},[2422],{"type":998,"value":1530},{"type":993,"tag":1026,"props":2424,"children":2425},{"style":1061},[2426],{"type":998,"value":2427},".write(user ",{"type":993,"tag":1026,"props":2429,"children":2430},{"style":1049},[2431],{"type":998,"value":2432},"+",{"type":993,"tag":1026,"props":2434,"children":2435},{"style":1067},[2436],{"type":998,"value":2437}," \"",{"type":993,"tag":1026,"props":2439,"children":2440},{"style":1055},[2441],{"type":998,"value":1145},{"type":993,"tag":1026,"props":2443,"children":2444},{"style":1067},[2445],{"type":998,"value":1140},{"type":993,"tag":1026,"props":2447,"children":2448},{"style":1061},[2449],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2451,"children":2452},{"class":1028,"line":265},[2453],{"type":993,"tag":1026,"props":2454,"children":2455},{"emptyLinePlaceholder":13},[2456],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2458,"children":2459},{"class":1028,"line":274},[2460,2464,2468,2472,2476,2481],{"type":993,"tag":1026,"props":2461,"children":2462},{"style":1055},[2463],{"type":998,"value":1305},{"type":993,"tag":1026,"props":2465,"children":2466},{"style":1061},[2467],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2469,"children":2470},{"style":1067},[2471],{"type":998,"value":1140},{"type":993,"tag":1026,"props":2473,"children":2474},{"style":1055},[2475],{"type":998,"value":1145},{"type":993,"tag":1026,"props":2477,"children":2478},{"style":1067},[2479],{"type":998,"value":2480},"👥 User Database:\"",{"type":993,"tag":1026,"props":2482,"children":2483},{"style":1061},[2484],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2486,"children":2487},{"class":1028,"line":284},[2488,2492,2496,2500,2504,2508,2512,2516,2520,2524],{"type":993,"tag":1026,"props":2489,"children":2490},{"style":1049},[2491],{"type":998,"value":1052},{"type":993,"tag":1026,"props":2493,"children":2494},{"style":1055},[2495],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2497,"children":2498},{"style":1061},[2499],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2501,"children":2502},{"style":1067},[2503],{"type":998,"value":2336},{"type":993,"tag":1026,"props":2505,"children":2506},{"style":1061},[2507],{"type":998,"value":1075},{"type":993,"tag":1026,"props":2509,"children":2510},{"style":1067},[2511],{"type":998,"value":1198},{"type":993,"tag":1026,"props":2513,"children":2514},{"style":1061},[2515],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2517,"children":2518},{"style":1049},[2519],{"type":998,"value":1090},{"type":993,"tag":1026,"props":2521,"children":2522},{"style":1093},[2523],{"type":998,"value":1096},{"type":993,"tag":1026,"props":2525,"children":2526},{"style":1061},[2527],{"type":998,"value":1101},{"type":993,"tag":1026,"props":2529,"children":2530},{"class":1028,"line":293},[2531,2536,2540,2544],{"type":993,"tag":1026,"props":2532,"children":2533},{"style":1061},[2534],{"type":998,"value":2535},"    header ",{"type":993,"tag":1026,"props":2537,"children":2538},{"style":1049},[2539],{"type":998,"value":1227},{"type":993,"tag":1026,"props":2541,"children":2542},{"style":1093},[2543],{"type":998,"value":1096},{"type":993,"tag":1026,"props":2545,"children":2546},{"style":1061},[2547],{"type":998,"value":2548},".readline().strip()\n",{"type":993,"tag":1026,"props":2550,"children":2551},{"class":1028,"line":302},[2552,2556,2560,2564,2569,2573,2578,2582,2586],{"type":993,"tag":1026,"props":2553,"children":2554},{"style":1055},[2555],{"type":998,"value":1244},{"type":993,"tag":1026,"props":2557,"children":2558},{"style":1061},[2559],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2561,"children":2562},{"style":1049},[2563],{"type":998,"value":1314},{"type":993,"tag":1026,"props":2565,"children":2566},{"style":1067},[2567],{"type":998,"value":2568},"\"📊 ",{"type":993,"tag":1026,"props":2570,"children":2571},{"style":1055},[2572],{"type":998,"value":1324},{"type":993,"tag":1026,"props":2574,"children":2575},{"style":1061},[2576],{"type":998,"value":2577},"header",{"type":993,"tag":1026,"props":2579,"children":2580},{"style":1055},[2581],{"type":998,"value":1344},{"type":993,"tag":1026,"props":2583,"children":2584},{"style":1067},[2585],{"type":998,"value":1140},{"type":993,"tag":1026,"props":2587,"children":2588},{"style":1061},[2589],{"type":998,"value":1124},{"type":993,"tag":1026,"props":2591,"children":2592},{"class":1028,"line":311},[2593,2597,2601,2605,2609],{"type":993,"tag":1026,"props":2594,"children":2595},{"style":1049},[2596],{"type":998,"value":1507},{"type":993,"tag":1026,"props":2598,"children":2599},{"style":1061},[2600],{"type":998,"value":2144},{"type":993,"tag":1026,"props":2602,"children":2603},{"style":1049},[2604],{"type":998,"value":1517},{"type":993,"tag":1026,"props":2606,"children":2607},{"style":1093},[2608],{"type":998,"value":1096},{"type":993,"tag":1026,"props":2610,"children":2611},{"style":1061},[2612],{"type":998,"value":1101},{"type":993,"tag":1026,"props":2614,"children":2615},{"class":1028,"line":320},[2616,2621,2625,2629,2633,2637,2642,2646,2650],{"type":993,"tag":1026,"props":2617,"children":2618},{"style":1055},[2619],{"type":998,"value":2620},"        print",{"type":993,"tag":1026,"props":2622,"children":2623},{"style":1061},[2624],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2626,"children":2627},{"style":1049},[2628],{"type":998,"value":1314},{"type":993,"tag":1026,"props":2630,"children":2631},{"style":1067},[2632],{"type":998,"value":2231},{"type":993,"tag":1026,"props":2634,"children":2635},{"style":1055},[2636],{"type":998,"value":1324},{"type":993,"tag":1026,"props":2638,"children":2639},{"style":1061},[2640],{"type":998,"value":2641},"line.strip()",{"type":993,"tag":1026,"props":2643,"children":2644},{"style":1055},[2645],{"type":998,"value":1344},{"type":993,"tag":1026,"props":2647,"children":2648},{"style":1067},[2649],{"type":998,"value":1140},{"type":993,"tag":1026,"props":2651,"children":2652},{"style":1061},[2653],{"type":998,"value":1124},{"type":993,"tag":1898,"props":2655,"children":2657},{"id":2656},"data-file-management",[2658],{"type":998,"value":2659},"💾 Data File Management",{"type":993,"tag":1001,"props":2661,"children":2662},{},[2663],{"type":998,"value":2664},"For structured data, JSON files provide an excellent way to save and load complex information.",{"type":993,"tag":1012,"props":2666,"children":2667},{},[2668],{"type":993,"tag":1016,"props":2669,"children":2671},{"className":1018,"code":2670,"language":6,"meta":8,"style":8},"import json\n\n# 📊 Application data\napp_data = {\n    \"user_settings\": {\n        \"theme\": \"dark\",\n        \"language\": \"english\",\n        \"notifications\": True\n    },\n    \"recent_files\": [\n        \"project1.py\",\n        \"notes.txt\",\n        \"data.csv\"\n    ],\n    \"statistics\": {\n        \"files_opened\": 25,\n        \"hours_used\": 12.5\n    }\n}\n\n# Save data to JSON file\nwith open(\"app_data.json\", \"w\") as file:\n    json.dump(app_data, file, indent=2)\n\nprint(\"💾 Application data saved!\")\n\n# Load and display data\nwith open(\"app_data.json\", \"r\") as file:\n    loaded_data = json.load(file)\n\nprint(\"📱 Loaded Settings:\")\nprint(f\"  Theme: {loaded_data['user_settings']['theme']}\")\nprint(f\"  Files opened: {loaded_data['statistics']['files_opened']}\")\nprint(f\"  Recent files: {len(loaded_data['recent_files'])}\")\n",[2672],{"type":993,"tag":1022,"props":2673,"children":2674},{"__ignoreMap":8},[2675,2687,2694,2702,2719,2732,2755,2776,2793,2801,2814,2826,2838,2846,2854,2866,2887,2904,2912,2920,2927,2935,2979,3013,3020,3040,3047,3055,3098,3123,3130,3150,3211,3269],{"type":993,"tag":1026,"props":2676,"children":2677},{"class":1028,"line":12},[2678,2682],{"type":993,"tag":1026,"props":2679,"children":2680},{"style":1049},[2681],{"type":998,"value":1292},{"type":993,"tag":1026,"props":2683,"children":2684},{"style":1061},[2685],{"type":998,"value":2686}," json\n",{"type":993,"tag":1026,"props":2688,"children":2689},{"class":1028,"line":27},[2690],{"type":993,"tag":1026,"props":2691,"children":2692},{"emptyLinePlaceholder":13},[2693],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2695,"children":2696},{"class":1028,"line":36},[2697],{"type":993,"tag":1026,"props":2698,"children":2699},{"style":1032},[2700],{"type":998,"value":2701},"# 📊 Application data\n",{"type":993,"tag":1026,"props":2703,"children":2704},{"class":1028,"line":45},[2705,2710,2714],{"type":993,"tag":1026,"props":2706,"children":2707},{"style":1061},[2708],{"type":998,"value":2709},"app_data ",{"type":993,"tag":1026,"props":2711,"children":2712},{"style":1049},[2713],{"type":998,"value":1227},{"type":993,"tag":1026,"props":2715,"children":2716},{"style":1061},[2717],{"type":998,"value":2718}," {\n",{"type":993,"tag":1026,"props":2720,"children":2721},{"class":1028,"line":54},[2722,2727],{"type":993,"tag":1026,"props":2723,"children":2724},{"style":1067},[2725],{"type":998,"value":2726},"    \"user_settings\"",{"type":993,"tag":1026,"props":2728,"children":2729},{"style":1061},[2730],{"type":998,"value":2731},": {\n",{"type":993,"tag":1026,"props":2733,"children":2734},{"class":1028,"line":63},[2735,2740,2745,2750],{"type":993,"tag":1026,"props":2736,"children":2737},{"style":1067},[2738],{"type":998,"value":2739},"        \"theme\"",{"type":993,"tag":1026,"props":2741,"children":2742},{"style":1061},[2743],{"type":998,"value":2744},": ",{"type":993,"tag":1026,"props":2746,"children":2747},{"style":1067},[2748],{"type":998,"value":2749},"\"dark\"",{"type":993,"tag":1026,"props":2751,"children":2752},{"style":1061},[2753],{"type":998,"value":2754},",\n",{"type":993,"tag":1026,"props":2756,"children":2757},{"class":1028,"line":72},[2758,2763,2767,2772],{"type":993,"tag":1026,"props":2759,"children":2760},{"style":1067},[2761],{"type":998,"value":2762},"        \"language\"",{"type":993,"tag":1026,"props":2764,"children":2765},{"style":1061},[2766],{"type":998,"value":2744},{"type":993,"tag":1026,"props":2768,"children":2769},{"style":1067},[2770],{"type":998,"value":2771},"\"english\"",{"type":993,"tag":1026,"props":2773,"children":2774},{"style":1061},[2775],{"type":998,"value":2754},{"type":993,"tag":1026,"props":2777,"children":2778},{"class":1028,"line":81},[2779,2784,2788],{"type":993,"tag":1026,"props":2780,"children":2781},{"style":1067},[2782],{"type":998,"value":2783},"        \"notifications\"",{"type":993,"tag":1026,"props":2785,"children":2786},{"style":1061},[2787],{"type":998,"value":2744},{"type":993,"tag":1026,"props":2789,"children":2790},{"style":1055},[2791],{"type":998,"value":2792},"True\n",{"type":993,"tag":1026,"props":2794,"children":2795},{"class":1028,"line":91},[2796],{"type":993,"tag":1026,"props":2797,"children":2798},{"style":1061},[2799],{"type":998,"value":2800},"    },\n",{"type":993,"tag":1026,"props":2802,"children":2803},{"class":1028,"line":100},[2804,2809],{"type":993,"tag":1026,"props":2805,"children":2806},{"style":1067},[2807],{"type":998,"value":2808},"    \"recent_files\"",{"type":993,"tag":1026,"props":2810,"children":2811},{"style":1061},[2812],{"type":998,"value":2813},": [\n",{"type":993,"tag":1026,"props":2815,"children":2816},{"class":1028,"line":109},[2817,2822],{"type":993,"tag":1026,"props":2818,"children":2819},{"style":1067},[2820],{"type":998,"value":2821},"        \"project1.py\"",{"type":993,"tag":1026,"props":2823,"children":2824},{"style":1061},[2825],{"type":998,"value":2754},{"type":993,"tag":1026,"props":2827,"children":2828},{"class":1028,"line":118},[2829,2834],{"type":993,"tag":1026,"props":2830,"children":2831},{"style":1067},[2832],{"type":998,"value":2833},"        \"notes.txt\"",{"type":993,"tag":1026,"props":2835,"children":2836},{"style":1061},[2837],{"type":998,"value":2754},{"type":993,"tag":1026,"props":2839,"children":2840},{"class":1028,"line":127},[2841],{"type":993,"tag":1026,"props":2842,"children":2843},{"style":1067},[2844],{"type":998,"value":2845},"        \"data.csv\"\n",{"type":993,"tag":1026,"props":2847,"children":2848},{"class":1028,"line":136},[2849],{"type":993,"tag":1026,"props":2850,"children":2851},{"style":1061},[2852],{"type":998,"value":2853},"    ],\n",{"type":993,"tag":1026,"props":2855,"children":2856},{"class":1028,"line":146},[2857,2862],{"type":993,"tag":1026,"props":2858,"children":2859},{"style":1067},[2860],{"type":998,"value":2861},"    \"statistics\"",{"type":993,"tag":1026,"props":2863,"children":2864},{"style":1061},[2865],{"type":998,"value":2731},{"type":993,"tag":1026,"props":2867,"children":2868},{"class":1028,"line":155},[2869,2874,2878,2883],{"type":993,"tag":1026,"props":2870,"children":2871},{"style":1067},[2872],{"type":998,"value":2873},"        \"files_opened\"",{"type":993,"tag":1026,"props":2875,"children":2876},{"style":1061},[2877],{"type":998,"value":2744},{"type":993,"tag":1026,"props":2879,"children":2880},{"style":1055},[2881],{"type":998,"value":2882},"25",{"type":993,"tag":1026,"props":2884,"children":2885},{"style":1061},[2886],{"type":998,"value":2754},{"type":993,"tag":1026,"props":2888,"children":2889},{"class":1028,"line":164},[2890,2895,2899],{"type":993,"tag":1026,"props":2891,"children":2892},{"style":1067},[2893],{"type":998,"value":2894},"        \"hours_used\"",{"type":993,"tag":1026,"props":2896,"children":2897},{"style":1061},[2898],{"type":998,"value":2744},{"type":993,"tag":1026,"props":2900,"children":2901},{"style":1055},[2902],{"type":998,"value":2903},"12.5\n",{"type":993,"tag":1026,"props":2905,"children":2906},{"class":1028,"line":173},[2907],{"type":993,"tag":1026,"props":2908,"children":2909},{"style":1061},[2910],{"type":998,"value":2911},"    }\n",{"type":993,"tag":1026,"props":2913,"children":2914},{"class":1028,"line":182},[2915],{"type":993,"tag":1026,"props":2916,"children":2917},{"style":1061},[2918],{"type":998,"value":2919},"}\n",{"type":993,"tag":1026,"props":2921,"children":2922},{"class":1028,"line":191},[2923],{"type":993,"tag":1026,"props":2924,"children":2925},{"emptyLinePlaceholder":13},[2926],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2928,"children":2929},{"class":1028,"line":201},[2930],{"type":993,"tag":1026,"props":2931,"children":2932},{"style":1032},[2933],{"type":998,"value":2934},"# Save data to JSON file\n",{"type":993,"tag":1026,"props":2936,"children":2937},{"class":1028,"line":210},[2938,2942,2946,2950,2955,2959,2963,2967,2971,2975],{"type":993,"tag":1026,"props":2939,"children":2940},{"style":1049},[2941],{"type":998,"value":1052},{"type":993,"tag":1026,"props":2943,"children":2944},{"style":1055},[2945],{"type":998,"value":1058},{"type":993,"tag":1026,"props":2947,"children":2948},{"style":1061},[2949],{"type":998,"value":1064},{"type":993,"tag":1026,"props":2951,"children":2952},{"style":1067},[2953],{"type":998,"value":2954},"\"app_data.json\"",{"type":993,"tag":1026,"props":2956,"children":2957},{"style":1061},[2958],{"type":998,"value":1075},{"type":993,"tag":1026,"props":2960,"children":2961},{"style":1067},[2962],{"type":998,"value":1080},{"type":993,"tag":1026,"props":2964,"children":2965},{"style":1061},[2966],{"type":998,"value":1085},{"type":993,"tag":1026,"props":2968,"children":2969},{"style":1049},[2970],{"type":998,"value":1090},{"type":993,"tag":1026,"props":2972,"children":2973},{"style":1093},[2974],{"type":998,"value":1096},{"type":993,"tag":1026,"props":2976,"children":2977},{"style":1061},[2978],{"type":998,"value":1101},{"type":993,"tag":1026,"props":2980,"children":2981},{"class":1028,"line":219},[2982,2987,2991,2995,3000,3004,3009],{"type":993,"tag":1026,"props":2983,"children":2984},{"style":1061},[2985],{"type":998,"value":2986},"    json.dump(app_data, ",{"type":993,"tag":1026,"props":2988,"children":2989},{"style":1093},[2990],{"type":998,"value":1659},{"type":993,"tag":1026,"props":2992,"children":2993},{"style":1061},[2994],{"type":998,"value":1075},{"type":993,"tag":1026,"props":2996,"children":2997},{"style":1093},[2998],{"type":998,"value":2999},"indent",{"type":993,"tag":1026,"props":3001,"children":3002},{"style":1049},[3003],{"type":998,"value":1227},{"type":993,"tag":1026,"props":3005,"children":3006},{"style":1055},[3007],{"type":998,"value":3008},"2",{"type":993,"tag":1026,"props":3010,"children":3011},{"style":1061},[3012],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3014,"children":3015},{"class":1028,"line":228},[3016],{"type":993,"tag":1026,"props":3017,"children":3018},{"emptyLinePlaceholder":13},[3019],{"type":998,"value":1162},{"type":993,"tag":1026,"props":3021,"children":3022},{"class":1028,"line":238},[3023,3027,3031,3036],{"type":993,"tag":1026,"props":3024,"children":3025},{"style":1055},[3026],{"type":998,"value":1305},{"type":993,"tag":1026,"props":3028,"children":3029},{"style":1061},[3030],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3032,"children":3033},{"style":1067},[3034],{"type":998,"value":3035},"\"💾 Application data saved!\"",{"type":993,"tag":1026,"props":3037,"children":3038},{"style":1061},[3039],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3041,"children":3042},{"class":1028,"line":247},[3043],{"type":993,"tag":1026,"props":3044,"children":3045},{"emptyLinePlaceholder":13},[3046],{"type":998,"value":1162},{"type":993,"tag":1026,"props":3048,"children":3049},{"class":1028,"line":256},[3050],{"type":993,"tag":1026,"props":3051,"children":3052},{"style":1032},[3053],{"type":998,"value":3054},"# Load and display data\n",{"type":993,"tag":1026,"props":3056,"children":3057},{"class":1028,"line":265},[3058,3062,3066,3070,3074,3078,3082,3086,3090,3094],{"type":993,"tag":1026,"props":3059,"children":3060},{"style":1049},[3061],{"type":998,"value":1052},{"type":993,"tag":1026,"props":3063,"children":3064},{"style":1055},[3065],{"type":998,"value":1058},{"type":993,"tag":1026,"props":3067,"children":3068},{"style":1061},[3069],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3071,"children":3072},{"style":1067},[3073],{"type":998,"value":2954},{"type":993,"tag":1026,"props":3075,"children":3076},{"style":1061},[3077],{"type":998,"value":1075},{"type":993,"tag":1026,"props":3079,"children":3080},{"style":1067},[3081],{"type":998,"value":1198},{"type":993,"tag":1026,"props":3083,"children":3084},{"style":1061},[3085],{"type":998,"value":1085},{"type":993,"tag":1026,"props":3087,"children":3088},{"style":1049},[3089],{"type":998,"value":1090},{"type":993,"tag":1026,"props":3091,"children":3092},{"style":1093},[3093],{"type":998,"value":1096},{"type":993,"tag":1026,"props":3095,"children":3096},{"style":1061},[3097],{"type":998,"value":1101},{"type":993,"tag":1026,"props":3099,"children":3100},{"class":1028,"line":274},[3101,3106,3110,3115,3119],{"type":993,"tag":1026,"props":3102,"children":3103},{"style":1061},[3104],{"type":998,"value":3105},"    loaded_data ",{"type":993,"tag":1026,"props":3107,"children":3108},{"style":1049},[3109],{"type":998,"value":1227},{"type":993,"tag":1026,"props":3111,"children":3112},{"style":1061},[3113],{"type":998,"value":3114}," json.load(",{"type":993,"tag":1026,"props":3116,"children":3117},{"style":1093},[3118],{"type":998,"value":1659},{"type":993,"tag":1026,"props":3120,"children":3121},{"style":1061},[3122],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3124,"children":3125},{"class":1028,"line":284},[3126],{"type":993,"tag":1026,"props":3127,"children":3128},{"emptyLinePlaceholder":13},[3129],{"type":998,"value":1162},{"type":993,"tag":1026,"props":3131,"children":3132},{"class":1028,"line":293},[3133,3137,3141,3146],{"type":993,"tag":1026,"props":3134,"children":3135},{"style":1055},[3136],{"type":998,"value":1305},{"type":993,"tag":1026,"props":3138,"children":3139},{"style":1061},[3140],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3142,"children":3143},{"style":1067},[3144],{"type":998,"value":3145},"\"📱 Loaded Settings:\"",{"type":993,"tag":1026,"props":3147,"children":3148},{"style":1061},[3149],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3151,"children":3152},{"class":1028,"line":302},[3153,3157,3161,3165,3170,3174,3179,3184,3189,3194,3199,3203,3207],{"type":993,"tag":1026,"props":3154,"children":3155},{"style":1055},[3156],{"type":998,"value":1305},{"type":993,"tag":1026,"props":3158,"children":3159},{"style":1061},[3160],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3162,"children":3163},{"style":1049},[3164],{"type":998,"value":1314},{"type":993,"tag":1026,"props":3166,"children":3167},{"style":1067},[3168],{"type":998,"value":3169},"\"  Theme: ",{"type":993,"tag":1026,"props":3171,"children":3172},{"style":1055},[3173],{"type":998,"value":1324},{"type":993,"tag":1026,"props":3175,"children":3176},{"style":1061},[3177],{"type":998,"value":3178},"loaded_data[",{"type":993,"tag":1026,"props":3180,"children":3181},{"style":1067},[3182],{"type":998,"value":3183},"'user_settings'",{"type":993,"tag":1026,"props":3185,"children":3186},{"style":1061},[3187],{"type":998,"value":3188},"][",{"type":993,"tag":1026,"props":3190,"children":3191},{"style":1067},[3192],{"type":998,"value":3193},"'theme'",{"type":993,"tag":1026,"props":3195,"children":3196},{"style":1061},[3197],{"type":998,"value":3198},"]",{"type":993,"tag":1026,"props":3200,"children":3201},{"style":1055},[3202],{"type":998,"value":1344},{"type":993,"tag":1026,"props":3204,"children":3205},{"style":1067},[3206],{"type":998,"value":1140},{"type":993,"tag":1026,"props":3208,"children":3209},{"style":1061},[3210],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3212,"children":3213},{"class":1028,"line":311},[3214,3218,3222,3226,3231,3235,3239,3244,3248,3253,3257,3261,3265],{"type":993,"tag":1026,"props":3215,"children":3216},{"style":1055},[3217],{"type":998,"value":1305},{"type":993,"tag":1026,"props":3219,"children":3220},{"style":1061},[3221],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3223,"children":3224},{"style":1049},[3225],{"type":998,"value":1314},{"type":993,"tag":1026,"props":3227,"children":3228},{"style":1067},[3229],{"type":998,"value":3230},"\"  Files opened: ",{"type":993,"tag":1026,"props":3232,"children":3233},{"style":1055},[3234],{"type":998,"value":1324},{"type":993,"tag":1026,"props":3236,"children":3237},{"style":1061},[3238],{"type":998,"value":3178},{"type":993,"tag":1026,"props":3240,"children":3241},{"style":1067},[3242],{"type":998,"value":3243},"'statistics'",{"type":993,"tag":1026,"props":3245,"children":3246},{"style":1061},[3247],{"type":998,"value":3188},{"type":993,"tag":1026,"props":3249,"children":3250},{"style":1067},[3251],{"type":998,"value":3252},"'files_opened'",{"type":993,"tag":1026,"props":3254,"children":3255},{"style":1061},[3256],{"type":998,"value":3198},{"type":993,"tag":1026,"props":3258,"children":3259},{"style":1055},[3260],{"type":998,"value":1344},{"type":993,"tag":1026,"props":3262,"children":3263},{"style":1067},[3264],{"type":998,"value":1140},{"type":993,"tag":1026,"props":3266,"children":3267},{"style":1061},[3268],{"type":998,"value":1124},{"type":993,"tag":1026,"props":3270,"children":3271},{"class":1028,"line":320},[3272,3276,3280,3284,3289,3294,3299,3304,3309,3313,3317],{"type":993,"tag":1026,"props":3273,"children":3274},{"style":1055},[3275],{"type":998,"value":1305},{"type":993,"tag":1026,"props":3277,"children":3278},{"style":1061},[3279],{"type":998,"value":1064},{"type":993,"tag":1026,"props":3281,"children":3282},{"style":1049},[3283],{"type":998,"value":1314},{"type":993,"tag":1026,"props":3285,"children":3286},{"style":1067},[3287],{"type":998,"value":3288},"\"  Recent files: ",{"type":993,"tag":1026,"props":3290,"children":3291},{"style":1055},[3292],{"type":998,"value":3293},"{len",{"type":993,"tag":1026,"props":3295,"children":3296},{"style":1061},[3297],{"type":998,"value":3298},"(loaded_data[",{"type":993,"tag":1026,"props":3300,"children":3301},{"style":1067},[3302],{"type":998,"value":3303},"'recent_files'",{"type":993,"tag":1026,"props":3305,"children":3306},{"style":1061},[3307],{"type":998,"value":3308},"])",{"type":993,"tag":1026,"props":3310,"children":3311},{"style":1055},[3312],{"type":998,"value":1344},{"type":993,"tag":1026,"props":3314,"children":3315},{"style":1067},[3316],{"type":998,"value":1140},{"type":993,"tag":1026,"props":3318,"children":3319},{"style":1061},[3320],{"type":998,"value":1124},{"type":993,"tag":1666,"props":3322,"children":3324},{"id":3323},"file-types-and-formats",[3325],{"type":998,"value":3326},"🔍 File Types and Formats",{"type":993,"tag":1001,"props":3328,"children":3329},{},[3330],{"type":998,"value":3331},"Different file types serve different purposes in your applications.",{"type":993,"tag":1678,"props":3333,"children":3336},{"emoji":3334,"title":3335,"type":1682},"📄","Common File Types",[3337,3345,3368,3376,3399,3407,3425,3433],{"type":993,"tag":1001,"props":3338,"children":3339},{},[3340],{"type":993,"tag":1688,"props":3341,"children":3342},{},[3343],{"type":998,"value":3344},"Text Files (.txt):",{"type":993,"tag":1702,"props":3346,"children":3347},{},[3348,3353,3358,3363],{"type":993,"tag":1706,"props":3349,"children":3350},{},[3351],{"type":998,"value":3352},"Human-readable content",{"type":993,"tag":1706,"props":3354,"children":3355},{},[3356],{"type":998,"value":3357},"Configuration files",{"type":993,"tag":1706,"props":3359,"children":3360},{},[3361],{"type":998,"value":3362},"Simple data storage",{"type":993,"tag":1706,"props":3364,"children":3365},{},[3366],{"type":998,"value":3367},"Log files",{"type":993,"tag":1001,"props":3369,"children":3370},{},[3371],{"type":993,"tag":1688,"props":3372,"children":3373},{},[3374],{"type":998,"value":3375},"Data Files (.json, .csv):",{"type":993,"tag":1702,"props":3377,"children":3378},{},[3379,3384,3389,3394],{"type":993,"tag":1706,"props":3380,"children":3381},{},[3382],{"type":998,"value":3383},"Structured information",{"type":993,"tag":1706,"props":3385,"children":3386},{},[3387],{"type":998,"value":3388},"Data exchange between programs",{"type":993,"tag":1706,"props":3390,"children":3391},{},[3392],{"type":998,"value":3393},"Database exports",{"type":993,"tag":1706,"props":3395,"children":3396},{},[3397],{"type":998,"value":3398},"API responses",{"type":993,"tag":1001,"props":3400,"children":3401},{},[3402],{"type":993,"tag":1688,"props":3403,"children":3404},{},[3405],{"type":998,"value":3406},"Code Files (.py, .html, .css):",{"type":993,"tag":1702,"props":3408,"children":3409},{},[3410,3415,3420],{"type":993,"tag":1706,"props":3411,"children":3412},{},[3413],{"type":998,"value":3414},"Program source code",{"type":993,"tag":1706,"props":3416,"children":3417},{},[3418],{"type":998,"value":3419},"Web pages and stylesheets",{"type":993,"tag":1706,"props":3421,"children":3422},{},[3423],{"type":998,"value":3424},"Scripts and automation",{"type":993,"tag":1001,"props":3426,"children":3427},{},[3428],{"type":993,"tag":1688,"props":3429,"children":3430},{},[3431],{"type":998,"value":3432},"Binary Files (.jpg, .pdf, .zip):",{"type":993,"tag":1702,"props":3434,"children":3435},{},[3436,3441,3446],{"type":993,"tag":1706,"props":3437,"children":3438},{},[3439],{"type":998,"value":3440},"Images and multimedia",{"type":993,"tag":1706,"props":3442,"children":3443},{},[3444],{"type":998,"value":3445},"Documents and archives",{"type":993,"tag":1706,"props":3447,"children":3448},{},[3449],{"type":998,"value":3450},"Require special handling",{"type":993,"tag":1001,"props":3452,"children":3453},{},[3454],{"type":998,"value":3455},"File operations form the foundation for data persistence in Python applications. Master these basics, and you'll be able to build programs that remember information and work with external data sources.",{"type":993,"tag":1666,"props":3457,"children":3459},{"id":3458},"what-youll-learn",[3460],{"type":998,"value":3461},"What You'll Learn",{"type":993,"tag":1001,"props":3463,"children":3464},{},[3465],{"type":998,"value":3466},"This section covers essential file operation skills that every Python developer needs:",{"type":993,"tag":1702,"props":3468,"children":3469},{},[3470,3483,3495,3507],{"type":993,"tag":1706,"props":3471,"children":3472},{},[3473,3481],{"type":993,"tag":1688,"props":3474,"children":3475},{},[3476],{"type":993,"tag":3477,"props":3478,"children":3479},"a",{"href":818},[3480],{"type":998,"value":819},{"type":998,"value":3482}," - Learn fundamental file concepts, opening and closing files safely",{"type":993,"tag":1706,"props":3484,"children":3485},{},[3486,3493],{"type":993,"tag":1688,"props":3487,"children":3488},{},[3489],{"type":993,"tag":3477,"props":3490,"children":3491},{"href":827},[3492],{"type":998,"value":828},{"type":998,"value":3494}," - Master techniques for reading content and processing text data",{"type":993,"tag":1706,"props":3496,"children":3497},{},[3498,3505],{"type":993,"tag":1688,"props":3499,"children":3500},{},[3501],{"type":993,"tag":3477,"props":3502,"children":3503},{"href":836},[3504],{"type":998,"value":837},{"type":998,"value":3506}," - Discover methods for creating files and saving data effectively",{"type":993,"tag":1706,"props":3508,"children":3509},{},[3510,3517],{"type":993,"tag":1688,"props":3511,"children":3512},{},[3513],{"type":993,"tag":3477,"props":3514,"children":3515},{"href":845},[3516],{"type":998,"value":846},{"type":998,"value":3518}," - Explore file system operations and implement backup strategies",{"type":993,"tag":1001,"props":3520,"children":3521},{},[3522],{"type":998,"value":3523},"Master these file operation concepts to build applications that can persist data, process external files, and manage information effectively!",{"type":993,"tag":1666,"props":3525,"children":3527},{"id":3526},"whats-next",[3528],{"type":998,"value":3529},"What's Next?",{"type":993,"tag":1001,"props":3531,"children":3532},{},[3533,3535,3539],{"type":998,"value":3534},"Ready to start working with files? Begin with our lesson on ",{"type":993,"tag":3477,"props":3536,"children":3537},{"href":818},[3538],{"type":998,"value":819},{"type":998,"value":3540}," to understand the fundamentals of file handling in Python.",{"type":993,"tag":3542,"props":3543,"children":3544},"style",{},[3545],{"type":998,"value":3546},"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":3548},[3549,3553,3554,3555],{"id":1668,"depth":27,"text":1671,"children":3550},[3551,3552],{"id":1900,"depth":36,"text":1903},{"id":2656,"depth":36,"text":2659},{"id":3323,"depth":27,"text":3326},{"id":3458,"depth":27,"text":3461},{"id":3526,"depth":27,"text":3529},1782373749991]