[{"data":1,"prerenderedAt":7765},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/using-built-in-modules":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},"/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},"/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},"/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},"/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},"/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},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862,"expanded":13},"/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},"/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",[872],{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"body":989,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},{"type":990,"children":991,"toc":7753},"root",[992,1000,1006,1011,1810,1817,1822,2078,2085,2090,3208,3214,3219,4400,4405,4410,5781,5787,5792,7105,7111,7116,7293,7299,7304,7701,7706,7712,7717,7724,7730,7735,7747],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":876},[997],{"type":998,"value":999},"text","📚 Using Built-in Modules",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004],{"type":998,"value":1005},"Using built-in modules in Python is like having access to a massive, well-organized library. Python comes with tons of pre-written, tested tools that solve common programming problems. Instead of writing everything from scratch, you can use these powerful modules to save time and effort.",{"type":993,"tag":1001,"props":1007,"children":1008},{},[1009],{"type":998,"value":1010},"Think of built-in modules as professional-grade tools that are already tested and ready to use - like having a toolbox full of the best tools for every job.",{"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","# 🎯 Built-in Modules Demo\n\n# Import some popular built-in modules\nimport datetime\nimport random\nimport math\nimport os\n\nprint(\"🛠️ Built-in Modules Showcase:\")\n\n# DateTime - Working with dates and times\nnow = datetime.datetime.now()\nprint(f\"📅 Current time: {now.strftime('%Y-%m-%d %H:%M:%S')}\")\n\ntomorrow = now + datetime.timedelta(days=1)\nprint(f\"📅 Tomorrow: {tomorrow.strftime('%A, %B %d')}\")\n\n# Random - Generate random values\nrandom_number = random.randint(1, 100)\ncolors = ['red', 'blue', 'green', 'yellow', 'purple']\nrandom_color = random.choice(colors)\nprint(f\"🎲 Random number: {random_number}\")\nprint(f\"🎨 Random color: {random_color}\")\n\n# Math - Mathematical operations\nangle = 45\nradians = math.radians(angle)\nsine_value = math.sin(radians)\nprint(f\"📐 Sin({angle}°) = {sine_value:.3f}\")\nprint(f\"🔢 Square root of 16: {math.sqrt(16)}\")\n\n# OS - System operations\ncurrent_directory = os.getcwd()\nprint(f\"📁 Current directory: {os.path.basename(current_directory)}\")\n",[1021],{"type":993,"tag":1022,"props":1023,"children":1024},"code",{"__ignoreMap":8},[1025,1036,1044,1052,1067,1079,1091,1103,1110,1135,1142,1150,1168,1233,1240,1286,1345,1352,1360,1395,1458,1475,1516,1557,1564,1572,1589,1606,1623,1687,1737,1744,1752,1769],{"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},"# 🎯 Built-in Modules Demo\n",{"type":993,"tag":1026,"props":1037,"children":1038},{"class":1028,"line":27},[1039],{"type":993,"tag":1026,"props":1040,"children":1041},{"emptyLinePlaceholder":13},[1042],{"type":998,"value":1043},"\n",{"type":993,"tag":1026,"props":1045,"children":1046},{"class":1028,"line":36},[1047],{"type":993,"tag":1026,"props":1048,"children":1049},{"style":1032},[1050],{"type":998,"value":1051},"# Import some popular built-in modules\n",{"type":993,"tag":1026,"props":1053,"children":1054},{"class":1028,"line":45},[1055,1061],{"type":993,"tag":1026,"props":1056,"children":1058},{"style":1057},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1059],{"type":998,"value":1060},"import",{"type":993,"tag":1026,"props":1062,"children":1064},{"style":1063},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1065],{"type":998,"value":1066}," datetime\n",{"type":993,"tag":1026,"props":1068,"children":1069},{"class":1028,"line":54},[1070,1074],{"type":993,"tag":1026,"props":1071,"children":1072},{"style":1057},[1073],{"type":998,"value":1060},{"type":993,"tag":1026,"props":1075,"children":1076},{"style":1063},[1077],{"type":998,"value":1078}," random\n",{"type":993,"tag":1026,"props":1080,"children":1081},{"class":1028,"line":63},[1082,1086],{"type":993,"tag":1026,"props":1083,"children":1084},{"style":1057},[1085],{"type":998,"value":1060},{"type":993,"tag":1026,"props":1087,"children":1088},{"style":1063},[1089],{"type":998,"value":1090}," math\n",{"type":993,"tag":1026,"props":1092,"children":1093},{"class":1028,"line":72},[1094,1098],{"type":993,"tag":1026,"props":1095,"children":1096},{"style":1057},[1097],{"type":998,"value":1060},{"type":993,"tag":1026,"props":1099,"children":1100},{"style":1063},[1101],{"type":998,"value":1102}," os\n",{"type":993,"tag":1026,"props":1104,"children":1105},{"class":1028,"line":81},[1106],{"type":993,"tag":1026,"props":1107,"children":1108},{"emptyLinePlaceholder":13},[1109],{"type":998,"value":1043},{"type":993,"tag":1026,"props":1111,"children":1112},{"class":1028,"line":91},[1113,1119,1124,1130],{"type":993,"tag":1026,"props":1114,"children":1116},{"style":1115},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1117],{"type":998,"value":1118},"print",{"type":993,"tag":1026,"props":1120,"children":1121},{"style":1063},[1122],{"type":998,"value":1123},"(",{"type":993,"tag":1026,"props":1125,"children":1127},{"style":1126},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1128],{"type":998,"value":1129},"\"🛠️ Built-in Modules Showcase:\"",{"type":993,"tag":1026,"props":1131,"children":1132},{"style":1063},[1133],{"type":998,"value":1134},")\n",{"type":993,"tag":1026,"props":1136,"children":1137},{"class":1028,"line":100},[1138],{"type":993,"tag":1026,"props":1139,"children":1140},{"emptyLinePlaceholder":13},[1141],{"type":998,"value":1043},{"type":993,"tag":1026,"props":1143,"children":1144},{"class":1028,"line":109},[1145],{"type":993,"tag":1026,"props":1146,"children":1147},{"style":1032},[1148],{"type":998,"value":1149},"# DateTime - Working with dates and times\n",{"type":993,"tag":1026,"props":1151,"children":1152},{"class":1028,"line":118},[1153,1158,1163],{"type":993,"tag":1026,"props":1154,"children":1155},{"style":1063},[1156],{"type":998,"value":1157},"now ",{"type":993,"tag":1026,"props":1159,"children":1160},{"style":1057},[1161],{"type":998,"value":1162},"=",{"type":993,"tag":1026,"props":1164,"children":1165},{"style":1063},[1166],{"type":998,"value":1167}," datetime.datetime.now()\n",{"type":993,"tag":1026,"props":1169,"children":1170},{"class":1028,"line":127},[1171,1175,1179,1184,1189,1194,1199,1204,1209,1214,1219,1224,1229],{"type":993,"tag":1026,"props":1172,"children":1173},{"style":1115},[1174],{"type":998,"value":1118},{"type":993,"tag":1026,"props":1176,"children":1177},{"style":1063},[1178],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1180,"children":1181},{"style":1057},[1182],{"type":998,"value":1183},"f",{"type":993,"tag":1026,"props":1185,"children":1186},{"style":1126},[1187],{"type":998,"value":1188},"\"📅 Current time: ",{"type":993,"tag":1026,"props":1190,"children":1191},{"style":1115},[1192],{"type":998,"value":1193},"{",{"type":993,"tag":1026,"props":1195,"children":1196},{"style":1063},[1197],{"type":998,"value":1198},"now.strftime(",{"type":993,"tag":1026,"props":1200,"children":1201},{"style":1126},[1202],{"type":998,"value":1203},"'%Y-%m-",{"type":993,"tag":1026,"props":1205,"children":1206},{"style":1115},[1207],{"type":998,"value":1208},"%d",{"type":993,"tag":1026,"props":1210,"children":1211},{"style":1126},[1212],{"type":998,"value":1213}," %H:%M:%S'",{"type":993,"tag":1026,"props":1215,"children":1216},{"style":1063},[1217],{"type":998,"value":1218},")",{"type":993,"tag":1026,"props":1220,"children":1221},{"style":1115},[1222],{"type":998,"value":1223},"}",{"type":993,"tag":1026,"props":1225,"children":1226},{"style":1126},[1227],{"type":998,"value":1228},"\"",{"type":993,"tag":1026,"props":1230,"children":1231},{"style":1063},[1232],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1234,"children":1235},{"class":1028,"line":136},[1236],{"type":993,"tag":1026,"props":1237,"children":1238},{"emptyLinePlaceholder":13},[1239],{"type":998,"value":1043},{"type":993,"tag":1026,"props":1241,"children":1242},{"class":1028,"line":146},[1243,1248,1252,1257,1262,1267,1273,1277,1282],{"type":993,"tag":1026,"props":1244,"children":1245},{"style":1063},[1246],{"type":998,"value":1247},"tomorrow ",{"type":993,"tag":1026,"props":1249,"children":1250},{"style":1057},[1251],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1253,"children":1254},{"style":1063},[1255],{"type":998,"value":1256}," now ",{"type":993,"tag":1026,"props":1258,"children":1259},{"style":1057},[1260],{"type":998,"value":1261},"+",{"type":993,"tag":1026,"props":1263,"children":1264},{"style":1063},[1265],{"type":998,"value":1266}," datetime.timedelta(",{"type":993,"tag":1026,"props":1268,"children":1270},{"style":1269},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[1271],{"type":998,"value":1272},"days",{"type":993,"tag":1026,"props":1274,"children":1275},{"style":1057},[1276],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1278,"children":1279},{"style":1115},[1280],{"type":998,"value":1281},"1",{"type":993,"tag":1026,"props":1283,"children":1284},{"style":1063},[1285],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1287,"children":1288},{"class":1028,"line":155},[1289,1293,1297,1301,1306,1310,1315,1320,1324,1329,1333,1337,1341],{"type":993,"tag":1026,"props":1290,"children":1291},{"style":1115},[1292],{"type":998,"value":1118},{"type":993,"tag":1026,"props":1294,"children":1295},{"style":1063},[1296],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1298,"children":1299},{"style":1057},[1300],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1302,"children":1303},{"style":1126},[1304],{"type":998,"value":1305},"\"📅 Tomorrow: ",{"type":993,"tag":1026,"props":1307,"children":1308},{"style":1115},[1309],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1311,"children":1312},{"style":1063},[1313],{"type":998,"value":1314},"tomorrow.strftime(",{"type":993,"tag":1026,"props":1316,"children":1317},{"style":1126},[1318],{"type":998,"value":1319},"'%A, %B ",{"type":993,"tag":1026,"props":1321,"children":1322},{"style":1115},[1323],{"type":998,"value":1208},{"type":993,"tag":1026,"props":1325,"children":1326},{"style":1126},[1327],{"type":998,"value":1328},"'",{"type":993,"tag":1026,"props":1330,"children":1331},{"style":1063},[1332],{"type":998,"value":1218},{"type":993,"tag":1026,"props":1334,"children":1335},{"style":1115},[1336],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1338,"children":1339},{"style":1126},[1340],{"type":998,"value":1228},{"type":993,"tag":1026,"props":1342,"children":1343},{"style":1063},[1344],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1346,"children":1347},{"class":1028,"line":164},[1348],{"type":993,"tag":1026,"props":1349,"children":1350},{"emptyLinePlaceholder":13},[1351],{"type":998,"value":1043},{"type":993,"tag":1026,"props":1353,"children":1354},{"class":1028,"line":173},[1355],{"type":993,"tag":1026,"props":1356,"children":1357},{"style":1032},[1358],{"type":998,"value":1359},"# Random - Generate random values\n",{"type":993,"tag":1026,"props":1361,"children":1362},{"class":1028,"line":182},[1363,1368,1372,1377,1381,1386,1391],{"type":993,"tag":1026,"props":1364,"children":1365},{"style":1063},[1366],{"type":998,"value":1367},"random_number ",{"type":993,"tag":1026,"props":1369,"children":1370},{"style":1057},[1371],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1373,"children":1374},{"style":1063},[1375],{"type":998,"value":1376}," random.randint(",{"type":993,"tag":1026,"props":1378,"children":1379},{"style":1115},[1380],{"type":998,"value":1281},{"type":993,"tag":1026,"props":1382,"children":1383},{"style":1063},[1384],{"type":998,"value":1385},", ",{"type":993,"tag":1026,"props":1387,"children":1388},{"style":1115},[1389],{"type":998,"value":1390},"100",{"type":993,"tag":1026,"props":1392,"children":1393},{"style":1063},[1394],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1396,"children":1397},{"class":1028,"line":191},[1398,1403,1407,1412,1417,1421,1426,1430,1435,1439,1444,1448,1453],{"type":993,"tag":1026,"props":1399,"children":1400},{"style":1063},[1401],{"type":998,"value":1402},"colors ",{"type":993,"tag":1026,"props":1404,"children":1405},{"style":1057},[1406],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1408,"children":1409},{"style":1063},[1410],{"type":998,"value":1411}," [",{"type":993,"tag":1026,"props":1413,"children":1414},{"style":1126},[1415],{"type":998,"value":1416},"'red'",{"type":993,"tag":1026,"props":1418,"children":1419},{"style":1063},[1420],{"type":998,"value":1385},{"type":993,"tag":1026,"props":1422,"children":1423},{"style":1126},[1424],{"type":998,"value":1425},"'blue'",{"type":993,"tag":1026,"props":1427,"children":1428},{"style":1063},[1429],{"type":998,"value":1385},{"type":993,"tag":1026,"props":1431,"children":1432},{"style":1126},[1433],{"type":998,"value":1434},"'green'",{"type":993,"tag":1026,"props":1436,"children":1437},{"style":1063},[1438],{"type":998,"value":1385},{"type":993,"tag":1026,"props":1440,"children":1441},{"style":1126},[1442],{"type":998,"value":1443},"'yellow'",{"type":993,"tag":1026,"props":1445,"children":1446},{"style":1063},[1447],{"type":998,"value":1385},{"type":993,"tag":1026,"props":1449,"children":1450},{"style":1126},[1451],{"type":998,"value":1452},"'purple'",{"type":993,"tag":1026,"props":1454,"children":1455},{"style":1063},[1456],{"type":998,"value":1457},"]\n",{"type":993,"tag":1026,"props":1459,"children":1460},{"class":1028,"line":201},[1461,1466,1470],{"type":993,"tag":1026,"props":1462,"children":1463},{"style":1063},[1464],{"type":998,"value":1465},"random_color ",{"type":993,"tag":1026,"props":1467,"children":1468},{"style":1057},[1469],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1471,"children":1472},{"style":1063},[1473],{"type":998,"value":1474}," random.choice(colors)\n",{"type":993,"tag":1026,"props":1476,"children":1477},{"class":1028,"line":210},[1478,1482,1486,1490,1495,1499,1504,1508,1512],{"type":993,"tag":1026,"props":1479,"children":1480},{"style":1115},[1481],{"type":998,"value":1118},{"type":993,"tag":1026,"props":1483,"children":1484},{"style":1063},[1485],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1487,"children":1488},{"style":1057},[1489],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1491,"children":1492},{"style":1126},[1493],{"type":998,"value":1494},"\"🎲 Random number: ",{"type":993,"tag":1026,"props":1496,"children":1497},{"style":1115},[1498],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1500,"children":1501},{"style":1063},[1502],{"type":998,"value":1503},"random_number",{"type":993,"tag":1026,"props":1505,"children":1506},{"style":1115},[1507],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1509,"children":1510},{"style":1126},[1511],{"type":998,"value":1228},{"type":993,"tag":1026,"props":1513,"children":1514},{"style":1063},[1515],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1517,"children":1518},{"class":1028,"line":219},[1519,1523,1527,1531,1536,1540,1545,1549,1553],{"type":993,"tag":1026,"props":1520,"children":1521},{"style":1115},[1522],{"type":998,"value":1118},{"type":993,"tag":1026,"props":1524,"children":1525},{"style":1063},[1526],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1528,"children":1529},{"style":1057},[1530],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1532,"children":1533},{"style":1126},[1534],{"type":998,"value":1535},"\"🎨 Random color: ",{"type":993,"tag":1026,"props":1537,"children":1538},{"style":1115},[1539],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1541,"children":1542},{"style":1063},[1543],{"type":998,"value":1544},"random_color",{"type":993,"tag":1026,"props":1546,"children":1547},{"style":1115},[1548],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1550,"children":1551},{"style":1126},[1552],{"type":998,"value":1228},{"type":993,"tag":1026,"props":1554,"children":1555},{"style":1063},[1556],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1558,"children":1559},{"class":1028,"line":228},[1560],{"type":993,"tag":1026,"props":1561,"children":1562},{"emptyLinePlaceholder":13},[1563],{"type":998,"value":1043},{"type":993,"tag":1026,"props":1565,"children":1566},{"class":1028,"line":238},[1567],{"type":993,"tag":1026,"props":1568,"children":1569},{"style":1032},[1570],{"type":998,"value":1571},"# Math - Mathematical operations\n",{"type":993,"tag":1026,"props":1573,"children":1574},{"class":1028,"line":247},[1575,1580,1584],{"type":993,"tag":1026,"props":1576,"children":1577},{"style":1063},[1578],{"type":998,"value":1579},"angle ",{"type":993,"tag":1026,"props":1581,"children":1582},{"style":1057},[1583],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1585,"children":1586},{"style":1115},[1587],{"type":998,"value":1588}," 45\n",{"type":993,"tag":1026,"props":1590,"children":1591},{"class":1028,"line":256},[1592,1597,1601],{"type":993,"tag":1026,"props":1593,"children":1594},{"style":1063},[1595],{"type":998,"value":1596},"radians ",{"type":993,"tag":1026,"props":1598,"children":1599},{"style":1057},[1600],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1602,"children":1603},{"style":1063},[1604],{"type":998,"value":1605}," math.radians(angle)\n",{"type":993,"tag":1026,"props":1607,"children":1608},{"class":1028,"line":265},[1609,1614,1618],{"type":993,"tag":1026,"props":1610,"children":1611},{"style":1063},[1612],{"type":998,"value":1613},"sine_value ",{"type":993,"tag":1026,"props":1615,"children":1616},{"style":1057},[1617],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1619,"children":1620},{"style":1063},[1621],{"type":998,"value":1622}," math.sin(radians)\n",{"type":993,"tag":1026,"props":1624,"children":1625},{"class":1028,"line":274},[1626,1630,1634,1638,1643,1647,1652,1656,1661,1665,1670,1675,1679,1683],{"type":993,"tag":1026,"props":1627,"children":1628},{"style":1115},[1629],{"type":998,"value":1118},{"type":993,"tag":1026,"props":1631,"children":1632},{"style":1063},[1633],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1635,"children":1636},{"style":1057},[1637],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1639,"children":1640},{"style":1126},[1641],{"type":998,"value":1642},"\"📐 Sin(",{"type":993,"tag":1026,"props":1644,"children":1645},{"style":1115},[1646],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1648,"children":1649},{"style":1063},[1650],{"type":998,"value":1651},"angle",{"type":993,"tag":1026,"props":1653,"children":1654},{"style":1115},[1655],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1657,"children":1658},{"style":1126},[1659],{"type":998,"value":1660},"°) = ",{"type":993,"tag":1026,"props":1662,"children":1663},{"style":1115},[1664],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1666,"children":1667},{"style":1063},[1668],{"type":998,"value":1669},"sine_value",{"type":993,"tag":1026,"props":1671,"children":1672},{"style":1057},[1673],{"type":998,"value":1674},":.3f",{"type":993,"tag":1026,"props":1676,"children":1677},{"style":1115},[1678],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1680,"children":1681},{"style":1126},[1682],{"type":998,"value":1228},{"type":993,"tag":1026,"props":1684,"children":1685},{"style":1063},[1686],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1688,"children":1689},{"class":1028,"line":284},[1690,1694,1698,1702,1707,1711,1716,1721,1725,1729,1733],{"type":993,"tag":1026,"props":1691,"children":1692},{"style":1115},[1693],{"type":998,"value":1118},{"type":993,"tag":1026,"props":1695,"children":1696},{"style":1063},[1697],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1699,"children":1700},{"style":1057},[1701],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1703,"children":1704},{"style":1126},[1705],{"type":998,"value":1706},"\"🔢 Square root of 16: ",{"type":993,"tag":1026,"props":1708,"children":1709},{"style":1115},[1710],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1712,"children":1713},{"style":1063},[1714],{"type":998,"value":1715},"math.sqrt(",{"type":993,"tag":1026,"props":1717,"children":1718},{"style":1115},[1719],{"type":998,"value":1720},"16",{"type":993,"tag":1026,"props":1722,"children":1723},{"style":1063},[1724],{"type":998,"value":1218},{"type":993,"tag":1026,"props":1726,"children":1727},{"style":1115},[1728],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1730,"children":1731},{"style":1126},[1732],{"type":998,"value":1228},{"type":993,"tag":1026,"props":1734,"children":1735},{"style":1063},[1736],{"type":998,"value":1134},{"type":993,"tag":1026,"props":1738,"children":1739},{"class":1028,"line":293},[1740],{"type":993,"tag":1026,"props":1741,"children":1742},{"emptyLinePlaceholder":13},[1743],{"type":998,"value":1043},{"type":993,"tag":1026,"props":1745,"children":1746},{"class":1028,"line":302},[1747],{"type":993,"tag":1026,"props":1748,"children":1749},{"style":1032},[1750],{"type":998,"value":1751},"# OS - System operations\n",{"type":993,"tag":1026,"props":1753,"children":1754},{"class":1028,"line":311},[1755,1760,1764],{"type":993,"tag":1026,"props":1756,"children":1757},{"style":1063},[1758],{"type":998,"value":1759},"current_directory ",{"type":993,"tag":1026,"props":1761,"children":1762},{"style":1057},[1763],{"type":998,"value":1162},{"type":993,"tag":1026,"props":1765,"children":1766},{"style":1063},[1767],{"type":998,"value":1768}," os.getcwd()\n",{"type":993,"tag":1026,"props":1770,"children":1771},{"class":1028,"line":320},[1772,1776,1780,1784,1789,1793,1798,1802,1806],{"type":993,"tag":1026,"props":1773,"children":1774},{"style":1115},[1775],{"type":998,"value":1118},{"type":993,"tag":1026,"props":1777,"children":1778},{"style":1063},[1779],{"type":998,"value":1123},{"type":993,"tag":1026,"props":1781,"children":1782},{"style":1057},[1783],{"type":998,"value":1183},{"type":993,"tag":1026,"props":1785,"children":1786},{"style":1126},[1787],{"type":998,"value":1788},"\"📁 Current directory: ",{"type":993,"tag":1026,"props":1790,"children":1791},{"style":1115},[1792],{"type":998,"value":1193},{"type":993,"tag":1026,"props":1794,"children":1795},{"style":1063},[1796],{"type":998,"value":1797},"os.path.basename(current_directory)",{"type":993,"tag":1026,"props":1799,"children":1800},{"style":1115},[1801],{"type":998,"value":1223},{"type":993,"tag":1026,"props":1803,"children":1804},{"style":1126},[1805],{"type":998,"value":1228},{"type":993,"tag":1026,"props":1807,"children":1808},{"style":1063},[1809],{"type":998,"value":1134},{"type":993,"tag":1811,"props":1812,"children":1814},"h2",{"id":1813},"understanding-built-in-modules",[1815],{"type":998,"value":1816},"🎯 Understanding Built-in Modules",{"type":993,"tag":1001,"props":1818,"children":1819},{},[1820],{"type":998,"value":1821},"Python's standard library includes modules for almost every common programming task, from basic math to advanced networking.",{"type":993,"tag":1823,"props":1824,"children":1828},"info-box",{"emoji":1825,"title":1826,"type":1827},"🛠️","Built-in Modules Essentials","info",[1829,1838,1883,1891,1961,1969,2022,2030],{"type":993,"tag":1001,"props":1830,"children":1831},{},[1832],{"type":993,"tag":1833,"props":1834,"children":1835},"strong",{},[1836],{"type":998,"value":1837},"What Are Built-in Modules:",{"type":993,"tag":1839,"props":1840,"children":1841},"ul",{},[1842,1853,1863,1873],{"type":993,"tag":1843,"props":1844,"children":1845},"li",{},[1846,1851],{"type":993,"tag":1833,"props":1847,"children":1848},{},[1849],{"type":998,"value":1850},"Standard Library",{"type":998,"value":1852},": Over 200 modules included with Python",{"type":993,"tag":1843,"props":1854,"children":1855},{},[1856,1861],{"type":993,"tag":1833,"props":1857,"children":1858},{},[1859],{"type":998,"value":1860},"Pre-tested",{"type":998,"value":1862},": Reliable and well-documented code",{"type":993,"tag":1843,"props":1864,"children":1865},{},[1866,1871],{"type":993,"tag":1833,"props":1867,"children":1868},{},[1869],{"type":998,"value":1870},"Cross-platform",{"type":998,"value":1872},": Works on Windows, Mac, and Linux",{"type":993,"tag":1843,"props":1874,"children":1875},{},[1876,1881],{"type":993,"tag":1833,"props":1877,"children":1878},{},[1879],{"type":998,"value":1880},"No Installation",{"type":998,"value":1882},": Ready to use immediately",{"type":993,"tag":1001,"props":1884,"children":1885},{},[1886],{"type":993,"tag":1833,"props":1887,"children":1888},{},[1889],{"type":998,"value":1890},"Import Methods:",{"type":993,"tag":1839,"props":1892,"children":1893},{},[1894,1912,1929,1946],{"type":993,"tag":1843,"props":1895,"children":1896},{},[1897,1902,1904,1910],{"type":993,"tag":1833,"props":1898,"children":1899},{},[1900],{"type":998,"value":1901},"Full Import",{"type":998,"value":1903},": ",{"type":993,"tag":1022,"props":1905,"children":1907},{"className":1906},[],[1908],{"type":998,"value":1909},"import math",{"type":998,"value":1911}," (use as math.sqrt())",{"type":993,"tag":1843,"props":1913,"children":1914},{},[1915,1920,1921,1927],{"type":993,"tag":1833,"props":1916,"children":1917},{},[1918],{"type":998,"value":1919},"Specific Functions",{"type":998,"value":1903},{"type":993,"tag":1022,"props":1922,"children":1924},{"className":1923},[],[1925],{"type":998,"value":1926},"from math import sqrt",{"type":998,"value":1928}," (use as sqrt())",{"type":993,"tag":1843,"props":1930,"children":1931},{},[1932,1937,1938,1944],{"type":993,"tag":1833,"props":1933,"children":1934},{},[1935],{"type":998,"value":1936},"With Alias",{"type":998,"value":1903},{"type":993,"tag":1022,"props":1939,"children":1941},{"className":1940},[],[1942],{"type":998,"value":1943},"import datetime as dt",{"type":998,"value":1945}," (use as dt.datetime())",{"type":993,"tag":1843,"props":1947,"children":1948},{},[1949,1954,1955],{"type":993,"tag":1833,"props":1950,"children":1951},{},[1952],{"type":998,"value":1953},"Multiple Items",{"type":998,"value":1903},{"type":993,"tag":1022,"props":1956,"children":1958},{"className":1957},[],[1959],{"type":998,"value":1960},"from os import getcwd, listdir",{"type":993,"tag":1001,"props":1962,"children":1963},{},[1964],{"type":993,"tag":1833,"props":1965,"children":1966},{},[1967],{"type":998,"value":1968},"Popular Categories:",{"type":993,"tag":1839,"props":1970,"children":1971},{},[1972,1982,1992,2002,2012],{"type":993,"tag":1843,"props":1973,"children":1974},{},[1975,1980],{"type":993,"tag":1833,"props":1976,"children":1977},{},[1978],{"type":998,"value":1979},"System & Files",{"type":998,"value":1981},": os, sys, pathlib, shutil",{"type":993,"tag":1843,"props":1983,"children":1984},{},[1985,1990],{"type":993,"tag":1833,"props":1986,"children":1987},{},[1988],{"type":998,"value":1989},"Date & Time",{"type":998,"value":1991},": datetime, time, calendar",{"type":993,"tag":1843,"props":1993,"children":1994},{},[1995,2000],{"type":993,"tag":1833,"props":1996,"children":1997},{},[1998],{"type":998,"value":1999},"Math & Numbers",{"type":998,"value":2001},": math, random, statistics, decimal",{"type":993,"tag":1843,"props":2003,"children":2004},{},[2005,2010],{"type":993,"tag":1833,"props":2006,"children":2007},{},[2008],{"type":998,"value":2009},"Data Processing",{"type":998,"value":2011},": json, csv, re, collections",{"type":993,"tag":1843,"props":2013,"children":2014},{},[2015,2020],{"type":993,"tag":1833,"props":2016,"children":2017},{},[2018],{"type":998,"value":2019},"Internet & URLs",{"type":998,"value":2021},": urllib, http, email",{"type":993,"tag":1001,"props":2023,"children":2024},{},[2025],{"type":993,"tag":1833,"props":2026,"children":2027},{},[2028],{"type":998,"value":2029},"Finding Help:",{"type":993,"tag":1839,"props":2031,"children":2032},{},[2033,2043,2053,2068],{"type":993,"tag":1843,"props":2034,"children":2035},{},[2036,2041],{"type":993,"tag":1833,"props":2037,"children":2038},{},[2039],{"type":998,"value":2040},"help(module)",{"type":998,"value":2042},": Get module documentation",{"type":993,"tag":1843,"props":2044,"children":2045},{},[2046,2051],{"type":993,"tag":1833,"props":2047,"children":2048},{},[2049],{"type":998,"value":2050},"dir(module)",{"type":998,"value":2052},": List available functions",{"type":993,"tag":1843,"props":2054,"children":2055},{},[2056,2066],{"type":993,"tag":1833,"props":2057,"children":2058},{},[2059,2061],{"type":998,"value":2060},"module.",{"type":993,"tag":1833,"props":2062,"children":2063},{},[2064],{"type":998,"value":2065},"doc",{"type":998,"value":2067},": Read module description",{"type":993,"tag":1843,"props":2069,"children":2070},{},[2071,2076],{"type":993,"tag":1833,"props":2072,"children":2073},{},[2074],{"type":998,"value":2075},"Official docs",{"type":998,"value":2077},": Python.org documentation",{"type":993,"tag":2079,"props":2080,"children":2082},"h3",{"id":2081},"working-with-dates-and-times",[2083],{"type":998,"value":2084},"📅 Working with Dates and Times",{"type":993,"tag":1001,"props":2086,"children":2087},{},[2088],{"type":998,"value":2089},"The datetime module helps you work with dates, times, and time calculations - essential for many applications.",{"type":993,"tag":1012,"props":2091,"children":2092},{},[2093],{"type":993,"tag":1016,"props":2094,"children":2096},{"className":1018,"code":2095,"language":6,"meta":8,"style":8},"# 📅 DateTime Module Deep Dive\n\nimport datetime\nfrom datetime import date, time, timedelta\n\nprint(\"📅 DateTime Module Examples:\")\n\n# Current date and time\nnow = datetime.datetime.now()\ntoday = date.today()\nprint(f\"Right now: {now}\")\nprint(f\"Today's date: {today}\")\n\n# Creating specific dates\nmy_birthday = date(1990, 5, 15)\nmeeting_time = datetime.datetime(2024, 3, 20, 14, 30)  # March 20, 2:30 PM\nprint(f\"Birthday: {my_birthday}\")\nprint(f\"Meeting: {meeting_time}\")\n\n# Date arithmetic\none_week_later = today + timedelta(weeks=1)\nthirty_days_ago = today - timedelta(days=30)\nprint(f\"One week from today: {one_week_later}\")\nprint(f\"30 days ago: {thirty_days_ago}\")\n\n# Formatting dates\nprint(f\"\\nDate Formatting Examples:\")\nformats = [\n    (\"%Y-%m-%d\", \"Standard format\"),\n    (\"%B %d, %Y\", \"Long format\"),\n    (\"%m/%d/%Y\", \"US format\"),\n    (\"%A\", \"Day of week\"),\n    (\"%I:%M %p\", \"12-hour time\")\n]\n\nfor fmt, description in formats:\n    formatted = now.strftime(fmt)\n    print(f\"  {description}: {formatted}\")\n\n# Time calculations\nage_days = (today - my_birthday).days\nage_years = age_days // 365\nprint(f\"\\nAge calculation:\")\nprint(f\"Days since birthday: {age_days}\")\nprint(f\"Approximate age: {age_years} years\")\n",[2097],{"type":993,"tag":1022,"props":2098,"children":2099},{"__ignoreMap":8},[2100,2108,2115,2126,2148,2155,2175,2182,2190,2205,2222,2263,2304,2311,2319,2363,2431,2472,2513,2520,2528,2571,2612,2653,2694,2701,2709,2742,2759,2794,2828,2862,2887,2912,2919,2926,2949,2966,3025,3032,3040,3066,3093,3125,3166],{"type":993,"tag":1026,"props":2101,"children":2102},{"class":1028,"line":12},[2103],{"type":993,"tag":1026,"props":2104,"children":2105},{"style":1032},[2106],{"type":998,"value":2107},"# 📅 DateTime Module Deep Dive\n",{"type":993,"tag":1026,"props":2109,"children":2110},{"class":1028,"line":27},[2111],{"type":993,"tag":1026,"props":2112,"children":2113},{"emptyLinePlaceholder":13},[2114],{"type":998,"value":1043},{"type":993,"tag":1026,"props":2116,"children":2117},{"class":1028,"line":36},[2118,2122],{"type":993,"tag":1026,"props":2119,"children":2120},{"style":1057},[2121],{"type":998,"value":1060},{"type":993,"tag":1026,"props":2123,"children":2124},{"style":1063},[2125],{"type":998,"value":1066},{"type":993,"tag":1026,"props":2127,"children":2128},{"class":1028,"line":45},[2129,2134,2139,2143],{"type":993,"tag":1026,"props":2130,"children":2131},{"style":1057},[2132],{"type":998,"value":2133},"from",{"type":993,"tag":1026,"props":2135,"children":2136},{"style":1063},[2137],{"type":998,"value":2138}," datetime ",{"type":993,"tag":1026,"props":2140,"children":2141},{"style":1057},[2142],{"type":998,"value":1060},{"type":993,"tag":1026,"props":2144,"children":2145},{"style":1063},[2146],{"type":998,"value":2147}," date, time, timedelta\n",{"type":993,"tag":1026,"props":2149,"children":2150},{"class":1028,"line":54},[2151],{"type":993,"tag":1026,"props":2152,"children":2153},{"emptyLinePlaceholder":13},[2154],{"type":998,"value":1043},{"type":993,"tag":1026,"props":2156,"children":2157},{"class":1028,"line":63},[2158,2162,2166,2171],{"type":993,"tag":1026,"props":2159,"children":2160},{"style":1115},[2161],{"type":998,"value":1118},{"type":993,"tag":1026,"props":2163,"children":2164},{"style":1063},[2165],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2167,"children":2168},{"style":1126},[2169],{"type":998,"value":2170},"\"📅 DateTime Module Examples:\"",{"type":993,"tag":1026,"props":2172,"children":2173},{"style":1063},[2174],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2176,"children":2177},{"class":1028,"line":72},[2178],{"type":993,"tag":1026,"props":2179,"children":2180},{"emptyLinePlaceholder":13},[2181],{"type":998,"value":1043},{"type":993,"tag":1026,"props":2183,"children":2184},{"class":1028,"line":81},[2185],{"type":993,"tag":1026,"props":2186,"children":2187},{"style":1032},[2188],{"type":998,"value":2189},"# Current date and time\n",{"type":993,"tag":1026,"props":2191,"children":2192},{"class":1028,"line":91},[2193,2197,2201],{"type":993,"tag":1026,"props":2194,"children":2195},{"style":1063},[2196],{"type":998,"value":1157},{"type":993,"tag":1026,"props":2198,"children":2199},{"style":1057},[2200],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2202,"children":2203},{"style":1063},[2204],{"type":998,"value":1167},{"type":993,"tag":1026,"props":2206,"children":2207},{"class":1028,"line":100},[2208,2213,2217],{"type":993,"tag":1026,"props":2209,"children":2210},{"style":1063},[2211],{"type":998,"value":2212},"today ",{"type":993,"tag":1026,"props":2214,"children":2215},{"style":1057},[2216],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2218,"children":2219},{"style":1063},[2220],{"type":998,"value":2221}," date.today()\n",{"type":993,"tag":1026,"props":2223,"children":2224},{"class":1028,"line":109},[2225,2229,2233,2237,2242,2246,2251,2255,2259],{"type":993,"tag":1026,"props":2226,"children":2227},{"style":1115},[2228],{"type":998,"value":1118},{"type":993,"tag":1026,"props":2230,"children":2231},{"style":1063},[2232],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2234,"children":2235},{"style":1057},[2236],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2238,"children":2239},{"style":1126},[2240],{"type":998,"value":2241},"\"Right now: ",{"type":993,"tag":1026,"props":2243,"children":2244},{"style":1115},[2245],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2247,"children":2248},{"style":1063},[2249],{"type":998,"value":2250},"now",{"type":993,"tag":1026,"props":2252,"children":2253},{"style":1115},[2254],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2256,"children":2257},{"style":1126},[2258],{"type":998,"value":1228},{"type":993,"tag":1026,"props":2260,"children":2261},{"style":1063},[2262],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2264,"children":2265},{"class":1028,"line":118},[2266,2270,2274,2278,2283,2287,2292,2296,2300],{"type":993,"tag":1026,"props":2267,"children":2268},{"style":1115},[2269],{"type":998,"value":1118},{"type":993,"tag":1026,"props":2271,"children":2272},{"style":1063},[2273],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2275,"children":2276},{"style":1057},[2277],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2279,"children":2280},{"style":1126},[2281],{"type":998,"value":2282},"\"Today's date: ",{"type":993,"tag":1026,"props":2284,"children":2285},{"style":1115},[2286],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2288,"children":2289},{"style":1063},[2290],{"type":998,"value":2291},"today",{"type":993,"tag":1026,"props":2293,"children":2294},{"style":1115},[2295],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2297,"children":2298},{"style":1126},[2299],{"type":998,"value":1228},{"type":993,"tag":1026,"props":2301,"children":2302},{"style":1063},[2303],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2305,"children":2306},{"class":1028,"line":127},[2307],{"type":993,"tag":1026,"props":2308,"children":2309},{"emptyLinePlaceholder":13},[2310],{"type":998,"value":1043},{"type":993,"tag":1026,"props":2312,"children":2313},{"class":1028,"line":136},[2314],{"type":993,"tag":1026,"props":2315,"children":2316},{"style":1032},[2317],{"type":998,"value":2318},"# Creating specific dates\n",{"type":993,"tag":1026,"props":2320,"children":2321},{"class":1028,"line":146},[2322,2327,2331,2336,2341,2345,2350,2354,2359],{"type":993,"tag":1026,"props":2323,"children":2324},{"style":1063},[2325],{"type":998,"value":2326},"my_birthday ",{"type":993,"tag":1026,"props":2328,"children":2329},{"style":1057},[2330],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2332,"children":2333},{"style":1063},[2334],{"type":998,"value":2335}," date(",{"type":993,"tag":1026,"props":2337,"children":2338},{"style":1115},[2339],{"type":998,"value":2340},"1990",{"type":993,"tag":1026,"props":2342,"children":2343},{"style":1063},[2344],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2346,"children":2347},{"style":1115},[2348],{"type":998,"value":2349},"5",{"type":993,"tag":1026,"props":2351,"children":2352},{"style":1063},[2353],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2355,"children":2356},{"style":1115},[2357],{"type":998,"value":2358},"15",{"type":993,"tag":1026,"props":2360,"children":2361},{"style":1063},[2362],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2364,"children":2365},{"class":1028,"line":155},[2366,2371,2375,2380,2385,2389,2394,2398,2403,2407,2412,2416,2421,2426],{"type":993,"tag":1026,"props":2367,"children":2368},{"style":1063},[2369],{"type":998,"value":2370},"meeting_time ",{"type":993,"tag":1026,"props":2372,"children":2373},{"style":1057},[2374],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2376,"children":2377},{"style":1063},[2378],{"type":998,"value":2379}," datetime.datetime(",{"type":993,"tag":1026,"props":2381,"children":2382},{"style":1115},[2383],{"type":998,"value":2384},"2024",{"type":993,"tag":1026,"props":2386,"children":2387},{"style":1063},[2388],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2390,"children":2391},{"style":1115},[2392],{"type":998,"value":2393},"3",{"type":993,"tag":1026,"props":2395,"children":2396},{"style":1063},[2397],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2399,"children":2400},{"style":1115},[2401],{"type":998,"value":2402},"20",{"type":993,"tag":1026,"props":2404,"children":2405},{"style":1063},[2406],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2408,"children":2409},{"style":1115},[2410],{"type":998,"value":2411},"14",{"type":993,"tag":1026,"props":2413,"children":2414},{"style":1063},[2415],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2417,"children":2418},{"style":1115},[2419],{"type":998,"value":2420},"30",{"type":993,"tag":1026,"props":2422,"children":2423},{"style":1063},[2424],{"type":998,"value":2425},")  ",{"type":993,"tag":1026,"props":2427,"children":2428},{"style":1032},[2429],{"type":998,"value":2430},"# March 20, 2:30 PM\n",{"type":993,"tag":1026,"props":2432,"children":2433},{"class":1028,"line":164},[2434,2438,2442,2446,2451,2455,2460,2464,2468],{"type":993,"tag":1026,"props":2435,"children":2436},{"style":1115},[2437],{"type":998,"value":1118},{"type":993,"tag":1026,"props":2439,"children":2440},{"style":1063},[2441],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2443,"children":2444},{"style":1057},[2445],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2447,"children":2448},{"style":1126},[2449],{"type":998,"value":2450},"\"Birthday: ",{"type":993,"tag":1026,"props":2452,"children":2453},{"style":1115},[2454],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2456,"children":2457},{"style":1063},[2458],{"type":998,"value":2459},"my_birthday",{"type":993,"tag":1026,"props":2461,"children":2462},{"style":1115},[2463],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2465,"children":2466},{"style":1126},[2467],{"type":998,"value":1228},{"type":993,"tag":1026,"props":2469,"children":2470},{"style":1063},[2471],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2473,"children":2474},{"class":1028,"line":173},[2475,2479,2483,2487,2492,2496,2501,2505,2509],{"type":993,"tag":1026,"props":2476,"children":2477},{"style":1115},[2478],{"type":998,"value":1118},{"type":993,"tag":1026,"props":2480,"children":2481},{"style":1063},[2482],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2484,"children":2485},{"style":1057},[2486],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2488,"children":2489},{"style":1126},[2490],{"type":998,"value":2491},"\"Meeting: ",{"type":993,"tag":1026,"props":2493,"children":2494},{"style":1115},[2495],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2497,"children":2498},{"style":1063},[2499],{"type":998,"value":2500},"meeting_time",{"type":993,"tag":1026,"props":2502,"children":2503},{"style":1115},[2504],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2506,"children":2507},{"style":1126},[2508],{"type":998,"value":1228},{"type":993,"tag":1026,"props":2510,"children":2511},{"style":1063},[2512],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2514,"children":2515},{"class":1028,"line":182},[2516],{"type":993,"tag":1026,"props":2517,"children":2518},{"emptyLinePlaceholder":13},[2519],{"type":998,"value":1043},{"type":993,"tag":1026,"props":2521,"children":2522},{"class":1028,"line":191},[2523],{"type":993,"tag":1026,"props":2524,"children":2525},{"style":1032},[2526],{"type":998,"value":2527},"# Date arithmetic\n",{"type":993,"tag":1026,"props":2529,"children":2530},{"class":1028,"line":201},[2531,2536,2540,2545,2549,2554,2559,2563,2567],{"type":993,"tag":1026,"props":2532,"children":2533},{"style":1063},[2534],{"type":998,"value":2535},"one_week_later ",{"type":993,"tag":1026,"props":2537,"children":2538},{"style":1057},[2539],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2541,"children":2542},{"style":1063},[2543],{"type":998,"value":2544}," today ",{"type":993,"tag":1026,"props":2546,"children":2547},{"style":1057},[2548],{"type":998,"value":1261},{"type":993,"tag":1026,"props":2550,"children":2551},{"style":1063},[2552],{"type":998,"value":2553}," timedelta(",{"type":993,"tag":1026,"props":2555,"children":2556},{"style":1269},[2557],{"type":998,"value":2558},"weeks",{"type":993,"tag":1026,"props":2560,"children":2561},{"style":1057},[2562],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2564,"children":2565},{"style":1115},[2566],{"type":998,"value":1281},{"type":993,"tag":1026,"props":2568,"children":2569},{"style":1063},[2570],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2572,"children":2573},{"class":1028,"line":210},[2574,2579,2583,2587,2592,2596,2600,2604,2608],{"type":993,"tag":1026,"props":2575,"children":2576},{"style":1063},[2577],{"type":998,"value":2578},"thirty_days_ago ",{"type":993,"tag":1026,"props":2580,"children":2581},{"style":1057},[2582],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2584,"children":2585},{"style":1063},[2586],{"type":998,"value":2544},{"type":993,"tag":1026,"props":2588,"children":2589},{"style":1057},[2590],{"type":998,"value":2591},"-",{"type":993,"tag":1026,"props":2593,"children":2594},{"style":1063},[2595],{"type":998,"value":2553},{"type":993,"tag":1026,"props":2597,"children":2598},{"style":1269},[2599],{"type":998,"value":1272},{"type":993,"tag":1026,"props":2601,"children":2602},{"style":1057},[2603],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2605,"children":2606},{"style":1115},[2607],{"type":998,"value":2420},{"type":993,"tag":1026,"props":2609,"children":2610},{"style":1063},[2611],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2613,"children":2614},{"class":1028,"line":219},[2615,2619,2623,2627,2632,2636,2641,2645,2649],{"type":993,"tag":1026,"props":2616,"children":2617},{"style":1115},[2618],{"type":998,"value":1118},{"type":993,"tag":1026,"props":2620,"children":2621},{"style":1063},[2622],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2624,"children":2625},{"style":1057},[2626],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2628,"children":2629},{"style":1126},[2630],{"type":998,"value":2631},"\"One week from today: ",{"type":993,"tag":1026,"props":2633,"children":2634},{"style":1115},[2635],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2637,"children":2638},{"style":1063},[2639],{"type":998,"value":2640},"one_week_later",{"type":993,"tag":1026,"props":2642,"children":2643},{"style":1115},[2644],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2646,"children":2647},{"style":1126},[2648],{"type":998,"value":1228},{"type":993,"tag":1026,"props":2650,"children":2651},{"style":1063},[2652],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2654,"children":2655},{"class":1028,"line":228},[2656,2660,2664,2668,2673,2677,2682,2686,2690],{"type":993,"tag":1026,"props":2657,"children":2658},{"style":1115},[2659],{"type":998,"value":1118},{"type":993,"tag":1026,"props":2661,"children":2662},{"style":1063},[2663],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2665,"children":2666},{"style":1057},[2667],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2669,"children":2670},{"style":1126},[2671],{"type":998,"value":2672},"\"30 days ago: ",{"type":993,"tag":1026,"props":2674,"children":2675},{"style":1115},[2676],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2678,"children":2679},{"style":1063},[2680],{"type":998,"value":2681},"thirty_days_ago",{"type":993,"tag":1026,"props":2683,"children":2684},{"style":1115},[2685],{"type":998,"value":1223},{"type":993,"tag":1026,"props":2687,"children":2688},{"style":1126},[2689],{"type":998,"value":1228},{"type":993,"tag":1026,"props":2691,"children":2692},{"style":1063},[2693],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2695,"children":2696},{"class":1028,"line":238},[2697],{"type":993,"tag":1026,"props":2698,"children":2699},{"emptyLinePlaceholder":13},[2700],{"type":998,"value":1043},{"type":993,"tag":1026,"props":2702,"children":2703},{"class":1028,"line":247},[2704],{"type":993,"tag":1026,"props":2705,"children":2706},{"style":1032},[2707],{"type":998,"value":2708},"# Formatting dates\n",{"type":993,"tag":1026,"props":2710,"children":2711},{"class":1028,"line":256},[2712,2716,2720,2724,2728,2733,2738],{"type":993,"tag":1026,"props":2713,"children":2714},{"style":1115},[2715],{"type":998,"value":1118},{"type":993,"tag":1026,"props":2717,"children":2718},{"style":1063},[2719],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2721,"children":2722},{"style":1057},[2723],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2725,"children":2726},{"style":1126},[2727],{"type":998,"value":1228},{"type":993,"tag":1026,"props":2729,"children":2730},{"style":1115},[2731],{"type":998,"value":2732},"\\n",{"type":993,"tag":1026,"props":2734,"children":2735},{"style":1126},[2736],{"type":998,"value":2737},"Date Formatting Examples:\"",{"type":993,"tag":1026,"props":2739,"children":2740},{"style":1063},[2741],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2743,"children":2744},{"class":1028,"line":265},[2745,2750,2754],{"type":993,"tag":1026,"props":2746,"children":2747},{"style":1063},[2748],{"type":998,"value":2749},"formats ",{"type":993,"tag":1026,"props":2751,"children":2752},{"style":1057},[2753],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2755,"children":2756},{"style":1063},[2757],{"type":998,"value":2758}," [\n",{"type":993,"tag":1026,"props":2760,"children":2761},{"class":1028,"line":274},[2762,2767,2772,2776,2780,2784,2789],{"type":993,"tag":1026,"props":2763,"children":2764},{"style":1063},[2765],{"type":998,"value":2766},"    (",{"type":993,"tag":1026,"props":2768,"children":2769},{"style":1126},[2770],{"type":998,"value":2771},"\"%Y-%m-",{"type":993,"tag":1026,"props":2773,"children":2774},{"style":1115},[2775],{"type":998,"value":1208},{"type":993,"tag":1026,"props":2777,"children":2778},{"style":1126},[2779],{"type":998,"value":1228},{"type":993,"tag":1026,"props":2781,"children":2782},{"style":1063},[2783],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2785,"children":2786},{"style":1126},[2787],{"type":998,"value":2788},"\"Standard format\"",{"type":993,"tag":1026,"props":2790,"children":2791},{"style":1063},[2792],{"type":998,"value":2793},"),\n",{"type":993,"tag":1026,"props":2795,"children":2796},{"class":1028,"line":284},[2797,2801,2806,2810,2815,2819,2824],{"type":993,"tag":1026,"props":2798,"children":2799},{"style":1063},[2800],{"type":998,"value":2766},{"type":993,"tag":1026,"props":2802,"children":2803},{"style":1126},[2804],{"type":998,"value":2805},"\"%B ",{"type":993,"tag":1026,"props":2807,"children":2808},{"style":1115},[2809],{"type":998,"value":1208},{"type":993,"tag":1026,"props":2811,"children":2812},{"style":1126},[2813],{"type":998,"value":2814},", %Y\"",{"type":993,"tag":1026,"props":2816,"children":2817},{"style":1063},[2818],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2820,"children":2821},{"style":1126},[2822],{"type":998,"value":2823},"\"Long format\"",{"type":993,"tag":1026,"props":2825,"children":2826},{"style":1063},[2827],{"type":998,"value":2793},{"type":993,"tag":1026,"props":2829,"children":2830},{"class":1028,"line":293},[2831,2835,2840,2844,2849,2853,2858],{"type":993,"tag":1026,"props":2832,"children":2833},{"style":1063},[2834],{"type":998,"value":2766},{"type":993,"tag":1026,"props":2836,"children":2837},{"style":1126},[2838],{"type":998,"value":2839},"\"%m/",{"type":993,"tag":1026,"props":2841,"children":2842},{"style":1115},[2843],{"type":998,"value":1208},{"type":993,"tag":1026,"props":2845,"children":2846},{"style":1126},[2847],{"type":998,"value":2848},"/%Y\"",{"type":993,"tag":1026,"props":2850,"children":2851},{"style":1063},[2852],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2854,"children":2855},{"style":1126},[2856],{"type":998,"value":2857},"\"US format\"",{"type":993,"tag":1026,"props":2859,"children":2860},{"style":1063},[2861],{"type":998,"value":2793},{"type":993,"tag":1026,"props":2863,"children":2864},{"class":1028,"line":302},[2865,2869,2874,2878,2883],{"type":993,"tag":1026,"props":2866,"children":2867},{"style":1063},[2868],{"type":998,"value":2766},{"type":993,"tag":1026,"props":2870,"children":2871},{"style":1126},[2872],{"type":998,"value":2873},"\"%A\"",{"type":993,"tag":1026,"props":2875,"children":2876},{"style":1063},[2877],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2879,"children":2880},{"style":1126},[2881],{"type":998,"value":2882},"\"Day of week\"",{"type":993,"tag":1026,"props":2884,"children":2885},{"style":1063},[2886],{"type":998,"value":2793},{"type":993,"tag":1026,"props":2888,"children":2889},{"class":1028,"line":311},[2890,2894,2899,2903,2908],{"type":993,"tag":1026,"props":2891,"children":2892},{"style":1063},[2893],{"type":998,"value":2766},{"type":993,"tag":1026,"props":2895,"children":2896},{"style":1126},[2897],{"type":998,"value":2898},"\"%I:%M %p\"",{"type":993,"tag":1026,"props":2900,"children":2901},{"style":1063},[2902],{"type":998,"value":1385},{"type":993,"tag":1026,"props":2904,"children":2905},{"style":1126},[2906],{"type":998,"value":2907},"\"12-hour time\"",{"type":993,"tag":1026,"props":2909,"children":2910},{"style":1063},[2911],{"type":998,"value":1134},{"type":993,"tag":1026,"props":2913,"children":2914},{"class":1028,"line":320},[2915],{"type":993,"tag":1026,"props":2916,"children":2917},{"style":1063},[2918],{"type":998,"value":1457},{"type":993,"tag":1026,"props":2920,"children":2921},{"class":1028,"line":329},[2922],{"type":993,"tag":1026,"props":2923,"children":2924},{"emptyLinePlaceholder":13},[2925],{"type":998,"value":1043},{"type":993,"tag":1026,"props":2927,"children":2928},{"class":1028,"line":338},[2929,2934,2939,2944],{"type":993,"tag":1026,"props":2930,"children":2931},{"style":1057},[2932],{"type":998,"value":2933},"for",{"type":993,"tag":1026,"props":2935,"children":2936},{"style":1063},[2937],{"type":998,"value":2938}," fmt, description ",{"type":993,"tag":1026,"props":2940,"children":2941},{"style":1057},[2942],{"type":998,"value":2943},"in",{"type":993,"tag":1026,"props":2945,"children":2946},{"style":1063},[2947],{"type":998,"value":2948}," formats:\n",{"type":993,"tag":1026,"props":2950,"children":2951},{"class":1028,"line":347},[2952,2957,2961],{"type":993,"tag":1026,"props":2953,"children":2954},{"style":1063},[2955],{"type":998,"value":2956},"    formatted ",{"type":993,"tag":1026,"props":2958,"children":2959},{"style":1057},[2960],{"type":998,"value":1162},{"type":993,"tag":1026,"props":2962,"children":2963},{"style":1063},[2964],{"type":998,"value":2965}," now.strftime(fmt)\n",{"type":993,"tag":1026,"props":2967,"children":2968},{"class":1028,"line":356},[2969,2974,2978,2982,2987,2991,2996,3000,3004,3008,3013,3017,3021],{"type":993,"tag":1026,"props":2970,"children":2971},{"style":1115},[2972],{"type":998,"value":2973},"    print",{"type":993,"tag":1026,"props":2975,"children":2976},{"style":1063},[2977],{"type":998,"value":1123},{"type":993,"tag":1026,"props":2979,"children":2980},{"style":1057},[2981],{"type":998,"value":1183},{"type":993,"tag":1026,"props":2983,"children":2984},{"style":1126},[2985],{"type":998,"value":2986},"\"  ",{"type":993,"tag":1026,"props":2988,"children":2989},{"style":1115},[2990],{"type":998,"value":1193},{"type":993,"tag":1026,"props":2992,"children":2993},{"style":1063},[2994],{"type":998,"value":2995},"description",{"type":993,"tag":1026,"props":2997,"children":2998},{"style":1115},[2999],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3001,"children":3002},{"style":1126},[3003],{"type":998,"value":1903},{"type":993,"tag":1026,"props":3005,"children":3006},{"style":1115},[3007],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3009,"children":3010},{"style":1063},[3011],{"type":998,"value":3012},"formatted",{"type":993,"tag":1026,"props":3014,"children":3015},{"style":1115},[3016],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3018,"children":3019},{"style":1126},[3020],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3022,"children":3023},{"style":1063},[3024],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3026,"children":3027},{"class":1028,"line":365},[3028],{"type":993,"tag":1026,"props":3029,"children":3030},{"emptyLinePlaceholder":13},[3031],{"type":998,"value":1043},{"type":993,"tag":1026,"props":3033,"children":3034},{"class":1028,"line":374},[3035],{"type":993,"tag":1026,"props":3036,"children":3037},{"style":1032},[3038],{"type":998,"value":3039},"# Time calculations\n",{"type":993,"tag":1026,"props":3041,"children":3042},{"class":1028,"line":384},[3043,3048,3052,3057,3061],{"type":993,"tag":1026,"props":3044,"children":3045},{"style":1063},[3046],{"type":998,"value":3047},"age_days ",{"type":993,"tag":1026,"props":3049,"children":3050},{"style":1057},[3051],{"type":998,"value":1162},{"type":993,"tag":1026,"props":3053,"children":3054},{"style":1063},[3055],{"type":998,"value":3056}," (today ",{"type":993,"tag":1026,"props":3058,"children":3059},{"style":1057},[3060],{"type":998,"value":2591},{"type":993,"tag":1026,"props":3062,"children":3063},{"style":1063},[3064],{"type":998,"value":3065}," my_birthday).days\n",{"type":993,"tag":1026,"props":3067,"children":3068},{"class":1028,"line":393},[3069,3074,3078,3083,3088],{"type":993,"tag":1026,"props":3070,"children":3071},{"style":1063},[3072],{"type":998,"value":3073},"age_years ",{"type":993,"tag":1026,"props":3075,"children":3076},{"style":1057},[3077],{"type":998,"value":1162},{"type":993,"tag":1026,"props":3079,"children":3080},{"style":1063},[3081],{"type":998,"value":3082}," age_days ",{"type":993,"tag":1026,"props":3084,"children":3085},{"style":1057},[3086],{"type":998,"value":3087},"//",{"type":993,"tag":1026,"props":3089,"children":3090},{"style":1115},[3091],{"type":998,"value":3092}," 365\n",{"type":993,"tag":1026,"props":3094,"children":3095},{"class":1028,"line":402},[3096,3100,3104,3108,3112,3116,3121],{"type":993,"tag":1026,"props":3097,"children":3098},{"style":1115},[3099],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3101,"children":3102},{"style":1063},[3103],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3105,"children":3106},{"style":1057},[3107],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3109,"children":3110},{"style":1126},[3111],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3113,"children":3114},{"style":1115},[3115],{"type":998,"value":2732},{"type":993,"tag":1026,"props":3117,"children":3118},{"style":1126},[3119],{"type":998,"value":3120},"Age calculation:\"",{"type":993,"tag":1026,"props":3122,"children":3123},{"style":1063},[3124],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3126,"children":3127},{"class":1028,"line":411},[3128,3132,3136,3140,3145,3149,3154,3158,3162],{"type":993,"tag":1026,"props":3129,"children":3130},{"style":1115},[3131],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3133,"children":3134},{"style":1063},[3135],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3137,"children":3138},{"style":1057},[3139],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3141,"children":3142},{"style":1126},[3143],{"type":998,"value":3144},"\"Days since birthday: ",{"type":993,"tag":1026,"props":3146,"children":3147},{"style":1115},[3148],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3150,"children":3151},{"style":1063},[3152],{"type":998,"value":3153},"age_days",{"type":993,"tag":1026,"props":3155,"children":3156},{"style":1115},[3157],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3159,"children":3160},{"style":1126},[3161],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3163,"children":3164},{"style":1063},[3165],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3167,"children":3168},{"class":1028,"line":420},[3169,3173,3177,3181,3186,3190,3195,3199,3204],{"type":993,"tag":1026,"props":3170,"children":3171},{"style":1115},[3172],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3174,"children":3175},{"style":1063},[3176],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3178,"children":3179},{"style":1057},[3180],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3182,"children":3183},{"style":1126},[3184],{"type":998,"value":3185},"\"Approximate age: ",{"type":993,"tag":1026,"props":3187,"children":3188},{"style":1115},[3189],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3191,"children":3192},{"style":1063},[3193],{"type":998,"value":3194},"age_years",{"type":993,"tag":1026,"props":3196,"children":3197},{"style":1115},[3198],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3200,"children":3201},{"style":1126},[3202],{"type":998,"value":3203}," years\"",{"type":993,"tag":1026,"props":3205,"children":3206},{"style":1063},[3207],{"type":998,"value":1134},{"type":993,"tag":2079,"props":3209,"children":3211},{"id":3210},"random-numbers-and-choices",[3212],{"type":998,"value":3213},"🎲 Random Numbers and Choices",{"type":993,"tag":1001,"props":3215,"children":3216},{},[3217],{"type":998,"value":3218},"The random module helps you generate random numbers, make random selections, and add unpredictability to your programs.",{"type":993,"tag":1012,"props":3220,"children":3221},{},[3222],{"type":993,"tag":1016,"props":3223,"children":3225},{"className":1018,"code":3224,"language":6,"meta":8,"style":8},"# 🎲 Random Module Examples\n\nimport random\n\nprint(\"🎲 Random Module Showcase:\")\n\n# Random numbers\nprint(\"Random numbers:\")\nprint(f\"  Random float (0-1): {random.random():.3f}\")\nprint(f\"  Random integer (1-10): {random.randint(1, 10)}\")\nprint(f\"  Random float (10-20): {random.uniform(10, 20):.2f}\")\n\n# Random choices\nfruits = ['apple', 'banana', 'orange', 'grape', 'kiwi']\ncolors = ['red', 'blue', 'green', 'yellow', 'purple']\n\nprint(f\"\\nRandom selections:\")\nprint(f\"  Random fruit: {random.choice(fruits)}\")\nprint(f\"  Random color: {random.choice(colors)}\")\n\n# Multiple random items\nrandom_fruits = random.sample(fruits, 3)  # 3 unique items\nprint(f\"  3 random fruits: {random_fruits}\")\n\n# Shuffling lists\ndeck = ['A', 'K', 'Q', 'J', '10', '9', '8', '7']\nprint(f\"  Original deck: {deck}\")\nrandom.shuffle(deck)\nprint(f\"  Shuffled deck: {deck}\")\n\n# Random with weights (some items more likely)\nweighted_choices = random.choices(\n    population=['common', 'rare', 'legendary'],\n    weights=[70, 25, 5],  # 70% common, 25% rare, 5% legendary\n    k=10  # Generate 10 items\n)\nprint(f\"\\nWeighted random (10 items): {weighted_choices}\")\n\n# Simple password generator\nletters = 'abcdefghijklmnopqrstuvwxyz'\ndigits = '0123456789'\nall_chars = letters + letters.upper() + digits\n\npassword = ''.join(random.choice(all_chars) for _ in range(8))\nprint(f\"Random password: {password}\")\n",[3226],{"type":993,"tag":1022,"props":3227,"children":3228},{"__ignoreMap":8},[3229,3237,3244,3255,3262,3282,3289,3297,3317,3362,3420,3482,3489,3497,3558,3613,3620,3652,3693,3734,3741,3749,3779,3820,3827,3835,3923,3964,3972,4012,4019,4027,4044,4089,4137,4158,4165,4214,4221,4229,4246,4263,4298,4305,4359],{"type":993,"tag":1026,"props":3230,"children":3231},{"class":1028,"line":12},[3232],{"type":993,"tag":1026,"props":3233,"children":3234},{"style":1032},[3235],{"type":998,"value":3236},"# 🎲 Random Module Examples\n",{"type":993,"tag":1026,"props":3238,"children":3239},{"class":1028,"line":27},[3240],{"type":993,"tag":1026,"props":3241,"children":3242},{"emptyLinePlaceholder":13},[3243],{"type":998,"value":1043},{"type":993,"tag":1026,"props":3245,"children":3246},{"class":1028,"line":36},[3247,3251],{"type":993,"tag":1026,"props":3248,"children":3249},{"style":1057},[3250],{"type":998,"value":1060},{"type":993,"tag":1026,"props":3252,"children":3253},{"style":1063},[3254],{"type":998,"value":1078},{"type":993,"tag":1026,"props":3256,"children":3257},{"class":1028,"line":45},[3258],{"type":993,"tag":1026,"props":3259,"children":3260},{"emptyLinePlaceholder":13},[3261],{"type":998,"value":1043},{"type":993,"tag":1026,"props":3263,"children":3264},{"class":1028,"line":54},[3265,3269,3273,3278],{"type":993,"tag":1026,"props":3266,"children":3267},{"style":1115},[3268],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3270,"children":3271},{"style":1063},[3272],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3274,"children":3275},{"style":1126},[3276],{"type":998,"value":3277},"\"🎲 Random Module Showcase:\"",{"type":993,"tag":1026,"props":3279,"children":3280},{"style":1063},[3281],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3283,"children":3284},{"class":1028,"line":63},[3285],{"type":993,"tag":1026,"props":3286,"children":3287},{"emptyLinePlaceholder":13},[3288],{"type":998,"value":1043},{"type":993,"tag":1026,"props":3290,"children":3291},{"class":1028,"line":72},[3292],{"type":993,"tag":1026,"props":3293,"children":3294},{"style":1032},[3295],{"type":998,"value":3296},"# Random numbers\n",{"type":993,"tag":1026,"props":3298,"children":3299},{"class":1028,"line":81},[3300,3304,3308,3313],{"type":993,"tag":1026,"props":3301,"children":3302},{"style":1115},[3303],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3305,"children":3306},{"style":1063},[3307],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3309,"children":3310},{"style":1126},[3311],{"type":998,"value":3312},"\"Random numbers:\"",{"type":993,"tag":1026,"props":3314,"children":3315},{"style":1063},[3316],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3318,"children":3319},{"class":1028,"line":91},[3320,3324,3328,3332,3337,3341,3346,3350,3354,3358],{"type":993,"tag":1026,"props":3321,"children":3322},{"style":1115},[3323],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3325,"children":3326},{"style":1063},[3327],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3329,"children":3330},{"style":1057},[3331],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3333,"children":3334},{"style":1126},[3335],{"type":998,"value":3336},"\"  Random float (0-1): ",{"type":993,"tag":1026,"props":3338,"children":3339},{"style":1115},[3340],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3342,"children":3343},{"style":1063},[3344],{"type":998,"value":3345},"random.random()",{"type":993,"tag":1026,"props":3347,"children":3348},{"style":1057},[3349],{"type":998,"value":1674},{"type":993,"tag":1026,"props":3351,"children":3352},{"style":1115},[3353],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3355,"children":3356},{"style":1126},[3357],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3359,"children":3360},{"style":1063},[3361],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3363,"children":3364},{"class":1028,"line":100},[3365,3369,3373,3377,3382,3386,3391,3395,3399,3404,3408,3412,3416],{"type":993,"tag":1026,"props":3366,"children":3367},{"style":1115},[3368],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3370,"children":3371},{"style":1063},[3372],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3374,"children":3375},{"style":1057},[3376],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3378,"children":3379},{"style":1126},[3380],{"type":998,"value":3381},"\"  Random integer (1-10): ",{"type":993,"tag":1026,"props":3383,"children":3384},{"style":1115},[3385],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3387,"children":3388},{"style":1063},[3389],{"type":998,"value":3390},"random.randint(",{"type":993,"tag":1026,"props":3392,"children":3393},{"style":1115},[3394],{"type":998,"value":1281},{"type":993,"tag":1026,"props":3396,"children":3397},{"style":1063},[3398],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3400,"children":3401},{"style":1115},[3402],{"type":998,"value":3403},"10",{"type":993,"tag":1026,"props":3405,"children":3406},{"style":1063},[3407],{"type":998,"value":1218},{"type":993,"tag":1026,"props":3409,"children":3410},{"style":1115},[3411],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3413,"children":3414},{"style":1126},[3415],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3417,"children":3418},{"style":1063},[3419],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3421,"children":3422},{"class":1028,"line":109},[3423,3427,3431,3435,3440,3444,3449,3453,3457,3461,3465,3470,3474,3478],{"type":993,"tag":1026,"props":3424,"children":3425},{"style":1115},[3426],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3428,"children":3429},{"style":1063},[3430],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3432,"children":3433},{"style":1057},[3434],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3436,"children":3437},{"style":1126},[3438],{"type":998,"value":3439},"\"  Random float (10-20): ",{"type":993,"tag":1026,"props":3441,"children":3442},{"style":1115},[3443],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3445,"children":3446},{"style":1063},[3447],{"type":998,"value":3448},"random.uniform(",{"type":993,"tag":1026,"props":3450,"children":3451},{"style":1115},[3452],{"type":998,"value":3403},{"type":993,"tag":1026,"props":3454,"children":3455},{"style":1063},[3456],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3458,"children":3459},{"style":1115},[3460],{"type":998,"value":2402},{"type":993,"tag":1026,"props":3462,"children":3463},{"style":1063},[3464],{"type":998,"value":1218},{"type":993,"tag":1026,"props":3466,"children":3467},{"style":1057},[3468],{"type":998,"value":3469},":.2f",{"type":993,"tag":1026,"props":3471,"children":3472},{"style":1115},[3473],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3475,"children":3476},{"style":1126},[3477],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3479,"children":3480},{"style":1063},[3481],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3483,"children":3484},{"class":1028,"line":118},[3485],{"type":993,"tag":1026,"props":3486,"children":3487},{"emptyLinePlaceholder":13},[3488],{"type":998,"value":1043},{"type":993,"tag":1026,"props":3490,"children":3491},{"class":1028,"line":127},[3492],{"type":993,"tag":1026,"props":3493,"children":3494},{"style":1032},[3495],{"type":998,"value":3496},"# Random choices\n",{"type":993,"tag":1026,"props":3498,"children":3499},{"class":1028,"line":136},[3500,3505,3509,3513,3518,3522,3527,3531,3536,3540,3545,3549,3554],{"type":993,"tag":1026,"props":3501,"children":3502},{"style":1063},[3503],{"type":998,"value":3504},"fruits ",{"type":993,"tag":1026,"props":3506,"children":3507},{"style":1057},[3508],{"type":998,"value":1162},{"type":993,"tag":1026,"props":3510,"children":3511},{"style":1063},[3512],{"type":998,"value":1411},{"type":993,"tag":1026,"props":3514,"children":3515},{"style":1126},[3516],{"type":998,"value":3517},"'apple'",{"type":993,"tag":1026,"props":3519,"children":3520},{"style":1063},[3521],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3523,"children":3524},{"style":1126},[3525],{"type":998,"value":3526},"'banana'",{"type":993,"tag":1026,"props":3528,"children":3529},{"style":1063},[3530],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3532,"children":3533},{"style":1126},[3534],{"type":998,"value":3535},"'orange'",{"type":993,"tag":1026,"props":3537,"children":3538},{"style":1063},[3539],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3541,"children":3542},{"style":1126},[3543],{"type":998,"value":3544},"'grape'",{"type":993,"tag":1026,"props":3546,"children":3547},{"style":1063},[3548],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3550,"children":3551},{"style":1126},[3552],{"type":998,"value":3553},"'kiwi'",{"type":993,"tag":1026,"props":3555,"children":3556},{"style":1063},[3557],{"type":998,"value":1457},{"type":993,"tag":1026,"props":3559,"children":3560},{"class":1028,"line":146},[3561,3565,3569,3573,3577,3581,3585,3589,3593,3597,3601,3605,3609],{"type":993,"tag":1026,"props":3562,"children":3563},{"style":1063},[3564],{"type":998,"value":1402},{"type":993,"tag":1026,"props":3566,"children":3567},{"style":1057},[3568],{"type":998,"value":1162},{"type":993,"tag":1026,"props":3570,"children":3571},{"style":1063},[3572],{"type":998,"value":1411},{"type":993,"tag":1026,"props":3574,"children":3575},{"style":1126},[3576],{"type":998,"value":1416},{"type":993,"tag":1026,"props":3578,"children":3579},{"style":1063},[3580],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3582,"children":3583},{"style":1126},[3584],{"type":998,"value":1425},{"type":993,"tag":1026,"props":3586,"children":3587},{"style":1063},[3588],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3590,"children":3591},{"style":1126},[3592],{"type":998,"value":1434},{"type":993,"tag":1026,"props":3594,"children":3595},{"style":1063},[3596],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3598,"children":3599},{"style":1126},[3600],{"type":998,"value":1443},{"type":993,"tag":1026,"props":3602,"children":3603},{"style":1063},[3604],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3606,"children":3607},{"style":1126},[3608],{"type":998,"value":1452},{"type":993,"tag":1026,"props":3610,"children":3611},{"style":1063},[3612],{"type":998,"value":1457},{"type":993,"tag":1026,"props":3614,"children":3615},{"class":1028,"line":155},[3616],{"type":993,"tag":1026,"props":3617,"children":3618},{"emptyLinePlaceholder":13},[3619],{"type":998,"value":1043},{"type":993,"tag":1026,"props":3621,"children":3622},{"class":1028,"line":164},[3623,3627,3631,3635,3639,3643,3648],{"type":993,"tag":1026,"props":3624,"children":3625},{"style":1115},[3626],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3628,"children":3629},{"style":1063},[3630],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3632,"children":3633},{"style":1057},[3634],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3636,"children":3637},{"style":1126},[3638],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3640,"children":3641},{"style":1115},[3642],{"type":998,"value":2732},{"type":993,"tag":1026,"props":3644,"children":3645},{"style":1126},[3646],{"type":998,"value":3647},"Random selections:\"",{"type":993,"tag":1026,"props":3649,"children":3650},{"style":1063},[3651],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3653,"children":3654},{"class":1028,"line":173},[3655,3659,3663,3667,3672,3676,3681,3685,3689],{"type":993,"tag":1026,"props":3656,"children":3657},{"style":1115},[3658],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3660,"children":3661},{"style":1063},[3662],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3664,"children":3665},{"style":1057},[3666],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3668,"children":3669},{"style":1126},[3670],{"type":998,"value":3671},"\"  Random fruit: ",{"type":993,"tag":1026,"props":3673,"children":3674},{"style":1115},[3675],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3677,"children":3678},{"style":1063},[3679],{"type":998,"value":3680},"random.choice(fruits)",{"type":993,"tag":1026,"props":3682,"children":3683},{"style":1115},[3684],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3686,"children":3687},{"style":1126},[3688],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3690,"children":3691},{"style":1063},[3692],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3694,"children":3695},{"class":1028,"line":182},[3696,3700,3704,3708,3713,3717,3722,3726,3730],{"type":993,"tag":1026,"props":3697,"children":3698},{"style":1115},[3699],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3701,"children":3702},{"style":1063},[3703],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3705,"children":3706},{"style":1057},[3707],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3709,"children":3710},{"style":1126},[3711],{"type":998,"value":3712},"\"  Random color: ",{"type":993,"tag":1026,"props":3714,"children":3715},{"style":1115},[3716],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3718,"children":3719},{"style":1063},[3720],{"type":998,"value":3721},"random.choice(colors)",{"type":993,"tag":1026,"props":3723,"children":3724},{"style":1115},[3725],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3727,"children":3728},{"style":1126},[3729],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3731,"children":3732},{"style":1063},[3733],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3735,"children":3736},{"class":1028,"line":191},[3737],{"type":993,"tag":1026,"props":3738,"children":3739},{"emptyLinePlaceholder":13},[3740],{"type":998,"value":1043},{"type":993,"tag":1026,"props":3742,"children":3743},{"class":1028,"line":201},[3744],{"type":993,"tag":1026,"props":3745,"children":3746},{"style":1032},[3747],{"type":998,"value":3748},"# Multiple random items\n",{"type":993,"tag":1026,"props":3750,"children":3751},{"class":1028,"line":210},[3752,3757,3761,3766,3770,3774],{"type":993,"tag":1026,"props":3753,"children":3754},{"style":1063},[3755],{"type":998,"value":3756},"random_fruits ",{"type":993,"tag":1026,"props":3758,"children":3759},{"style":1057},[3760],{"type":998,"value":1162},{"type":993,"tag":1026,"props":3762,"children":3763},{"style":1063},[3764],{"type":998,"value":3765}," random.sample(fruits, ",{"type":993,"tag":1026,"props":3767,"children":3768},{"style":1115},[3769],{"type":998,"value":2393},{"type":993,"tag":1026,"props":3771,"children":3772},{"style":1063},[3773],{"type":998,"value":2425},{"type":993,"tag":1026,"props":3775,"children":3776},{"style":1032},[3777],{"type":998,"value":3778},"# 3 unique items\n",{"type":993,"tag":1026,"props":3780,"children":3781},{"class":1028,"line":219},[3782,3786,3790,3794,3799,3803,3808,3812,3816],{"type":993,"tag":1026,"props":3783,"children":3784},{"style":1115},[3785],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3787,"children":3788},{"style":1063},[3789],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3791,"children":3792},{"style":1057},[3793],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3795,"children":3796},{"style":1126},[3797],{"type":998,"value":3798},"\"  3 random fruits: ",{"type":993,"tag":1026,"props":3800,"children":3801},{"style":1115},[3802],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3804,"children":3805},{"style":1063},[3806],{"type":998,"value":3807},"random_fruits",{"type":993,"tag":1026,"props":3809,"children":3810},{"style":1115},[3811],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3813,"children":3814},{"style":1126},[3815],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3817,"children":3818},{"style":1063},[3819],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3821,"children":3822},{"class":1028,"line":228},[3823],{"type":993,"tag":1026,"props":3824,"children":3825},{"emptyLinePlaceholder":13},[3826],{"type":998,"value":1043},{"type":993,"tag":1026,"props":3828,"children":3829},{"class":1028,"line":238},[3830],{"type":993,"tag":1026,"props":3831,"children":3832},{"style":1032},[3833],{"type":998,"value":3834},"# Shuffling lists\n",{"type":993,"tag":1026,"props":3836,"children":3837},{"class":1028,"line":247},[3838,3843,3847,3851,3856,3860,3865,3869,3874,3878,3883,3887,3892,3896,3901,3905,3910,3914,3919],{"type":993,"tag":1026,"props":3839,"children":3840},{"style":1063},[3841],{"type":998,"value":3842},"deck ",{"type":993,"tag":1026,"props":3844,"children":3845},{"style":1057},[3846],{"type":998,"value":1162},{"type":993,"tag":1026,"props":3848,"children":3849},{"style":1063},[3850],{"type":998,"value":1411},{"type":993,"tag":1026,"props":3852,"children":3853},{"style":1126},[3854],{"type":998,"value":3855},"'A'",{"type":993,"tag":1026,"props":3857,"children":3858},{"style":1063},[3859],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3861,"children":3862},{"style":1126},[3863],{"type":998,"value":3864},"'K'",{"type":993,"tag":1026,"props":3866,"children":3867},{"style":1063},[3868],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3870,"children":3871},{"style":1126},[3872],{"type":998,"value":3873},"'Q'",{"type":993,"tag":1026,"props":3875,"children":3876},{"style":1063},[3877],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3879,"children":3880},{"style":1126},[3881],{"type":998,"value":3882},"'J'",{"type":993,"tag":1026,"props":3884,"children":3885},{"style":1063},[3886],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3888,"children":3889},{"style":1126},[3890],{"type":998,"value":3891},"'10'",{"type":993,"tag":1026,"props":3893,"children":3894},{"style":1063},[3895],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3897,"children":3898},{"style":1126},[3899],{"type":998,"value":3900},"'9'",{"type":993,"tag":1026,"props":3902,"children":3903},{"style":1063},[3904],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3906,"children":3907},{"style":1126},[3908],{"type":998,"value":3909},"'8'",{"type":993,"tag":1026,"props":3911,"children":3912},{"style":1063},[3913],{"type":998,"value":1385},{"type":993,"tag":1026,"props":3915,"children":3916},{"style":1126},[3917],{"type":998,"value":3918},"'7'",{"type":993,"tag":1026,"props":3920,"children":3921},{"style":1063},[3922],{"type":998,"value":1457},{"type":993,"tag":1026,"props":3924,"children":3925},{"class":1028,"line":256},[3926,3930,3934,3938,3943,3947,3952,3956,3960],{"type":993,"tag":1026,"props":3927,"children":3928},{"style":1115},[3929],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3931,"children":3932},{"style":1063},[3933],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3935,"children":3936},{"style":1057},[3937],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3939,"children":3940},{"style":1126},[3941],{"type":998,"value":3942},"\"  Original deck: ",{"type":993,"tag":1026,"props":3944,"children":3945},{"style":1115},[3946],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3948,"children":3949},{"style":1063},[3950],{"type":998,"value":3951},"deck",{"type":993,"tag":1026,"props":3953,"children":3954},{"style":1115},[3955],{"type":998,"value":1223},{"type":993,"tag":1026,"props":3957,"children":3958},{"style":1126},[3959],{"type":998,"value":1228},{"type":993,"tag":1026,"props":3961,"children":3962},{"style":1063},[3963],{"type":998,"value":1134},{"type":993,"tag":1026,"props":3965,"children":3966},{"class":1028,"line":265},[3967],{"type":993,"tag":1026,"props":3968,"children":3969},{"style":1063},[3970],{"type":998,"value":3971},"random.shuffle(deck)\n",{"type":993,"tag":1026,"props":3973,"children":3974},{"class":1028,"line":274},[3975,3979,3983,3987,3992,3996,4000,4004,4008],{"type":993,"tag":1026,"props":3976,"children":3977},{"style":1115},[3978],{"type":998,"value":1118},{"type":993,"tag":1026,"props":3980,"children":3981},{"style":1063},[3982],{"type":998,"value":1123},{"type":993,"tag":1026,"props":3984,"children":3985},{"style":1057},[3986],{"type":998,"value":1183},{"type":993,"tag":1026,"props":3988,"children":3989},{"style":1126},[3990],{"type":998,"value":3991},"\"  Shuffled deck: ",{"type":993,"tag":1026,"props":3993,"children":3994},{"style":1115},[3995],{"type":998,"value":1193},{"type":993,"tag":1026,"props":3997,"children":3998},{"style":1063},[3999],{"type":998,"value":3951},{"type":993,"tag":1026,"props":4001,"children":4002},{"style":1115},[4003],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4005,"children":4006},{"style":1126},[4007],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4009,"children":4010},{"style":1063},[4011],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4013,"children":4014},{"class":1028,"line":284},[4015],{"type":993,"tag":1026,"props":4016,"children":4017},{"emptyLinePlaceholder":13},[4018],{"type":998,"value":1043},{"type":993,"tag":1026,"props":4020,"children":4021},{"class":1028,"line":293},[4022],{"type":993,"tag":1026,"props":4023,"children":4024},{"style":1032},[4025],{"type":998,"value":4026},"# Random with weights (some items more likely)\n",{"type":993,"tag":1026,"props":4028,"children":4029},{"class":1028,"line":302},[4030,4035,4039],{"type":993,"tag":1026,"props":4031,"children":4032},{"style":1063},[4033],{"type":998,"value":4034},"weighted_choices ",{"type":993,"tag":1026,"props":4036,"children":4037},{"style":1057},[4038],{"type":998,"value":1162},{"type":993,"tag":1026,"props":4040,"children":4041},{"style":1063},[4042],{"type":998,"value":4043}," random.choices(\n",{"type":993,"tag":1026,"props":4045,"children":4046},{"class":1028,"line":311},[4047,4052,4056,4061,4066,4070,4075,4079,4084],{"type":993,"tag":1026,"props":4048,"children":4049},{"style":1269},[4050],{"type":998,"value":4051},"    population",{"type":993,"tag":1026,"props":4053,"children":4054},{"style":1057},[4055],{"type":998,"value":1162},{"type":993,"tag":1026,"props":4057,"children":4058},{"style":1063},[4059],{"type":998,"value":4060},"[",{"type":993,"tag":1026,"props":4062,"children":4063},{"style":1126},[4064],{"type":998,"value":4065},"'common'",{"type":993,"tag":1026,"props":4067,"children":4068},{"style":1063},[4069],{"type":998,"value":1385},{"type":993,"tag":1026,"props":4071,"children":4072},{"style":1126},[4073],{"type":998,"value":4074},"'rare'",{"type":993,"tag":1026,"props":4076,"children":4077},{"style":1063},[4078],{"type":998,"value":1385},{"type":993,"tag":1026,"props":4080,"children":4081},{"style":1126},[4082],{"type":998,"value":4083},"'legendary'",{"type":993,"tag":1026,"props":4085,"children":4086},{"style":1063},[4087],{"type":998,"value":4088},"],\n",{"type":993,"tag":1026,"props":4090,"children":4091},{"class":1028,"line":320},[4092,4097,4101,4105,4110,4114,4119,4123,4127,4132],{"type":993,"tag":1026,"props":4093,"children":4094},{"style":1269},[4095],{"type":998,"value":4096},"    weights",{"type":993,"tag":1026,"props":4098,"children":4099},{"style":1057},[4100],{"type":998,"value":1162},{"type":993,"tag":1026,"props":4102,"children":4103},{"style":1063},[4104],{"type":998,"value":4060},{"type":993,"tag":1026,"props":4106,"children":4107},{"style":1115},[4108],{"type":998,"value":4109},"70",{"type":993,"tag":1026,"props":4111,"children":4112},{"style":1063},[4113],{"type":998,"value":1385},{"type":993,"tag":1026,"props":4115,"children":4116},{"style":1115},[4117],{"type":998,"value":4118},"25",{"type":993,"tag":1026,"props":4120,"children":4121},{"style":1063},[4122],{"type":998,"value":1385},{"type":993,"tag":1026,"props":4124,"children":4125},{"style":1115},[4126],{"type":998,"value":2349},{"type":993,"tag":1026,"props":4128,"children":4129},{"style":1063},[4130],{"type":998,"value":4131},"],  ",{"type":993,"tag":1026,"props":4133,"children":4134},{"style":1032},[4135],{"type":998,"value":4136},"# 70% common, 25% rare, 5% legendary\n",{"type":993,"tag":1026,"props":4138,"children":4139},{"class":1028,"line":329},[4140,4145,4149,4153],{"type":993,"tag":1026,"props":4141,"children":4142},{"style":1269},[4143],{"type":998,"value":4144},"    k",{"type":993,"tag":1026,"props":4146,"children":4147},{"style":1057},[4148],{"type":998,"value":1162},{"type":993,"tag":1026,"props":4150,"children":4151},{"style":1115},[4152],{"type":998,"value":3403},{"type":993,"tag":1026,"props":4154,"children":4155},{"style":1032},[4156],{"type":998,"value":4157},"  # Generate 10 items\n",{"type":993,"tag":1026,"props":4159,"children":4160},{"class":1028,"line":338},[4161],{"type":993,"tag":1026,"props":4162,"children":4163},{"style":1063},[4164],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4166,"children":4167},{"class":1028,"line":347},[4168,4172,4176,4180,4184,4188,4193,4197,4202,4206,4210],{"type":993,"tag":1026,"props":4169,"children":4170},{"style":1115},[4171],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4173,"children":4174},{"style":1063},[4175],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4177,"children":4178},{"style":1057},[4179],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4181,"children":4182},{"style":1126},[4183],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4185,"children":4186},{"style":1115},[4187],{"type":998,"value":2732},{"type":993,"tag":1026,"props":4189,"children":4190},{"style":1126},[4191],{"type":998,"value":4192},"Weighted random (10 items): ",{"type":993,"tag":1026,"props":4194,"children":4195},{"style":1115},[4196],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4198,"children":4199},{"style":1063},[4200],{"type":998,"value":4201},"weighted_choices",{"type":993,"tag":1026,"props":4203,"children":4204},{"style":1115},[4205],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4207,"children":4208},{"style":1126},[4209],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4211,"children":4212},{"style":1063},[4213],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4215,"children":4216},{"class":1028,"line":356},[4217],{"type":993,"tag":1026,"props":4218,"children":4219},{"emptyLinePlaceholder":13},[4220],{"type":998,"value":1043},{"type":993,"tag":1026,"props":4222,"children":4223},{"class":1028,"line":365},[4224],{"type":993,"tag":1026,"props":4225,"children":4226},{"style":1032},[4227],{"type":998,"value":4228},"# Simple password generator\n",{"type":993,"tag":1026,"props":4230,"children":4231},{"class":1028,"line":374},[4232,4237,4241],{"type":993,"tag":1026,"props":4233,"children":4234},{"style":1063},[4235],{"type":998,"value":4236},"letters ",{"type":993,"tag":1026,"props":4238,"children":4239},{"style":1057},[4240],{"type":998,"value":1162},{"type":993,"tag":1026,"props":4242,"children":4243},{"style":1126},[4244],{"type":998,"value":4245}," 'abcdefghijklmnopqrstuvwxyz'\n",{"type":993,"tag":1026,"props":4247,"children":4248},{"class":1028,"line":384},[4249,4254,4258],{"type":993,"tag":1026,"props":4250,"children":4251},{"style":1063},[4252],{"type":998,"value":4253},"digits ",{"type":993,"tag":1026,"props":4255,"children":4256},{"style":1057},[4257],{"type":998,"value":1162},{"type":993,"tag":1026,"props":4259,"children":4260},{"style":1126},[4261],{"type":998,"value":4262}," '0123456789'\n",{"type":993,"tag":1026,"props":4264,"children":4265},{"class":1028,"line":393},[4266,4271,4275,4280,4284,4289,4293],{"type":993,"tag":1026,"props":4267,"children":4268},{"style":1063},[4269],{"type":998,"value":4270},"all_chars ",{"type":993,"tag":1026,"props":4272,"children":4273},{"style":1057},[4274],{"type":998,"value":1162},{"type":993,"tag":1026,"props":4276,"children":4277},{"style":1063},[4278],{"type":998,"value":4279}," letters ",{"type":993,"tag":1026,"props":4281,"children":4282},{"style":1057},[4283],{"type":998,"value":1261},{"type":993,"tag":1026,"props":4285,"children":4286},{"style":1063},[4287],{"type":998,"value":4288}," letters.upper() ",{"type":993,"tag":1026,"props":4290,"children":4291},{"style":1057},[4292],{"type":998,"value":1261},{"type":993,"tag":1026,"props":4294,"children":4295},{"style":1063},[4296],{"type":998,"value":4297}," digits\n",{"type":993,"tag":1026,"props":4299,"children":4300},{"class":1028,"line":402},[4301],{"type":993,"tag":1026,"props":4302,"children":4303},{"emptyLinePlaceholder":13},[4304],{"type":998,"value":1043},{"type":993,"tag":1026,"props":4306,"children":4307},{"class":1028,"line":411},[4308,4313,4317,4322,4327,4331,4336,4340,4345,4349,4354],{"type":993,"tag":1026,"props":4309,"children":4310},{"style":1063},[4311],{"type":998,"value":4312},"password ",{"type":993,"tag":1026,"props":4314,"children":4315},{"style":1057},[4316],{"type":998,"value":1162},{"type":993,"tag":1026,"props":4318,"children":4319},{"style":1126},[4320],{"type":998,"value":4321}," ''",{"type":993,"tag":1026,"props":4323,"children":4324},{"style":1063},[4325],{"type":998,"value":4326},".join(random.choice(all_chars) ",{"type":993,"tag":1026,"props":4328,"children":4329},{"style":1057},[4330],{"type":998,"value":2933},{"type":993,"tag":1026,"props":4332,"children":4333},{"style":1063},[4334],{"type":998,"value":4335}," _ ",{"type":993,"tag":1026,"props":4337,"children":4338},{"style":1057},[4339],{"type":998,"value":2943},{"type":993,"tag":1026,"props":4341,"children":4342},{"style":1115},[4343],{"type":998,"value":4344}," range",{"type":993,"tag":1026,"props":4346,"children":4347},{"style":1063},[4348],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4350,"children":4351},{"style":1115},[4352],{"type":998,"value":4353},"8",{"type":993,"tag":1026,"props":4355,"children":4356},{"style":1063},[4357],{"type":998,"value":4358},"))\n",{"type":993,"tag":1026,"props":4360,"children":4361},{"class":1028,"line":420},[4362,4366,4370,4374,4379,4383,4388,4392,4396],{"type":993,"tag":1026,"props":4363,"children":4364},{"style":1115},[4365],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4367,"children":4368},{"style":1063},[4369],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4371,"children":4372},{"style":1057},[4373],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4375,"children":4376},{"style":1126},[4377],{"type":998,"value":4378},"\"Random password: ",{"type":993,"tag":1026,"props":4380,"children":4381},{"style":1115},[4382],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4384,"children":4385},{"style":1063},[4386],{"type":998,"value":4387},"password",{"type":993,"tag":1026,"props":4389,"children":4390},{"style":1115},[4391],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4393,"children":4394},{"style":1126},[4395],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4397,"children":4398},{"style":1063},[4399],{"type":998,"value":1134},{"type":993,"tag":2079,"props":4401,"children":4402},{"id":757},[4403],{"type":998,"value":4404},"🔢 Mathematical Operations",{"type":993,"tag":1001,"props":4406,"children":4407},{},[4408],{"type":998,"value":4409},"The math module provides mathematical functions for calculations beyond basic arithmetic.",{"type":993,"tag":1012,"props":4411,"children":4412},{},[4413],{"type":993,"tag":1016,"props":4414,"children":4416},{"className":1018,"code":4415,"language":6,"meta":8,"style":8},"# 🔢 Math Module Examples\n\nimport math\n\nprint(\"🔢 Math Module Showcase:\")\n\n# Basic mathematical constants\nprint(\"Mathematical constants:\")\nprint(f\"  Pi (π): {math.pi}\")\nprint(f\"  Euler's number (e): {math.e}\")\nprint(f\"  Infinity: {math.inf}\")\n\n# Rounding and absolute values\nnumbers = [3.14159, -2.7, 4.9, -1.1]\nprint(f\"\\nNumber operations:\")\nfor num in numbers:\n    print(f\"  {num}: ceil={math.ceil(num)}, floor={math.floor(num)}, abs={abs(num)}\")\n\n# Powers and roots\nprint(f\"\\nPowers and roots:\")\nprint(f\"  2^8 = {math.pow(2, 8)}\")\nprint(f\"  √64 = {math.sqrt(64)}\")\nprint(f\"  ∛27 = {math.pow(27, 1/3):.2f}\")\n\n# Trigonometry (angles in radians)\nangles_degrees = [0, 30, 45, 60, 90]\nprint(f\"\\nTrigonometry:\")\nfor angle in angles_degrees:\n    radians = math.radians(angle)\n    sin_val = math.sin(radians)\n    cos_val = math.cos(radians)\n    print(f\"  {angle}°: sin={sin_val:.3f}, cos={cos_val:.3f}\")\n\n# Logarithms\nprint(f\"\\nLogarithms:\")\nprint(f\"  log₁₀(100) = {math.log10(100)}\")\nprint(f\"  ln(e) = {math.log(math.e):.3f}\")\nprint(f\"  log₂(8) = {math.log2(8)}\")\n\n# Distance between two points\nx1, y1 = 0, 0\nx2, y2 = 3, 4\ndistance = math.sqrt((x2-x1)**2 + (y2-y1)**2)\nprint(f\"\\nDistance from ({x1},{y1}) to ({x2},{y2}): {distance}\")\n",[4417],{"type":993,"tag":1022,"props":4418,"children":4419},{"__ignoreMap":8},[4420,4428,4435,4446,4453,4473,4480,4488,4508,4549,4590,4631,4638,4646,4706,4738,4759,4854,4861,4869,4901,4959,5008,5078,5085,5093,5153,5185,5206,5222,5238,5255,5338,5345,5353,5385,5434,5479,5528,5535,5543,5569,5595,5661],{"type":993,"tag":1026,"props":4421,"children":4422},{"class":1028,"line":12},[4423],{"type":993,"tag":1026,"props":4424,"children":4425},{"style":1032},[4426],{"type":998,"value":4427},"# 🔢 Math Module Examples\n",{"type":993,"tag":1026,"props":4429,"children":4430},{"class":1028,"line":27},[4431],{"type":993,"tag":1026,"props":4432,"children":4433},{"emptyLinePlaceholder":13},[4434],{"type":998,"value":1043},{"type":993,"tag":1026,"props":4436,"children":4437},{"class":1028,"line":36},[4438,4442],{"type":993,"tag":1026,"props":4439,"children":4440},{"style":1057},[4441],{"type":998,"value":1060},{"type":993,"tag":1026,"props":4443,"children":4444},{"style":1063},[4445],{"type":998,"value":1090},{"type":993,"tag":1026,"props":4447,"children":4448},{"class":1028,"line":45},[4449],{"type":993,"tag":1026,"props":4450,"children":4451},{"emptyLinePlaceholder":13},[4452],{"type":998,"value":1043},{"type":993,"tag":1026,"props":4454,"children":4455},{"class":1028,"line":54},[4456,4460,4464,4469],{"type":993,"tag":1026,"props":4457,"children":4458},{"style":1115},[4459],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4461,"children":4462},{"style":1063},[4463],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4465,"children":4466},{"style":1126},[4467],{"type":998,"value":4468},"\"🔢 Math Module Showcase:\"",{"type":993,"tag":1026,"props":4470,"children":4471},{"style":1063},[4472],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4474,"children":4475},{"class":1028,"line":63},[4476],{"type":993,"tag":1026,"props":4477,"children":4478},{"emptyLinePlaceholder":13},[4479],{"type":998,"value":1043},{"type":993,"tag":1026,"props":4481,"children":4482},{"class":1028,"line":72},[4483],{"type":993,"tag":1026,"props":4484,"children":4485},{"style":1032},[4486],{"type":998,"value":4487},"# Basic mathematical constants\n",{"type":993,"tag":1026,"props":4489,"children":4490},{"class":1028,"line":81},[4491,4495,4499,4504],{"type":993,"tag":1026,"props":4492,"children":4493},{"style":1115},[4494],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4496,"children":4497},{"style":1063},[4498],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4500,"children":4501},{"style":1126},[4502],{"type":998,"value":4503},"\"Mathematical constants:\"",{"type":993,"tag":1026,"props":4505,"children":4506},{"style":1063},[4507],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4509,"children":4510},{"class":1028,"line":91},[4511,4515,4519,4523,4528,4532,4537,4541,4545],{"type":993,"tag":1026,"props":4512,"children":4513},{"style":1115},[4514],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4516,"children":4517},{"style":1063},[4518],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4520,"children":4521},{"style":1057},[4522],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4524,"children":4525},{"style":1126},[4526],{"type":998,"value":4527},"\"  Pi (π): ",{"type":993,"tag":1026,"props":4529,"children":4530},{"style":1115},[4531],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4533,"children":4534},{"style":1063},[4535],{"type":998,"value":4536},"math.pi",{"type":993,"tag":1026,"props":4538,"children":4539},{"style":1115},[4540],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4542,"children":4543},{"style":1126},[4544],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4546,"children":4547},{"style":1063},[4548],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4550,"children":4551},{"class":1028,"line":100},[4552,4556,4560,4564,4569,4573,4578,4582,4586],{"type":993,"tag":1026,"props":4553,"children":4554},{"style":1115},[4555],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4557,"children":4558},{"style":1063},[4559],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4561,"children":4562},{"style":1057},[4563],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4565,"children":4566},{"style":1126},[4567],{"type":998,"value":4568},"\"  Euler's number (e): ",{"type":993,"tag":1026,"props":4570,"children":4571},{"style":1115},[4572],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4574,"children":4575},{"style":1063},[4576],{"type":998,"value":4577},"math.e",{"type":993,"tag":1026,"props":4579,"children":4580},{"style":1115},[4581],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4583,"children":4584},{"style":1126},[4585],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4587,"children":4588},{"style":1063},[4589],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4591,"children":4592},{"class":1028,"line":109},[4593,4597,4601,4605,4610,4614,4619,4623,4627],{"type":993,"tag":1026,"props":4594,"children":4595},{"style":1115},[4596],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4598,"children":4599},{"style":1063},[4600],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4602,"children":4603},{"style":1057},[4604],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4606,"children":4607},{"style":1126},[4608],{"type":998,"value":4609},"\"  Infinity: ",{"type":993,"tag":1026,"props":4611,"children":4612},{"style":1115},[4613],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4615,"children":4616},{"style":1063},[4617],{"type":998,"value":4618},"math.inf",{"type":993,"tag":1026,"props":4620,"children":4621},{"style":1115},[4622],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4624,"children":4625},{"style":1126},[4626],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4628,"children":4629},{"style":1063},[4630],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4632,"children":4633},{"class":1028,"line":118},[4634],{"type":993,"tag":1026,"props":4635,"children":4636},{"emptyLinePlaceholder":13},[4637],{"type":998,"value":1043},{"type":993,"tag":1026,"props":4639,"children":4640},{"class":1028,"line":127},[4641],{"type":993,"tag":1026,"props":4642,"children":4643},{"style":1032},[4644],{"type":998,"value":4645},"# Rounding and absolute values\n",{"type":993,"tag":1026,"props":4647,"children":4648},{"class":1028,"line":136},[4649,4654,4658,4662,4667,4671,4675,4680,4684,4689,4693,4697,4702],{"type":993,"tag":1026,"props":4650,"children":4651},{"style":1063},[4652],{"type":998,"value":4653},"numbers ",{"type":993,"tag":1026,"props":4655,"children":4656},{"style":1057},[4657],{"type":998,"value":1162},{"type":993,"tag":1026,"props":4659,"children":4660},{"style":1063},[4661],{"type":998,"value":1411},{"type":993,"tag":1026,"props":4663,"children":4664},{"style":1115},[4665],{"type":998,"value":4666},"3.14159",{"type":993,"tag":1026,"props":4668,"children":4669},{"style":1063},[4670],{"type":998,"value":1385},{"type":993,"tag":1026,"props":4672,"children":4673},{"style":1057},[4674],{"type":998,"value":2591},{"type":993,"tag":1026,"props":4676,"children":4677},{"style":1115},[4678],{"type":998,"value":4679},"2.7",{"type":993,"tag":1026,"props":4681,"children":4682},{"style":1063},[4683],{"type":998,"value":1385},{"type":993,"tag":1026,"props":4685,"children":4686},{"style":1115},[4687],{"type":998,"value":4688},"4.9",{"type":993,"tag":1026,"props":4690,"children":4691},{"style":1063},[4692],{"type":998,"value":1385},{"type":993,"tag":1026,"props":4694,"children":4695},{"style":1057},[4696],{"type":998,"value":2591},{"type":993,"tag":1026,"props":4698,"children":4699},{"style":1115},[4700],{"type":998,"value":4701},"1.1",{"type":993,"tag":1026,"props":4703,"children":4704},{"style":1063},[4705],{"type":998,"value":1457},{"type":993,"tag":1026,"props":4707,"children":4708},{"class":1028,"line":146},[4709,4713,4717,4721,4725,4729,4734],{"type":993,"tag":1026,"props":4710,"children":4711},{"style":1115},[4712],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4714,"children":4715},{"style":1063},[4716],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4718,"children":4719},{"style":1057},[4720],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4722,"children":4723},{"style":1126},[4724],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4726,"children":4727},{"style":1115},[4728],{"type":998,"value":2732},{"type":993,"tag":1026,"props":4730,"children":4731},{"style":1126},[4732],{"type":998,"value":4733},"Number operations:\"",{"type":993,"tag":1026,"props":4735,"children":4736},{"style":1063},[4737],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4739,"children":4740},{"class":1028,"line":155},[4741,4745,4750,4754],{"type":993,"tag":1026,"props":4742,"children":4743},{"style":1057},[4744],{"type":998,"value":2933},{"type":993,"tag":1026,"props":4746,"children":4747},{"style":1063},[4748],{"type":998,"value":4749}," num ",{"type":993,"tag":1026,"props":4751,"children":4752},{"style":1057},[4753],{"type":998,"value":2943},{"type":993,"tag":1026,"props":4755,"children":4756},{"style":1063},[4757],{"type":998,"value":4758}," numbers:\n",{"type":993,"tag":1026,"props":4760,"children":4761},{"class":1028,"line":164},[4762,4766,4770,4774,4778,4782,4787,4791,4796,4800,4805,4809,4814,4818,4823,4827,4832,4837,4842,4846,4850],{"type":993,"tag":1026,"props":4763,"children":4764},{"style":1115},[4765],{"type":998,"value":2973},{"type":993,"tag":1026,"props":4767,"children":4768},{"style":1063},[4769],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4771,"children":4772},{"style":1057},[4773],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4775,"children":4776},{"style":1126},[4777],{"type":998,"value":2986},{"type":993,"tag":1026,"props":4779,"children":4780},{"style":1115},[4781],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4783,"children":4784},{"style":1063},[4785],{"type":998,"value":4786},"num",{"type":993,"tag":1026,"props":4788,"children":4789},{"style":1115},[4790],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4792,"children":4793},{"style":1126},[4794],{"type":998,"value":4795},": ceil=",{"type":993,"tag":1026,"props":4797,"children":4798},{"style":1115},[4799],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4801,"children":4802},{"style":1063},[4803],{"type":998,"value":4804},"math.ceil(num)",{"type":993,"tag":1026,"props":4806,"children":4807},{"style":1115},[4808],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4810,"children":4811},{"style":1126},[4812],{"type":998,"value":4813},", floor=",{"type":993,"tag":1026,"props":4815,"children":4816},{"style":1115},[4817],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4819,"children":4820},{"style":1063},[4821],{"type":998,"value":4822},"math.floor(num)",{"type":993,"tag":1026,"props":4824,"children":4825},{"style":1115},[4826],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4828,"children":4829},{"style":1126},[4830],{"type":998,"value":4831},", abs=",{"type":993,"tag":1026,"props":4833,"children":4834},{"style":1115},[4835],{"type":998,"value":4836},"{abs",{"type":993,"tag":1026,"props":4838,"children":4839},{"style":1063},[4840],{"type":998,"value":4841},"(num)",{"type":993,"tag":1026,"props":4843,"children":4844},{"style":1115},[4845],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4847,"children":4848},{"style":1126},[4849],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4851,"children":4852},{"style":1063},[4853],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4855,"children":4856},{"class":1028,"line":173},[4857],{"type":993,"tag":1026,"props":4858,"children":4859},{"emptyLinePlaceholder":13},[4860],{"type":998,"value":1043},{"type":993,"tag":1026,"props":4862,"children":4863},{"class":1028,"line":182},[4864],{"type":993,"tag":1026,"props":4865,"children":4866},{"style":1032},[4867],{"type":998,"value":4868},"# Powers and roots\n",{"type":993,"tag":1026,"props":4870,"children":4871},{"class":1028,"line":191},[4872,4876,4880,4884,4888,4892,4897],{"type":993,"tag":1026,"props":4873,"children":4874},{"style":1115},[4875],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4877,"children":4878},{"style":1063},[4879],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4881,"children":4882},{"style":1057},[4883],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4885,"children":4886},{"style":1126},[4887],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4889,"children":4890},{"style":1115},[4891],{"type":998,"value":2732},{"type":993,"tag":1026,"props":4893,"children":4894},{"style":1126},[4895],{"type":998,"value":4896},"Powers and roots:\"",{"type":993,"tag":1026,"props":4898,"children":4899},{"style":1063},[4900],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4902,"children":4903},{"class":1028,"line":201},[4904,4908,4912,4916,4921,4925,4930,4935,4939,4943,4947,4951,4955],{"type":993,"tag":1026,"props":4905,"children":4906},{"style":1115},[4907],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4909,"children":4910},{"style":1063},[4911],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4913,"children":4914},{"style":1057},[4915],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4917,"children":4918},{"style":1126},[4919],{"type":998,"value":4920},"\"  2^8 = ",{"type":993,"tag":1026,"props":4922,"children":4923},{"style":1115},[4924],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4926,"children":4927},{"style":1063},[4928],{"type":998,"value":4929},"math.pow(",{"type":993,"tag":1026,"props":4931,"children":4932},{"style":1115},[4933],{"type":998,"value":4934},"2",{"type":993,"tag":1026,"props":4936,"children":4937},{"style":1063},[4938],{"type":998,"value":1385},{"type":993,"tag":1026,"props":4940,"children":4941},{"style":1115},[4942],{"type":998,"value":4353},{"type":993,"tag":1026,"props":4944,"children":4945},{"style":1063},[4946],{"type":998,"value":1218},{"type":993,"tag":1026,"props":4948,"children":4949},{"style":1115},[4950],{"type":998,"value":1223},{"type":993,"tag":1026,"props":4952,"children":4953},{"style":1126},[4954],{"type":998,"value":1228},{"type":993,"tag":1026,"props":4956,"children":4957},{"style":1063},[4958],{"type":998,"value":1134},{"type":993,"tag":1026,"props":4960,"children":4961},{"class":1028,"line":210},[4962,4966,4970,4974,4979,4983,4987,4992,4996,5000,5004],{"type":993,"tag":1026,"props":4963,"children":4964},{"style":1115},[4965],{"type":998,"value":1118},{"type":993,"tag":1026,"props":4967,"children":4968},{"style":1063},[4969],{"type":998,"value":1123},{"type":993,"tag":1026,"props":4971,"children":4972},{"style":1057},[4973],{"type":998,"value":1183},{"type":993,"tag":1026,"props":4975,"children":4976},{"style":1126},[4977],{"type":998,"value":4978},"\"  √64 = ",{"type":993,"tag":1026,"props":4980,"children":4981},{"style":1115},[4982],{"type":998,"value":1193},{"type":993,"tag":1026,"props":4984,"children":4985},{"style":1063},[4986],{"type":998,"value":1715},{"type":993,"tag":1026,"props":4988,"children":4989},{"style":1115},[4990],{"type":998,"value":4991},"64",{"type":993,"tag":1026,"props":4993,"children":4994},{"style":1063},[4995],{"type":998,"value":1218},{"type":993,"tag":1026,"props":4997,"children":4998},{"style":1115},[4999],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5001,"children":5002},{"style":1126},[5003],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5005,"children":5006},{"style":1063},[5007],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5009,"children":5010},{"class":1028,"line":219},[5011,5015,5019,5023,5028,5032,5036,5041,5045,5049,5054,5058,5062,5066,5070,5074],{"type":993,"tag":1026,"props":5012,"children":5013},{"style":1115},[5014],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5016,"children":5017},{"style":1063},[5018],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5020,"children":5021},{"style":1057},[5022],{"type":998,"value":1183},{"type":993,"tag":1026,"props":5024,"children":5025},{"style":1126},[5026],{"type":998,"value":5027},"\"  ∛27 = ",{"type":993,"tag":1026,"props":5029,"children":5030},{"style":1115},[5031],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5033,"children":5034},{"style":1063},[5035],{"type":998,"value":4929},{"type":993,"tag":1026,"props":5037,"children":5038},{"style":1115},[5039],{"type":998,"value":5040},"27",{"type":993,"tag":1026,"props":5042,"children":5043},{"style":1063},[5044],{"type":998,"value":1385},{"type":993,"tag":1026,"props":5046,"children":5047},{"style":1115},[5048],{"type":998,"value":1281},{"type":993,"tag":1026,"props":5050,"children":5051},{"style":1057},[5052],{"type":998,"value":5053},"/",{"type":993,"tag":1026,"props":5055,"children":5056},{"style":1115},[5057],{"type":998,"value":2393},{"type":993,"tag":1026,"props":5059,"children":5060},{"style":1063},[5061],{"type":998,"value":1218},{"type":993,"tag":1026,"props":5063,"children":5064},{"style":1057},[5065],{"type":998,"value":3469},{"type":993,"tag":1026,"props":5067,"children":5068},{"style":1115},[5069],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5071,"children":5072},{"style":1126},[5073],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5075,"children":5076},{"style":1063},[5077],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5079,"children":5080},{"class":1028,"line":228},[5081],{"type":993,"tag":1026,"props":5082,"children":5083},{"emptyLinePlaceholder":13},[5084],{"type":998,"value":1043},{"type":993,"tag":1026,"props":5086,"children":5087},{"class":1028,"line":238},[5088],{"type":993,"tag":1026,"props":5089,"children":5090},{"style":1032},[5091],{"type":998,"value":5092},"# Trigonometry (angles in radians)\n",{"type":993,"tag":1026,"props":5094,"children":5095},{"class":1028,"line":247},[5096,5101,5105,5109,5114,5118,5122,5126,5131,5135,5140,5144,5149],{"type":993,"tag":1026,"props":5097,"children":5098},{"style":1063},[5099],{"type":998,"value":5100},"angles_degrees ",{"type":993,"tag":1026,"props":5102,"children":5103},{"style":1057},[5104],{"type":998,"value":1162},{"type":993,"tag":1026,"props":5106,"children":5107},{"style":1063},[5108],{"type":998,"value":1411},{"type":993,"tag":1026,"props":5110,"children":5111},{"style":1115},[5112],{"type":998,"value":5113},"0",{"type":993,"tag":1026,"props":5115,"children":5116},{"style":1063},[5117],{"type":998,"value":1385},{"type":993,"tag":1026,"props":5119,"children":5120},{"style":1115},[5121],{"type":998,"value":2420},{"type":993,"tag":1026,"props":5123,"children":5124},{"style":1063},[5125],{"type":998,"value":1385},{"type":993,"tag":1026,"props":5127,"children":5128},{"style":1115},[5129],{"type":998,"value":5130},"45",{"type":993,"tag":1026,"props":5132,"children":5133},{"style":1063},[5134],{"type":998,"value":1385},{"type":993,"tag":1026,"props":5136,"children":5137},{"style":1115},[5138],{"type":998,"value":5139},"60",{"type":993,"tag":1026,"props":5141,"children":5142},{"style":1063},[5143],{"type":998,"value":1385},{"type":993,"tag":1026,"props":5145,"children":5146},{"style":1115},[5147],{"type":998,"value":5148},"90",{"type":993,"tag":1026,"props":5150,"children":5151},{"style":1063},[5152],{"type":998,"value":1457},{"type":993,"tag":1026,"props":5154,"children":5155},{"class":1028,"line":256},[5156,5160,5164,5168,5172,5176,5181],{"type":993,"tag":1026,"props":5157,"children":5158},{"style":1115},[5159],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5161,"children":5162},{"style":1063},[5163],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5165,"children":5166},{"style":1057},[5167],{"type":998,"value":1183},{"type":993,"tag":1026,"props":5169,"children":5170},{"style":1126},[5171],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5173,"children":5174},{"style":1115},[5175],{"type":998,"value":2732},{"type":993,"tag":1026,"props":5177,"children":5178},{"style":1126},[5179],{"type":998,"value":5180},"Trigonometry:\"",{"type":993,"tag":1026,"props":5182,"children":5183},{"style":1063},[5184],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5186,"children":5187},{"class":1028,"line":265},[5188,5192,5197,5201],{"type":993,"tag":1026,"props":5189,"children":5190},{"style":1057},[5191],{"type":998,"value":2933},{"type":993,"tag":1026,"props":5193,"children":5194},{"style":1063},[5195],{"type":998,"value":5196}," angle ",{"type":993,"tag":1026,"props":5198,"children":5199},{"style":1057},[5200],{"type":998,"value":2943},{"type":993,"tag":1026,"props":5202,"children":5203},{"style":1063},[5204],{"type":998,"value":5205}," angles_degrees:\n",{"type":993,"tag":1026,"props":5207,"children":5208},{"class":1028,"line":274},[5209,5214,5218],{"type":993,"tag":1026,"props":5210,"children":5211},{"style":1063},[5212],{"type":998,"value":5213},"    radians ",{"type":993,"tag":1026,"props":5215,"children":5216},{"style":1057},[5217],{"type":998,"value":1162},{"type":993,"tag":1026,"props":5219,"children":5220},{"style":1063},[5221],{"type":998,"value":1605},{"type":993,"tag":1026,"props":5223,"children":5224},{"class":1028,"line":284},[5225,5230,5234],{"type":993,"tag":1026,"props":5226,"children":5227},{"style":1063},[5228],{"type":998,"value":5229},"    sin_val ",{"type":993,"tag":1026,"props":5231,"children":5232},{"style":1057},[5233],{"type":998,"value":1162},{"type":993,"tag":1026,"props":5235,"children":5236},{"style":1063},[5237],{"type":998,"value":1622},{"type":993,"tag":1026,"props":5239,"children":5240},{"class":1028,"line":293},[5241,5246,5250],{"type":993,"tag":1026,"props":5242,"children":5243},{"style":1063},[5244],{"type":998,"value":5245},"    cos_val ",{"type":993,"tag":1026,"props":5247,"children":5248},{"style":1057},[5249],{"type":998,"value":1162},{"type":993,"tag":1026,"props":5251,"children":5252},{"style":1063},[5253],{"type":998,"value":5254}," math.cos(radians)\n",{"type":993,"tag":1026,"props":5256,"children":5257},{"class":1028,"line":302},[5258,5262,5266,5270,5274,5278,5282,5286,5291,5295,5300,5304,5308,5313,5317,5322,5326,5330,5334],{"type":993,"tag":1026,"props":5259,"children":5260},{"style":1115},[5261],{"type":998,"value":2973},{"type":993,"tag":1026,"props":5263,"children":5264},{"style":1063},[5265],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5267,"children":5268},{"style":1057},[5269],{"type":998,"value":1183},{"type":993,"tag":1026,"props":5271,"children":5272},{"style":1126},[5273],{"type":998,"value":2986},{"type":993,"tag":1026,"props":5275,"children":5276},{"style":1115},[5277],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5279,"children":5280},{"style":1063},[5281],{"type":998,"value":1651},{"type":993,"tag":1026,"props":5283,"children":5284},{"style":1115},[5285],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5287,"children":5288},{"style":1126},[5289],{"type":998,"value":5290},"°: sin=",{"type":993,"tag":1026,"props":5292,"children":5293},{"style":1115},[5294],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5296,"children":5297},{"style":1063},[5298],{"type":998,"value":5299},"sin_val",{"type":993,"tag":1026,"props":5301,"children":5302},{"style":1057},[5303],{"type":998,"value":1674},{"type":993,"tag":1026,"props":5305,"children":5306},{"style":1115},[5307],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5309,"children":5310},{"style":1126},[5311],{"type":998,"value":5312},", cos=",{"type":993,"tag":1026,"props":5314,"children":5315},{"style":1115},[5316],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5318,"children":5319},{"style":1063},[5320],{"type":998,"value":5321},"cos_val",{"type":993,"tag":1026,"props":5323,"children":5324},{"style":1057},[5325],{"type":998,"value":1674},{"type":993,"tag":1026,"props":5327,"children":5328},{"style":1115},[5329],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5331,"children":5332},{"style":1126},[5333],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5335,"children":5336},{"style":1063},[5337],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5339,"children":5340},{"class":1028,"line":311},[5341],{"type":993,"tag":1026,"props":5342,"children":5343},{"emptyLinePlaceholder":13},[5344],{"type":998,"value":1043},{"type":993,"tag":1026,"props":5346,"children":5347},{"class":1028,"line":320},[5348],{"type":993,"tag":1026,"props":5349,"children":5350},{"style":1032},[5351],{"type":998,"value":5352},"# Logarithms\n",{"type":993,"tag":1026,"props":5354,"children":5355},{"class":1028,"line":329},[5356,5360,5364,5368,5372,5376,5381],{"type":993,"tag":1026,"props":5357,"children":5358},{"style":1115},[5359],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5361,"children":5362},{"style":1063},[5363],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5365,"children":5366},{"style":1057},[5367],{"type":998,"value":1183},{"type":993,"tag":1026,"props":5369,"children":5370},{"style":1126},[5371],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5373,"children":5374},{"style":1115},[5375],{"type":998,"value":2732},{"type":993,"tag":1026,"props":5377,"children":5378},{"style":1126},[5379],{"type":998,"value":5380},"Logarithms:\"",{"type":993,"tag":1026,"props":5382,"children":5383},{"style":1063},[5384],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5386,"children":5387},{"class":1028,"line":338},[5388,5392,5396,5400,5405,5409,5414,5418,5422,5426,5430],{"type":993,"tag":1026,"props":5389,"children":5390},{"style":1115},[5391],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5393,"children":5394},{"style":1063},[5395],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5397,"children":5398},{"style":1057},[5399],{"type":998,"value":1183},{"type":993,"tag":1026,"props":5401,"children":5402},{"style":1126},[5403],{"type":998,"value":5404},"\"  log₁₀(100) = ",{"type":993,"tag":1026,"props":5406,"children":5407},{"style":1115},[5408],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5410,"children":5411},{"style":1063},[5412],{"type":998,"value":5413},"math.log10(",{"type":993,"tag":1026,"props":5415,"children":5416},{"style":1115},[5417],{"type":998,"value":1390},{"type":993,"tag":1026,"props":5419,"children":5420},{"style":1063},[5421],{"type":998,"value":1218},{"type":993,"tag":1026,"props":5423,"children":5424},{"style":1115},[5425],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5427,"children":5428},{"style":1126},[5429],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5431,"children":5432},{"style":1063},[5433],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5435,"children":5436},{"class":1028,"line":347},[5437,5441,5445,5449,5454,5458,5463,5467,5471,5475],{"type":993,"tag":1026,"props":5438,"children":5439},{"style":1115},[5440],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5442,"children":5443},{"style":1063},[5444],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5446,"children":5447},{"style":1057},[5448],{"type":998,"value":1183},{"type":993,"tag":1026,"props":5450,"children":5451},{"style":1126},[5452],{"type":998,"value":5453},"\"  ln(e) = ",{"type":993,"tag":1026,"props":5455,"children":5456},{"style":1115},[5457],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5459,"children":5460},{"style":1063},[5461],{"type":998,"value":5462},"math.log(math.e)",{"type":993,"tag":1026,"props":5464,"children":5465},{"style":1057},[5466],{"type":998,"value":1674},{"type":993,"tag":1026,"props":5468,"children":5469},{"style":1115},[5470],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5472,"children":5473},{"style":1126},[5474],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5476,"children":5477},{"style":1063},[5478],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5480,"children":5481},{"class":1028,"line":356},[5482,5486,5490,5494,5499,5503,5508,5512,5516,5520,5524],{"type":993,"tag":1026,"props":5483,"children":5484},{"style":1115},[5485],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5487,"children":5488},{"style":1063},[5489],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5491,"children":5492},{"style":1057},[5493],{"type":998,"value":1183},{"type":993,"tag":1026,"props":5495,"children":5496},{"style":1126},[5497],{"type":998,"value":5498},"\"  log₂(8) = ",{"type":993,"tag":1026,"props":5500,"children":5501},{"style":1115},[5502],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5504,"children":5505},{"style":1063},[5506],{"type":998,"value":5507},"math.log2(",{"type":993,"tag":1026,"props":5509,"children":5510},{"style":1115},[5511],{"type":998,"value":4353},{"type":993,"tag":1026,"props":5513,"children":5514},{"style":1063},[5515],{"type":998,"value":1218},{"type":993,"tag":1026,"props":5517,"children":5518},{"style":1115},[5519],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5521,"children":5522},{"style":1126},[5523],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5525,"children":5526},{"style":1063},[5527],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5529,"children":5530},{"class":1028,"line":365},[5531],{"type":993,"tag":1026,"props":5532,"children":5533},{"emptyLinePlaceholder":13},[5534],{"type":998,"value":1043},{"type":993,"tag":1026,"props":5536,"children":5537},{"class":1028,"line":374},[5538],{"type":993,"tag":1026,"props":5539,"children":5540},{"style":1032},[5541],{"type":998,"value":5542},"# Distance between two points\n",{"type":993,"tag":1026,"props":5544,"children":5545},{"class":1028,"line":384},[5546,5551,5555,5560,5564],{"type":993,"tag":1026,"props":5547,"children":5548},{"style":1063},[5549],{"type":998,"value":5550},"x1, y1 ",{"type":993,"tag":1026,"props":5552,"children":5553},{"style":1057},[5554],{"type":998,"value":1162},{"type":993,"tag":1026,"props":5556,"children":5557},{"style":1115},[5558],{"type":998,"value":5559}," 0",{"type":993,"tag":1026,"props":5561,"children":5562},{"style":1063},[5563],{"type":998,"value":1385},{"type":993,"tag":1026,"props":5565,"children":5566},{"style":1115},[5567],{"type":998,"value":5568},"0\n",{"type":993,"tag":1026,"props":5570,"children":5571},{"class":1028,"line":393},[5572,5577,5581,5586,5590],{"type":993,"tag":1026,"props":5573,"children":5574},{"style":1063},[5575],{"type":998,"value":5576},"x2, y2 ",{"type":993,"tag":1026,"props":5578,"children":5579},{"style":1057},[5580],{"type":998,"value":1162},{"type":993,"tag":1026,"props":5582,"children":5583},{"style":1115},[5584],{"type":998,"value":5585}," 3",{"type":993,"tag":1026,"props":5587,"children":5588},{"style":1063},[5589],{"type":998,"value":1385},{"type":993,"tag":1026,"props":5591,"children":5592},{"style":1115},[5593],{"type":998,"value":5594},"4\n",{"type":993,"tag":1026,"props":5596,"children":5597},{"class":1028,"line":402},[5598,5603,5607,5612,5616,5621,5626,5630,5635,5640,5644,5649,5653,5657],{"type":993,"tag":1026,"props":5599,"children":5600},{"style":1063},[5601],{"type":998,"value":5602},"distance ",{"type":993,"tag":1026,"props":5604,"children":5605},{"style":1057},[5606],{"type":998,"value":1162},{"type":993,"tag":1026,"props":5608,"children":5609},{"style":1063},[5610],{"type":998,"value":5611}," math.sqrt((x2",{"type":993,"tag":1026,"props":5613,"children":5614},{"style":1057},[5615],{"type":998,"value":2591},{"type":993,"tag":1026,"props":5617,"children":5618},{"style":1063},[5619],{"type":998,"value":5620},"x1)",{"type":993,"tag":1026,"props":5622,"children":5623},{"style":1057},[5624],{"type":998,"value":5625},"**",{"type":993,"tag":1026,"props":5627,"children":5628},{"style":1115},[5629],{"type":998,"value":4934},{"type":993,"tag":1026,"props":5631,"children":5632},{"style":1057},[5633],{"type":998,"value":5634}," +",{"type":993,"tag":1026,"props":5636,"children":5637},{"style":1063},[5638],{"type":998,"value":5639}," (y2",{"type":993,"tag":1026,"props":5641,"children":5642},{"style":1057},[5643],{"type":998,"value":2591},{"type":993,"tag":1026,"props":5645,"children":5646},{"style":1063},[5647],{"type":998,"value":5648},"y1)",{"type":993,"tag":1026,"props":5650,"children":5651},{"style":1057},[5652],{"type":998,"value":5625},{"type":993,"tag":1026,"props":5654,"children":5655},{"style":1115},[5656],{"type":998,"value":4934},{"type":993,"tag":1026,"props":5658,"children":5659},{"style":1063},[5660],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5662,"children":5663},{"class":1028,"line":411},[5664,5668,5672,5676,5680,5684,5689,5693,5698,5702,5707,5711,5716,5720,5725,5729,5734,5738,5742,5746,5751,5755,5760,5764,5769,5773,5777],{"type":993,"tag":1026,"props":5665,"children":5666},{"style":1115},[5667],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5669,"children":5670},{"style":1063},[5671],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5673,"children":5674},{"style":1057},[5675],{"type":998,"value":1183},{"type":993,"tag":1026,"props":5677,"children":5678},{"style":1126},[5679],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5681,"children":5682},{"style":1115},[5683],{"type":998,"value":2732},{"type":993,"tag":1026,"props":5685,"children":5686},{"style":1126},[5687],{"type":998,"value":5688},"Distance from (",{"type":993,"tag":1026,"props":5690,"children":5691},{"style":1115},[5692],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5694,"children":5695},{"style":1063},[5696],{"type":998,"value":5697},"x1",{"type":993,"tag":1026,"props":5699,"children":5700},{"style":1115},[5701],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5703,"children":5704},{"style":1126},[5705],{"type":998,"value":5706},",",{"type":993,"tag":1026,"props":5708,"children":5709},{"style":1115},[5710],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5712,"children":5713},{"style":1063},[5714],{"type":998,"value":5715},"y1",{"type":993,"tag":1026,"props":5717,"children":5718},{"style":1115},[5719],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5721,"children":5722},{"style":1126},[5723],{"type":998,"value":5724},") to (",{"type":993,"tag":1026,"props":5726,"children":5727},{"style":1115},[5728],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5730,"children":5731},{"style":1063},[5732],{"type":998,"value":5733},"x2",{"type":993,"tag":1026,"props":5735,"children":5736},{"style":1115},[5737],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5739,"children":5740},{"style":1126},[5741],{"type":998,"value":5706},{"type":993,"tag":1026,"props":5743,"children":5744},{"style":1115},[5745],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5747,"children":5748},{"style":1063},[5749],{"type":998,"value":5750},"y2",{"type":993,"tag":1026,"props":5752,"children":5753},{"style":1115},[5754],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5756,"children":5757},{"style":1126},[5758],{"type":998,"value":5759},"): ",{"type":993,"tag":1026,"props":5761,"children":5762},{"style":1115},[5763],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5765,"children":5766},{"style":1063},[5767],{"type":998,"value":5768},"distance",{"type":993,"tag":1026,"props":5770,"children":5771},{"style":1115},[5772],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5774,"children":5775},{"style":1126},[5776],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5778,"children":5779},{"style":1063},[5780],{"type":998,"value":1134},{"type":993,"tag":2079,"props":5782,"children":5784},{"id":5783},"system-and-file-operations",[5785],{"type":998,"value":5786},"💻 System and File Operations",{"type":993,"tag":1001,"props":5788,"children":5789},{},[5790],{"type":998,"value":5791},"The os module provides tools for working with your computer's operating system and file system.",{"type":993,"tag":1012,"props":5793,"children":5794},{},[5795],{"type":993,"tag":1016,"props":5796,"children":5798},{"className":1018,"code":5797,"language":6,"meta":8,"style":8},"# 💻 OS Module Examples\n\nimport os\nimport sys\n\nprint(\"💻 OS Module Showcase:\")\n\n# System information\nprint(\"System information:\")\nprint(f\"  Operating system: {os.name}\")\nprint(f\"  Platform: {sys.platform}\")\nprint(f\"  Python version: {sys.version.split()[0]}\")\n\n# Directory operations\ncurrent_dir = os.getcwd()\nhome_dir = os.path.expanduser(\"~\")\nprint(f\"\\nDirectory information:\")\nprint(f\"  Current directory: {os.path.basename(current_dir)}\")\nprint(f\"  Home directory: {os.path.basename(home_dir)}\")\n\n# List files in current directory\nprint(f\"\\nFiles in current directory:\")\ntry:\n    items = os.listdir(\".\")\n    files = [item for item in items if os.path.isfile(item)]\n    dirs = [item for item in items if os.path.isdir(item)]\n    \n    print(f\"  📁 Directories ({len(dirs)}): {dirs[:3]}...\")  # Show first 3\n    print(f\"  📄 Files ({len(files)}): {files[:3]}...\")      # Show first 3\nexcept PermissionError:\n    print(\"  Cannot list directory contents\")\n\n# Path operations\nsample_path = \"/home/user/documents/file.txt\"\nprint(f\"\\nPath operations on: {sample_path}\")\nprint(f\"  Directory: {os.path.dirname(sample_path)}\")\nprint(f\"  Filename: {os.path.basename(sample_path)}\")\nprint(f\"  Extension: {os.path.splitext(sample_path)[1]}\")\n\n# Join paths properly (cross-platform)\nnew_path = os.path.join(\"documents\", \"projects\", \"python\", \"script.py\")\nprint(f\"  Joined path: {new_path}\")\n\n# Environment variables\nprint(f\"\\nEnvironment variables:\")\nuser = os.environ.get(\"USER\") or os.environ.get(\"USERNAME\", \"Unknown\")\npath_var = os.environ.get(\"PATH\", \"Not found\")\nprint(f\"  Current user: {user}\")\nprint(f\"  PATH variable: {len(path_var.split(os.pathsep))} directories\")\n",[5799],{"type":993,"tag":1022,"props":5800,"children":5801},{"__ignoreMap":8},[5802,5810,5817,5828,5840,5847,5867,5874,5882,5902,5943,5984,6034,6041,6049,6065,6091,6123,6164,6205,6212,6220,6252,6265,6291,6336,6377,6385,6458,6529,6546,6566,6573,6581,6598,6647,6688,6729,6778,6785,6793,6846,6887,6894,6902,6934,6988,7022,7063],{"type":993,"tag":1026,"props":5803,"children":5804},{"class":1028,"line":12},[5805],{"type":993,"tag":1026,"props":5806,"children":5807},{"style":1032},[5808],{"type":998,"value":5809},"# 💻 OS Module Examples\n",{"type":993,"tag":1026,"props":5811,"children":5812},{"class":1028,"line":27},[5813],{"type":993,"tag":1026,"props":5814,"children":5815},{"emptyLinePlaceholder":13},[5816],{"type":998,"value":1043},{"type":993,"tag":1026,"props":5818,"children":5819},{"class":1028,"line":36},[5820,5824],{"type":993,"tag":1026,"props":5821,"children":5822},{"style":1057},[5823],{"type":998,"value":1060},{"type":993,"tag":1026,"props":5825,"children":5826},{"style":1063},[5827],{"type":998,"value":1102},{"type":993,"tag":1026,"props":5829,"children":5830},{"class":1028,"line":45},[5831,5835],{"type":993,"tag":1026,"props":5832,"children":5833},{"style":1057},[5834],{"type":998,"value":1060},{"type":993,"tag":1026,"props":5836,"children":5837},{"style":1063},[5838],{"type":998,"value":5839}," sys\n",{"type":993,"tag":1026,"props":5841,"children":5842},{"class":1028,"line":54},[5843],{"type":993,"tag":1026,"props":5844,"children":5845},{"emptyLinePlaceholder":13},[5846],{"type":998,"value":1043},{"type":993,"tag":1026,"props":5848,"children":5849},{"class":1028,"line":63},[5850,5854,5858,5863],{"type":993,"tag":1026,"props":5851,"children":5852},{"style":1115},[5853],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5855,"children":5856},{"style":1063},[5857],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5859,"children":5860},{"style":1126},[5861],{"type":998,"value":5862},"\"💻 OS Module Showcase:\"",{"type":993,"tag":1026,"props":5864,"children":5865},{"style":1063},[5866],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5868,"children":5869},{"class":1028,"line":72},[5870],{"type":993,"tag":1026,"props":5871,"children":5872},{"emptyLinePlaceholder":13},[5873],{"type":998,"value":1043},{"type":993,"tag":1026,"props":5875,"children":5876},{"class":1028,"line":81},[5877],{"type":993,"tag":1026,"props":5878,"children":5879},{"style":1032},[5880],{"type":998,"value":5881},"# System information\n",{"type":993,"tag":1026,"props":5883,"children":5884},{"class":1028,"line":91},[5885,5889,5893,5898],{"type":993,"tag":1026,"props":5886,"children":5887},{"style":1115},[5888],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5890,"children":5891},{"style":1063},[5892],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5894,"children":5895},{"style":1126},[5896],{"type":998,"value":5897},"\"System information:\"",{"type":993,"tag":1026,"props":5899,"children":5900},{"style":1063},[5901],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5903,"children":5904},{"class":1028,"line":100},[5905,5909,5913,5917,5922,5926,5931,5935,5939],{"type":993,"tag":1026,"props":5906,"children":5907},{"style":1115},[5908],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5910,"children":5911},{"style":1063},[5912],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5914,"children":5915},{"style":1057},[5916],{"type":998,"value":1183},{"type":993,"tag":1026,"props":5918,"children":5919},{"style":1126},[5920],{"type":998,"value":5921},"\"  Operating system: ",{"type":993,"tag":1026,"props":5923,"children":5924},{"style":1115},[5925],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5927,"children":5928},{"style":1063},[5929],{"type":998,"value":5930},"os.name",{"type":993,"tag":1026,"props":5932,"children":5933},{"style":1115},[5934],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5936,"children":5937},{"style":1126},[5938],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5940,"children":5941},{"style":1063},[5942],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5944,"children":5945},{"class":1028,"line":109},[5946,5950,5954,5958,5963,5967,5972,5976,5980],{"type":993,"tag":1026,"props":5947,"children":5948},{"style":1115},[5949],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5951,"children":5952},{"style":1063},[5953],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5955,"children":5956},{"style":1057},[5957],{"type":998,"value":1183},{"type":993,"tag":1026,"props":5959,"children":5960},{"style":1126},[5961],{"type":998,"value":5962},"\"  Platform: ",{"type":993,"tag":1026,"props":5964,"children":5965},{"style":1115},[5966],{"type":998,"value":1193},{"type":993,"tag":1026,"props":5968,"children":5969},{"style":1063},[5970],{"type":998,"value":5971},"sys.platform",{"type":993,"tag":1026,"props":5973,"children":5974},{"style":1115},[5975],{"type":998,"value":1223},{"type":993,"tag":1026,"props":5977,"children":5978},{"style":1126},[5979],{"type":998,"value":1228},{"type":993,"tag":1026,"props":5981,"children":5982},{"style":1063},[5983],{"type":998,"value":1134},{"type":993,"tag":1026,"props":5985,"children":5986},{"class":1028,"line":118},[5987,5991,5995,5999,6004,6008,6013,6017,6022,6026,6030],{"type":993,"tag":1026,"props":5988,"children":5989},{"style":1115},[5990],{"type":998,"value":1118},{"type":993,"tag":1026,"props":5992,"children":5993},{"style":1063},[5994],{"type":998,"value":1123},{"type":993,"tag":1026,"props":5996,"children":5997},{"style":1057},[5998],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6000,"children":6001},{"style":1126},[6002],{"type":998,"value":6003},"\"  Python version: ",{"type":993,"tag":1026,"props":6005,"children":6006},{"style":1115},[6007],{"type":998,"value":1193},{"type":993,"tag":1026,"props":6009,"children":6010},{"style":1063},[6011],{"type":998,"value":6012},"sys.version.split()[",{"type":993,"tag":1026,"props":6014,"children":6015},{"style":1115},[6016],{"type":998,"value":5113},{"type":993,"tag":1026,"props":6018,"children":6019},{"style":1063},[6020],{"type":998,"value":6021},"]",{"type":993,"tag":1026,"props":6023,"children":6024},{"style":1115},[6025],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6027,"children":6028},{"style":1126},[6029],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6031,"children":6032},{"style":1063},[6033],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6035,"children":6036},{"class":1028,"line":127},[6037],{"type":993,"tag":1026,"props":6038,"children":6039},{"emptyLinePlaceholder":13},[6040],{"type":998,"value":1043},{"type":993,"tag":1026,"props":6042,"children":6043},{"class":1028,"line":136},[6044],{"type":993,"tag":1026,"props":6045,"children":6046},{"style":1032},[6047],{"type":998,"value":6048},"# Directory operations\n",{"type":993,"tag":1026,"props":6050,"children":6051},{"class":1028,"line":146},[6052,6057,6061],{"type":993,"tag":1026,"props":6053,"children":6054},{"style":1063},[6055],{"type":998,"value":6056},"current_dir ",{"type":993,"tag":1026,"props":6058,"children":6059},{"style":1057},[6060],{"type":998,"value":1162},{"type":993,"tag":1026,"props":6062,"children":6063},{"style":1063},[6064],{"type":998,"value":1768},{"type":993,"tag":1026,"props":6066,"children":6067},{"class":1028,"line":155},[6068,6073,6077,6082,6087],{"type":993,"tag":1026,"props":6069,"children":6070},{"style":1063},[6071],{"type":998,"value":6072},"home_dir ",{"type":993,"tag":1026,"props":6074,"children":6075},{"style":1057},[6076],{"type":998,"value":1162},{"type":993,"tag":1026,"props":6078,"children":6079},{"style":1063},[6080],{"type":998,"value":6081}," os.path.expanduser(",{"type":993,"tag":1026,"props":6083,"children":6084},{"style":1126},[6085],{"type":998,"value":6086},"\"~\"",{"type":993,"tag":1026,"props":6088,"children":6089},{"style":1063},[6090],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6092,"children":6093},{"class":1028,"line":164},[6094,6098,6102,6106,6110,6114,6119],{"type":993,"tag":1026,"props":6095,"children":6096},{"style":1115},[6097],{"type":998,"value":1118},{"type":993,"tag":1026,"props":6099,"children":6100},{"style":1063},[6101],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6103,"children":6104},{"style":1057},[6105],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6107,"children":6108},{"style":1126},[6109],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6111,"children":6112},{"style":1115},[6113],{"type":998,"value":2732},{"type":993,"tag":1026,"props":6115,"children":6116},{"style":1126},[6117],{"type":998,"value":6118},"Directory information:\"",{"type":993,"tag":1026,"props":6120,"children":6121},{"style":1063},[6122],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6124,"children":6125},{"class":1028,"line":173},[6126,6130,6134,6138,6143,6147,6152,6156,6160],{"type":993,"tag":1026,"props":6127,"children":6128},{"style":1115},[6129],{"type":998,"value":1118},{"type":993,"tag":1026,"props":6131,"children":6132},{"style":1063},[6133],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6135,"children":6136},{"style":1057},[6137],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6139,"children":6140},{"style":1126},[6141],{"type":998,"value":6142},"\"  Current directory: ",{"type":993,"tag":1026,"props":6144,"children":6145},{"style":1115},[6146],{"type":998,"value":1193},{"type":993,"tag":1026,"props":6148,"children":6149},{"style":1063},[6150],{"type":998,"value":6151},"os.path.basename(current_dir)",{"type":993,"tag":1026,"props":6153,"children":6154},{"style":1115},[6155],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6157,"children":6158},{"style":1126},[6159],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6161,"children":6162},{"style":1063},[6163],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6165,"children":6166},{"class":1028,"line":182},[6167,6171,6175,6179,6184,6188,6193,6197,6201],{"type":993,"tag":1026,"props":6168,"children":6169},{"style":1115},[6170],{"type":998,"value":1118},{"type":993,"tag":1026,"props":6172,"children":6173},{"style":1063},[6174],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6176,"children":6177},{"style":1057},[6178],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6180,"children":6181},{"style":1126},[6182],{"type":998,"value":6183},"\"  Home directory: ",{"type":993,"tag":1026,"props":6185,"children":6186},{"style":1115},[6187],{"type":998,"value":1193},{"type":993,"tag":1026,"props":6189,"children":6190},{"style":1063},[6191],{"type":998,"value":6192},"os.path.basename(home_dir)",{"type":993,"tag":1026,"props":6194,"children":6195},{"style":1115},[6196],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6198,"children":6199},{"style":1126},[6200],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6202,"children":6203},{"style":1063},[6204],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6206,"children":6207},{"class":1028,"line":191},[6208],{"type":993,"tag":1026,"props":6209,"children":6210},{"emptyLinePlaceholder":13},[6211],{"type":998,"value":1043},{"type":993,"tag":1026,"props":6213,"children":6214},{"class":1028,"line":201},[6215],{"type":993,"tag":1026,"props":6216,"children":6217},{"style":1032},[6218],{"type":998,"value":6219},"# List files in current directory\n",{"type":993,"tag":1026,"props":6221,"children":6222},{"class":1028,"line":210},[6223,6227,6231,6235,6239,6243,6248],{"type":993,"tag":1026,"props":6224,"children":6225},{"style":1115},[6226],{"type":998,"value":1118},{"type":993,"tag":1026,"props":6228,"children":6229},{"style":1063},[6230],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6232,"children":6233},{"style":1057},[6234],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6236,"children":6237},{"style":1126},[6238],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6240,"children":6241},{"style":1115},[6242],{"type":998,"value":2732},{"type":993,"tag":1026,"props":6244,"children":6245},{"style":1126},[6246],{"type":998,"value":6247},"Files in current directory:\"",{"type":993,"tag":1026,"props":6249,"children":6250},{"style":1063},[6251],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6253,"children":6254},{"class":1028,"line":219},[6255,6260],{"type":993,"tag":1026,"props":6256,"children":6257},{"style":1057},[6258],{"type":998,"value":6259},"try",{"type":993,"tag":1026,"props":6261,"children":6262},{"style":1063},[6263],{"type":998,"value":6264},":\n",{"type":993,"tag":1026,"props":6266,"children":6267},{"class":1028,"line":228},[6268,6273,6277,6282,6287],{"type":993,"tag":1026,"props":6269,"children":6270},{"style":1063},[6271],{"type":998,"value":6272},"    items ",{"type":993,"tag":1026,"props":6274,"children":6275},{"style":1057},[6276],{"type":998,"value":1162},{"type":993,"tag":1026,"props":6278,"children":6279},{"style":1063},[6280],{"type":998,"value":6281}," os.listdir(",{"type":993,"tag":1026,"props":6283,"children":6284},{"style":1126},[6285],{"type":998,"value":6286},"\".\"",{"type":993,"tag":1026,"props":6288,"children":6289},{"style":1063},[6290],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6292,"children":6293},{"class":1028,"line":238},[6294,6299,6303,6308,6312,6317,6321,6326,6331],{"type":993,"tag":1026,"props":6295,"children":6296},{"style":1063},[6297],{"type":998,"value":6298},"    files ",{"type":993,"tag":1026,"props":6300,"children":6301},{"style":1057},[6302],{"type":998,"value":1162},{"type":993,"tag":1026,"props":6304,"children":6305},{"style":1063},[6306],{"type":998,"value":6307}," [item ",{"type":993,"tag":1026,"props":6309,"children":6310},{"style":1057},[6311],{"type":998,"value":2933},{"type":993,"tag":1026,"props":6313,"children":6314},{"style":1063},[6315],{"type":998,"value":6316}," item ",{"type":993,"tag":1026,"props":6318,"children":6319},{"style":1057},[6320],{"type":998,"value":2943},{"type":993,"tag":1026,"props":6322,"children":6323},{"style":1063},[6324],{"type":998,"value":6325}," items ",{"type":993,"tag":1026,"props":6327,"children":6328},{"style":1057},[6329],{"type":998,"value":6330},"if",{"type":993,"tag":1026,"props":6332,"children":6333},{"style":1063},[6334],{"type":998,"value":6335}," os.path.isfile(item)]\n",{"type":993,"tag":1026,"props":6337,"children":6338},{"class":1028,"line":247},[6339,6344,6348,6352,6356,6360,6364,6368,6372],{"type":993,"tag":1026,"props":6340,"children":6341},{"style":1063},[6342],{"type":998,"value":6343},"    dirs ",{"type":993,"tag":1026,"props":6345,"children":6346},{"style":1057},[6347],{"type":998,"value":1162},{"type":993,"tag":1026,"props":6349,"children":6350},{"style":1063},[6351],{"type":998,"value":6307},{"type":993,"tag":1026,"props":6353,"children":6354},{"style":1057},[6355],{"type":998,"value":2933},{"type":993,"tag":1026,"props":6357,"children":6358},{"style":1063},[6359],{"type":998,"value":6316},{"type":993,"tag":1026,"props":6361,"children":6362},{"style":1057},[6363],{"type":998,"value":2943},{"type":993,"tag":1026,"props":6365,"children":6366},{"style":1063},[6367],{"type":998,"value":6325},{"type":993,"tag":1026,"props":6369,"children":6370},{"style":1057},[6371],{"type":998,"value":6330},{"type":993,"tag":1026,"props":6373,"children":6374},{"style":1063},[6375],{"type":998,"value":6376}," os.path.isdir(item)]\n",{"type":993,"tag":1026,"props":6378,"children":6379},{"class":1028,"line":256},[6380],{"type":993,"tag":1026,"props":6381,"children":6382},{"style":1063},[6383],{"type":998,"value":6384},"    \n",{"type":993,"tag":1026,"props":6386,"children":6387},{"class":1028,"line":265},[6388,6392,6396,6400,6405,6410,6415,6419,6423,6427,6432,6436,6440,6444,6449,6453],{"type":993,"tag":1026,"props":6389,"children":6390},{"style":1115},[6391],{"type":998,"value":2973},{"type":993,"tag":1026,"props":6393,"children":6394},{"style":1063},[6395],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6397,"children":6398},{"style":1057},[6399],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6401,"children":6402},{"style":1126},[6403],{"type":998,"value":6404},"\"  📁 Directories (",{"type":993,"tag":1026,"props":6406,"children":6407},{"style":1115},[6408],{"type":998,"value":6409},"{len",{"type":993,"tag":1026,"props":6411,"children":6412},{"style":1063},[6413],{"type":998,"value":6414},"(dirs)",{"type":993,"tag":1026,"props":6416,"children":6417},{"style":1115},[6418],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6420,"children":6421},{"style":1126},[6422],{"type":998,"value":5759},{"type":993,"tag":1026,"props":6424,"children":6425},{"style":1115},[6426],{"type":998,"value":1193},{"type":993,"tag":1026,"props":6428,"children":6429},{"style":1063},[6430],{"type":998,"value":6431},"dirs[:",{"type":993,"tag":1026,"props":6433,"children":6434},{"style":1115},[6435],{"type":998,"value":2393},{"type":993,"tag":1026,"props":6437,"children":6438},{"style":1063},[6439],{"type":998,"value":6021},{"type":993,"tag":1026,"props":6441,"children":6442},{"style":1115},[6443],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6445,"children":6446},{"style":1126},[6447],{"type":998,"value":6448},"...\"",{"type":993,"tag":1026,"props":6450,"children":6451},{"style":1063},[6452],{"type":998,"value":2425},{"type":993,"tag":1026,"props":6454,"children":6455},{"style":1032},[6456],{"type":998,"value":6457},"# Show first 3\n",{"type":993,"tag":1026,"props":6459,"children":6460},{"class":1028,"line":274},[6461,6465,6469,6473,6478,6482,6487,6491,6495,6499,6504,6508,6512,6516,6520,6525],{"type":993,"tag":1026,"props":6462,"children":6463},{"style":1115},[6464],{"type":998,"value":2973},{"type":993,"tag":1026,"props":6466,"children":6467},{"style":1063},[6468],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6470,"children":6471},{"style":1057},[6472],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6474,"children":6475},{"style":1126},[6476],{"type":998,"value":6477},"\"  📄 Files (",{"type":993,"tag":1026,"props":6479,"children":6480},{"style":1115},[6481],{"type":998,"value":6409},{"type":993,"tag":1026,"props":6483,"children":6484},{"style":1063},[6485],{"type":998,"value":6486},"(files)",{"type":993,"tag":1026,"props":6488,"children":6489},{"style":1115},[6490],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6492,"children":6493},{"style":1126},[6494],{"type":998,"value":5759},{"type":993,"tag":1026,"props":6496,"children":6497},{"style":1115},[6498],{"type":998,"value":1193},{"type":993,"tag":1026,"props":6500,"children":6501},{"style":1063},[6502],{"type":998,"value":6503},"files[:",{"type":993,"tag":1026,"props":6505,"children":6506},{"style":1115},[6507],{"type":998,"value":2393},{"type":993,"tag":1026,"props":6509,"children":6510},{"style":1063},[6511],{"type":998,"value":6021},{"type":993,"tag":1026,"props":6513,"children":6514},{"style":1115},[6515],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6517,"children":6518},{"style":1126},[6519],{"type":998,"value":6448},{"type":993,"tag":1026,"props":6521,"children":6522},{"style":1063},[6523],{"type":998,"value":6524},")      ",{"type":993,"tag":1026,"props":6526,"children":6527},{"style":1032},[6528],{"type":998,"value":6457},{"type":993,"tag":1026,"props":6530,"children":6531},{"class":1028,"line":284},[6532,6537,6542],{"type":993,"tag":1026,"props":6533,"children":6534},{"style":1057},[6535],{"type":998,"value":6536},"except",{"type":993,"tag":1026,"props":6538,"children":6539},{"style":1115},[6540],{"type":998,"value":6541}," PermissionError",{"type":993,"tag":1026,"props":6543,"children":6544},{"style":1063},[6545],{"type":998,"value":6264},{"type":993,"tag":1026,"props":6547,"children":6548},{"class":1028,"line":293},[6549,6553,6557,6562],{"type":993,"tag":1026,"props":6550,"children":6551},{"style":1115},[6552],{"type":998,"value":2973},{"type":993,"tag":1026,"props":6554,"children":6555},{"style":1063},[6556],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6558,"children":6559},{"style":1126},[6560],{"type":998,"value":6561},"\"  Cannot list directory contents\"",{"type":993,"tag":1026,"props":6563,"children":6564},{"style":1063},[6565],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6567,"children":6568},{"class":1028,"line":302},[6569],{"type":993,"tag":1026,"props":6570,"children":6571},{"emptyLinePlaceholder":13},[6572],{"type":998,"value":1043},{"type":993,"tag":1026,"props":6574,"children":6575},{"class":1028,"line":311},[6576],{"type":993,"tag":1026,"props":6577,"children":6578},{"style":1032},[6579],{"type":998,"value":6580},"# Path operations\n",{"type":993,"tag":1026,"props":6582,"children":6583},{"class":1028,"line":320},[6584,6589,6593],{"type":993,"tag":1026,"props":6585,"children":6586},{"style":1063},[6587],{"type":998,"value":6588},"sample_path ",{"type":993,"tag":1026,"props":6590,"children":6591},{"style":1057},[6592],{"type":998,"value":1162},{"type":993,"tag":1026,"props":6594,"children":6595},{"style":1126},[6596],{"type":998,"value":6597}," \"/home/user/documents/file.txt\"\n",{"type":993,"tag":1026,"props":6599,"children":6600},{"class":1028,"line":329},[6601,6605,6609,6613,6617,6621,6626,6630,6635,6639,6643],{"type":993,"tag":1026,"props":6602,"children":6603},{"style":1115},[6604],{"type":998,"value":1118},{"type":993,"tag":1026,"props":6606,"children":6607},{"style":1063},[6608],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6610,"children":6611},{"style":1057},[6612],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6614,"children":6615},{"style":1126},[6616],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6618,"children":6619},{"style":1115},[6620],{"type":998,"value":2732},{"type":993,"tag":1026,"props":6622,"children":6623},{"style":1126},[6624],{"type":998,"value":6625},"Path operations on: ",{"type":993,"tag":1026,"props":6627,"children":6628},{"style":1115},[6629],{"type":998,"value":1193},{"type":993,"tag":1026,"props":6631,"children":6632},{"style":1063},[6633],{"type":998,"value":6634},"sample_path",{"type":993,"tag":1026,"props":6636,"children":6637},{"style":1115},[6638],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6640,"children":6641},{"style":1126},[6642],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6644,"children":6645},{"style":1063},[6646],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6648,"children":6649},{"class":1028,"line":338},[6650,6654,6658,6662,6667,6671,6676,6680,6684],{"type":993,"tag":1026,"props":6651,"children":6652},{"style":1115},[6653],{"type":998,"value":1118},{"type":993,"tag":1026,"props":6655,"children":6656},{"style":1063},[6657],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6659,"children":6660},{"style":1057},[6661],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6663,"children":6664},{"style":1126},[6665],{"type":998,"value":6666},"\"  Directory: ",{"type":993,"tag":1026,"props":6668,"children":6669},{"style":1115},[6670],{"type":998,"value":1193},{"type":993,"tag":1026,"props":6672,"children":6673},{"style":1063},[6674],{"type":998,"value":6675},"os.path.dirname(sample_path)",{"type":993,"tag":1026,"props":6677,"children":6678},{"style":1115},[6679],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6681,"children":6682},{"style":1126},[6683],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6685,"children":6686},{"style":1063},[6687],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6689,"children":6690},{"class":1028,"line":347},[6691,6695,6699,6703,6708,6712,6717,6721,6725],{"type":993,"tag":1026,"props":6692,"children":6693},{"style":1115},[6694],{"type":998,"value":1118},{"type":993,"tag":1026,"props":6696,"children":6697},{"style":1063},[6698],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6700,"children":6701},{"style":1057},[6702],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6704,"children":6705},{"style":1126},[6706],{"type":998,"value":6707},"\"  Filename: ",{"type":993,"tag":1026,"props":6709,"children":6710},{"style":1115},[6711],{"type":998,"value":1193},{"type":993,"tag":1026,"props":6713,"children":6714},{"style":1063},[6715],{"type":998,"value":6716},"os.path.basename(sample_path)",{"type":993,"tag":1026,"props":6718,"children":6719},{"style":1115},[6720],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6722,"children":6723},{"style":1126},[6724],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6726,"children":6727},{"style":1063},[6728],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6730,"children":6731},{"class":1028,"line":356},[6732,6736,6740,6744,6749,6753,6758,6762,6766,6770,6774],{"type":993,"tag":1026,"props":6733,"children":6734},{"style":1115},[6735],{"type":998,"value":1118},{"type":993,"tag":1026,"props":6737,"children":6738},{"style":1063},[6739],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6741,"children":6742},{"style":1057},[6743],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6745,"children":6746},{"style":1126},[6747],{"type":998,"value":6748},"\"  Extension: ",{"type":993,"tag":1026,"props":6750,"children":6751},{"style":1115},[6752],{"type":998,"value":1193},{"type":993,"tag":1026,"props":6754,"children":6755},{"style":1063},[6756],{"type":998,"value":6757},"os.path.splitext(sample_path)[",{"type":993,"tag":1026,"props":6759,"children":6760},{"style":1115},[6761],{"type":998,"value":1281},{"type":993,"tag":1026,"props":6763,"children":6764},{"style":1063},[6765],{"type":998,"value":6021},{"type":993,"tag":1026,"props":6767,"children":6768},{"style":1115},[6769],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6771,"children":6772},{"style":1126},[6773],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6775,"children":6776},{"style":1063},[6777],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6779,"children":6780},{"class":1028,"line":365},[6781],{"type":993,"tag":1026,"props":6782,"children":6783},{"emptyLinePlaceholder":13},[6784],{"type":998,"value":1043},{"type":993,"tag":1026,"props":6786,"children":6787},{"class":1028,"line":374},[6788],{"type":993,"tag":1026,"props":6789,"children":6790},{"style":1032},[6791],{"type":998,"value":6792},"# Join paths properly (cross-platform)\n",{"type":993,"tag":1026,"props":6794,"children":6795},{"class":1028,"line":384},[6796,6801,6805,6810,6815,6819,6824,6828,6833,6837,6842],{"type":993,"tag":1026,"props":6797,"children":6798},{"style":1063},[6799],{"type":998,"value":6800},"new_path ",{"type":993,"tag":1026,"props":6802,"children":6803},{"style":1057},[6804],{"type":998,"value":1162},{"type":993,"tag":1026,"props":6806,"children":6807},{"style":1063},[6808],{"type":998,"value":6809}," os.path.join(",{"type":993,"tag":1026,"props":6811,"children":6812},{"style":1126},[6813],{"type":998,"value":6814},"\"documents\"",{"type":993,"tag":1026,"props":6816,"children":6817},{"style":1063},[6818],{"type":998,"value":1385},{"type":993,"tag":1026,"props":6820,"children":6821},{"style":1126},[6822],{"type":998,"value":6823},"\"projects\"",{"type":993,"tag":1026,"props":6825,"children":6826},{"style":1063},[6827],{"type":998,"value":1385},{"type":993,"tag":1026,"props":6829,"children":6830},{"style":1126},[6831],{"type":998,"value":6832},"\"python\"",{"type":993,"tag":1026,"props":6834,"children":6835},{"style":1063},[6836],{"type":998,"value":1385},{"type":993,"tag":1026,"props":6838,"children":6839},{"style":1126},[6840],{"type":998,"value":6841},"\"script.py\"",{"type":993,"tag":1026,"props":6843,"children":6844},{"style":1063},[6845],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6847,"children":6848},{"class":1028,"line":393},[6849,6853,6857,6861,6866,6870,6875,6879,6883],{"type":993,"tag":1026,"props":6850,"children":6851},{"style":1115},[6852],{"type":998,"value":1118},{"type":993,"tag":1026,"props":6854,"children":6855},{"style":1063},[6856],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6858,"children":6859},{"style":1057},[6860],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6862,"children":6863},{"style":1126},[6864],{"type":998,"value":6865},"\"  Joined path: ",{"type":993,"tag":1026,"props":6867,"children":6868},{"style":1115},[6869],{"type":998,"value":1193},{"type":993,"tag":1026,"props":6871,"children":6872},{"style":1063},[6873],{"type":998,"value":6874},"new_path",{"type":993,"tag":1026,"props":6876,"children":6877},{"style":1115},[6878],{"type":998,"value":1223},{"type":993,"tag":1026,"props":6880,"children":6881},{"style":1126},[6882],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6884,"children":6885},{"style":1063},[6886],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6888,"children":6889},{"class":1028,"line":402},[6890],{"type":993,"tag":1026,"props":6891,"children":6892},{"emptyLinePlaceholder":13},[6893],{"type":998,"value":1043},{"type":993,"tag":1026,"props":6895,"children":6896},{"class":1028,"line":411},[6897],{"type":993,"tag":1026,"props":6898,"children":6899},{"style":1032},[6900],{"type":998,"value":6901},"# Environment variables\n",{"type":993,"tag":1026,"props":6903,"children":6904},{"class":1028,"line":420},[6905,6909,6913,6917,6921,6925,6930],{"type":993,"tag":1026,"props":6906,"children":6907},{"style":1115},[6908],{"type":998,"value":1118},{"type":993,"tag":1026,"props":6910,"children":6911},{"style":1063},[6912],{"type":998,"value":1123},{"type":993,"tag":1026,"props":6914,"children":6915},{"style":1057},[6916],{"type":998,"value":1183},{"type":993,"tag":1026,"props":6918,"children":6919},{"style":1126},[6920],{"type":998,"value":1228},{"type":993,"tag":1026,"props":6922,"children":6923},{"style":1115},[6924],{"type":998,"value":2732},{"type":993,"tag":1026,"props":6926,"children":6927},{"style":1126},[6928],{"type":998,"value":6929},"Environment variables:\"",{"type":993,"tag":1026,"props":6931,"children":6932},{"style":1063},[6933],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6935,"children":6936},{"class":1028,"line":429},[6937,6942,6946,6951,6956,6961,6966,6970,6975,6979,6984],{"type":993,"tag":1026,"props":6938,"children":6939},{"style":1063},[6940],{"type":998,"value":6941},"user ",{"type":993,"tag":1026,"props":6943,"children":6944},{"style":1057},[6945],{"type":998,"value":1162},{"type":993,"tag":1026,"props":6947,"children":6948},{"style":1063},[6949],{"type":998,"value":6950}," os.environ.get(",{"type":993,"tag":1026,"props":6952,"children":6953},{"style":1126},[6954],{"type":998,"value":6955},"\"USER\"",{"type":993,"tag":1026,"props":6957,"children":6958},{"style":1063},[6959],{"type":998,"value":6960},") ",{"type":993,"tag":1026,"props":6962,"children":6963},{"style":1057},[6964],{"type":998,"value":6965},"or",{"type":993,"tag":1026,"props":6967,"children":6968},{"style":1063},[6969],{"type":998,"value":6950},{"type":993,"tag":1026,"props":6971,"children":6972},{"style":1126},[6973],{"type":998,"value":6974},"\"USERNAME\"",{"type":993,"tag":1026,"props":6976,"children":6977},{"style":1063},[6978],{"type":998,"value":1385},{"type":993,"tag":1026,"props":6980,"children":6981},{"style":1126},[6982],{"type":998,"value":6983},"\"Unknown\"",{"type":993,"tag":1026,"props":6985,"children":6986},{"style":1063},[6987],{"type":998,"value":1134},{"type":993,"tag":1026,"props":6989,"children":6990},{"class":1028,"line":438},[6991,6996,7000,7004,7009,7013,7018],{"type":993,"tag":1026,"props":6992,"children":6993},{"style":1063},[6994],{"type":998,"value":6995},"path_var ",{"type":993,"tag":1026,"props":6997,"children":6998},{"style":1057},[6999],{"type":998,"value":1162},{"type":993,"tag":1026,"props":7001,"children":7002},{"style":1063},[7003],{"type":998,"value":6950},{"type":993,"tag":1026,"props":7005,"children":7006},{"style":1126},[7007],{"type":998,"value":7008},"\"PATH\"",{"type":993,"tag":1026,"props":7010,"children":7011},{"style":1063},[7012],{"type":998,"value":1385},{"type":993,"tag":1026,"props":7014,"children":7015},{"style":1126},[7016],{"type":998,"value":7017},"\"Not found\"",{"type":993,"tag":1026,"props":7019,"children":7020},{"style":1063},[7021],{"type":998,"value":1134},{"type":993,"tag":1026,"props":7023,"children":7024},{"class":1028,"line":447},[7025,7029,7033,7037,7042,7046,7051,7055,7059],{"type":993,"tag":1026,"props":7026,"children":7027},{"style":1115},[7028],{"type":998,"value":1118},{"type":993,"tag":1026,"props":7030,"children":7031},{"style":1063},[7032],{"type":998,"value":1123},{"type":993,"tag":1026,"props":7034,"children":7035},{"style":1057},[7036],{"type":998,"value":1183},{"type":993,"tag":1026,"props":7038,"children":7039},{"style":1126},[7040],{"type":998,"value":7041},"\"  Current user: ",{"type":993,"tag":1026,"props":7043,"children":7044},{"style":1115},[7045],{"type":998,"value":1193},{"type":993,"tag":1026,"props":7047,"children":7048},{"style":1063},[7049],{"type":998,"value":7050},"user",{"type":993,"tag":1026,"props":7052,"children":7053},{"style":1115},[7054],{"type":998,"value":1223},{"type":993,"tag":1026,"props":7056,"children":7057},{"style":1126},[7058],{"type":998,"value":1228},{"type":993,"tag":1026,"props":7060,"children":7061},{"style":1063},[7062],{"type":998,"value":1134},{"type":993,"tag":1026,"props":7064,"children":7065},{"class":1028,"line":457},[7066,7070,7074,7078,7083,7087,7092,7096,7101],{"type":993,"tag":1026,"props":7067,"children":7068},{"style":1115},[7069],{"type":998,"value":1118},{"type":993,"tag":1026,"props":7071,"children":7072},{"style":1063},[7073],{"type":998,"value":1123},{"type":993,"tag":1026,"props":7075,"children":7076},{"style":1057},[7077],{"type":998,"value":1183},{"type":993,"tag":1026,"props":7079,"children":7080},{"style":1126},[7081],{"type":998,"value":7082},"\"  PATH variable: ",{"type":993,"tag":1026,"props":7084,"children":7085},{"style":1115},[7086],{"type":998,"value":6409},{"type":993,"tag":1026,"props":7088,"children":7089},{"style":1063},[7090],{"type":998,"value":7091},"(path_var.split(os.pathsep))",{"type":993,"tag":1026,"props":7093,"children":7094},{"style":1115},[7095],{"type":998,"value":1223},{"type":993,"tag":1026,"props":7097,"children":7098},{"style":1126},[7099],{"type":998,"value":7100}," directories\"",{"type":993,"tag":1026,"props":7102,"children":7103},{"style":1063},[7104],{"type":998,"value":1134},{"type":993,"tag":1811,"props":7106,"children":7108},{"id":7107},"common-module-patterns",[7109],{"type":998,"value":7110},"🚀 Common Module Patterns",{"type":993,"tag":1001,"props":7112,"children":7113},{},[7114],{"type":998,"value":7115},"Understanding how to effectively use multiple modules together makes your programs more powerful and efficient.",{"type":993,"tag":1823,"props":7117,"children":7121},{"emoji":7118,"title":7119,"type":7120},"⭐","Module Usage Best Practices","success",[7122,7130,7191,7199,7242,7250],{"type":993,"tag":1001,"props":7123,"children":7124},{},[7125],{"type":993,"tag":1833,"props":7126,"children":7127},{},[7128],{"type":998,"value":7129},"Import Guidelines:",{"type":993,"tag":1839,"props":7131,"children":7132},{},[7133,7143,7159,7175],{"type":993,"tag":1843,"props":7134,"children":7135},{},[7136,7141],{"type":993,"tag":1833,"props":7137,"children":7138},{},[7139],{"type":998,"value":7140},"Import at top",{"type":998,"value":7142},": Put all imports at the beginning of your file",{"type":993,"tag":1843,"props":7144,"children":7145},{},[7146,7151,7153,7158],{"type":993,"tag":1833,"props":7147,"children":7148},{},[7149],{"type":998,"value":7150},"Be specific",{"type":998,"value":7152},": Import only what you need (",{"type":993,"tag":1022,"props":7154,"children":7156},{"className":7155},[],[7157],{"type":998,"value":1926},{"type":998,"value":1218},{"type":993,"tag":1843,"props":7160,"children":7161},{},[7162,7167,7169,7174],{"type":993,"tag":1833,"props":7163,"children":7164},{},[7165],{"type":998,"value":7166},"Use aliases",{"type":998,"value":7168},": Shorten long module names (",{"type":993,"tag":1022,"props":7170,"children":7172},{"className":7171},[],[7173],{"type":998,"value":1943},{"type":998,"value":1218},{"type":993,"tag":1843,"props":7176,"children":7177},{},[7178,7183,7185],{"type":993,"tag":1833,"props":7179,"children":7180},{},[7181],{"type":998,"value":7182},"Avoid star imports",{"type":998,"value":7184},": Don't use ",{"type":993,"tag":1022,"props":7186,"children":7188},{"className":7187},[],[7189],{"type":998,"value":7190},"from module import *",{"type":993,"tag":1001,"props":7192,"children":7193},{},[7194],{"type":993,"tag":1833,"props":7195,"children":7196},{},[7197],{"type":998,"value":7198},"Organization Tips:",{"type":993,"tag":1839,"props":7200,"children":7201},{},[7202,7212,7222,7232],{"type":993,"tag":1843,"props":7203,"children":7204},{},[7205,7210],{"type":993,"tag":1833,"props":7206,"children":7207},{},[7208],{"type":998,"value":7209},"Group imports",{"type":998,"value":7211},": Standard library, third-party, your modules",{"type":993,"tag":1843,"props":7213,"children":7214},{},[7215,7220],{"type":993,"tag":1833,"props":7216,"children":7217},{},[7218],{"type":998,"value":7219},"Document dependencies",{"type":998,"value":7221},": List required modules clearly",{"type":993,"tag":1843,"props":7223,"children":7224},{},[7225,7230],{"type":993,"tag":1833,"props":7226,"children":7227},{},[7228],{"type":998,"value":7229},"Handle missing modules",{"type":998,"value":7231},": Use try/except for optional imports",{"type":993,"tag":1843,"props":7233,"children":7234},{},[7235,7240],{"type":993,"tag":1833,"props":7236,"children":7237},{},[7238],{"type":998,"value":7239},"Check versions",{"type":998,"value":7241},": Some features require specific Python versions",{"type":993,"tag":1001,"props":7243,"children":7244},{},[7245],{"type":993,"tag":1833,"props":7246,"children":7247},{},[7248],{"type":998,"value":7249},"Performance Notes:",{"type":993,"tag":1839,"props":7251,"children":7252},{},[7253,7263,7273,7283],{"type":993,"tag":1843,"props":7254,"children":7255},{},[7256,7261],{"type":993,"tag":1833,"props":7257,"children":7258},{},[7259],{"type":998,"value":7260},"Import once",{"type":998,"value":7262},": Modules are cached after first import",{"type":993,"tag":1843,"props":7264,"children":7265},{},[7266,7271],{"type":993,"tag":1833,"props":7267,"children":7268},{},[7269],{"type":998,"value":7270},"Lazy loading",{"type":998,"value":7272},": Import modules when needed, not before",{"type":993,"tag":1843,"props":7274,"children":7275},{},[7276,7281],{"type":993,"tag":1833,"props":7277,"children":7278},{},[7279],{"type":998,"value":7280},"Choose efficiently",{"type":998,"value":7282},": Use the right tool for the job",{"type":993,"tag":1843,"props":7284,"children":7285},{},[7286,7291],{"type":993,"tag":1833,"props":7287,"children":7288},{},[7289],{"type":998,"value":7290},"Profile if needed",{"type":998,"value":7292},": Check which modules impact performance",{"type":993,"tag":1811,"props":7294,"children":7296},{"id":7295},"essential-built-in-modules-reference",[7297],{"type":998,"value":7298},"Essential Built-in Modules Reference",{"type":993,"tag":1001,"props":7300,"children":7301},{},[7302],{"type":998,"value":7303},"Understanding core built-in modules enables effective use of Python's standard library for common programming tasks.",{"type":993,"tag":7305,"props":7306,"children":7307},"table",{},[7308,7337],{"type":993,"tag":7309,"props":7310,"children":7311},"thead",{},[7312],{"type":993,"tag":7313,"props":7314,"children":7315},"tr",{},[7316,7322,7327,7332],{"type":993,"tag":7317,"props":7318,"children":7319},"th",{},[7320],{"type":998,"value":7321},"Module",{"type":993,"tag":7317,"props":7323,"children":7324},{},[7325],{"type":998,"value":7326},"Purpose",{"type":993,"tag":7317,"props":7328,"children":7329},{},[7330],{"type":998,"value":7331},"Key Functions",{"type":993,"tag":7317,"props":7333,"children":7334},{},[7335],{"type":998,"value":7336},"Common Use Cases",{"type":993,"tag":7338,"props":7339,"children":7340},"tbody",{},[7341,7386,7430,7481,7525,7569,7620,7664],{"type":993,"tag":7313,"props":7342,"children":7343},{},[7344,7353,7358,7381],{"type":993,"tag":7345,"props":7346,"children":7347},"td",{},[7348],{"type":993,"tag":1833,"props":7349,"children":7350},{},[7351],{"type":998,"value":7352},"datetime",{"type":993,"tag":7345,"props":7354,"children":7355},{},[7356],{"type":998,"value":7357},"Date and time operations",{"type":993,"tag":7345,"props":7359,"children":7360},{},[7361,7367,7368,7374,7375],{"type":993,"tag":1022,"props":7362,"children":7364},{"className":7363},[],[7365],{"type":998,"value":7366},"now()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7369,"children":7371},{"className":7370},[],[7372],{"type":998,"value":7373},"strftime()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7376,"children":7378},{"className":7377},[],[7379],{"type":998,"value":7380},"timedelta()",{"type":993,"tag":7345,"props":7382,"children":7383},{},[7384],{"type":998,"value":7385},"Timestamps, scheduling, date arithmetic",{"type":993,"tag":7313,"props":7387,"children":7388},{},[7389,7397,7402,7425],{"type":993,"tag":7345,"props":7390,"children":7391},{},[7392],{"type":993,"tag":1833,"props":7393,"children":7394},{},[7395],{"type":998,"value":7396},"random",{"type":993,"tag":7345,"props":7398,"children":7399},{},[7400],{"type":998,"value":7401},"Random number generation",{"type":993,"tag":7345,"props":7403,"children":7404},{},[7405,7411,7412,7418,7419],{"type":993,"tag":1022,"props":7406,"children":7408},{"className":7407},[],[7409],{"type":998,"value":7410},"randint()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7413,"children":7415},{"className":7414},[],[7416],{"type":998,"value":7417},"choice()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7420,"children":7422},{"className":7421},[],[7423],{"type":998,"value":7424},"shuffle()",{"type":993,"tag":7345,"props":7426,"children":7427},{},[7428],{"type":998,"value":7429},"Games, sampling, simulations",{"type":993,"tag":7313,"props":7431,"children":7432},{},[7433,7441,7446,7476],{"type":993,"tag":7345,"props":7434,"children":7435},{},[7436],{"type":993,"tag":1833,"props":7437,"children":7438},{},[7439],{"type":998,"value":7440},"math",{"type":993,"tag":7345,"props":7442,"children":7443},{},[7444],{"type":998,"value":7445},"Mathematical functions",{"type":993,"tag":7345,"props":7447,"children":7448},{},[7449,7455,7456,7462,7463,7469,7470],{"type":993,"tag":1022,"props":7450,"children":7452},{"className":7451},[],[7453],{"type":998,"value":7454},"sqrt()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7457,"children":7459},{"className":7458},[],[7460],{"type":998,"value":7461},"sin()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7464,"children":7466},{"className":7465},[],[7467],{"type":998,"value":7468},"log()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7471,"children":7473},{"className":7472},[],[7474],{"type":998,"value":7475},"pi",{"type":993,"tag":7345,"props":7477,"children":7478},{},[7479],{"type":998,"value":7480},"Calculations, geometry, statistics",{"type":993,"tag":7313,"props":7482,"children":7483},{},[7484,7492,7497,7520],{"type":993,"tag":7345,"props":7485,"children":7486},{},[7487],{"type":993,"tag":1833,"props":7488,"children":7489},{},[7490],{"type":998,"value":7491},"os",{"type":993,"tag":7345,"props":7493,"children":7494},{},[7495],{"type":998,"value":7496},"Operating system interface",{"type":993,"tag":7345,"props":7498,"children":7499},{},[7500,7506,7507,7513,7514],{"type":993,"tag":1022,"props":7501,"children":7503},{"className":7502},[],[7504],{"type":998,"value":7505},"getcwd()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7508,"children":7510},{"className":7509},[],[7511],{"type":998,"value":7512},"listdir()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7515,"children":7517},{"className":7516},[],[7518],{"type":998,"value":7519},"path.join()",{"type":993,"tag":7345,"props":7521,"children":7522},{},[7523],{"type":998,"value":7524},"File paths, directory operations",{"type":993,"tag":7313,"props":7526,"children":7527},{},[7528,7536,7541,7564],{"type":993,"tag":7345,"props":7529,"children":7530},{},[7531],{"type":993,"tag":1833,"props":7532,"children":7533},{},[7534],{"type":998,"value":7535},"sys",{"type":993,"tag":7345,"props":7537,"children":7538},{},[7539],{"type":998,"value":7540},"Python runtime environment",{"type":993,"tag":7345,"props":7542,"children":7543},{},[7544,7550,7551,7557,7558],{"type":993,"tag":1022,"props":7545,"children":7547},{"className":7546},[],[7548],{"type":998,"value":7549},"argv",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7552,"children":7554},{"className":7553},[],[7555],{"type":998,"value":7556},"path",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7559,"children":7561},{"className":7560},[],[7562],{"type":998,"value":7563},"version",{"type":993,"tag":7345,"props":7565,"children":7566},{},[7567],{"type":998,"value":7568},"Command line args, system info",{"type":993,"tag":7313,"props":7570,"children":7571},{},[7572,7580,7585,7615],{"type":993,"tag":7345,"props":7573,"children":7574},{},[7575],{"type":993,"tag":1833,"props":7576,"children":7577},{},[7578],{"type":998,"value":7579},"json",{"type":993,"tag":7345,"props":7581,"children":7582},{},[7583],{"type":998,"value":7584},"JSON data processing",{"type":993,"tag":7345,"props":7586,"children":7587},{},[7588,7594,7595,7601,7602,7608,7609],{"type":993,"tag":1022,"props":7589,"children":7591},{"className":7590},[],[7592],{"type":998,"value":7593},"loads()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7596,"children":7598},{"className":7597},[],[7599],{"type":998,"value":7600},"dumps()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7603,"children":7605},{"className":7604},[],[7606],{"type":998,"value":7607},"load()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7610,"children":7612},{"className":7611},[],[7613],{"type":998,"value":7614},"dump()",{"type":993,"tag":7345,"props":7616,"children":7617},{},[7618],{"type":998,"value":7619},"API responses, configuration files",{"type":993,"tag":7313,"props":7621,"children":7622},{},[7623,7631,7636,7659],{"type":993,"tag":7345,"props":7624,"children":7625},{},[7626],{"type":993,"tag":1833,"props":7627,"children":7628},{},[7629],{"type":998,"value":7630},"re",{"type":993,"tag":7345,"props":7632,"children":7633},{},[7634],{"type":998,"value":7635},"Regular expressions",{"type":993,"tag":7345,"props":7637,"children":7638},{},[7639,7645,7646,7652,7653],{"type":993,"tag":1022,"props":7640,"children":7642},{"className":7641},[],[7643],{"type":998,"value":7644},"search()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7647,"children":7649},{"className":7648},[],[7650],{"type":998,"value":7651},"match()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7654,"children":7656},{"className":7655},[],[7657],{"type":998,"value":7658},"sub()",{"type":993,"tag":7345,"props":7660,"children":7661},{},[7662],{"type":998,"value":7663},"Text pattern matching, validation",{"type":993,"tag":7313,"props":7665,"children":7666},{},[7667,7675,7680,7696],{"type":993,"tag":7345,"props":7668,"children":7669},{},[7670],{"type":993,"tag":1833,"props":7671,"children":7672},{},[7673],{"type":998,"value":7674},"urllib",{"type":993,"tag":7345,"props":7676,"children":7677},{},[7678],{"type":998,"value":7679},"URL and web operations",{"type":993,"tag":7345,"props":7681,"children":7682},{},[7683,7689,7690],{"type":993,"tag":1022,"props":7684,"children":7686},{"className":7685},[],[7687],{"type":998,"value":7688},"urlopen()",{"type":998,"value":1385},{"type":993,"tag":1022,"props":7691,"children":7693},{"className":7692},[],[7694],{"type":998,"value":7695},"urlparse()",{"type":993,"tag":7345,"props":7697,"children":7698},{},[7699],{"type":998,"value":7700},"Web requests, URL manipulation",{"type":993,"tag":1001,"props":7702,"children":7703},{},[7704],{"type":998,"value":7705},"Using built-in modules effectively is a key skill for Python developers. The standard library provides tested, reliable solutions for most common programming tasks.",{"type":993,"tag":1811,"props":7707,"children":7709},{"id":7708},"test-your-knowledge",[7710],{"type":998,"value":7711},"Test Your Knowledge",{"type":993,"tag":1001,"props":7713,"children":7714},{},[7715],{"type":998,"value":7716},"Test your understanding of Python's built-in modules:",{"type":993,"tag":7718,"props":7719,"children":7723},"redirect-button",{"icon":7720,"label":7721,"url":7722},"pi pi-send","Take Quiz","/tutorial-quiz/python/using-built-in-modules",[],{"type":993,"tag":1811,"props":7725,"children":7727},{"id":7726},"whats-next",[7728],{"type":998,"value":7729},"What's Next?",{"type":993,"tag":1001,"props":7731,"children":7732},{},[7733],{"type":998,"value":7734},"Now that you understand how to use Python's built-in modules, you're ready to learn about module paths. Discover how Python finds modules and how to organize larger projects effectively.",{"type":993,"tag":1001,"props":7736,"children":7737},{},[7738,7740,7745],{"type":998,"value":7739},"Ready to continue? Check out our lesson on ",{"type":993,"tag":7741,"props":7742,"children":7743},"a",{"href":882},[7744],{"type":998,"value":883},{"type":998,"value":7746},".",{"type":993,"tag":7748,"props":7749,"children":7750},"style",{},[7751],{"type":998,"value":7752},"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":7754},[7755,7761,7762,7763,7764],{"id":1813,"depth":27,"text":1816,"children":7756},[7757,7758,7759,7760],{"id":2081,"depth":36,"text":2084},{"id":3210,"depth":36,"text":3213},{"id":757,"depth":36,"text":4404},{"id":5783,"depth":36,"text":5786},{"id":7107,"depth":27,"text":7110},{"id":7295,"depth":27,"text":7298},{"id":7708,"depth":27,"text":7711},{"id":7726,"depth":27,"text":7729},1782373752622]