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