[{"data":1,"prerenderedAt":13541},["ShallowReactive",2],{"tutorials-python":3,"category-items-python":987,"content-/python/getting-user-input":988},[4,22,31,40,49,58,67,76,86,95,104,113,122,131,141,150,159,168,177,186,196,205,214,223,233,242,251,260,269,279,288,297,306,315,324,333,342,351,360,369,379,388,397,406,415,424,433,442,452,461,470,479,488,497,506,515,525,534,543,552,561,570,579,588,597,606,616,625,634,643,652,661,670,680,689,698,707,716,725,734,744,753,762,771,780,789,798,807,817,826,835,844,853,863,872,881,890,900,909,918,927,936,945,953,961,970,979],{"_path":5,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":9,"description":10,"slug":11,"order":12,"isParent":13,"icon":14,"_type":15,"_id":16,"_source":17,"_file":18,"_stem":19,"_extension":20,"children":21,"expanded":13},"/python/getting-started","python",false,"","Getting Started","Begin your Python programming journey. Learn what Python is, how to set it up, and write your first programs. Perfect for complete beginners starting their coding adventure.","getting-started",1,true,"pi pi-folder","markdown","content:python:1.getting-started.md","content","python/1.getting-started.md","python/1.getting-started","md",[22,31,40,49,58,67],{"_path":23,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":24,"description":25,"slug":26,"parentId":5,"order":27,"_type":15,"_id":28,"_source":17,"_file":29,"_stem":30,"_extension":20},"/python/what-is-python","What is Python","Discover Python's fascinating history, design philosophy, and key features. Learn why Python has become one of the world's most popular programming languages and perfect for beginners.","what-is-python",2,"content:python:2.what-is-python.md","python/2.what-is-python.md","python/2.what-is-python",{"_path":32,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":33,"description":34,"slug":35,"parentId":5,"order":36,"_type":15,"_id":37,"_source":17,"_file":38,"_stem":39,"_extension":20},"/python/setup-python","Setup Python","Learn how to install Python on your computer and set up your development environment. Step-by-step guide for Windows, macOS, and Linux with beginner-friendly instructions.","setup-python",3,"content:python:3.setup-python.md","python/3.setup-python.md","python/3.setup-python",{"_path":41,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":42,"description":43,"slug":44,"parentId":5,"order":45,"_type":15,"_id":46,"_source":17,"_file":47,"_stem":48,"_extension":20},"/python/your-first-program","Your First Program","Write and run your first Python program! Learn the basics of Python programming with simple examples and step-by-step instructions for beginners.","your-first-program",4,"content:python:4.your-first-program.md","python/4.your-first-program.md","python/4.your-first-program",{"_path":50,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":51,"description":52,"slug":53,"parentId":5,"order":54,"_type":15,"_id":55,"_source":17,"_file":56,"_stem":57,"_extension":20},"/python/python-code-structure","Python Code Structure","Learn how Python code is organized and structured. Understand indentation, line breaks, and the basic rules that make Python programs work correctly.","python-code-structure",5,"content:python:5.python-code-structure.md","python/5.python-code-structure.md","python/5.python-code-structure",{"_path":59,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":60,"description":61,"slug":62,"parentId":5,"order":63,"_type":15,"_id":64,"_source":17,"_file":65,"_stem":66,"_extension":20},"/python/writing-comments","Writing Comments","Learn how to write effective comments in Python. Discover when and how to document your code to make it clear, maintainable, and easy to understand.","writing-comments",6,"content:python:6.writing-comments.md","python/6.writing-comments.md","python/6.writing-comments",{"_path":68,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":69,"description":70,"slug":71,"parentId":5,"order":72,"_type":15,"_id":73,"_source":17,"_file":74,"_stem":75,"_extension":20},"/python/working-with-variables","Working with Variables","Learn how to create, use, and manage variables in Python. Understand how to store data, change values, and follow naming conventions for clean, readable code.","working-with-variables",7,"content:python:7.working-with-variables.md","python/7.working-with-variables.md","python/7.working-with-variables",{"_path":77,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":78,"description":79,"slug":80,"order":81,"isParent":13,"icon":14,"_type":15,"_id":82,"_source":17,"_file":83,"_stem":84,"_extension":20,"children":85,"expanded":13},"/python/basic-data-types","Basic Data Types","Learn about Python's fundamental data types including numbers, text, and boolean values","basic-data-types",8,"content:python:8.basic-data-types.md","python/8.basic-data-types.md","python/8.basic-data-types",[86,95,104,113,122],{"_path":87,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":88,"description":89,"slug":90,"parentId":77,"order":91,"_type":15,"_id":92,"_source":17,"_file":93,"_stem":94,"_extension":20},"/python/understanding-data-types","Understanding Data Types","Learn how Python identifies different data types and why they're important for programming","understanding-data-types",9,"content:python:9.understanding-data-types.md","python/9.understanding-data-types.md","python/9.understanding-data-types",{"_path":96,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":97,"description":98,"slug":99,"parentId":77,"order":100,"_type":15,"_id":101,"_source":17,"_file":102,"_stem":103,"_extension":20},"/python/working-with-numbers","Working with Numbers","Learn about Python's numeric data types including integers and floats, and how to perform calculations","working-with-numbers",10,"content:python:10.working-with-numbers.md","python/10.working-with-numbers.md","python/10.working-with-numbers",{"_path":105,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":106,"description":107,"slug":108,"parentId":77,"order":109,"_type":15,"_id":110,"_source":17,"_file":111,"_stem":112,"_extension":20},"/python/text-and-strings","Text and Strings","Learn how to work with text data in Python using strings, including creation, manipulation, and formatting","text-and-strings",11,"content:python:11.text-and-strings.md","python/11.text-and-strings.md","python/11.text-and-strings",{"_path":114,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":115,"description":116,"slug":117,"parentId":77,"order":118,"_type":15,"_id":119,"_source":17,"_file":120,"_stem":121,"_extension":20},"/python/true-false-values","True/False Values","Learn about boolean values in Python, including True/False logic, comparison operations, and how to use booleans for decision-making in your programs","true-false-values",12,"content:python:12.true-false-values.md","python/12.true-false-values.md","python/12.true-false-values",{"_path":123,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":124,"description":125,"slug":126,"parentId":77,"order":127,"_type":15,"_id":128,"_source":17,"_file":129,"_stem":130,"_extension":20},"/python/converting-types","Converting Types","Learn how to convert between different Python data types including strings, numbers, and booleans","converting-types",13,"content:python:13.converting-types.md","python/13.converting-types.md","python/13.converting-types",{"_path":132,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":133,"description":134,"slug":135,"order":136,"isParent":13,"icon":14,"_type":15,"_id":137,"_source":17,"_file":138,"_stem":139,"_extension":20,"children":140,"expanded":13},"/python/python-operators","Python Operators","Learn about Python operators - the symbols and keywords that perform operations on data. Discover arithmetic, comparison, logical, and assignment operators with simple examples.","python-operators",14,"content:python:14.python-operators.md","python/14.python-operators.md","python/14.python-operators",[141,150,159,168,177],{"_path":142,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":143,"description":144,"slug":145,"parentId":132,"order":146,"_type":15,"_id":147,"_source":17,"_file":148,"_stem":149,"_extension":20},"/python/math-operations","Math Operations","Learn Python's arithmetic operators for mathematical calculations. Master addition, subtraction, multiplication, division, and more with practical examples.","math-operations",15,"content:python:15.math-operations.md","python/15.math-operations.md","python/15.math-operations",{"_path":151,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":152,"description":153,"slug":154,"parentId":132,"order":155,"_type":15,"_id":156,"_source":17,"_file":157,"_stem":158,"_extension":20},"/python/comparing-values","Comparing Values","Learn Python's comparison operators to compare values and make decisions. Master equality, inequality, and relational operators with practical examples.","comparing-values",16,"content:python:16.comparing-values.md","python/16.comparing-values.md","python/16.comparing-values",{"_path":160,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":161,"description":162,"slug":163,"parentId":132,"order":164,"_type":15,"_id":165,"_source":17,"_file":166,"_stem":167,"_extension":20},"/python/logic-operations","Logic Operations","Learn about Python's logical operators for combining conditions and creating complex boolean expressions","logic-operations",17,"content:python:17.logic-operations.md","python/17.logic-operations.md","python/17.logic-operations",{"_path":169,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":170,"description":171,"slug":172,"parentId":132,"order":173,"_type":15,"_id":174,"_source":17,"_file":175,"_stem":176,"_extension":20},"/python/value-assignment","Value Assignment","Learn about Python's assignment operators for efficiently updating variables and performing calculations","value-assignment",18,"content:python:18.value-assignment.md","python/18.value-assignment.md","python/18.value-assignment",{"_path":178,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":179,"description":180,"slug":181,"parentId":132,"order":182,"_type":15,"_id":183,"_source":17,"_file":184,"_stem":185,"_extension":20},"/python/operator-precedence","Operator Precedence","Learn how Python evaluates expressions with multiple operators and how to control evaluation order","operator-precedence",19,"content:python:19.operator-precedence.md","python/19.operator-precedence.md","python/19.operator-precedence",{"_path":187,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":188,"description":189,"slug":190,"order":191,"isParent":13,"icon":14,"_type":15,"_id":192,"_source":17,"_file":193,"_stem":194,"_extension":20,"children":195,"expanded":13},"/python/decision-making","Decision Making","Learn how to make decisions in your Python programs using conditional statements and control flow","decision-making",20,"content:python:20.decision-making.md","python/20.decision-making.md","python/20.decision-making",[196,205,214],{"_path":197,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":198,"description":199,"slug":200,"parentId":187,"order":201,"_type":15,"_id":202,"_source":17,"_file":203,"_stem":204,"_extension":20},"/python/if-statements","If Statements","Learn how to use if statements to make decisions and control program flow in Python","if-statements",21,"content:python:21.if-statements.md","python/21.if-statements.md","python/21.if-statements",{"_path":206,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":207,"description":208,"slug":209,"parentId":187,"order":210,"_type":15,"_id":211,"_source":17,"_file":212,"_stem":213,"_extension":20},"/python/multiple-conditions","Multiple Conditions","Learn how to handle multiple conditions using elif statements and complex conditional logic in Python","multiple-conditions",22,"content:python:22.multiple-conditions.md","python/22.multiple-conditions.md","python/22.multiple-conditions",{"_path":215,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":216,"description":217,"slug":218,"parentId":187,"order":219,"_type":15,"_id":220,"_source":17,"_file":221,"_stem":222,"_extension":20},"/python/pattern-matching","Pattern Matching","Learn how to use Python's match-case statements for powerful pattern matching and complex decision making","pattern-matching",23,"content:python:23.pattern-matching.md","python/23.pattern-matching.md","python/23.pattern-matching",{"_path":224,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":225,"description":226,"slug":227,"order":228,"isParent":13,"icon":14,"_type":15,"_id":229,"_source":17,"_file":230,"_stem":231,"_extension":20,"children":232,"expanded":13},"/python/repetition-and-loops","Python Loops","Learn how to use loops to repeat code efficiently and handle repetitive tasks in Python","repetition-and-loops",24,"content:python:24.repetition-and-loops.md","python/24.repetition-and-loops.md","python/24.repetition-and-loops",[233,242,251,260],{"_path":234,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":235,"description":236,"slug":237,"parentId":224,"order":238,"_type":15,"_id":239,"_source":17,"_file":240,"_stem":241,"_extension":20},"/python/while-loops","While Loops","Learn how to use while loops for condition-based repetition and create loops that run until specific conditions are met","while-loops",25,"content:python:25.while-loops.md","python/25.while-loops.md","python/25.while-loops",{"_path":243,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":244,"description":245,"slug":246,"parentId":224,"order":247,"_type":15,"_id":248,"_source":17,"_file":249,"_stem":250,"_extension":20},"/python/for-loops","For Loops","Learn how to use for loops to iterate through sequences, collections, and ranges efficiently in Python","for-loops",26,"content:python:26.for-loops.md","python/26.for-loops.md","python/26.for-loops",{"_path":252,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":253,"description":254,"slug":255,"parentId":224,"order":256,"_type":15,"_id":257,"_source":17,"_file":258,"_stem":259,"_extension":20},"/python/loop-control","Loop Control","Master advanced loop control techniques including break, continue, and else clauses for sophisticated iteration patterns","loop-control",27,"content:python:27.loop-control.md","python/27.loop-control.md","python/27.loop-control",{"_path":261,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":262,"description":263,"slug":264,"parentId":224,"order":265,"_type":15,"_id":266,"_source":17,"_file":267,"_stem":268,"_extension":20},"/python/nested-loops","Nested Loops","Learn how to use nested loops to process multi-dimensional data, create patterns, and handle complex iteration scenarios","nested-loops",28,"content:python:28.nested-loops.md","python/28.nested-loops.md","python/28.nested-loops",{"_path":270,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":271,"description":272,"slug":273,"order":274,"isParent":13,"icon":14,"_type":15,"_id":275,"_source":17,"_file":276,"_stem":277,"_extension":20,"children":278,"expanded":13},"/python/python-lists","Python Lists","Learn about Python lists, one of the most important and versatile data structures for storing and organizing collections of data","python-lists",29,"content:python:29.python-lists.md","python/29.python-lists.md","python/29.python-lists",[279,288,297,306,315,324,333,342,351,360],{"_path":280,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":281,"description":282,"slug":283,"parentId":270,"order":284,"_type":15,"_id":285,"_source":17,"_file":286,"_stem":287,"_extension":20},"/python/creating-lists","Creating Lists","Learn different methods to create and initialize Python lists, from simple literals to advanced techniques","creating-lists",30,"content:python:30.creating-lists.md","python/30.creating-lists.md","python/30.creating-lists",{"_path":289,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":290,"description":291,"slug":292,"parentId":270,"order":293,"_type":15,"_id":294,"_source":17,"_file":295,"_stem":296,"_extension":20},"/python/reading-list-data","Reading List Data","Master techniques for accessing and retrieving data from Python lists using indexing, slicing, and built-in methods","reading-list-data",31,"content:python:31.reading-list-data.md","python/31.reading-list-data.md","python/31.reading-list-data",{"_path":298,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":299,"description":300,"slug":301,"parentId":270,"order":302,"_type":15,"_id":303,"_source":17,"_file":304,"_stem":305,"_extension":20},"/python/modifying-lists","Modifying Lists","Learn how to change, update, and modify existing elements in Python lists using indexing and various methods","modifying-lists",32,"content:python:32.modifying-lists.md","python/32.modifying-lists.md","python/32.modifying-lists",{"_path":307,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":308,"description":309,"slug":310,"parentId":270,"order":311,"_type":15,"_id":312,"_source":17,"_file":313,"_stem":314,"_extension":20},"/python/adding-to-lists","Adding to Lists","Learn various methods to add elements to Python lists including append, insert, extend, and concatenation techniques","adding-to-lists",33,"content:python:33.adding-to-lists.md","python/33.adding-to-lists.md","python/33.adding-to-lists",{"_path":316,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":317,"description":318,"slug":319,"parentId":270,"order":320,"_type":15,"_id":321,"_source":17,"_file":322,"_stem":323,"_extension":20},"/python/removing-from-lists","Removing from Lists","Learn different methods to remove and delete elements from Python lists including remove, pop, del, and clear","removing-from-lists",34,"content:python:34.removing-from-lists.md","python/34.removing-from-lists.md","python/34.removing-from-lists",{"_path":325,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":326,"description":327,"slug":328,"parentId":270,"order":329,"_type":15,"_id":330,"_source":17,"_file":331,"_stem":332,"_extension":20},"/python/looping-through-lists","Looping Through Lists","Learn different ways to iterate through Python lists using for loops, while loops, enumerate, and other iteration techniques","looping-through-lists",35,"content:python:35.looping-through-lists.md","python/35.looping-through-lists.md","python/35.looping-through-lists",{"_path":334,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":335,"description":336,"slug":337,"parentId":270,"order":338,"_type":15,"_id":339,"_source":17,"_file":340,"_stem":341,"_extension":20},"/python/list-shortcuts","List Shortcuts","Learn powerful Python list shortcuts including list comprehensions, slicing tricks, and built-in functions for efficient list operations","list-shortcuts",36,"content:python:36.list-shortcuts.md","python/36.list-shortcuts.md","python/36.list-shortcuts",{"_path":343,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":344,"description":345,"slug":346,"parentId":270,"order":347,"_type":15,"_id":348,"_source":17,"_file":349,"_stem":350,"_extension":20},"/python/organizing-lists","Organizing Lists","Learn how to sort, reverse, and organize Python lists using built-in methods and custom sorting techniques","organizing-lists",37,"content:python:37.organizing-lists.md","python/37.organizing-lists.md","python/37.organizing-lists",{"_path":352,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":353,"description":354,"slug":355,"parentId":270,"order":356,"_type":15,"_id":357,"_source":17,"_file":358,"_stem":359,"_extension":20},"/python/combining-lists","Combining Lists","Learn various techniques to combine, merge, and join Python lists including concatenation, zipping, and advanced merging strategies","combining-lists",38,"content:python:38.combining-lists.md","python/38.combining-lists.md","python/38.combining-lists",{"_path":361,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":362,"description":363,"slug":364,"parentId":270,"order":365,"_type":15,"_id":366,"_source":17,"_file":367,"_stem":368,"_extension":20},"/python/essential-list-tools","Essential List Tools","Master powerful built-in functions and advanced techniques for efficient Python list manipulation and data processing","essential-list-tools",39,"content:python:39.essential-list-tools.md","python/39.essential-list-tools.md","python/39.essential-list-tools",{"_path":370,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":371,"description":372,"slug":373,"order":374,"isParent":13,"icon":14,"_type":15,"_id":375,"_source":17,"_file":376,"_stem":377,"_extension":20,"children":378,"expanded":13},"/python/python-tuples","Python Tuples","Master Python tuples - immutable sequences perfect for storing related data that shouldn't change. Learn creation, access, and manipulation techniques.","python-tuples",40,"content:python:40.python-tuples.md","python/40.python-tuples.md","python/40.python-tuples",[379,388,397,406,415,424,433],{"_path":380,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":381,"description":382,"slug":383,"parentId":370,"order":384,"_type":15,"_id":385,"_source":17,"_file":386,"_stem":387,"_extension":20},"/python/creating-tuples","Creating Tuples","Learn different ways to create Python tuples, from basic syntax to advanced techniques. Master tuple initialization and understand when to use tuples.","creating-tuples",41,"content:python:41.creating-tuples.md","python/41.creating-tuples.md","python/41.creating-tuples",{"_path":389,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":390,"description":391,"slug":392,"parentId":370,"order":393,"_type":15,"_id":394,"_source":17,"_file":395,"_stem":396,"_extension":20},"/python/reading-tuple-data","Reading Tuple Data","Master accessing tuple elements through indexing, slicing, and searching. Learn efficient patterns for reading and working with tuple data.","reading-tuple-data",42,"content:python:42.reading-tuple-data.md","python/42.reading-tuple-data.md","python/42.reading-tuple-data",{"_path":398,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":399,"description":400,"slug":401,"parentId":370,"order":402,"_type":15,"_id":403,"_source":17,"_file":404,"_stem":405,"_extension":20},"/python/changing-tuples","Changing Tuples","Understand tuple immutability and learn techniques for working with unchangeable data. Master creating modified tuple versions and handling immutable constraints.","changing-tuples",43,"content:python:43.changing-tuples.md","python/43.changing-tuples.md","python/43.changing-tuples",{"_path":407,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":408,"description":409,"slug":410,"parentId":370,"order":411,"_type":15,"_id":412,"_source":17,"_file":413,"_stem":414,"_extension":20},"/python/tuple-unpacking","Tuple Unpacking","Master tuple unpacking for elegant variable assignment, function returns, and data extraction. Learn Python's powerful unpacking syntax and patterns.","tuple-unpacking",44,"content:python:44.tuple-unpacking.md","python/44.tuple-unpacking.md","python/44.tuple-unpacking",{"_path":416,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":417,"description":418,"slug":419,"parentId":370,"order":420,"_type":15,"_id":421,"_source":17,"_file":422,"_stem":423,"_extension":20},"/python/iterating-tuples","Iterating Tuples","Master tuple iteration techniques for processing sequence data. Learn basic loops, enumerate, nested iteration, and advanced patterns for efficient data processing.","iterating-tuples",45,"content:python:45.iterating-tuples.md","python/45.iterating-tuples.md","python/45.iterating-tuples",{"_path":425,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":426,"description":427,"slug":428,"parentId":370,"order":429,"_type":15,"_id":430,"_source":17,"_file":431,"_stem":432,"_extension":20},"/python/merging-tuples","Merging Tuples","Learn techniques for combining and merging tuples to create larger data structures. Master concatenation, joining multiple tuples, and advanced merging patterns.","merging-tuples",46,"content:python:46.merging-tuples.md","python/46.merging-tuples.md","python/46.merging-tuples",{"_path":434,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":436,"slug":437,"parentId":370,"order":438,"_type":15,"_id":439,"_source":17,"_file":440,"_stem":441,"_extension":20},"/python/tuple-operations","Tuple Operations","Master comprehensive tuple operations including built-in functions, mathematical operations, comparisons, and advanced techniques for efficient tuple manipulation.","tuple-operations",47,"content:python:47.tuple-operations.md","python/47.tuple-operations.md","python/47.tuple-operations",{"_path":443,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":444,"description":445,"slug":446,"order":447,"isParent":13,"icon":14,"_type":15,"_id":448,"_source":17,"_file":449,"_stem":450,"_extension":20,"children":451,"expanded":13},"/python/python-sets","Python Sets","Discover Python sets - unique collections that automatically eliminate duplicates and provide powerful mathematical operations for data filtering and analysis.","python-sets",48,"content:python:48.python-sets.md","python/48.python-sets.md","python/48.python-sets",[452,461,470,479,488,497,506],{"_path":453,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":454,"description":455,"slug":456,"parentId":443,"order":457,"_type":15,"_id":458,"_source":17,"_file":459,"_stem":460,"_extension":20},"/python/creating-sets","Creating Sets","Learn multiple ways to create sets in Python including literal syntax, set() function, and set comprehensions. Master set creation from different data sources.","creating-sets",49,"content:python:49.creating-sets.md","python/49.creating-sets.md","python/49.creating-sets",{"_path":462,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":463,"description":464,"slug":465,"parentId":443,"order":466,"_type":15,"_id":467,"_source":17,"_file":468,"_stem":469,"_extension":20},"/python/reading-set-data","Reading Set Data","Learn how to access and examine set data in Python including membership testing, iteration, size checking, and converting sets to other data types.","reading-set-data",50,"content:python:50.reading-set-data.md","python/50.reading-set-data.md","python/50.reading-set-data",{"_path":471,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":472,"description":473,"slug":474,"parentId":443,"order":475,"_type":15,"_id":476,"_source":17,"_file":477,"_stem":478,"_extension":20},"/python/adding-to-sets","Adding to Sets","Learn how to add elements to sets in Python using add(), update(), and union operations. Master growing sets dynamically with single items and multiple elements.","adding-to-sets",51,"content:python:51.adding-to-sets.md","python/51.adding-to-sets.md","python/51.adding-to-sets",{"_path":480,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":481,"description":482,"slug":483,"parentId":443,"order":484,"_type":15,"_id":485,"_source":17,"_file":486,"_stem":487,"_extension":20},"/python/removing-from-sets","Removing from Sets","Learn how to remove elements from Python sets using different methods like remove(), discard(), pop(), and clear()","removing-from-sets",52,"content:python:52.removing-from-sets.md","python/52.removing-from-sets.md","python/52.removing-from-sets",{"_path":489,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":490,"description":491,"slug":492,"parentId":443,"order":493,"_type":15,"_id":494,"_source":17,"_file":495,"_stem":496,"_extension":20},"/python/iterating-sets","Iterating Sets","Learn different ways to iterate through Python sets using for loops, comprehensions, and built-in functions","iterating-sets",53,"content:python:53.iterating-sets.md","python/53.iterating-sets.md","python/53.iterating-sets",{"_path":498,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":499,"description":500,"slug":501,"parentId":443,"order":502,"_type":15,"_id":503,"_source":17,"_file":504,"_stem":505,"_extension":20},"/python/combining-sets","Combining Sets","Learn how to combine Python sets using union, intersection, difference, and other set operations","combining-sets",54,"content:python:54.combining-sets.md","python/54.combining-sets.md","python/54.combining-sets",{"_path":507,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":509,"slug":510,"parentId":443,"order":511,"_type":15,"_id":512,"_source":17,"_file":513,"_stem":514,"_extension":20},"/python/set-operations","Set Operations","Learn advanced Python set operations including comparisons, subsets, supersets, and mathematical set relationships","set-operations",55,"content:python:55.set-operations.md","python/55.set-operations.md","python/55.set-operations",{"_path":516,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":517,"description":518,"slug":519,"order":520,"isParent":13,"icon":14,"_type":15,"_id":521,"_source":17,"_file":522,"_stem":523,"_extension":20,"children":524,"expanded":13},"/python/python-dictionaries","Python Dictionaries","Learn about Python dictionaries - key-value data structures for storing and organizing related information","python-dictionaries",56,"content:python:56.python-dictionaries.md","python/56.python-dictionaries.md","python/56.python-dictionaries",[525,534,543,552,561,570,579,588,597],{"_path":526,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":527,"description":528,"slug":529,"parentId":516,"order":530,"_type":15,"_id":531,"_source":17,"_file":532,"_stem":533,"_extension":20},"/python/creating-dictionaries","Creating Dictionaries","Learn different methods to create Python dictionaries using literals, constructors, and comprehensions","creating-dictionaries",57,"content:python:57.creating-dictionaries.md","python/57.creating-dictionaries.md","python/57.creating-dictionaries",{"_path":535,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":536,"description":537,"slug":538,"parentId":516,"order":539,"_type":15,"_id":540,"_source":17,"_file":541,"_stem":542,"_extension":20},"/python/getting-dictionary-values","Getting Dictionary Values","Learn safe and efficient methods to retrieve data from Python dictionaries using various access techniques","getting-dictionary-values",58,"content:python:58.getting-dictionary-values.md","python/58.getting-dictionary-values.md","python/58.getting-dictionary-values",{"_path":544,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":545,"description":546,"slug":547,"parentId":516,"order":548,"_type":15,"_id":549,"_source":17,"_file":550,"_stem":551,"_extension":20},"/python/updating-dictionaries","Updating Dictionaries","Learn how to modify and maintain Python dictionary data using various update methods and techniques","updating-dictionaries",59,"content:python:59.updating-dictionaries.md","python/59.updating-dictionaries.md","python/59.updating-dictionaries",{"_path":553,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":554,"description":555,"slug":556,"parentId":516,"order":557,"_type":15,"_id":558,"_source":17,"_file":559,"_stem":560,"_extension":20},"/python/adding-dictionary-items","Adding Dictionary Items","Learn effective techniques for adding new items to Python dictionaries with various methods and best practices","adding-dictionary-items",60,"content:python:60.adding-dictionary-items.md","python/60.adding-dictionary-items.md","python/60.adding-dictionary-items",{"_path":562,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":563,"description":564,"slug":565,"parentId":516,"order":566,"_type":15,"_id":567,"_source":17,"_file":568,"_stem":569,"_extension":20},"/python/deleting-dictionary-items","Deleting Dictionary Items","Master safe and efficient techniques for removing items from Python dictionaries with various methods and error handling","deleting-dictionary-items",61,"content:python:61.deleting-dictionary-items.md","python/61.deleting-dictionary-items.md","python/61.deleting-dictionary-items",{"_path":571,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":572,"description":573,"slug":574,"parentId":516,"order":575,"_type":15,"_id":576,"_source":17,"_file":577,"_stem":578,"_extension":20},"/python/looping-dictionaries","Looping Dictionaries","Learn efficient techniques for iterating through Python dictionaries using keys, values, and items","looping-dictionaries",62,"content:python:62.looping-dictionaries.md","python/62.looping-dictionaries.md","python/62.looping-dictionaries",{"_path":580,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":581,"description":582,"slug":583,"parentId":516,"order":584,"_type":15,"_id":585,"_source":17,"_file":586,"_stem":587,"_extension":20},"/python/dictionary-copies","Dictionary Copies","Learn safe techniques for duplicating Python dictionaries using shallow and deep copy methods","dictionary-copies",63,"content:python:63.dictionary-copies.md","python/63.dictionary-copies.md","python/63.dictionary-copies",{"_path":589,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":590,"description":591,"slug":592,"parentId":516,"order":593,"_type":15,"_id":594,"_source":17,"_file":595,"_stem":596,"_extension":20},"/python/multi-level-dictionaries","Multi-level Dictionaries","Master working with nested Python dictionaries for complex data structures and hierarchical information","multi-level-dictionaries",64,"content:python:64.multi-level-dictionaries.md","python/64.multi-level-dictionaries.md","python/64.multi-level-dictionaries",{"_path":598,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":599,"description":600,"slug":601,"parentId":516,"order":602,"_type":15,"_id":603,"_source":17,"_file":604,"_stem":605,"_extension":20},"/python/dictionary-tools","Dictionary Tools","Explore powerful built-in functions and advanced techniques for efficient Python dictionary manipulation and analysis","dictionary-tools",65,"content:python:65.dictionary-tools.md","python/65.dictionary-tools.md","python/65.dictionary-tools",{"_path":607,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":608,"description":609,"slug":610,"order":611,"isParent":13,"icon":14,"_type":15,"_id":612,"_source":17,"_file":613,"_stem":614,"_extension":20,"children":615,"expanded":13},"/python/python-functions","Python Functions","Learn how to create and use Python functions to organize code into reusable, modular components that make programs more efficient and maintainable","python-functions",66,"content:python:66.python-functions.md","python/66.python-functions.md","python/66.python-functions",[616,625,634,643,652,661],{"_path":617,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":618,"description":619,"slug":620,"parentId":607,"order":621,"_type":15,"_id":622,"_source":17,"_file":623,"_stem":624,"_extension":20},"/python/function-basics","Function Basics","Learn the fundamentals of creating and using Python functions to organize code into reusable, modular components","function-basics",67,"content:python:67.function-basics.md","python/67.function-basics.md","python/67.function-basics",{"_path":626,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":627,"description":628,"slug":629,"parentId":607,"order":630,"_type":15,"_id":631,"_source":17,"_file":632,"_stem":633,"_extension":20},"/python/function-parameters","Function Parameters","Master different types of Python function parameters including positional, keyword, default, and variable-length arguments","function-parameters",68,"content:python:68.function-parameters.md","python/68.function-parameters.md","python/68.function-parameters",{"_path":635,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":636,"description":637,"slug":638,"parentId":607,"order":639,"_type":15,"_id":640,"_source":17,"_file":641,"_stem":642,"_extension":20},"/python/returning-values","Returning Values","Learn different ways Python functions return data including single values, multiple values, and conditional returns","returning-values",69,"content:python:69.returning-values.md","python/69.returning-values.md","python/69.returning-values",{"_path":644,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":645,"description":646,"slug":647,"parentId":607,"order":648,"_type":15,"_id":649,"_source":17,"_file":650,"_stem":651,"_extension":20},"/python/variable-scope","Variable Scope","Understand Python variable scope including local, global, and nonlocal variables and how they affect function behavior","variable-scope",70,"content:python:70.variable-scope.md","python/70.variable-scope.md","python/70.variable-scope",{"_path":653,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":654,"description":655,"slug":656,"parentId":607,"order":657,"_type":15,"_id":658,"_source":17,"_file":659,"_stem":660,"_extension":20},"/python/anonymous-functions","Anonymous Functions","Learn to create and use Python lambda functions for concise, inline function definitions and functional programming patterns","anonymous-functions",71,"content:python:71.anonymous-functions.md","python/71.anonymous-functions.md","python/71.anonymous-functions",{"_path":662,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":663,"description":664,"slug":665,"parentId":607,"order":666,"_type":15,"_id":667,"_source":17,"_file":668,"_stem":669,"_extension":20},"/python/function-recursion","Function Recursion","Master recursive functions in Python by learning how functions can call themselves to solve complex problems with elegant, mathematical solutions","function-recursion",72,"content:python:72.function-recursion.md","python/72.function-recursion.md","python/72.function-recursion",{"_path":671,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":672,"description":673,"slug":674,"order":675,"isParent":13,"icon":14,"_type":15,"_id":676,"_source":17,"_file":677,"_stem":678,"_extension":20,"children":679,"expanded":13},"/python/object-programming","Object Programming","Learn object-oriented programming (OOP) in Python - create classes, objects, and methods to build organized, reusable code","object-programming",73,"content:python:73.object-programming.md","python/73.object-programming.md","python/73.object-programming",[680,689,698,707,716,725],{"_path":681,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":682,"description":683,"slug":684,"parentId":671,"order":685,"_type":15,"_id":686,"_source":17,"_file":687,"_stem":688,"_extension":20},"/python/classes-and-objects","Classes and Objects","Learn to create Python classes and objects - the foundation of object-oriented programming for building reusable, organized code","classes-and-objects",74,"content:python:74.classes-and-objects.md","python/74.classes-and-objects.md","python/74.classes-and-objects",{"_path":690,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":691,"description":692,"slug":693,"parentId":671,"order":694,"_type":15,"_id":695,"_source":17,"_file":696,"_stem":697,"_extension":20},"/python/object-methods","Object Methods","Master object methods in Python - learn to define behaviors, work with parameters, and create interactive objects that respond to actions","object-methods",75,"content:python:75.object-methods.md","python/75.object-methods.md","python/75.object-methods",{"_path":699,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":700,"description":701,"slug":702,"parentId":671,"order":703,"_type":15,"_id":704,"_source":17,"_file":705,"_stem":706,"_extension":20},"/python/class-inheritance","Class Inheritance","Learn Python class inheritance - create specialized classes that build upon existing functionality while adding new features and behaviors","class-inheritance",76,"content:python:76.class-inheritance.md","python/76.class-inheritance.md","python/76.class-inheritance",{"_path":708,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":709,"description":710,"slug":711,"parentId":671,"order":712,"_type":15,"_id":713,"_source":17,"_file":714,"_stem":715,"_extension":20},"/python/method-overriding","Method Overriding","Master method overriding in Python - learn to customize inherited methods, use super(), and create specialized behaviors while maintaining inheritance benefits","method-overriding",77,"content:python:77.method-overriding.md","python/77.method-overriding.md","python/77.method-overriding",{"_path":717,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":718,"description":719,"slug":720,"parentId":671,"order":721,"_type":15,"_id":722,"_source":17,"_file":723,"_stem":724,"_extension":20},"/python/variable-visibility","Variable Visibility","Master Python variable visibility - learn public, protected, and private attributes to control access and create well-encapsulated classes","variable-visibility",78,"content:python:78.variable-visibility.md","python/78.variable-visibility.md","python/78.variable-visibility",{"_path":726,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":727,"description":728,"slug":729,"parentId":671,"order":730,"_type":15,"_id":731,"_source":17,"_file":732,"_stem":733,"_extension":20},"/python/special-methods","Special Methods","Master Python special methods (magic methods) - learn to implement __str__, __len__, __eq__ and more to make your classes work seamlessly with Python's built-in functions","special-methods",79,"content:python:79.special-methods.md","python/79.special-methods.md","python/79.special-methods",{"_path":735,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":736,"description":737,"slug":738,"order":739,"isParent":13,"icon":14,"_type":15,"_id":740,"_source":17,"_file":741,"_stem":742,"_extension":20,"children":743,"expanded":13},"/python/advanced-concepts","Advanced Concepts","Master advanced Python programming concepts - work with dates, mathematics, JSON data, pattern matching, and more sophisticated programming techniques","advanced-concepts",80,"content:python:80.advanced-concepts.md","python/80.advanced-concepts.md","python/80.advanced-concepts",[744,753,762,771,780,789,798],{"_path":745,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":746,"description":747,"slug":748,"parentId":735,"order":749,"_type":15,"_id":750,"_source":17,"_file":751,"_stem":752,"_extension":20},"/python/working-with-dates","Working with Dates","Master Python date and time handling - work with datetime objects, format dates, calculate durations, and build time-aware applications","working-with-dates",81,"content:python:81.working-with-dates.md","python/81.working-with-dates.md","python/81.working-with-dates",{"_path":754,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":755,"description":756,"slug":757,"parentId":735,"order":758,"_type":15,"_id":759,"_source":17,"_file":760,"_stem":761,"_extension":20},"/python/mathematical-operations","Mathematical Operations","Master Python mathematical computing - use math functions, perform statistical calculations, and implement scientific computing for data analysis and problem-solving","mathematical-operations",82,"content:python:82.mathematical-operations.md","python/82.mathematical-operations.md","python/82.mathematical-operations",{"_path":763,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":764,"description":765,"slug":766,"parentId":735,"order":767,"_type":15,"_id":768,"_source":17,"_file":769,"_stem":770,"_extension":20},"/python/json-data","JSON Data","Master JSON data handling in Python - serialize and deserialize data, work with APIs, manage configuration files, and exchange data between applications","json-data",83,"content:python:83.json-data.md","python/83.json-data.md","python/83.json-data",{"_path":772,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":773,"description":774,"slug":775,"parentId":735,"order":776,"_type":15,"_id":777,"_source":17,"_file":778,"_stem":779,"_extension":20},"/python/package-management","Package Management","Master Python package management with pip and virtual environments - install libraries, manage dependencies, create isolated environments, and distribute packages professionally","package-management",85,"content:python:85.package-management.md","python/85.package-management.md","python/85.package-management",{"_path":781,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":782,"description":783,"slug":784,"parentId":735,"order":785,"_type":15,"_id":786,"_source":17,"_file":787,"_stem":788,"_extension":20},"/python/error-handling","Error Handling","Master Python error handling with try/except blocks, exception types, custom exceptions, debugging techniques, and best practices for robust application development","error-handling",86,"content:python:86.error-handling.md","python/86.error-handling.md","python/86.error-handling",{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},"/python/getting-user-input","Getting User Input","Master user input handling in Python with input validation, data type conversion, interactive programs, and command-line interfaces for engaging user experiences","getting-user-input",87,"content:python:87.getting-user-input.md","python/87.getting-user-input.md","python/87.getting-user-input",{"_path":799,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":800,"description":801,"slug":802,"parentId":735,"order":803,"_type":15,"_id":804,"_source":17,"_file":805,"_stem":806,"_extension":20},"/python/text-formatting","Text Formatting","Master Python text formatting with f-strings, format methods, alignment, number formatting, and advanced techniques for professional, readable output","text-formatting",88,"content:python:88.text-formatting.md","python/88.text-formatting.md","python/88.text-formatting",{"_path":808,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":809,"description":810,"slug":811,"order":812,"isParent":13,"icon":14,"_type":15,"_id":813,"_source":17,"_file":814,"_stem":815,"_extension":20,"children":816},"/python/file-operations","File Operations","Master Python file handling with reading, writing, and managing files for data persistence and real-world applications","file-operations",89,"content:python:89.file-operations.md","python/89.file-operations.md","python/89.file-operations",[817,826,835,844],{"_path":818,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":819,"description":820,"slug":821,"parentId":808,"order":822,"_type":15,"_id":823,"_source":17,"_file":824,"_stem":825,"_extension":20},"/python/file-basics","File Basics","Learn fundamental Python file operations including opening files, understanding file modes, using context managers, and basic file handling concepts","file-basics",90,"content:python:90.file-basics.md","python/90.file-basics.md","python/90.file-basics",{"_path":827,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":828,"description":829,"slug":830,"parentId":808,"order":831,"_type":15,"_id":832,"_source":17,"_file":833,"_stem":834,"_extension":20},"/python/reading-files","Reading Files","Master Python file reading techniques including reading entire files, line-by-line processing, and handling different file formats for efficient data processing","reading-files",91,"content:python:91.reading-files.md","python/91.reading-files.md","python/91.reading-files",{"_path":836,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":837,"description":838,"slug":839,"parentId":808,"order":840,"_type":15,"_id":841,"_source":17,"_file":842,"_stem":843,"_extension":20},"/python/writing-files","Writing Files","Learn Python file writing techniques including creating new files, appending content, updating existing files, and saving different data formats safely","writing-files",92,"content:python:92.writing-files.md","python/92.writing-files.md","python/92.writing-files",{"_path":845,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":846,"description":847,"slug":848,"parentId":808,"order":849,"_type":15,"_id":850,"_source":17,"_file":851,"_stem":852,"_extension":20},"/python/file-management","File Management","Learn Python file management techniques including checking file properties, organizing files, directory operations, and implementing file system maintenance tasks","file-management",93,"content:python:93.file-management.md","python/93.file-management.md","python/93.file-management",{"_path":854,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":855,"description":856,"slug":857,"order":858,"isParent":13,"icon":14,"_type":15,"_id":859,"_source":17,"_file":860,"_stem":861,"_extension":20,"children":862},"/python/code-organization","Code Organization","Master Python code organization with modules, built-in libraries, and path management for creating maintainable and reusable applications","code-organization",94,"content:python:94.code-organization.md","python/94.code-organization.md","python/94.code-organization",[863,872,881],{"_path":864,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":865,"description":866,"slug":867,"parentId":854,"order":868,"_type":15,"_id":869,"_source":17,"_file":870,"_stem":871,"_extension":20},"/python/creating-modules","Creating Modules","Learn how to create custom Python modules, organize functions and classes, write reusable code components, and design effective module structures","creating-modules",95,"content:python:95.creating-modules.md","python/95.creating-modules.md","python/95.creating-modules",{"_path":873,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":874,"description":875,"slug":876,"parentId":854,"order":877,"_type":15,"_id":878,"_source":17,"_file":879,"_stem":880,"_extension":20},"/python/using-built-in-modules","Using Built-in Modules","Discover Python's extensive standard library and learn to effectively use built-in modules for common programming tasks, data processing, and system operations","using-built-in-modules",96,"content:python:96.using-built-in-modules.md","python/96.using-built-in-modules.md","python/96.using-built-in-modules",{"_path":882,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":883,"description":884,"slug":885,"parentId":854,"order":886,"_type":15,"_id":887,"_source":17,"_file":888,"_stem":889,"_extension":20},"/python/module-paths","Module Paths","Understand Python's module search system, manage import paths, work with packages, and organize larger projects with proper module path management","module-paths",97,"content:python:97.module-paths.md","python/97.module-paths.md","python/97.module-paths",{"_path":891,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":892,"description":893,"slug":894,"order":895,"isParent":13,"icon":14,"_type":15,"_id":896,"_source":17,"_file":897,"_stem":898,"_extension":20,"children":899,"expanded":13},"/python/reference-materials","Reference Materials","Comprehensive Python reference materials including reserved words, built-in functions, and operation guides for quick lookup and development support","reference-materials",98,"content:python:98.reference-materials.md","python/98.reference-materials.md","python/98.reference-materials",[900,909,918,927,936,945,953,961,970],{"_path":901,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":902,"description":903,"slug":904,"parentId":891,"order":905,"_type":15,"_id":906,"_source":17,"_file":907,"_stem":908,"_extension":20},"/python/reserved-words","Reserved Words","Complete reference of Python keywords and reserved words with descriptions, usage examples, and syntax guidelines","reserved-words",99,"content:python:99.reserved-words.md","python/99.reserved-words.md","python/99.reserved-words",{"_path":910,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":911,"description":912,"slug":913,"parentId":891,"order":914,"_type":15,"_id":915,"_source":17,"_file":916,"_stem":917,"_extension":20},"/python/built-in-functions","Built-in Functions","Comprehensive reference of Python's built-in functions with parameters, return values, and practical usage examples","built-in-functions",100,"content:python:100.built-in-functions.md","python/100.built-in-functions.md","python/100.built-in-functions",{"_path":919,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":920,"description":921,"slug":922,"parentId":891,"order":923,"_type":15,"_id":924,"_source":17,"_file":925,"_stem":926,"_extension":20},"/python/string-operations","String Operations","Complete reference of Python string methods, operations, and formatting techniques with examples and use cases","string-operations",101,"content:python:101.string-operations.md","python/101.string-operations.md","python/101.string-operations",{"_path":928,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":929,"description":930,"slug":931,"parentId":891,"order":932,"_type":15,"_id":933,"_source":17,"_file":934,"_stem":935,"_extension":20},"/python/list-operations","List Operations","Complete reference of Python list methods, operations, and manipulation techniques with examples and performance notes","list-operations",102,"content:python:102.list-operations.md","python/102.list-operations.md","python/102.list-operations",{"_path":937,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":938,"description":939,"slug":940,"parentId":891,"order":941,"_type":15,"_id":942,"_source":17,"_file":943,"_stem":944,"_extension":20},"/python/dictionary-operations","Dictionary Operations","Complete reference of Python dictionary methods, operations, and manipulation techniques with examples and use cases","dictionary-operations",103,"content:python:103.dictionary-operations.md","python/103.dictionary-operations.md","python/103.dictionary-operations",{"_path":946,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":435,"description":947,"slug":948,"parentId":891,"order":949,"_type":15,"_id":950,"_source":17,"_file":951,"_stem":952,"_extension":20},"/python/tuple-methods","Complete reference of Python tuple operations, methods, and techniques with examples and use cases","tuple-methods",104,"content:python:104.tuple-methods.md","python/104.tuple-methods.md","python/104.tuple-methods",{"_path":954,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":508,"description":955,"slug":956,"parentId":891,"order":957,"_type":15,"_id":958,"_source":17,"_file":959,"_stem":960,"_extension":20},"/python/set-methods","Complete reference of Python set operations, methods, and mathematical set operations with examples and use cases","set-methods",105,"content:python:105.set-methods.md","python/105.set-methods.md","python/105.set-methods",{"_path":962,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":963,"description":964,"slug":965,"parentId":891,"order":966,"_type":15,"_id":967,"_source":17,"_file":968,"_stem":969,"_extension":20},"/python/file-operations-reference","File Operations Reference","Complete reference of Python file operations, modes, methods, and file handling techniques with examples","file-operations-reference",106,"content:python:106.file-operations-reference.md","python/106.file-operations-reference.md","python/106.file-operations-reference",{"_path":971,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":972,"description":973,"slug":974,"parentId":891,"order":975,"_type":15,"_id":976,"_source":17,"_file":977,"_stem":978,"_extension":20},"/python/error-types","Error Types","Complete reference of Python exception types, error handling patterns, and debugging techniques with examples","error-types",107,"content:python:107.error-types.md","python/107.error-types.md","python/107.error-types",{"_path":980,"_dir":8,"_draft":7,"_partial":7,"_locale":8,"title":981,"description":10,"slug":982,"order":983,"icon":14,"_type":15,"_id":984,"_source":17,"_file":985,"_stem":986,"_extension":20},"/python","Introduction","python-tutorial",0,"content:python:index.md","python/index.md","python/index",[789],{"_path":790,"_dir":6,"_draft":7,"_partial":7,"_locale":8,"title":791,"description":792,"slug":793,"parentId":735,"order":794,"body":989,"_type":15,"_id":795,"_source":17,"_file":796,"_stem":797,"_extension":20},{"type":990,"children":991,"toc":13520},"root",[992,1000,1015,1020,1598,1605,1610,1885,1892,1897,2940,2946,2952,2957,4356,4362,4367,5700,5706,5712,5717,8249,8255,8260,9242,9248,9254,9259,10294,10424,10430,10435,10711,10716,11259,11265,13473,13479,13484,13491,13497,13502,13514],{"type":993,"tag":994,"props":995,"children":996},"element","h1",{"id":793},[997],{"type":998,"value":999},"text","💬 Getting User Input",{"type":993,"tag":1001,"props":1002,"children":1003},"p",{},[1004,1006,1013],{"type":998,"value":1005},"Getting user input allows your Python programs to interact with users, creating dynamic and responsive applications. Using the ",{"type":993,"tag":1007,"props":1008,"children":1010},"code",{"className":1009},[],[1011],{"type":998,"value":1012},"input()",{"type":998,"value":1014}," function and validation techniques, you can build programs that adapt to user needs and provide personalized experiences.",{"type":993,"tag":1001,"props":1016,"children":1017},{},[1018],{"type":998,"value":1019},"Think of user input as the conversation between your program and its users - it's how your application listens, understands, and responds to what people want to accomplish.",{"type":993,"tag":1021,"props":1022,"children":1023},"code-try",{},[1024],{"type":993,"tag":1025,"props":1026,"children":1029},"pre",{"className":1027,"code":1028,"language":6,"meta":8,"style":8},"language-python shiki shiki-themes github-light github-dark","# Simple input collection\ndef basic_input_demo():\n    \"\"\"Demonstrate basic input collection\"\"\"\n    print(\"=== Basic Input Demo ===\")\n    \n    # Simulate user input for demonstration\n    sample_inputs = [\"Alice Johnson\", \"28\", \"blue\"]\n    input_prompts = [\"What's your name? \", \"How old are you? \", \"What's your favorite color? \"]\n    \n    for prompt, user_input in zip(input_prompts, sample_inputs):\n        print(f\"{prompt}{user_input}\")\n        \n        if \"name\" in prompt.lower():\n            print(f\"Hello, {user_input}! Nice to meet you.\")\n        elif \"age\" in prompt.lower():\n            try:\n                age = int(user_input)\n                print(f\"In 10 years, you'll be {age + 10} years old\")\n            except ValueError:\n                print(\"Please enter a valid age!\")\n        elif \"color\" in prompt.lower():\n            print(f\"Great choice! {user_input} is a beautiful color.\")\n        print()\n\nbasic_input_demo()\n",[1030],{"type":993,"tag":1007,"props":1031,"children":1032},{"__ignoreMap":8},[1033,1044,1065,1074,1098,1106,1114,1161,1204,1211,1239,1294,1302,1325,1367,1388,1401,1423,1472,1489,1509,1529,1570,1582,1590],{"type":993,"tag":1034,"props":1035,"children":1037},"span",{"class":1036,"line":12},"line",[1038],{"type":993,"tag":1034,"props":1039,"children":1041},{"style":1040},"--shiki-default:#6A737D;--shiki-app-dark-mode:#6A737D",[1042],{"type":998,"value":1043},"# Simple input collection\n",{"type":993,"tag":1034,"props":1045,"children":1046},{"class":1036,"line":27},[1047,1053,1059],{"type":993,"tag":1034,"props":1048,"children":1050},{"style":1049},"--shiki-default:#D73A49;--shiki-app-dark-mode:#F97583",[1051],{"type":998,"value":1052},"def",{"type":993,"tag":1034,"props":1054,"children":1056},{"style":1055},"--shiki-default:#6F42C1;--shiki-app-dark-mode:#B392F0",[1057],{"type":998,"value":1058}," basic_input_demo",{"type":993,"tag":1034,"props":1060,"children":1062},{"style":1061},"--shiki-default:#24292E;--shiki-app-dark-mode:#E1E4E8",[1063],{"type":998,"value":1064},"():\n",{"type":993,"tag":1034,"props":1066,"children":1067},{"class":1036,"line":36},[1068],{"type":993,"tag":1034,"props":1069,"children":1071},{"style":1070},"--shiki-default:#032F62;--shiki-app-dark-mode:#9ECBFF",[1072],{"type":998,"value":1073},"    \"\"\"Demonstrate basic input collection\"\"\"\n",{"type":993,"tag":1034,"props":1075,"children":1076},{"class":1036,"line":45},[1077,1083,1088,1093],{"type":993,"tag":1034,"props":1078,"children":1080},{"style":1079},"--shiki-default:#005CC5;--shiki-app-dark-mode:#79B8FF",[1081],{"type":998,"value":1082},"    print",{"type":993,"tag":1034,"props":1084,"children":1085},{"style":1061},[1086],{"type":998,"value":1087},"(",{"type":993,"tag":1034,"props":1089,"children":1090},{"style":1070},[1091],{"type":998,"value":1092},"\"=== Basic Input Demo ===\"",{"type":993,"tag":1034,"props":1094,"children":1095},{"style":1061},[1096],{"type":998,"value":1097},")\n",{"type":993,"tag":1034,"props":1099,"children":1100},{"class":1036,"line":54},[1101],{"type":993,"tag":1034,"props":1102,"children":1103},{"style":1061},[1104],{"type":998,"value":1105},"    \n",{"type":993,"tag":1034,"props":1107,"children":1108},{"class":1036,"line":63},[1109],{"type":993,"tag":1034,"props":1110,"children":1111},{"style":1040},[1112],{"type":998,"value":1113},"    # Simulate user input for demonstration\n",{"type":993,"tag":1034,"props":1115,"children":1116},{"class":1036,"line":72},[1117,1122,1127,1132,1137,1142,1147,1151,1156],{"type":993,"tag":1034,"props":1118,"children":1119},{"style":1061},[1120],{"type":998,"value":1121},"    sample_inputs ",{"type":993,"tag":1034,"props":1123,"children":1124},{"style":1049},[1125],{"type":998,"value":1126},"=",{"type":993,"tag":1034,"props":1128,"children":1129},{"style":1061},[1130],{"type":998,"value":1131}," [",{"type":993,"tag":1034,"props":1133,"children":1134},{"style":1070},[1135],{"type":998,"value":1136},"\"Alice Johnson\"",{"type":993,"tag":1034,"props":1138,"children":1139},{"style":1061},[1140],{"type":998,"value":1141},", ",{"type":993,"tag":1034,"props":1143,"children":1144},{"style":1070},[1145],{"type":998,"value":1146},"\"28\"",{"type":993,"tag":1034,"props":1148,"children":1149},{"style":1061},[1150],{"type":998,"value":1141},{"type":993,"tag":1034,"props":1152,"children":1153},{"style":1070},[1154],{"type":998,"value":1155},"\"blue\"",{"type":993,"tag":1034,"props":1157,"children":1158},{"style":1061},[1159],{"type":998,"value":1160},"]\n",{"type":993,"tag":1034,"props":1162,"children":1163},{"class":1036,"line":81},[1164,1169,1173,1177,1182,1186,1191,1195,1200],{"type":993,"tag":1034,"props":1165,"children":1166},{"style":1061},[1167],{"type":998,"value":1168},"    input_prompts ",{"type":993,"tag":1034,"props":1170,"children":1171},{"style":1049},[1172],{"type":998,"value":1126},{"type":993,"tag":1034,"props":1174,"children":1175},{"style":1061},[1176],{"type":998,"value":1131},{"type":993,"tag":1034,"props":1178,"children":1179},{"style":1070},[1180],{"type":998,"value":1181},"\"What's your name? \"",{"type":993,"tag":1034,"props":1183,"children":1184},{"style":1061},[1185],{"type":998,"value":1141},{"type":993,"tag":1034,"props":1187,"children":1188},{"style":1070},[1189],{"type":998,"value":1190},"\"How old are you? \"",{"type":993,"tag":1034,"props":1192,"children":1193},{"style":1061},[1194],{"type":998,"value":1141},{"type":993,"tag":1034,"props":1196,"children":1197},{"style":1070},[1198],{"type":998,"value":1199},"\"What's your favorite color? \"",{"type":993,"tag":1034,"props":1201,"children":1202},{"style":1061},[1203],{"type":998,"value":1160},{"type":993,"tag":1034,"props":1205,"children":1206},{"class":1036,"line":91},[1207],{"type":993,"tag":1034,"props":1208,"children":1209},{"style":1061},[1210],{"type":998,"value":1105},{"type":993,"tag":1034,"props":1212,"children":1213},{"class":1036,"line":100},[1214,1219,1224,1229,1234],{"type":993,"tag":1034,"props":1215,"children":1216},{"style":1049},[1217],{"type":998,"value":1218},"    for",{"type":993,"tag":1034,"props":1220,"children":1221},{"style":1061},[1222],{"type":998,"value":1223}," prompt, user_input ",{"type":993,"tag":1034,"props":1225,"children":1226},{"style":1049},[1227],{"type":998,"value":1228},"in",{"type":993,"tag":1034,"props":1230,"children":1231},{"style":1079},[1232],{"type":998,"value":1233}," zip",{"type":993,"tag":1034,"props":1235,"children":1236},{"style":1061},[1237],{"type":998,"value":1238},"(input_prompts, sample_inputs):\n",{"type":993,"tag":1034,"props":1240,"children":1241},{"class":1036,"line":109},[1242,1247,1251,1256,1261,1266,1271,1276,1281,1286,1290],{"type":993,"tag":1034,"props":1243,"children":1244},{"style":1079},[1245],{"type":998,"value":1246},"        print",{"type":993,"tag":1034,"props":1248,"children":1249},{"style":1061},[1250],{"type":998,"value":1087},{"type":993,"tag":1034,"props":1252,"children":1253},{"style":1049},[1254],{"type":998,"value":1255},"f",{"type":993,"tag":1034,"props":1257,"children":1258},{"style":1070},[1259],{"type":998,"value":1260},"\"",{"type":993,"tag":1034,"props":1262,"children":1263},{"style":1079},[1264],{"type":998,"value":1265},"{",{"type":993,"tag":1034,"props":1267,"children":1268},{"style":1061},[1269],{"type":998,"value":1270},"prompt",{"type":993,"tag":1034,"props":1272,"children":1273},{"style":1079},[1274],{"type":998,"value":1275},"}{",{"type":993,"tag":1034,"props":1277,"children":1278},{"style":1061},[1279],{"type":998,"value":1280},"user_input",{"type":993,"tag":1034,"props":1282,"children":1283},{"style":1079},[1284],{"type":998,"value":1285},"}",{"type":993,"tag":1034,"props":1287,"children":1288},{"style":1070},[1289],{"type":998,"value":1260},{"type":993,"tag":1034,"props":1291,"children":1292},{"style":1061},[1293],{"type":998,"value":1097},{"type":993,"tag":1034,"props":1295,"children":1296},{"class":1036,"line":118},[1297],{"type":993,"tag":1034,"props":1298,"children":1299},{"style":1061},[1300],{"type":998,"value":1301},"        \n",{"type":993,"tag":1034,"props":1303,"children":1304},{"class":1036,"line":127},[1305,1310,1315,1320],{"type":993,"tag":1034,"props":1306,"children":1307},{"style":1049},[1308],{"type":998,"value":1309},"        if",{"type":993,"tag":1034,"props":1311,"children":1312},{"style":1070},[1313],{"type":998,"value":1314}," \"name\"",{"type":993,"tag":1034,"props":1316,"children":1317},{"style":1049},[1318],{"type":998,"value":1319}," in",{"type":993,"tag":1034,"props":1321,"children":1322},{"style":1061},[1323],{"type":998,"value":1324}," prompt.lower():\n",{"type":993,"tag":1034,"props":1326,"children":1327},{"class":1036,"line":136},[1328,1333,1337,1341,1346,1350,1354,1358,1363],{"type":993,"tag":1034,"props":1329,"children":1330},{"style":1079},[1331],{"type":998,"value":1332},"            print",{"type":993,"tag":1034,"props":1334,"children":1335},{"style":1061},[1336],{"type":998,"value":1087},{"type":993,"tag":1034,"props":1338,"children":1339},{"style":1049},[1340],{"type":998,"value":1255},{"type":993,"tag":1034,"props":1342,"children":1343},{"style":1070},[1344],{"type":998,"value":1345},"\"Hello, ",{"type":993,"tag":1034,"props":1347,"children":1348},{"style":1079},[1349],{"type":998,"value":1265},{"type":993,"tag":1034,"props":1351,"children":1352},{"style":1061},[1353],{"type":998,"value":1280},{"type":993,"tag":1034,"props":1355,"children":1356},{"style":1079},[1357],{"type":998,"value":1285},{"type":993,"tag":1034,"props":1359,"children":1360},{"style":1070},[1361],{"type":998,"value":1362},"! Nice to meet you.\"",{"type":993,"tag":1034,"props":1364,"children":1365},{"style":1061},[1366],{"type":998,"value":1097},{"type":993,"tag":1034,"props":1368,"children":1369},{"class":1036,"line":146},[1370,1375,1380,1384],{"type":993,"tag":1034,"props":1371,"children":1372},{"style":1049},[1373],{"type":998,"value":1374},"        elif",{"type":993,"tag":1034,"props":1376,"children":1377},{"style":1070},[1378],{"type":998,"value":1379}," \"age\"",{"type":993,"tag":1034,"props":1381,"children":1382},{"style":1049},[1383],{"type":998,"value":1319},{"type":993,"tag":1034,"props":1385,"children":1386},{"style":1061},[1387],{"type":998,"value":1324},{"type":993,"tag":1034,"props":1389,"children":1390},{"class":1036,"line":155},[1391,1396],{"type":993,"tag":1034,"props":1392,"children":1393},{"style":1049},[1394],{"type":998,"value":1395},"            try",{"type":993,"tag":1034,"props":1397,"children":1398},{"style":1061},[1399],{"type":998,"value":1400},":\n",{"type":993,"tag":1034,"props":1402,"children":1403},{"class":1036,"line":164},[1404,1409,1413,1418],{"type":993,"tag":1034,"props":1405,"children":1406},{"style":1061},[1407],{"type":998,"value":1408},"                age ",{"type":993,"tag":1034,"props":1410,"children":1411},{"style":1049},[1412],{"type":998,"value":1126},{"type":993,"tag":1034,"props":1414,"children":1415},{"style":1079},[1416],{"type":998,"value":1417}," int",{"type":993,"tag":1034,"props":1419,"children":1420},{"style":1061},[1421],{"type":998,"value":1422},"(user_input)\n",{"type":993,"tag":1034,"props":1424,"children":1425},{"class":1036,"line":173},[1426,1431,1435,1439,1444,1448,1453,1458,1463,1468],{"type":993,"tag":1034,"props":1427,"children":1428},{"style":1079},[1429],{"type":998,"value":1430},"                print",{"type":993,"tag":1034,"props":1432,"children":1433},{"style":1061},[1434],{"type":998,"value":1087},{"type":993,"tag":1034,"props":1436,"children":1437},{"style":1049},[1438],{"type":998,"value":1255},{"type":993,"tag":1034,"props":1440,"children":1441},{"style":1070},[1442],{"type":998,"value":1443},"\"In 10 years, you'll be ",{"type":993,"tag":1034,"props":1445,"children":1446},{"style":1079},[1447],{"type":998,"value":1265},{"type":993,"tag":1034,"props":1449,"children":1450},{"style":1061},[1451],{"type":998,"value":1452},"age ",{"type":993,"tag":1034,"props":1454,"children":1455},{"style":1049},[1456],{"type":998,"value":1457},"+",{"type":993,"tag":1034,"props":1459,"children":1460},{"style":1079},[1461],{"type":998,"value":1462}," 10}",{"type":993,"tag":1034,"props":1464,"children":1465},{"style":1070},[1466],{"type":998,"value":1467}," years old\"",{"type":993,"tag":1034,"props":1469,"children":1470},{"style":1061},[1471],{"type":998,"value":1097},{"type":993,"tag":1034,"props":1473,"children":1474},{"class":1036,"line":182},[1475,1480,1485],{"type":993,"tag":1034,"props":1476,"children":1477},{"style":1049},[1478],{"type":998,"value":1479},"            except",{"type":993,"tag":1034,"props":1481,"children":1482},{"style":1079},[1483],{"type":998,"value":1484}," ValueError",{"type":993,"tag":1034,"props":1486,"children":1487},{"style":1061},[1488],{"type":998,"value":1400},{"type":993,"tag":1034,"props":1490,"children":1491},{"class":1036,"line":191},[1492,1496,1500,1505],{"type":993,"tag":1034,"props":1493,"children":1494},{"style":1079},[1495],{"type":998,"value":1430},{"type":993,"tag":1034,"props":1497,"children":1498},{"style":1061},[1499],{"type":998,"value":1087},{"type":993,"tag":1034,"props":1501,"children":1502},{"style":1070},[1503],{"type":998,"value":1504},"\"Please enter a valid age!\"",{"type":993,"tag":1034,"props":1506,"children":1507},{"style":1061},[1508],{"type":998,"value":1097},{"type":993,"tag":1034,"props":1510,"children":1511},{"class":1036,"line":201},[1512,1516,1521,1525],{"type":993,"tag":1034,"props":1513,"children":1514},{"style":1049},[1515],{"type":998,"value":1374},{"type":993,"tag":1034,"props":1517,"children":1518},{"style":1070},[1519],{"type":998,"value":1520}," \"color\"",{"type":993,"tag":1034,"props":1522,"children":1523},{"style":1049},[1524],{"type":998,"value":1319},{"type":993,"tag":1034,"props":1526,"children":1527},{"style":1061},[1528],{"type":998,"value":1324},{"type":993,"tag":1034,"props":1530,"children":1531},{"class":1036,"line":210},[1532,1536,1540,1544,1549,1553,1557,1561,1566],{"type":993,"tag":1034,"props":1533,"children":1534},{"style":1079},[1535],{"type":998,"value":1332},{"type":993,"tag":1034,"props":1537,"children":1538},{"style":1061},[1539],{"type":998,"value":1087},{"type":993,"tag":1034,"props":1541,"children":1542},{"style":1049},[1543],{"type":998,"value":1255},{"type":993,"tag":1034,"props":1545,"children":1546},{"style":1070},[1547],{"type":998,"value":1548},"\"Great choice! ",{"type":993,"tag":1034,"props":1550,"children":1551},{"style":1079},[1552],{"type":998,"value":1265},{"type":993,"tag":1034,"props":1554,"children":1555},{"style":1061},[1556],{"type":998,"value":1280},{"type":993,"tag":1034,"props":1558,"children":1559},{"style":1079},[1560],{"type":998,"value":1285},{"type":993,"tag":1034,"props":1562,"children":1563},{"style":1070},[1564],{"type":998,"value":1565}," is a beautiful color.\"",{"type":993,"tag":1034,"props":1567,"children":1568},{"style":1061},[1569],{"type":998,"value":1097},{"type":993,"tag":1034,"props":1571,"children":1572},{"class":1036,"line":219},[1573,1577],{"type":993,"tag":1034,"props":1574,"children":1575},{"style":1079},[1576],{"type":998,"value":1246},{"type":993,"tag":1034,"props":1578,"children":1579},{"style":1061},[1580],{"type":998,"value":1581},"()\n",{"type":993,"tag":1034,"props":1583,"children":1584},{"class":1036,"line":228},[1585],{"type":993,"tag":1034,"props":1586,"children":1587},{"emptyLinePlaceholder":13},[1588],{"type":998,"value":1589},"\n",{"type":993,"tag":1034,"props":1591,"children":1592},{"class":1036,"line":238},[1593],{"type":993,"tag":1034,"props":1594,"children":1595},{"style":1061},[1596],{"type":998,"value":1597},"basic_input_demo()\n",{"type":993,"tag":1599,"props":1600,"children":1602},"h2",{"id":1601},"understanding-input-handling",[1603],{"type":998,"value":1604},"🎯 Understanding Input Handling",{"type":993,"tag":1001,"props":1606,"children":1607},{},[1608],{"type":998,"value":1609},"User input handling involves collecting, validating, and converting data while providing clear feedback and error recovery.",{"type":993,"tag":1611,"props":1612,"children":1616},"info-box",{"emoji":1613,"title":1614,"type":1615},"💡","Input Handling Fundamentals","info",[1617,1626,1671,1679,1722,1730,1773,1781,1834,1842],{"type":993,"tag":1001,"props":1618,"children":1619},{},[1620],{"type":993,"tag":1621,"props":1622,"children":1623},"strong",{},[1624],{"type":998,"value":1625},"Input Function Behavior:",{"type":993,"tag":1627,"props":1628,"children":1629},"ul",{},[1630,1641,1651,1661],{"type":993,"tag":1631,"props":1632,"children":1633},"li",{},[1634,1639],{"type":993,"tag":1621,"props":1635,"children":1636},{},[1637],{"type":998,"value":1638},"Always Returns Strings",{"type":998,"value":1640},": input() returns text regardless of what user types",{"type":993,"tag":1631,"props":1642,"children":1643},{},[1644,1649],{"type":993,"tag":1621,"props":1645,"children":1646},{},[1647],{"type":998,"value":1648},"Blocks Execution",{"type":998,"value":1650},": Program waits until user presses Enter",{"type":993,"tag":1631,"props":1652,"children":1653},{},[1654,1659],{"type":993,"tag":1621,"props":1655,"children":1656},{},[1657],{"type":998,"value":1658},"Includes Newlines",{"type":998,"value":1660},": Automatically strips trailing newline character",{"type":993,"tag":1631,"props":1662,"children":1663},{},[1664,1669],{"type":993,"tag":1621,"props":1665,"children":1666},{},[1667],{"type":998,"value":1668},"Handles Empty Input",{"type":998,"value":1670},": Returns empty string if user just presses Enter",{"type":993,"tag":1001,"props":1672,"children":1673},{},[1674],{"type":993,"tag":1621,"props":1675,"children":1676},{},[1677],{"type":998,"value":1678},"Common Input Scenarios:",{"type":993,"tag":1627,"props":1680,"children":1681},{},[1682,1692,1702,1712],{"type":993,"tag":1631,"props":1683,"children":1684},{},[1685,1690],{"type":993,"tag":1621,"props":1686,"children":1687},{},[1688],{"type":998,"value":1689},"Text Data",{"type":998,"value":1691},": Names, descriptions, addresses, comments",{"type":993,"tag":1631,"props":1693,"children":1694},{},[1695,1700],{"type":993,"tag":1621,"props":1696,"children":1697},{},[1698],{"type":998,"value":1699},"Numeric Data",{"type":998,"value":1701},": Ages, quantities, prices, measurements",{"type":993,"tag":1631,"props":1703,"children":1704},{},[1705,1710],{"type":993,"tag":1621,"props":1706,"children":1707},{},[1708],{"type":998,"value":1709},"Choices",{"type":998,"value":1711},": Menu selections, yes/no questions, options",{"type":993,"tag":1631,"props":1713,"children":1714},{},[1715,1720],{"type":993,"tag":1621,"props":1716,"children":1717},{},[1718],{"type":998,"value":1719},"Structured Data",{"type":998,"value":1721},": Dates, emails, phone numbers, IDs",{"type":993,"tag":1001,"props":1723,"children":1724},{},[1725],{"type":993,"tag":1621,"props":1726,"children":1727},{},[1728],{"type":998,"value":1729},"Validation Requirements:",{"type":993,"tag":1627,"props":1731,"children":1732},{},[1733,1743,1753,1763],{"type":993,"tag":1631,"props":1734,"children":1735},{},[1736,1741],{"type":993,"tag":1621,"props":1737,"children":1738},{},[1739],{"type":998,"value":1740},"Data Type Checking",{"type":998,"value":1742},": Ensure input matches expected type",{"type":993,"tag":1631,"props":1744,"children":1745},{},[1746,1751],{"type":993,"tag":1621,"props":1747,"children":1748},{},[1749],{"type":998,"value":1750},"Range Validation",{"type":998,"value":1752},": Numbers within acceptable bounds",{"type":993,"tag":1631,"props":1754,"children":1755},{},[1756,1761],{"type":993,"tag":1621,"props":1757,"children":1758},{},[1759],{"type":998,"value":1760},"Format Validation",{"type":998,"value":1762},": Emails, phone numbers, dates",{"type":993,"tag":1631,"props":1764,"children":1765},{},[1766,1771],{"type":993,"tag":1621,"props":1767,"children":1768},{},[1769],{"type":998,"value":1770},"Length Limits",{"type":998,"value":1772},": Prevent excessively long or short input",{"type":993,"tag":1001,"props":1774,"children":1775},{},[1776],{"type":993,"tag":1621,"props":1777,"children":1778},{},[1779],{"type":998,"value":1780},"User Experience Best Practices:",{"type":993,"tag":1627,"props":1782,"children":1783},{},[1784,1794,1804,1814,1824],{"type":993,"tag":1631,"props":1785,"children":1786},{},[1787,1792],{"type":993,"tag":1621,"props":1788,"children":1789},{},[1790],{"type":998,"value":1791},"Clear Prompts",{"type":998,"value":1793},": Tell users exactly what to enter",{"type":993,"tag":1631,"props":1795,"children":1796},{},[1797,1802],{"type":993,"tag":1621,"props":1798,"children":1799},{},[1800],{"type":998,"value":1801},"Example Formats",{"type":998,"value":1803},": Show expected input format",{"type":993,"tag":1631,"props":1805,"children":1806},{},[1807,1812],{"type":993,"tag":1621,"props":1808,"children":1809},{},[1810],{"type":998,"value":1811},"Error Messages",{"type":998,"value":1813},": Explain what went wrong and how to fix it",{"type":993,"tag":1631,"props":1815,"children":1816},{},[1817,1822],{"type":993,"tag":1621,"props":1818,"children":1819},{},[1820],{"type":998,"value":1821},"Default Values",{"type":998,"value":1823},": Provide sensible defaults when appropriate",{"type":993,"tag":1631,"props":1825,"children":1826},{},[1827,1832],{"type":993,"tag":1621,"props":1828,"children":1829},{},[1830],{"type":998,"value":1831},"Confirmation",{"type":998,"value":1833},": Verify important input before proceeding",{"type":993,"tag":1001,"props":1835,"children":1836},{},[1837],{"type":993,"tag":1621,"props":1838,"children":1839},{},[1840],{"type":998,"value":1841},"Error Handling Strategies:",{"type":993,"tag":1627,"props":1843,"children":1844},{},[1845,1855,1865,1875],{"type":993,"tag":1631,"props":1846,"children":1847},{},[1848,1853],{"type":993,"tag":1621,"props":1849,"children":1850},{},[1851],{"type":998,"value":1852},"Try-Except Blocks",{"type":998,"value":1854},": Catch conversion errors gracefully",{"type":993,"tag":1631,"props":1856,"children":1857},{},[1858,1863],{"type":993,"tag":1621,"props":1859,"children":1860},{},[1861],{"type":998,"value":1862},"Validation Functions",{"type":998,"value":1864},": Reusable input checking logic",{"type":993,"tag":1631,"props":1866,"children":1867},{},[1868,1873],{"type":993,"tag":1621,"props":1869,"children":1870},{},[1871],{"type":998,"value":1872},"Retry Loops",{"type":998,"value":1874},": Allow users to correct invalid input",{"type":993,"tag":1631,"props":1876,"children":1877},{},[1878,1883],{"type":993,"tag":1621,"props":1879,"children":1880},{},[1881],{"type":998,"value":1882},"Graceful Exits",{"type":998,"value":1884},": Provide ways to cancel operations",{"type":993,"tag":1886,"props":1887,"children":1889},"h3",{"id":1888},"input-validation-patterns",[1890],{"type":998,"value":1891},"Input Validation Patterns",{"type":993,"tag":1001,"props":1893,"children":1894},{},[1895],{"type":998,"value":1896},"Different input scenarios require specific approaches for optimal user experience and data validation.",{"type":993,"tag":1021,"props":1898,"children":1899},{},[1900],{"type":993,"tag":1025,"props":1901,"children":1903},{"className":1027,"code":1902,"language":6,"meta":8,"style":8},"def get_validated_input(prompt, validator_func, error_message=\"Invalid input\"):\n    \"\"\"Generic input validation function\"\"\"\n    while True:\n        try:\n            user_input = input(prompt).strip()\n            if validator_func(user_input):\n                return user_input\n            else:\n                print(error_message)\n        except KeyboardInterrupt:\n            print(\"\\nOperation cancelled by user\")\n            return None\n        except Exception as e:\n            print(f\"Unexpected error: {e}\")\n\ndef validate_name(name):\n    \"\"\"Validate name input\"\"\"\n    return len(name) >= 2 and not name.isdigit()\n\ndef validate_email(email):\n    \"\"\"Validate email format\"\"\"\n    return \"@\" in email and \".\" in email and len(email) > 5\n\ndef validate_age(age_str):\n    \"\"\"Validate age input\"\"\"\n    try:\n        age = int(age_str)\n        return 0 \u003C= age \u003C= 150\n    except ValueError:\n        return False\n\n# Demonstrate validation patterns (simulated)\ndef input_validation_demo():\n    \"\"\"Show input validation in action\"\"\"\n    print(\"=== Input Validation Demo ===\")\n    \n    # Simulate different validation scenarios\n    test_cases = [\n        (\"Alice Johnson\", validate_name, \"Valid name\"),\n        (\"A\", validate_name, \"Name too short\"),\n        (\"123\", validate_name, \"Numbers not allowed\"),\n        (\"alice@example.com\", validate_email, \"Valid email\"),\n        (\"invalid-email\", validate_email, \"Invalid email format\"),\n        (\"25\", validate_age, \"Valid age\"),\n        (\"200\", validate_age, \"Age out of range\"),\n        (\"abc\", validate_age, \"Age not a number\")\n    ]\n    \n    for test_input, validator, description in test_cases:\n        is_valid = validator(test_input)\n        status = \"✅\" if is_valid else \"❌\"\n        print(f\"{status} '{test_input}' - {description}\")\n\ninput_validation_demo()\n",[1904],{"type":993,"tag":1007,"props":1905,"children":1906},{"__ignoreMap":8},[1907,1938,1946,1963,1975,1997,2010,2023,2035,2047,2064,2093,2106,2128,2169,2176,2193,2201,2244,2251,2268,2276,2338,2345,2362,2370,2382,2403,2436,2452,2464,2471,2479,2495,2503,2523,2530,2538,2555,2582,2607,2632,2658,2683,2709,2734,2759,2767,2774,2795,2812,2849,2925,2932],{"type":993,"tag":1034,"props":1908,"children":1909},{"class":1036,"line":12},[1910,1914,1919,1924,1928,1933],{"type":993,"tag":1034,"props":1911,"children":1912},{"style":1049},[1913],{"type":998,"value":1052},{"type":993,"tag":1034,"props":1915,"children":1916},{"style":1055},[1917],{"type":998,"value":1918}," get_validated_input",{"type":993,"tag":1034,"props":1920,"children":1921},{"style":1061},[1922],{"type":998,"value":1923},"(prompt, validator_func, error_message",{"type":993,"tag":1034,"props":1925,"children":1926},{"style":1049},[1927],{"type":998,"value":1126},{"type":993,"tag":1034,"props":1929,"children":1930},{"style":1070},[1931],{"type":998,"value":1932},"\"Invalid input\"",{"type":993,"tag":1034,"props":1934,"children":1935},{"style":1061},[1936],{"type":998,"value":1937},"):\n",{"type":993,"tag":1034,"props":1939,"children":1940},{"class":1036,"line":27},[1941],{"type":993,"tag":1034,"props":1942,"children":1943},{"style":1070},[1944],{"type":998,"value":1945},"    \"\"\"Generic input validation function\"\"\"\n",{"type":993,"tag":1034,"props":1947,"children":1948},{"class":1036,"line":36},[1949,1954,1959],{"type":993,"tag":1034,"props":1950,"children":1951},{"style":1049},[1952],{"type":998,"value":1953},"    while",{"type":993,"tag":1034,"props":1955,"children":1956},{"style":1079},[1957],{"type":998,"value":1958}," True",{"type":993,"tag":1034,"props":1960,"children":1961},{"style":1061},[1962],{"type":998,"value":1400},{"type":993,"tag":1034,"props":1964,"children":1965},{"class":1036,"line":45},[1966,1971],{"type":993,"tag":1034,"props":1967,"children":1968},{"style":1049},[1969],{"type":998,"value":1970},"        try",{"type":993,"tag":1034,"props":1972,"children":1973},{"style":1061},[1974],{"type":998,"value":1400},{"type":993,"tag":1034,"props":1976,"children":1977},{"class":1036,"line":54},[1978,1983,1987,1992],{"type":993,"tag":1034,"props":1979,"children":1980},{"style":1061},[1981],{"type":998,"value":1982},"            user_input ",{"type":993,"tag":1034,"props":1984,"children":1985},{"style":1049},[1986],{"type":998,"value":1126},{"type":993,"tag":1034,"props":1988,"children":1989},{"style":1079},[1990],{"type":998,"value":1991}," input",{"type":993,"tag":1034,"props":1993,"children":1994},{"style":1061},[1995],{"type":998,"value":1996},"(prompt).strip()\n",{"type":993,"tag":1034,"props":1998,"children":1999},{"class":1036,"line":63},[2000,2005],{"type":993,"tag":1034,"props":2001,"children":2002},{"style":1049},[2003],{"type":998,"value":2004},"            if",{"type":993,"tag":1034,"props":2006,"children":2007},{"style":1061},[2008],{"type":998,"value":2009}," validator_func(user_input):\n",{"type":993,"tag":1034,"props":2011,"children":2012},{"class":1036,"line":72},[2013,2018],{"type":993,"tag":1034,"props":2014,"children":2015},{"style":1049},[2016],{"type":998,"value":2017},"                return",{"type":993,"tag":1034,"props":2019,"children":2020},{"style":1061},[2021],{"type":998,"value":2022}," user_input\n",{"type":993,"tag":1034,"props":2024,"children":2025},{"class":1036,"line":81},[2026,2031],{"type":993,"tag":1034,"props":2027,"children":2028},{"style":1049},[2029],{"type":998,"value":2030},"            else",{"type":993,"tag":1034,"props":2032,"children":2033},{"style":1061},[2034],{"type":998,"value":1400},{"type":993,"tag":1034,"props":2036,"children":2037},{"class":1036,"line":91},[2038,2042],{"type":993,"tag":1034,"props":2039,"children":2040},{"style":1079},[2041],{"type":998,"value":1430},{"type":993,"tag":1034,"props":2043,"children":2044},{"style":1061},[2045],{"type":998,"value":2046},"(error_message)\n",{"type":993,"tag":1034,"props":2048,"children":2049},{"class":1036,"line":100},[2050,2055,2060],{"type":993,"tag":1034,"props":2051,"children":2052},{"style":1049},[2053],{"type":998,"value":2054},"        except",{"type":993,"tag":1034,"props":2056,"children":2057},{"style":1079},[2058],{"type":998,"value":2059}," KeyboardInterrupt",{"type":993,"tag":1034,"props":2061,"children":2062},{"style":1061},[2063],{"type":998,"value":1400},{"type":993,"tag":1034,"props":2065,"children":2066},{"class":1036,"line":109},[2067,2071,2075,2079,2084,2089],{"type":993,"tag":1034,"props":2068,"children":2069},{"style":1079},[2070],{"type":998,"value":1332},{"type":993,"tag":1034,"props":2072,"children":2073},{"style":1061},[2074],{"type":998,"value":1087},{"type":993,"tag":1034,"props":2076,"children":2077},{"style":1070},[2078],{"type":998,"value":1260},{"type":993,"tag":1034,"props":2080,"children":2081},{"style":1079},[2082],{"type":998,"value":2083},"\\n",{"type":993,"tag":1034,"props":2085,"children":2086},{"style":1070},[2087],{"type":998,"value":2088},"Operation cancelled by user\"",{"type":993,"tag":1034,"props":2090,"children":2091},{"style":1061},[2092],{"type":998,"value":1097},{"type":993,"tag":1034,"props":2094,"children":2095},{"class":1036,"line":118},[2096,2101],{"type":993,"tag":1034,"props":2097,"children":2098},{"style":1049},[2099],{"type":998,"value":2100},"            return",{"type":993,"tag":1034,"props":2102,"children":2103},{"style":1079},[2104],{"type":998,"value":2105}," None\n",{"type":993,"tag":1034,"props":2107,"children":2108},{"class":1036,"line":127},[2109,2113,2118,2123],{"type":993,"tag":1034,"props":2110,"children":2111},{"style":1049},[2112],{"type":998,"value":2054},{"type":993,"tag":1034,"props":2114,"children":2115},{"style":1079},[2116],{"type":998,"value":2117}," Exception",{"type":993,"tag":1034,"props":2119,"children":2120},{"style":1049},[2121],{"type":998,"value":2122}," as",{"type":993,"tag":1034,"props":2124,"children":2125},{"style":1061},[2126],{"type":998,"value":2127}," e:\n",{"type":993,"tag":1034,"props":2129,"children":2130},{"class":1036,"line":136},[2131,2135,2139,2143,2148,2152,2157,2161,2165],{"type":993,"tag":1034,"props":2132,"children":2133},{"style":1079},[2134],{"type":998,"value":1332},{"type":993,"tag":1034,"props":2136,"children":2137},{"style":1061},[2138],{"type":998,"value":1087},{"type":993,"tag":1034,"props":2140,"children":2141},{"style":1049},[2142],{"type":998,"value":1255},{"type":993,"tag":1034,"props":2144,"children":2145},{"style":1070},[2146],{"type":998,"value":2147},"\"Unexpected error: ",{"type":993,"tag":1034,"props":2149,"children":2150},{"style":1079},[2151],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2153,"children":2154},{"style":1061},[2155],{"type":998,"value":2156},"e",{"type":993,"tag":1034,"props":2158,"children":2159},{"style":1079},[2160],{"type":998,"value":1285},{"type":993,"tag":1034,"props":2162,"children":2163},{"style":1070},[2164],{"type":998,"value":1260},{"type":993,"tag":1034,"props":2166,"children":2167},{"style":1061},[2168],{"type":998,"value":1097},{"type":993,"tag":1034,"props":2170,"children":2171},{"class":1036,"line":146},[2172],{"type":993,"tag":1034,"props":2173,"children":2174},{"emptyLinePlaceholder":13},[2175],{"type":998,"value":1589},{"type":993,"tag":1034,"props":2177,"children":2178},{"class":1036,"line":155},[2179,2183,2188],{"type":993,"tag":1034,"props":2180,"children":2181},{"style":1049},[2182],{"type":998,"value":1052},{"type":993,"tag":1034,"props":2184,"children":2185},{"style":1055},[2186],{"type":998,"value":2187}," validate_name",{"type":993,"tag":1034,"props":2189,"children":2190},{"style":1061},[2191],{"type":998,"value":2192},"(name):\n",{"type":993,"tag":1034,"props":2194,"children":2195},{"class":1036,"line":164},[2196],{"type":993,"tag":1034,"props":2197,"children":2198},{"style":1070},[2199],{"type":998,"value":2200},"    \"\"\"Validate name input\"\"\"\n",{"type":993,"tag":1034,"props":2202,"children":2203},{"class":1036,"line":173},[2204,2209,2214,2219,2224,2229,2234,2239],{"type":993,"tag":1034,"props":2205,"children":2206},{"style":1049},[2207],{"type":998,"value":2208},"    return",{"type":993,"tag":1034,"props":2210,"children":2211},{"style":1079},[2212],{"type":998,"value":2213}," len",{"type":993,"tag":1034,"props":2215,"children":2216},{"style":1061},[2217],{"type":998,"value":2218},"(name) ",{"type":993,"tag":1034,"props":2220,"children":2221},{"style":1049},[2222],{"type":998,"value":2223},">=",{"type":993,"tag":1034,"props":2225,"children":2226},{"style":1079},[2227],{"type":998,"value":2228}," 2",{"type":993,"tag":1034,"props":2230,"children":2231},{"style":1049},[2232],{"type":998,"value":2233}," and",{"type":993,"tag":1034,"props":2235,"children":2236},{"style":1049},[2237],{"type":998,"value":2238}," not",{"type":993,"tag":1034,"props":2240,"children":2241},{"style":1061},[2242],{"type":998,"value":2243}," name.isdigit()\n",{"type":993,"tag":1034,"props":2245,"children":2246},{"class":1036,"line":182},[2247],{"type":993,"tag":1034,"props":2248,"children":2249},{"emptyLinePlaceholder":13},[2250],{"type":998,"value":1589},{"type":993,"tag":1034,"props":2252,"children":2253},{"class":1036,"line":191},[2254,2258,2263],{"type":993,"tag":1034,"props":2255,"children":2256},{"style":1049},[2257],{"type":998,"value":1052},{"type":993,"tag":1034,"props":2259,"children":2260},{"style":1055},[2261],{"type":998,"value":2262}," validate_email",{"type":993,"tag":1034,"props":2264,"children":2265},{"style":1061},[2266],{"type":998,"value":2267},"(email):\n",{"type":993,"tag":1034,"props":2269,"children":2270},{"class":1036,"line":201},[2271],{"type":993,"tag":1034,"props":2272,"children":2273},{"style":1070},[2274],{"type":998,"value":2275},"    \"\"\"Validate email format\"\"\"\n",{"type":993,"tag":1034,"props":2277,"children":2278},{"class":1036,"line":210},[2279,2283,2288,2292,2297,2302,2307,2311,2315,2319,2323,2328,2333],{"type":993,"tag":1034,"props":2280,"children":2281},{"style":1049},[2282],{"type":998,"value":2208},{"type":993,"tag":1034,"props":2284,"children":2285},{"style":1070},[2286],{"type":998,"value":2287}," \"@\"",{"type":993,"tag":1034,"props":2289,"children":2290},{"style":1049},[2291],{"type":998,"value":1319},{"type":993,"tag":1034,"props":2293,"children":2294},{"style":1061},[2295],{"type":998,"value":2296}," email ",{"type":993,"tag":1034,"props":2298,"children":2299},{"style":1049},[2300],{"type":998,"value":2301},"and",{"type":993,"tag":1034,"props":2303,"children":2304},{"style":1070},[2305],{"type":998,"value":2306}," \".\"",{"type":993,"tag":1034,"props":2308,"children":2309},{"style":1049},[2310],{"type":998,"value":1319},{"type":993,"tag":1034,"props":2312,"children":2313},{"style":1061},[2314],{"type":998,"value":2296},{"type":993,"tag":1034,"props":2316,"children":2317},{"style":1049},[2318],{"type":998,"value":2301},{"type":993,"tag":1034,"props":2320,"children":2321},{"style":1079},[2322],{"type":998,"value":2213},{"type":993,"tag":1034,"props":2324,"children":2325},{"style":1061},[2326],{"type":998,"value":2327},"(email) ",{"type":993,"tag":1034,"props":2329,"children":2330},{"style":1049},[2331],{"type":998,"value":2332},">",{"type":993,"tag":1034,"props":2334,"children":2335},{"style":1079},[2336],{"type":998,"value":2337}," 5\n",{"type":993,"tag":1034,"props":2339,"children":2340},{"class":1036,"line":219},[2341],{"type":993,"tag":1034,"props":2342,"children":2343},{"emptyLinePlaceholder":13},[2344],{"type":998,"value":1589},{"type":993,"tag":1034,"props":2346,"children":2347},{"class":1036,"line":228},[2348,2352,2357],{"type":993,"tag":1034,"props":2349,"children":2350},{"style":1049},[2351],{"type":998,"value":1052},{"type":993,"tag":1034,"props":2353,"children":2354},{"style":1055},[2355],{"type":998,"value":2356}," validate_age",{"type":993,"tag":1034,"props":2358,"children":2359},{"style":1061},[2360],{"type":998,"value":2361},"(age_str):\n",{"type":993,"tag":1034,"props":2363,"children":2364},{"class":1036,"line":238},[2365],{"type":993,"tag":1034,"props":2366,"children":2367},{"style":1070},[2368],{"type":998,"value":2369},"    \"\"\"Validate age input\"\"\"\n",{"type":993,"tag":1034,"props":2371,"children":2372},{"class":1036,"line":247},[2373,2378],{"type":993,"tag":1034,"props":2374,"children":2375},{"style":1049},[2376],{"type":998,"value":2377},"    try",{"type":993,"tag":1034,"props":2379,"children":2380},{"style":1061},[2381],{"type":998,"value":1400},{"type":993,"tag":1034,"props":2383,"children":2384},{"class":1036,"line":256},[2385,2390,2394,2398],{"type":993,"tag":1034,"props":2386,"children":2387},{"style":1061},[2388],{"type":998,"value":2389},"        age ",{"type":993,"tag":1034,"props":2391,"children":2392},{"style":1049},[2393],{"type":998,"value":1126},{"type":993,"tag":1034,"props":2395,"children":2396},{"style":1079},[2397],{"type":998,"value":1417},{"type":993,"tag":1034,"props":2399,"children":2400},{"style":1061},[2401],{"type":998,"value":2402},"(age_str)\n",{"type":993,"tag":1034,"props":2404,"children":2405},{"class":1036,"line":265},[2406,2411,2416,2421,2426,2431],{"type":993,"tag":1034,"props":2407,"children":2408},{"style":1049},[2409],{"type":998,"value":2410},"        return",{"type":993,"tag":1034,"props":2412,"children":2413},{"style":1079},[2414],{"type":998,"value":2415}," 0",{"type":993,"tag":1034,"props":2417,"children":2418},{"style":1049},[2419],{"type":998,"value":2420}," \u003C=",{"type":993,"tag":1034,"props":2422,"children":2423},{"style":1061},[2424],{"type":998,"value":2425}," age ",{"type":993,"tag":1034,"props":2427,"children":2428},{"style":1049},[2429],{"type":998,"value":2430},"\u003C=",{"type":993,"tag":1034,"props":2432,"children":2433},{"style":1079},[2434],{"type":998,"value":2435}," 150\n",{"type":993,"tag":1034,"props":2437,"children":2438},{"class":1036,"line":274},[2439,2444,2448],{"type":993,"tag":1034,"props":2440,"children":2441},{"style":1049},[2442],{"type":998,"value":2443},"    except",{"type":993,"tag":1034,"props":2445,"children":2446},{"style":1079},[2447],{"type":998,"value":1484},{"type":993,"tag":1034,"props":2449,"children":2450},{"style":1061},[2451],{"type":998,"value":1400},{"type":993,"tag":1034,"props":2453,"children":2454},{"class":1036,"line":284},[2455,2459],{"type":993,"tag":1034,"props":2456,"children":2457},{"style":1049},[2458],{"type":998,"value":2410},{"type":993,"tag":1034,"props":2460,"children":2461},{"style":1079},[2462],{"type":998,"value":2463}," False\n",{"type":993,"tag":1034,"props":2465,"children":2466},{"class":1036,"line":293},[2467],{"type":993,"tag":1034,"props":2468,"children":2469},{"emptyLinePlaceholder":13},[2470],{"type":998,"value":1589},{"type":993,"tag":1034,"props":2472,"children":2473},{"class":1036,"line":302},[2474],{"type":993,"tag":1034,"props":2475,"children":2476},{"style":1040},[2477],{"type":998,"value":2478},"# Demonstrate validation patterns (simulated)\n",{"type":993,"tag":1034,"props":2480,"children":2481},{"class":1036,"line":311},[2482,2486,2491],{"type":993,"tag":1034,"props":2483,"children":2484},{"style":1049},[2485],{"type":998,"value":1052},{"type":993,"tag":1034,"props":2487,"children":2488},{"style":1055},[2489],{"type":998,"value":2490}," input_validation_demo",{"type":993,"tag":1034,"props":2492,"children":2493},{"style":1061},[2494],{"type":998,"value":1064},{"type":993,"tag":1034,"props":2496,"children":2497},{"class":1036,"line":320},[2498],{"type":993,"tag":1034,"props":2499,"children":2500},{"style":1070},[2501],{"type":998,"value":2502},"    \"\"\"Show input validation in action\"\"\"\n",{"type":993,"tag":1034,"props":2504,"children":2505},{"class":1036,"line":329},[2506,2510,2514,2519],{"type":993,"tag":1034,"props":2507,"children":2508},{"style":1079},[2509],{"type":998,"value":1082},{"type":993,"tag":1034,"props":2511,"children":2512},{"style":1061},[2513],{"type":998,"value":1087},{"type":993,"tag":1034,"props":2515,"children":2516},{"style":1070},[2517],{"type":998,"value":2518},"\"=== Input Validation Demo ===\"",{"type":993,"tag":1034,"props":2520,"children":2521},{"style":1061},[2522],{"type":998,"value":1097},{"type":993,"tag":1034,"props":2524,"children":2525},{"class":1036,"line":338},[2526],{"type":993,"tag":1034,"props":2527,"children":2528},{"style":1061},[2529],{"type":998,"value":1105},{"type":993,"tag":1034,"props":2531,"children":2532},{"class":1036,"line":347},[2533],{"type":993,"tag":1034,"props":2534,"children":2535},{"style":1040},[2536],{"type":998,"value":2537},"    # Simulate different validation scenarios\n",{"type":993,"tag":1034,"props":2539,"children":2540},{"class":1036,"line":356},[2541,2546,2550],{"type":993,"tag":1034,"props":2542,"children":2543},{"style":1061},[2544],{"type":998,"value":2545},"    test_cases ",{"type":993,"tag":1034,"props":2547,"children":2548},{"style":1049},[2549],{"type":998,"value":1126},{"type":993,"tag":1034,"props":2551,"children":2552},{"style":1061},[2553],{"type":998,"value":2554}," [\n",{"type":993,"tag":1034,"props":2556,"children":2557},{"class":1036,"line":365},[2558,2563,2567,2572,2577],{"type":993,"tag":1034,"props":2559,"children":2560},{"style":1061},[2561],{"type":998,"value":2562},"        (",{"type":993,"tag":1034,"props":2564,"children":2565},{"style":1070},[2566],{"type":998,"value":1136},{"type":993,"tag":1034,"props":2568,"children":2569},{"style":1061},[2570],{"type":998,"value":2571},", validate_name, ",{"type":993,"tag":1034,"props":2573,"children":2574},{"style":1070},[2575],{"type":998,"value":2576},"\"Valid name\"",{"type":993,"tag":1034,"props":2578,"children":2579},{"style":1061},[2580],{"type":998,"value":2581},"),\n",{"type":993,"tag":1034,"props":2583,"children":2584},{"class":1036,"line":374},[2585,2589,2594,2598,2603],{"type":993,"tag":1034,"props":2586,"children":2587},{"style":1061},[2588],{"type":998,"value":2562},{"type":993,"tag":1034,"props":2590,"children":2591},{"style":1070},[2592],{"type":998,"value":2593},"\"A\"",{"type":993,"tag":1034,"props":2595,"children":2596},{"style":1061},[2597],{"type":998,"value":2571},{"type":993,"tag":1034,"props":2599,"children":2600},{"style":1070},[2601],{"type":998,"value":2602},"\"Name too short\"",{"type":993,"tag":1034,"props":2604,"children":2605},{"style":1061},[2606],{"type":998,"value":2581},{"type":993,"tag":1034,"props":2608,"children":2609},{"class":1036,"line":384},[2610,2614,2619,2623,2628],{"type":993,"tag":1034,"props":2611,"children":2612},{"style":1061},[2613],{"type":998,"value":2562},{"type":993,"tag":1034,"props":2615,"children":2616},{"style":1070},[2617],{"type":998,"value":2618},"\"123\"",{"type":993,"tag":1034,"props":2620,"children":2621},{"style":1061},[2622],{"type":998,"value":2571},{"type":993,"tag":1034,"props":2624,"children":2625},{"style":1070},[2626],{"type":998,"value":2627},"\"Numbers not allowed\"",{"type":993,"tag":1034,"props":2629,"children":2630},{"style":1061},[2631],{"type":998,"value":2581},{"type":993,"tag":1034,"props":2633,"children":2634},{"class":1036,"line":393},[2635,2639,2644,2649,2654],{"type":993,"tag":1034,"props":2636,"children":2637},{"style":1061},[2638],{"type":998,"value":2562},{"type":993,"tag":1034,"props":2640,"children":2641},{"style":1070},[2642],{"type":998,"value":2643},"\"alice@example.com\"",{"type":993,"tag":1034,"props":2645,"children":2646},{"style":1061},[2647],{"type":998,"value":2648},", validate_email, ",{"type":993,"tag":1034,"props":2650,"children":2651},{"style":1070},[2652],{"type":998,"value":2653},"\"Valid email\"",{"type":993,"tag":1034,"props":2655,"children":2656},{"style":1061},[2657],{"type":998,"value":2581},{"type":993,"tag":1034,"props":2659,"children":2660},{"class":1036,"line":402},[2661,2665,2670,2674,2679],{"type":993,"tag":1034,"props":2662,"children":2663},{"style":1061},[2664],{"type":998,"value":2562},{"type":993,"tag":1034,"props":2666,"children":2667},{"style":1070},[2668],{"type":998,"value":2669},"\"invalid-email\"",{"type":993,"tag":1034,"props":2671,"children":2672},{"style":1061},[2673],{"type":998,"value":2648},{"type":993,"tag":1034,"props":2675,"children":2676},{"style":1070},[2677],{"type":998,"value":2678},"\"Invalid email format\"",{"type":993,"tag":1034,"props":2680,"children":2681},{"style":1061},[2682],{"type":998,"value":2581},{"type":993,"tag":1034,"props":2684,"children":2685},{"class":1036,"line":411},[2686,2690,2695,2700,2705],{"type":993,"tag":1034,"props":2687,"children":2688},{"style":1061},[2689],{"type":998,"value":2562},{"type":993,"tag":1034,"props":2691,"children":2692},{"style":1070},[2693],{"type":998,"value":2694},"\"25\"",{"type":993,"tag":1034,"props":2696,"children":2697},{"style":1061},[2698],{"type":998,"value":2699},", validate_age, ",{"type":993,"tag":1034,"props":2701,"children":2702},{"style":1070},[2703],{"type":998,"value":2704},"\"Valid age\"",{"type":993,"tag":1034,"props":2706,"children":2707},{"style":1061},[2708],{"type":998,"value":2581},{"type":993,"tag":1034,"props":2710,"children":2711},{"class":1036,"line":420},[2712,2716,2721,2725,2730],{"type":993,"tag":1034,"props":2713,"children":2714},{"style":1061},[2715],{"type":998,"value":2562},{"type":993,"tag":1034,"props":2717,"children":2718},{"style":1070},[2719],{"type":998,"value":2720},"\"200\"",{"type":993,"tag":1034,"props":2722,"children":2723},{"style":1061},[2724],{"type":998,"value":2699},{"type":993,"tag":1034,"props":2726,"children":2727},{"style":1070},[2728],{"type":998,"value":2729},"\"Age out of range\"",{"type":993,"tag":1034,"props":2731,"children":2732},{"style":1061},[2733],{"type":998,"value":2581},{"type":993,"tag":1034,"props":2735,"children":2736},{"class":1036,"line":429},[2737,2741,2746,2750,2755],{"type":993,"tag":1034,"props":2738,"children":2739},{"style":1061},[2740],{"type":998,"value":2562},{"type":993,"tag":1034,"props":2742,"children":2743},{"style":1070},[2744],{"type":998,"value":2745},"\"abc\"",{"type":993,"tag":1034,"props":2747,"children":2748},{"style":1061},[2749],{"type":998,"value":2699},{"type":993,"tag":1034,"props":2751,"children":2752},{"style":1070},[2753],{"type":998,"value":2754},"\"Age not a number\"",{"type":993,"tag":1034,"props":2756,"children":2757},{"style":1061},[2758],{"type":998,"value":1097},{"type":993,"tag":1034,"props":2760,"children":2761},{"class":1036,"line":438},[2762],{"type":993,"tag":1034,"props":2763,"children":2764},{"style":1061},[2765],{"type":998,"value":2766},"    ]\n",{"type":993,"tag":1034,"props":2768,"children":2769},{"class":1036,"line":447},[2770],{"type":993,"tag":1034,"props":2771,"children":2772},{"style":1061},[2773],{"type":998,"value":1105},{"type":993,"tag":1034,"props":2775,"children":2776},{"class":1036,"line":457},[2777,2781,2786,2790],{"type":993,"tag":1034,"props":2778,"children":2779},{"style":1049},[2780],{"type":998,"value":1218},{"type":993,"tag":1034,"props":2782,"children":2783},{"style":1061},[2784],{"type":998,"value":2785}," test_input, validator, description ",{"type":993,"tag":1034,"props":2787,"children":2788},{"style":1049},[2789],{"type":998,"value":1228},{"type":993,"tag":1034,"props":2791,"children":2792},{"style":1061},[2793],{"type":998,"value":2794}," test_cases:\n",{"type":993,"tag":1034,"props":2796,"children":2797},{"class":1036,"line":466},[2798,2803,2807],{"type":993,"tag":1034,"props":2799,"children":2800},{"style":1061},[2801],{"type":998,"value":2802},"        is_valid ",{"type":993,"tag":1034,"props":2804,"children":2805},{"style":1049},[2806],{"type":998,"value":1126},{"type":993,"tag":1034,"props":2808,"children":2809},{"style":1061},[2810],{"type":998,"value":2811}," validator(test_input)\n",{"type":993,"tag":1034,"props":2813,"children":2814},{"class":1036,"line":475},[2815,2820,2824,2829,2834,2839,2844],{"type":993,"tag":1034,"props":2816,"children":2817},{"style":1061},[2818],{"type":998,"value":2819},"        status ",{"type":993,"tag":1034,"props":2821,"children":2822},{"style":1049},[2823],{"type":998,"value":1126},{"type":993,"tag":1034,"props":2825,"children":2826},{"style":1070},[2827],{"type":998,"value":2828}," \"✅\"",{"type":993,"tag":1034,"props":2830,"children":2831},{"style":1049},[2832],{"type":998,"value":2833}," if",{"type":993,"tag":1034,"props":2835,"children":2836},{"style":1061},[2837],{"type":998,"value":2838}," is_valid ",{"type":993,"tag":1034,"props":2840,"children":2841},{"style":1049},[2842],{"type":998,"value":2843},"else",{"type":993,"tag":1034,"props":2845,"children":2846},{"style":1070},[2847],{"type":998,"value":2848}," \"❌\"\n",{"type":993,"tag":1034,"props":2850,"children":2851},{"class":1036,"line":484},[2852,2856,2860,2864,2868,2872,2877,2881,2886,2890,2895,2899,2904,2908,2913,2917,2921],{"type":993,"tag":1034,"props":2853,"children":2854},{"style":1079},[2855],{"type":998,"value":1246},{"type":993,"tag":1034,"props":2857,"children":2858},{"style":1061},[2859],{"type":998,"value":1087},{"type":993,"tag":1034,"props":2861,"children":2862},{"style":1049},[2863],{"type":998,"value":1255},{"type":993,"tag":1034,"props":2865,"children":2866},{"style":1070},[2867],{"type":998,"value":1260},{"type":993,"tag":1034,"props":2869,"children":2870},{"style":1079},[2871],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2873,"children":2874},{"style":1061},[2875],{"type":998,"value":2876},"status",{"type":993,"tag":1034,"props":2878,"children":2879},{"style":1079},[2880],{"type":998,"value":1285},{"type":993,"tag":1034,"props":2882,"children":2883},{"style":1070},[2884],{"type":998,"value":2885}," '",{"type":993,"tag":1034,"props":2887,"children":2888},{"style":1079},[2889],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2891,"children":2892},{"style":1061},[2893],{"type":998,"value":2894},"test_input",{"type":993,"tag":1034,"props":2896,"children":2897},{"style":1079},[2898],{"type":998,"value":1285},{"type":993,"tag":1034,"props":2900,"children":2901},{"style":1070},[2902],{"type":998,"value":2903},"' - ",{"type":993,"tag":1034,"props":2905,"children":2906},{"style":1079},[2907],{"type":998,"value":1265},{"type":993,"tag":1034,"props":2909,"children":2910},{"style":1061},[2911],{"type":998,"value":2912},"description",{"type":993,"tag":1034,"props":2914,"children":2915},{"style":1079},[2916],{"type":998,"value":1285},{"type":993,"tag":1034,"props":2918,"children":2919},{"style":1070},[2920],{"type":998,"value":1260},{"type":993,"tag":1034,"props":2922,"children":2923},{"style":1061},[2924],{"type":998,"value":1097},{"type":993,"tag":1034,"props":2926,"children":2927},{"class":1036,"line":493},[2928],{"type":993,"tag":1034,"props":2929,"children":2930},{"emptyLinePlaceholder":13},[2931],{"type":998,"value":1589},{"type":993,"tag":1034,"props":2933,"children":2934},{"class":1036,"line":502},[2935],{"type":993,"tag":1034,"props":2936,"children":2937},{"style":1061},[2938],{"type":998,"value":2939},"input_validation_demo()\n",{"type":993,"tag":1599,"props":2941,"children":2943},{"id":2942},"advanced-input-handling",[2944],{"type":998,"value":2945},"⚡ Advanced Input Handling",{"type":993,"tag":1886,"props":2947,"children":2949},{"id":2948},"numeric-input-with-range-validation",[2950],{"type":998,"value":2951},"Numeric Input with Range Validation",{"type":993,"tag":1001,"props":2953,"children":2954},{},[2955],{"type":998,"value":2956},"Numeric validation ensures mathematical operations work correctly and prevents calculation errors.",{"type":993,"tag":1021,"props":2958,"children":2959},{},[2960],{"type":993,"tag":1025,"props":2961,"children":2963},{"className":1027,"code":2962,"language":6,"meta":8,"style":8},"def get_integer_input(prompt, min_value=None, max_value=None):\n    \"\"\"Get validated integer input with optional range checking\"\"\"\n    while True:\n        try:\n            # Simulate user input for demo\n            print(f\"{prompt}\", end=\"\")\n            \n            # Test different scenarios\n            test_values = [\"25\", \"abc\", \"150\", \"-5\", \"75\"]\n            \n            for test_value in test_values:\n                print(f\"{test_value}\")\n                \n                try:\n                    value = int(test_value)\n                    \n                    if min_value is not None and value \u003C min_value:\n                        print(f\"❌ Value must be at least {min_value}\")\n                        continue\n                    \n                    if max_value is not None and value > max_value:\n                        print(f\"❌ Value must be no more than {max_value}\")\n                        continue\n                    \n                    print(f\"✅ Valid input: {value}\")\n                    return value\n                    \n                except ValueError:\n                    print(\"❌ Please enter a valid whole number.\")\n                    continue\n                    \n        except KeyboardInterrupt:\n            print(\"\\nOperation cancelled\")\n            return None\n\ndef get_float_input(prompt, min_value=None, max_value=None):\n    \"\"\"Get validated decimal number input\"\"\"\n    print(f\"\\n=== Float Input Demo ===\")\n    test_values = [\"3.14\", \"abc\", \"10.5\", \"-2.5\", \"8.75\"]\n    \n    for test_value in test_values:\n        print(f\"{prompt}{test_value}\")\n        \n        try:\n            value = float(test_value)\n            \n            if min_value is not None and value \u003C min_value:\n                print(f\"❌ Value must be at least {min_value}\")\n                continue\n            \n            if max_value is not None and value > max_value:\n                print(f\"❌ Value must be no more than {max_value}\")\n                continue\n            \n            print(f\"✅ Valid decimal: {value}\")\n            break\n            \n        except ValueError:\n            print(\"❌ Please enter a valid number (e.g., 3.14).\")\n\n# Demonstrate numeric input validation\nprint(\"=== Integer Input Demo ===\")\nage = get_integer_input(\"Enter your age (0-120): \", min_value=0, max_value=120)\nget_float_input(\"Enter price ($0.00-$100.00): \", min_value=0.0, max_value=100.0)\n",[2964],{"type":993,"tag":1007,"props":2965,"children":2966},{"__ignoreMap":8},[2967,3010,3018,3033,3044,3052,3110,3118,3126,3185,3192,3214,3254,3262,3274,3295,3303,3349,3391,3399,3406,3447,3488,3495,3502,3544,3557,3564,3580,3600,3608,3615,3630,3658,3669,3676,3716,3724,3756,3816,3823,3842,3889,3896,3907,3928,3935,3974,4013,4021,4028,4067,4106,4113,4120,4160,4168,4175,4190,4210,4217,4225,4246,4305],{"type":993,"tag":1034,"props":2968,"children":2969},{"class":1036,"line":12},[2970,2974,2979,2984,2988,2993,2998,3002,3006],{"type":993,"tag":1034,"props":2971,"children":2972},{"style":1049},[2973],{"type":998,"value":1052},{"type":993,"tag":1034,"props":2975,"children":2976},{"style":1055},[2977],{"type":998,"value":2978}," get_integer_input",{"type":993,"tag":1034,"props":2980,"children":2981},{"style":1061},[2982],{"type":998,"value":2983},"(prompt, min_value",{"type":993,"tag":1034,"props":2985,"children":2986},{"style":1049},[2987],{"type":998,"value":1126},{"type":993,"tag":1034,"props":2989,"children":2990},{"style":1079},[2991],{"type":998,"value":2992},"None",{"type":993,"tag":1034,"props":2994,"children":2995},{"style":1061},[2996],{"type":998,"value":2997},", max_value",{"type":993,"tag":1034,"props":2999,"children":3000},{"style":1049},[3001],{"type":998,"value":1126},{"type":993,"tag":1034,"props":3003,"children":3004},{"style":1079},[3005],{"type":998,"value":2992},{"type":993,"tag":1034,"props":3007,"children":3008},{"style":1061},[3009],{"type":998,"value":1937},{"type":993,"tag":1034,"props":3011,"children":3012},{"class":1036,"line":27},[3013],{"type":993,"tag":1034,"props":3014,"children":3015},{"style":1070},[3016],{"type":998,"value":3017},"    \"\"\"Get validated integer input with optional range checking\"\"\"\n",{"type":993,"tag":1034,"props":3019,"children":3020},{"class":1036,"line":36},[3021,3025,3029],{"type":993,"tag":1034,"props":3022,"children":3023},{"style":1049},[3024],{"type":998,"value":1953},{"type":993,"tag":1034,"props":3026,"children":3027},{"style":1079},[3028],{"type":998,"value":1958},{"type":993,"tag":1034,"props":3030,"children":3031},{"style":1061},[3032],{"type":998,"value":1400},{"type":993,"tag":1034,"props":3034,"children":3035},{"class":1036,"line":45},[3036,3040],{"type":993,"tag":1034,"props":3037,"children":3038},{"style":1049},[3039],{"type":998,"value":1970},{"type":993,"tag":1034,"props":3041,"children":3042},{"style":1061},[3043],{"type":998,"value":1400},{"type":993,"tag":1034,"props":3045,"children":3046},{"class":1036,"line":54},[3047],{"type":993,"tag":1034,"props":3048,"children":3049},{"style":1040},[3050],{"type":998,"value":3051},"            # Simulate user input for demo\n",{"type":993,"tag":1034,"props":3053,"children":3054},{"class":1036,"line":63},[3055,3059,3063,3067,3071,3075,3079,3083,3087,3091,3097,3101,3106],{"type":993,"tag":1034,"props":3056,"children":3057},{"style":1079},[3058],{"type":998,"value":1332},{"type":993,"tag":1034,"props":3060,"children":3061},{"style":1061},[3062],{"type":998,"value":1087},{"type":993,"tag":1034,"props":3064,"children":3065},{"style":1049},[3066],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3068,"children":3069},{"style":1070},[3070],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3072,"children":3073},{"style":1079},[3074],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3076,"children":3077},{"style":1061},[3078],{"type":998,"value":1270},{"type":993,"tag":1034,"props":3080,"children":3081},{"style":1079},[3082],{"type":998,"value":1285},{"type":993,"tag":1034,"props":3084,"children":3085},{"style":1070},[3086],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3088,"children":3089},{"style":1061},[3090],{"type":998,"value":1141},{"type":993,"tag":1034,"props":3092,"children":3094},{"style":3093},"--shiki-default:#E36209;--shiki-app-dark-mode:#FFAB70",[3095],{"type":998,"value":3096},"end",{"type":993,"tag":1034,"props":3098,"children":3099},{"style":1049},[3100],{"type":998,"value":1126},{"type":993,"tag":1034,"props":3102,"children":3103},{"style":1070},[3104],{"type":998,"value":3105},"\"\"",{"type":993,"tag":1034,"props":3107,"children":3108},{"style":1061},[3109],{"type":998,"value":1097},{"type":993,"tag":1034,"props":3111,"children":3112},{"class":1036,"line":72},[3113],{"type":993,"tag":1034,"props":3114,"children":3115},{"style":1061},[3116],{"type":998,"value":3117},"            \n",{"type":993,"tag":1034,"props":3119,"children":3120},{"class":1036,"line":81},[3121],{"type":993,"tag":1034,"props":3122,"children":3123},{"style":1040},[3124],{"type":998,"value":3125},"            # Test different scenarios\n",{"type":993,"tag":1034,"props":3127,"children":3128},{"class":1036,"line":91},[3129,3134,3138,3142,3146,3150,3154,3158,3163,3167,3172,3176,3181],{"type":993,"tag":1034,"props":3130,"children":3131},{"style":1061},[3132],{"type":998,"value":3133},"            test_values ",{"type":993,"tag":1034,"props":3135,"children":3136},{"style":1049},[3137],{"type":998,"value":1126},{"type":993,"tag":1034,"props":3139,"children":3140},{"style":1061},[3141],{"type":998,"value":1131},{"type":993,"tag":1034,"props":3143,"children":3144},{"style":1070},[3145],{"type":998,"value":2694},{"type":993,"tag":1034,"props":3147,"children":3148},{"style":1061},[3149],{"type":998,"value":1141},{"type":993,"tag":1034,"props":3151,"children":3152},{"style":1070},[3153],{"type":998,"value":2745},{"type":993,"tag":1034,"props":3155,"children":3156},{"style":1061},[3157],{"type":998,"value":1141},{"type":993,"tag":1034,"props":3159,"children":3160},{"style":1070},[3161],{"type":998,"value":3162},"\"150\"",{"type":993,"tag":1034,"props":3164,"children":3165},{"style":1061},[3166],{"type":998,"value":1141},{"type":993,"tag":1034,"props":3168,"children":3169},{"style":1070},[3170],{"type":998,"value":3171},"\"-5\"",{"type":993,"tag":1034,"props":3173,"children":3174},{"style":1061},[3175],{"type":998,"value":1141},{"type":993,"tag":1034,"props":3177,"children":3178},{"style":1070},[3179],{"type":998,"value":3180},"\"75\"",{"type":993,"tag":1034,"props":3182,"children":3183},{"style":1061},[3184],{"type":998,"value":1160},{"type":993,"tag":1034,"props":3186,"children":3187},{"class":1036,"line":100},[3188],{"type":993,"tag":1034,"props":3189,"children":3190},{"style":1061},[3191],{"type":998,"value":3117},{"type":993,"tag":1034,"props":3193,"children":3194},{"class":1036,"line":109},[3195,3200,3205,3209],{"type":993,"tag":1034,"props":3196,"children":3197},{"style":1049},[3198],{"type":998,"value":3199},"            for",{"type":993,"tag":1034,"props":3201,"children":3202},{"style":1061},[3203],{"type":998,"value":3204}," test_value ",{"type":993,"tag":1034,"props":3206,"children":3207},{"style":1049},[3208],{"type":998,"value":1228},{"type":993,"tag":1034,"props":3210,"children":3211},{"style":1061},[3212],{"type":998,"value":3213}," test_values:\n",{"type":993,"tag":1034,"props":3215,"children":3216},{"class":1036,"line":118},[3217,3221,3225,3229,3233,3237,3242,3246,3250],{"type":993,"tag":1034,"props":3218,"children":3219},{"style":1079},[3220],{"type":998,"value":1430},{"type":993,"tag":1034,"props":3222,"children":3223},{"style":1061},[3224],{"type":998,"value":1087},{"type":993,"tag":1034,"props":3226,"children":3227},{"style":1049},[3228],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3230,"children":3231},{"style":1070},[3232],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3234,"children":3235},{"style":1079},[3236],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3238,"children":3239},{"style":1061},[3240],{"type":998,"value":3241},"test_value",{"type":993,"tag":1034,"props":3243,"children":3244},{"style":1079},[3245],{"type":998,"value":1285},{"type":993,"tag":1034,"props":3247,"children":3248},{"style":1070},[3249],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3251,"children":3252},{"style":1061},[3253],{"type":998,"value":1097},{"type":993,"tag":1034,"props":3255,"children":3256},{"class":1036,"line":127},[3257],{"type":993,"tag":1034,"props":3258,"children":3259},{"style":1061},[3260],{"type":998,"value":3261},"                \n",{"type":993,"tag":1034,"props":3263,"children":3264},{"class":1036,"line":136},[3265,3270],{"type":993,"tag":1034,"props":3266,"children":3267},{"style":1049},[3268],{"type":998,"value":3269},"                try",{"type":993,"tag":1034,"props":3271,"children":3272},{"style":1061},[3273],{"type":998,"value":1400},{"type":993,"tag":1034,"props":3275,"children":3276},{"class":1036,"line":146},[3277,3282,3286,3290],{"type":993,"tag":1034,"props":3278,"children":3279},{"style":1061},[3280],{"type":998,"value":3281},"                    value ",{"type":993,"tag":1034,"props":3283,"children":3284},{"style":1049},[3285],{"type":998,"value":1126},{"type":993,"tag":1034,"props":3287,"children":3288},{"style":1079},[3289],{"type":998,"value":1417},{"type":993,"tag":1034,"props":3291,"children":3292},{"style":1061},[3293],{"type":998,"value":3294},"(test_value)\n",{"type":993,"tag":1034,"props":3296,"children":3297},{"class":1036,"line":155},[3298],{"type":993,"tag":1034,"props":3299,"children":3300},{"style":1061},[3301],{"type":998,"value":3302},"                    \n",{"type":993,"tag":1034,"props":3304,"children":3305},{"class":1036,"line":164},[3306,3311,3316,3321,3325,3330,3334,3339,3344],{"type":993,"tag":1034,"props":3307,"children":3308},{"style":1049},[3309],{"type":998,"value":3310},"                    if",{"type":993,"tag":1034,"props":3312,"children":3313},{"style":1061},[3314],{"type":998,"value":3315}," min_value ",{"type":993,"tag":1034,"props":3317,"children":3318},{"style":1049},[3319],{"type":998,"value":3320},"is",{"type":993,"tag":1034,"props":3322,"children":3323},{"style":1049},[3324],{"type":998,"value":2238},{"type":993,"tag":1034,"props":3326,"children":3327},{"style":1079},[3328],{"type":998,"value":3329}," None",{"type":993,"tag":1034,"props":3331,"children":3332},{"style":1049},[3333],{"type":998,"value":2233},{"type":993,"tag":1034,"props":3335,"children":3336},{"style":1061},[3337],{"type":998,"value":3338}," value ",{"type":993,"tag":1034,"props":3340,"children":3341},{"style":1049},[3342],{"type":998,"value":3343},"\u003C",{"type":993,"tag":1034,"props":3345,"children":3346},{"style":1061},[3347],{"type":998,"value":3348}," min_value:\n",{"type":993,"tag":1034,"props":3350,"children":3351},{"class":1036,"line":173},[3352,3357,3361,3365,3370,3374,3379,3383,3387],{"type":993,"tag":1034,"props":3353,"children":3354},{"style":1079},[3355],{"type":998,"value":3356},"                        print",{"type":993,"tag":1034,"props":3358,"children":3359},{"style":1061},[3360],{"type":998,"value":1087},{"type":993,"tag":1034,"props":3362,"children":3363},{"style":1049},[3364],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3366,"children":3367},{"style":1070},[3368],{"type":998,"value":3369},"\"❌ Value must be at least ",{"type":993,"tag":1034,"props":3371,"children":3372},{"style":1079},[3373],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3375,"children":3376},{"style":1061},[3377],{"type":998,"value":3378},"min_value",{"type":993,"tag":1034,"props":3380,"children":3381},{"style":1079},[3382],{"type":998,"value":1285},{"type":993,"tag":1034,"props":3384,"children":3385},{"style":1070},[3386],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3388,"children":3389},{"style":1061},[3390],{"type":998,"value":1097},{"type":993,"tag":1034,"props":3392,"children":3393},{"class":1036,"line":182},[3394],{"type":993,"tag":1034,"props":3395,"children":3396},{"style":1049},[3397],{"type":998,"value":3398},"                        continue\n",{"type":993,"tag":1034,"props":3400,"children":3401},{"class":1036,"line":191},[3402],{"type":993,"tag":1034,"props":3403,"children":3404},{"style":1061},[3405],{"type":998,"value":3302},{"type":993,"tag":1034,"props":3407,"children":3408},{"class":1036,"line":201},[3409,3413,3418,3422,3426,3430,3434,3438,3442],{"type":993,"tag":1034,"props":3410,"children":3411},{"style":1049},[3412],{"type":998,"value":3310},{"type":993,"tag":1034,"props":3414,"children":3415},{"style":1061},[3416],{"type":998,"value":3417}," max_value ",{"type":993,"tag":1034,"props":3419,"children":3420},{"style":1049},[3421],{"type":998,"value":3320},{"type":993,"tag":1034,"props":3423,"children":3424},{"style":1049},[3425],{"type":998,"value":2238},{"type":993,"tag":1034,"props":3427,"children":3428},{"style":1079},[3429],{"type":998,"value":3329},{"type":993,"tag":1034,"props":3431,"children":3432},{"style":1049},[3433],{"type":998,"value":2233},{"type":993,"tag":1034,"props":3435,"children":3436},{"style":1061},[3437],{"type":998,"value":3338},{"type":993,"tag":1034,"props":3439,"children":3440},{"style":1049},[3441],{"type":998,"value":2332},{"type":993,"tag":1034,"props":3443,"children":3444},{"style":1061},[3445],{"type":998,"value":3446}," max_value:\n",{"type":993,"tag":1034,"props":3448,"children":3449},{"class":1036,"line":210},[3450,3454,3458,3462,3467,3471,3476,3480,3484],{"type":993,"tag":1034,"props":3451,"children":3452},{"style":1079},[3453],{"type":998,"value":3356},{"type":993,"tag":1034,"props":3455,"children":3456},{"style":1061},[3457],{"type":998,"value":1087},{"type":993,"tag":1034,"props":3459,"children":3460},{"style":1049},[3461],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3463,"children":3464},{"style":1070},[3465],{"type":998,"value":3466},"\"❌ Value must be no more than ",{"type":993,"tag":1034,"props":3468,"children":3469},{"style":1079},[3470],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3472,"children":3473},{"style":1061},[3474],{"type":998,"value":3475},"max_value",{"type":993,"tag":1034,"props":3477,"children":3478},{"style":1079},[3479],{"type":998,"value":1285},{"type":993,"tag":1034,"props":3481,"children":3482},{"style":1070},[3483],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3485,"children":3486},{"style":1061},[3487],{"type":998,"value":1097},{"type":993,"tag":1034,"props":3489,"children":3490},{"class":1036,"line":219},[3491],{"type":993,"tag":1034,"props":3492,"children":3493},{"style":1049},[3494],{"type":998,"value":3398},{"type":993,"tag":1034,"props":3496,"children":3497},{"class":1036,"line":228},[3498],{"type":993,"tag":1034,"props":3499,"children":3500},{"style":1061},[3501],{"type":998,"value":3302},{"type":993,"tag":1034,"props":3503,"children":3504},{"class":1036,"line":238},[3505,3510,3514,3518,3523,3527,3532,3536,3540],{"type":993,"tag":1034,"props":3506,"children":3507},{"style":1079},[3508],{"type":998,"value":3509},"                    print",{"type":993,"tag":1034,"props":3511,"children":3512},{"style":1061},[3513],{"type":998,"value":1087},{"type":993,"tag":1034,"props":3515,"children":3516},{"style":1049},[3517],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3519,"children":3520},{"style":1070},[3521],{"type":998,"value":3522},"\"✅ Valid input: ",{"type":993,"tag":1034,"props":3524,"children":3525},{"style":1079},[3526],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3528,"children":3529},{"style":1061},[3530],{"type":998,"value":3531},"value",{"type":993,"tag":1034,"props":3533,"children":3534},{"style":1079},[3535],{"type":998,"value":1285},{"type":993,"tag":1034,"props":3537,"children":3538},{"style":1070},[3539],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3541,"children":3542},{"style":1061},[3543],{"type":998,"value":1097},{"type":993,"tag":1034,"props":3545,"children":3546},{"class":1036,"line":247},[3547,3552],{"type":993,"tag":1034,"props":3548,"children":3549},{"style":1049},[3550],{"type":998,"value":3551},"                    return",{"type":993,"tag":1034,"props":3553,"children":3554},{"style":1061},[3555],{"type":998,"value":3556}," value\n",{"type":993,"tag":1034,"props":3558,"children":3559},{"class":1036,"line":256},[3560],{"type":993,"tag":1034,"props":3561,"children":3562},{"style":1061},[3563],{"type":998,"value":3302},{"type":993,"tag":1034,"props":3565,"children":3566},{"class":1036,"line":265},[3567,3572,3576],{"type":993,"tag":1034,"props":3568,"children":3569},{"style":1049},[3570],{"type":998,"value":3571},"                except",{"type":993,"tag":1034,"props":3573,"children":3574},{"style":1079},[3575],{"type":998,"value":1484},{"type":993,"tag":1034,"props":3577,"children":3578},{"style":1061},[3579],{"type":998,"value":1400},{"type":993,"tag":1034,"props":3581,"children":3582},{"class":1036,"line":274},[3583,3587,3591,3596],{"type":993,"tag":1034,"props":3584,"children":3585},{"style":1079},[3586],{"type":998,"value":3509},{"type":993,"tag":1034,"props":3588,"children":3589},{"style":1061},[3590],{"type":998,"value":1087},{"type":993,"tag":1034,"props":3592,"children":3593},{"style":1070},[3594],{"type":998,"value":3595},"\"❌ Please enter a valid whole number.\"",{"type":993,"tag":1034,"props":3597,"children":3598},{"style":1061},[3599],{"type":998,"value":1097},{"type":993,"tag":1034,"props":3601,"children":3602},{"class":1036,"line":284},[3603],{"type":993,"tag":1034,"props":3604,"children":3605},{"style":1049},[3606],{"type":998,"value":3607},"                    continue\n",{"type":993,"tag":1034,"props":3609,"children":3610},{"class":1036,"line":293},[3611],{"type":993,"tag":1034,"props":3612,"children":3613},{"style":1061},[3614],{"type":998,"value":3302},{"type":993,"tag":1034,"props":3616,"children":3617},{"class":1036,"line":302},[3618,3622,3626],{"type":993,"tag":1034,"props":3619,"children":3620},{"style":1049},[3621],{"type":998,"value":2054},{"type":993,"tag":1034,"props":3623,"children":3624},{"style":1079},[3625],{"type":998,"value":2059},{"type":993,"tag":1034,"props":3627,"children":3628},{"style":1061},[3629],{"type":998,"value":1400},{"type":993,"tag":1034,"props":3631,"children":3632},{"class":1036,"line":311},[3633,3637,3641,3645,3649,3654],{"type":993,"tag":1034,"props":3634,"children":3635},{"style":1079},[3636],{"type":998,"value":1332},{"type":993,"tag":1034,"props":3638,"children":3639},{"style":1061},[3640],{"type":998,"value":1087},{"type":993,"tag":1034,"props":3642,"children":3643},{"style":1070},[3644],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3646,"children":3647},{"style":1079},[3648],{"type":998,"value":2083},{"type":993,"tag":1034,"props":3650,"children":3651},{"style":1070},[3652],{"type":998,"value":3653},"Operation cancelled\"",{"type":993,"tag":1034,"props":3655,"children":3656},{"style":1061},[3657],{"type":998,"value":1097},{"type":993,"tag":1034,"props":3659,"children":3660},{"class":1036,"line":320},[3661,3665],{"type":993,"tag":1034,"props":3662,"children":3663},{"style":1049},[3664],{"type":998,"value":2100},{"type":993,"tag":1034,"props":3666,"children":3667},{"style":1079},[3668],{"type":998,"value":2105},{"type":993,"tag":1034,"props":3670,"children":3671},{"class":1036,"line":329},[3672],{"type":993,"tag":1034,"props":3673,"children":3674},{"emptyLinePlaceholder":13},[3675],{"type":998,"value":1589},{"type":993,"tag":1034,"props":3677,"children":3678},{"class":1036,"line":338},[3679,3683,3688,3692,3696,3700,3704,3708,3712],{"type":993,"tag":1034,"props":3680,"children":3681},{"style":1049},[3682],{"type":998,"value":1052},{"type":993,"tag":1034,"props":3684,"children":3685},{"style":1055},[3686],{"type":998,"value":3687}," get_float_input",{"type":993,"tag":1034,"props":3689,"children":3690},{"style":1061},[3691],{"type":998,"value":2983},{"type":993,"tag":1034,"props":3693,"children":3694},{"style":1049},[3695],{"type":998,"value":1126},{"type":993,"tag":1034,"props":3697,"children":3698},{"style":1079},[3699],{"type":998,"value":2992},{"type":993,"tag":1034,"props":3701,"children":3702},{"style":1061},[3703],{"type":998,"value":2997},{"type":993,"tag":1034,"props":3705,"children":3706},{"style":1049},[3707],{"type":998,"value":1126},{"type":993,"tag":1034,"props":3709,"children":3710},{"style":1079},[3711],{"type":998,"value":2992},{"type":993,"tag":1034,"props":3713,"children":3714},{"style":1061},[3715],{"type":998,"value":1937},{"type":993,"tag":1034,"props":3717,"children":3718},{"class":1036,"line":347},[3719],{"type":993,"tag":1034,"props":3720,"children":3721},{"style":1070},[3722],{"type":998,"value":3723},"    \"\"\"Get validated decimal number input\"\"\"\n",{"type":993,"tag":1034,"props":3725,"children":3726},{"class":1036,"line":356},[3727,3731,3735,3739,3743,3747,3752],{"type":993,"tag":1034,"props":3728,"children":3729},{"style":1079},[3730],{"type":998,"value":1082},{"type":993,"tag":1034,"props":3732,"children":3733},{"style":1061},[3734],{"type":998,"value":1087},{"type":993,"tag":1034,"props":3736,"children":3737},{"style":1049},[3738],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3740,"children":3741},{"style":1070},[3742],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3744,"children":3745},{"style":1079},[3746],{"type":998,"value":2083},{"type":993,"tag":1034,"props":3748,"children":3749},{"style":1070},[3750],{"type":998,"value":3751},"=== Float Input Demo ===\"",{"type":993,"tag":1034,"props":3753,"children":3754},{"style":1061},[3755],{"type":998,"value":1097},{"type":993,"tag":1034,"props":3757,"children":3758},{"class":1036,"line":365},[3759,3764,3768,3772,3777,3781,3785,3789,3794,3798,3803,3807,3812],{"type":993,"tag":1034,"props":3760,"children":3761},{"style":1061},[3762],{"type":998,"value":3763},"    test_values ",{"type":993,"tag":1034,"props":3765,"children":3766},{"style":1049},[3767],{"type":998,"value":1126},{"type":993,"tag":1034,"props":3769,"children":3770},{"style":1061},[3771],{"type":998,"value":1131},{"type":993,"tag":1034,"props":3773,"children":3774},{"style":1070},[3775],{"type":998,"value":3776},"\"3.14\"",{"type":993,"tag":1034,"props":3778,"children":3779},{"style":1061},[3780],{"type":998,"value":1141},{"type":993,"tag":1034,"props":3782,"children":3783},{"style":1070},[3784],{"type":998,"value":2745},{"type":993,"tag":1034,"props":3786,"children":3787},{"style":1061},[3788],{"type":998,"value":1141},{"type":993,"tag":1034,"props":3790,"children":3791},{"style":1070},[3792],{"type":998,"value":3793},"\"10.5\"",{"type":993,"tag":1034,"props":3795,"children":3796},{"style":1061},[3797],{"type":998,"value":1141},{"type":993,"tag":1034,"props":3799,"children":3800},{"style":1070},[3801],{"type":998,"value":3802},"\"-2.5\"",{"type":993,"tag":1034,"props":3804,"children":3805},{"style":1061},[3806],{"type":998,"value":1141},{"type":993,"tag":1034,"props":3808,"children":3809},{"style":1070},[3810],{"type":998,"value":3811},"\"8.75\"",{"type":993,"tag":1034,"props":3813,"children":3814},{"style":1061},[3815],{"type":998,"value":1160},{"type":993,"tag":1034,"props":3817,"children":3818},{"class":1036,"line":374},[3819],{"type":993,"tag":1034,"props":3820,"children":3821},{"style":1061},[3822],{"type":998,"value":1105},{"type":993,"tag":1034,"props":3824,"children":3825},{"class":1036,"line":384},[3826,3830,3834,3838],{"type":993,"tag":1034,"props":3827,"children":3828},{"style":1049},[3829],{"type":998,"value":1218},{"type":993,"tag":1034,"props":3831,"children":3832},{"style":1061},[3833],{"type":998,"value":3204},{"type":993,"tag":1034,"props":3835,"children":3836},{"style":1049},[3837],{"type":998,"value":1228},{"type":993,"tag":1034,"props":3839,"children":3840},{"style":1061},[3841],{"type":998,"value":3213},{"type":993,"tag":1034,"props":3843,"children":3844},{"class":1036,"line":393},[3845,3849,3853,3857,3861,3865,3869,3873,3877,3881,3885],{"type":993,"tag":1034,"props":3846,"children":3847},{"style":1079},[3848],{"type":998,"value":1246},{"type":993,"tag":1034,"props":3850,"children":3851},{"style":1061},[3852],{"type":998,"value":1087},{"type":993,"tag":1034,"props":3854,"children":3855},{"style":1049},[3856],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3858,"children":3859},{"style":1070},[3860],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3862,"children":3863},{"style":1079},[3864],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3866,"children":3867},{"style":1061},[3868],{"type":998,"value":1270},{"type":993,"tag":1034,"props":3870,"children":3871},{"style":1079},[3872],{"type":998,"value":1275},{"type":993,"tag":1034,"props":3874,"children":3875},{"style":1061},[3876],{"type":998,"value":3241},{"type":993,"tag":1034,"props":3878,"children":3879},{"style":1079},[3880],{"type":998,"value":1285},{"type":993,"tag":1034,"props":3882,"children":3883},{"style":1070},[3884],{"type":998,"value":1260},{"type":993,"tag":1034,"props":3886,"children":3887},{"style":1061},[3888],{"type":998,"value":1097},{"type":993,"tag":1034,"props":3890,"children":3891},{"class":1036,"line":402},[3892],{"type":993,"tag":1034,"props":3893,"children":3894},{"style":1061},[3895],{"type":998,"value":1301},{"type":993,"tag":1034,"props":3897,"children":3898},{"class":1036,"line":411},[3899,3903],{"type":993,"tag":1034,"props":3900,"children":3901},{"style":1049},[3902],{"type":998,"value":1970},{"type":993,"tag":1034,"props":3904,"children":3905},{"style":1061},[3906],{"type":998,"value":1400},{"type":993,"tag":1034,"props":3908,"children":3909},{"class":1036,"line":420},[3910,3915,3919,3924],{"type":993,"tag":1034,"props":3911,"children":3912},{"style":1061},[3913],{"type":998,"value":3914},"            value ",{"type":993,"tag":1034,"props":3916,"children":3917},{"style":1049},[3918],{"type":998,"value":1126},{"type":993,"tag":1034,"props":3920,"children":3921},{"style":1079},[3922],{"type":998,"value":3923}," float",{"type":993,"tag":1034,"props":3925,"children":3926},{"style":1061},[3927],{"type":998,"value":3294},{"type":993,"tag":1034,"props":3929,"children":3930},{"class":1036,"line":429},[3931],{"type":993,"tag":1034,"props":3932,"children":3933},{"style":1061},[3934],{"type":998,"value":3117},{"type":993,"tag":1034,"props":3936,"children":3937},{"class":1036,"line":438},[3938,3942,3946,3950,3954,3958,3962,3966,3970],{"type":993,"tag":1034,"props":3939,"children":3940},{"style":1049},[3941],{"type":998,"value":2004},{"type":993,"tag":1034,"props":3943,"children":3944},{"style":1061},[3945],{"type":998,"value":3315},{"type":993,"tag":1034,"props":3947,"children":3948},{"style":1049},[3949],{"type":998,"value":3320},{"type":993,"tag":1034,"props":3951,"children":3952},{"style":1049},[3953],{"type":998,"value":2238},{"type":993,"tag":1034,"props":3955,"children":3956},{"style":1079},[3957],{"type":998,"value":3329},{"type":993,"tag":1034,"props":3959,"children":3960},{"style":1049},[3961],{"type":998,"value":2233},{"type":993,"tag":1034,"props":3963,"children":3964},{"style":1061},[3965],{"type":998,"value":3338},{"type":993,"tag":1034,"props":3967,"children":3968},{"style":1049},[3969],{"type":998,"value":3343},{"type":993,"tag":1034,"props":3971,"children":3972},{"style":1061},[3973],{"type":998,"value":3348},{"type":993,"tag":1034,"props":3975,"children":3976},{"class":1036,"line":447},[3977,3981,3985,3989,3993,3997,4001,4005,4009],{"type":993,"tag":1034,"props":3978,"children":3979},{"style":1079},[3980],{"type":998,"value":1430},{"type":993,"tag":1034,"props":3982,"children":3983},{"style":1061},[3984],{"type":998,"value":1087},{"type":993,"tag":1034,"props":3986,"children":3987},{"style":1049},[3988],{"type":998,"value":1255},{"type":993,"tag":1034,"props":3990,"children":3991},{"style":1070},[3992],{"type":998,"value":3369},{"type":993,"tag":1034,"props":3994,"children":3995},{"style":1079},[3996],{"type":998,"value":1265},{"type":993,"tag":1034,"props":3998,"children":3999},{"style":1061},[4000],{"type":998,"value":3378},{"type":993,"tag":1034,"props":4002,"children":4003},{"style":1079},[4004],{"type":998,"value":1285},{"type":993,"tag":1034,"props":4006,"children":4007},{"style":1070},[4008],{"type":998,"value":1260},{"type":993,"tag":1034,"props":4010,"children":4011},{"style":1061},[4012],{"type":998,"value":1097},{"type":993,"tag":1034,"props":4014,"children":4015},{"class":1036,"line":457},[4016],{"type":993,"tag":1034,"props":4017,"children":4018},{"style":1049},[4019],{"type":998,"value":4020},"                continue\n",{"type":993,"tag":1034,"props":4022,"children":4023},{"class":1036,"line":466},[4024],{"type":993,"tag":1034,"props":4025,"children":4026},{"style":1061},[4027],{"type":998,"value":3117},{"type":993,"tag":1034,"props":4029,"children":4030},{"class":1036,"line":475},[4031,4035,4039,4043,4047,4051,4055,4059,4063],{"type":993,"tag":1034,"props":4032,"children":4033},{"style":1049},[4034],{"type":998,"value":2004},{"type":993,"tag":1034,"props":4036,"children":4037},{"style":1061},[4038],{"type":998,"value":3417},{"type":993,"tag":1034,"props":4040,"children":4041},{"style":1049},[4042],{"type":998,"value":3320},{"type":993,"tag":1034,"props":4044,"children":4045},{"style":1049},[4046],{"type":998,"value":2238},{"type":993,"tag":1034,"props":4048,"children":4049},{"style":1079},[4050],{"type":998,"value":3329},{"type":993,"tag":1034,"props":4052,"children":4053},{"style":1049},[4054],{"type":998,"value":2233},{"type":993,"tag":1034,"props":4056,"children":4057},{"style":1061},[4058],{"type":998,"value":3338},{"type":993,"tag":1034,"props":4060,"children":4061},{"style":1049},[4062],{"type":998,"value":2332},{"type":993,"tag":1034,"props":4064,"children":4065},{"style":1061},[4066],{"type":998,"value":3446},{"type":993,"tag":1034,"props":4068,"children":4069},{"class":1036,"line":484},[4070,4074,4078,4082,4086,4090,4094,4098,4102],{"type":993,"tag":1034,"props":4071,"children":4072},{"style":1079},[4073],{"type":998,"value":1430},{"type":993,"tag":1034,"props":4075,"children":4076},{"style":1061},[4077],{"type":998,"value":1087},{"type":993,"tag":1034,"props":4079,"children":4080},{"style":1049},[4081],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4083,"children":4084},{"style":1070},[4085],{"type":998,"value":3466},{"type":993,"tag":1034,"props":4087,"children":4088},{"style":1079},[4089],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4091,"children":4092},{"style":1061},[4093],{"type":998,"value":3475},{"type":993,"tag":1034,"props":4095,"children":4096},{"style":1079},[4097],{"type":998,"value":1285},{"type":993,"tag":1034,"props":4099,"children":4100},{"style":1070},[4101],{"type":998,"value":1260},{"type":993,"tag":1034,"props":4103,"children":4104},{"style":1061},[4105],{"type":998,"value":1097},{"type":993,"tag":1034,"props":4107,"children":4108},{"class":1036,"line":493},[4109],{"type":993,"tag":1034,"props":4110,"children":4111},{"style":1049},[4112],{"type":998,"value":4020},{"type":993,"tag":1034,"props":4114,"children":4115},{"class":1036,"line":502},[4116],{"type":993,"tag":1034,"props":4117,"children":4118},{"style":1061},[4119],{"type":998,"value":3117},{"type":993,"tag":1034,"props":4121,"children":4122},{"class":1036,"line":511},[4123,4127,4131,4135,4140,4144,4148,4152,4156],{"type":993,"tag":1034,"props":4124,"children":4125},{"style":1079},[4126],{"type":998,"value":1332},{"type":993,"tag":1034,"props":4128,"children":4129},{"style":1061},[4130],{"type":998,"value":1087},{"type":993,"tag":1034,"props":4132,"children":4133},{"style":1049},[4134],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4136,"children":4137},{"style":1070},[4138],{"type":998,"value":4139},"\"✅ Valid decimal: ",{"type":993,"tag":1034,"props":4141,"children":4142},{"style":1079},[4143],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4145,"children":4146},{"style":1061},[4147],{"type":998,"value":3531},{"type":993,"tag":1034,"props":4149,"children":4150},{"style":1079},[4151],{"type":998,"value":1285},{"type":993,"tag":1034,"props":4153,"children":4154},{"style":1070},[4155],{"type":998,"value":1260},{"type":993,"tag":1034,"props":4157,"children":4158},{"style":1061},[4159],{"type":998,"value":1097},{"type":993,"tag":1034,"props":4161,"children":4162},{"class":1036,"line":520},[4163],{"type":993,"tag":1034,"props":4164,"children":4165},{"style":1049},[4166],{"type":998,"value":4167},"            break\n",{"type":993,"tag":1034,"props":4169,"children":4170},{"class":1036,"line":530},[4171],{"type":993,"tag":1034,"props":4172,"children":4173},{"style":1061},[4174],{"type":998,"value":3117},{"type":993,"tag":1034,"props":4176,"children":4177},{"class":1036,"line":539},[4178,4182,4186],{"type":993,"tag":1034,"props":4179,"children":4180},{"style":1049},[4181],{"type":998,"value":2054},{"type":993,"tag":1034,"props":4183,"children":4184},{"style":1079},[4185],{"type":998,"value":1484},{"type":993,"tag":1034,"props":4187,"children":4188},{"style":1061},[4189],{"type":998,"value":1400},{"type":993,"tag":1034,"props":4191,"children":4192},{"class":1036,"line":548},[4193,4197,4201,4206],{"type":993,"tag":1034,"props":4194,"children":4195},{"style":1079},[4196],{"type":998,"value":1332},{"type":993,"tag":1034,"props":4198,"children":4199},{"style":1061},[4200],{"type":998,"value":1087},{"type":993,"tag":1034,"props":4202,"children":4203},{"style":1070},[4204],{"type":998,"value":4205},"\"❌ Please enter a valid number (e.g., 3.14).\"",{"type":993,"tag":1034,"props":4207,"children":4208},{"style":1061},[4209],{"type":998,"value":1097},{"type":993,"tag":1034,"props":4211,"children":4212},{"class":1036,"line":557},[4213],{"type":993,"tag":1034,"props":4214,"children":4215},{"emptyLinePlaceholder":13},[4216],{"type":998,"value":1589},{"type":993,"tag":1034,"props":4218,"children":4219},{"class":1036,"line":566},[4220],{"type":993,"tag":1034,"props":4221,"children":4222},{"style":1040},[4223],{"type":998,"value":4224},"# Demonstrate numeric input validation\n",{"type":993,"tag":1034,"props":4226,"children":4227},{"class":1036,"line":575},[4228,4233,4237,4242],{"type":993,"tag":1034,"props":4229,"children":4230},{"style":1079},[4231],{"type":998,"value":4232},"print",{"type":993,"tag":1034,"props":4234,"children":4235},{"style":1061},[4236],{"type":998,"value":1087},{"type":993,"tag":1034,"props":4238,"children":4239},{"style":1070},[4240],{"type":998,"value":4241},"\"=== Integer Input Demo ===\"",{"type":993,"tag":1034,"props":4243,"children":4244},{"style":1061},[4245],{"type":998,"value":1097},{"type":993,"tag":1034,"props":4247,"children":4248},{"class":1036,"line":584},[4249,4253,4257,4262,4267,4271,4275,4279,4284,4288,4292,4296,4301],{"type":993,"tag":1034,"props":4250,"children":4251},{"style":1061},[4252],{"type":998,"value":1452},{"type":993,"tag":1034,"props":4254,"children":4255},{"style":1049},[4256],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4258,"children":4259},{"style":1061},[4260],{"type":998,"value":4261}," get_integer_input(",{"type":993,"tag":1034,"props":4263,"children":4264},{"style":1070},[4265],{"type":998,"value":4266},"\"Enter your age (0-120): \"",{"type":993,"tag":1034,"props":4268,"children":4269},{"style":1061},[4270],{"type":998,"value":1141},{"type":993,"tag":1034,"props":4272,"children":4273},{"style":3093},[4274],{"type":998,"value":3378},{"type":993,"tag":1034,"props":4276,"children":4277},{"style":1049},[4278],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4280,"children":4281},{"style":1079},[4282],{"type":998,"value":4283},"0",{"type":993,"tag":1034,"props":4285,"children":4286},{"style":1061},[4287],{"type":998,"value":1141},{"type":993,"tag":1034,"props":4289,"children":4290},{"style":3093},[4291],{"type":998,"value":3475},{"type":993,"tag":1034,"props":4293,"children":4294},{"style":1049},[4295],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4297,"children":4298},{"style":1079},[4299],{"type":998,"value":4300},"120",{"type":993,"tag":1034,"props":4302,"children":4303},{"style":1061},[4304],{"type":998,"value":1097},{"type":993,"tag":1034,"props":4306,"children":4307},{"class":1036,"line":593},[4308,4313,4318,4322,4326,4330,4335,4339,4343,4347,4352],{"type":993,"tag":1034,"props":4309,"children":4310},{"style":1061},[4311],{"type":998,"value":4312},"get_float_input(",{"type":993,"tag":1034,"props":4314,"children":4315},{"style":1070},[4316],{"type":998,"value":4317},"\"Enter price ($0.00-$100.00): \"",{"type":993,"tag":1034,"props":4319,"children":4320},{"style":1061},[4321],{"type":998,"value":1141},{"type":993,"tag":1034,"props":4323,"children":4324},{"style":3093},[4325],{"type":998,"value":3378},{"type":993,"tag":1034,"props":4327,"children":4328},{"style":1049},[4329],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4331,"children":4332},{"style":1079},[4333],{"type":998,"value":4334},"0.0",{"type":993,"tag":1034,"props":4336,"children":4337},{"style":1061},[4338],{"type":998,"value":1141},{"type":993,"tag":1034,"props":4340,"children":4341},{"style":3093},[4342],{"type":998,"value":3475},{"type":993,"tag":1034,"props":4344,"children":4345},{"style":1049},[4346],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4348,"children":4349},{"style":1079},[4350],{"type":998,"value":4351},"100.0",{"type":993,"tag":1034,"props":4353,"children":4354},{"style":1061},[4355],{"type":998,"value":1097},{"type":993,"tag":1886,"props":4357,"children":4359},{"id":4358},"choice-selection-and-menus",[4360],{"type":998,"value":4361},"Choice Selection and Menus",{"type":993,"tag":1001,"props":4363,"children":4364},{},[4365],{"type":998,"value":4366},"Menu systems provide structured ways for users to select from predefined options.",{"type":993,"tag":1021,"props":4368,"children":4369},{},[4370],{"type":993,"tag":1025,"props":4371,"children":4373},{"className":1027,"code":4372,"language":6,"meta":8,"style":8},"def get_choice_input(prompt, choices, case_sensitive=False):\n    \"\"\"Get user choice from predefined options\"\"\"\n    if not case_sensitive:\n        choices = [choice.lower() for choice in choices]\n    \n    choice_str = \" / \".join(choices)\n    full_prompt = f\"{prompt} ({choice_str}): \"\n    \n    while True:\n        # Simulate user choices for demo\n        test_inputs = [\"yes\", \"maybe\", \"no\", \"y\", \"invalid\"]\n        \n        for test_input in test_inputs:\n            print(f\"{full_prompt}{test_input}\")\n            \n            user_choice = test_input.strip()\n            if not case_sensitive:\n                user_choice = user_choice.lower()\n            \n            if user_choice in choices:\n                print(f\"✅ Selected: {user_choice}\")\n                return user_choice\n            else:\n                print(f\"❌ Invalid choice. Please choose from: {choice_str}\")\n                continue\n\ndef create_menu(title, options):\n    \"\"\"Create interactive menu system\"\"\"\n    print(f\"\\n=== {title} ===\")\n    \n    for i, option in enumerate(options, 1):\n        print(f\"{i}. {option}\")\n    \n    while True:\n        # Simulate menu selections\n        test_selections = [\"1\", \"5\", \"abc\", \"2\", \"3\"]\n        \n        for selection in test_selections:\n            print(f\"Select option (1-{len(options)}): {selection}\")\n            \n            try:\n                choice = int(selection)\n                if 1 \u003C= choice \u003C= len(options):\n                    selected_option = options[choice - 1]\n                    print(f\"✅ You selected: {selected_option}\")\n                    return choice, selected_option\n                else:\n                    print(f\"❌ Please enter a number between 1 and {len(options)}\")\n            except ValueError:\n                print(\"❌ Please enter a valid number\")\n\n# Demonstrate choice input\nprint(\"=== Choice Input Demo ===\")\nchoice = get_choice_input(\"Do you want to continue?\", [\"yes\", \"no\", \"maybe\"])\n\n# Demonstrate menu system\nmenu_options = [\"Create new file\", \"Open existing file\", \"Save file\", \"Exit\"]\nselection, option = create_menu(\"File Menu\", menu_options)\n",[4374],{"type":993,"tag":1007,"props":4375,"children":4376},{"__ignoreMap":8},[4377,4407,4415,4432,4468,4475,4497,4553,4560,4575,4583,4644,4651,4673,4721,4728,4745,4760,4777,4784,4805,4846,4858,4869,4909,4916,4923,4940,4948,4998,5005,5040,5098,5105,5120,5128,5188,5195,5216,5276,5283,5294,5315,5349,5379,5420,5432,5444,5484,5499,5519,5526,5534,5554,5606,5613,5621,5673],{"type":993,"tag":1034,"props":4378,"children":4379},{"class":1036,"line":12},[4380,4384,4389,4394,4398,4403],{"type":993,"tag":1034,"props":4381,"children":4382},{"style":1049},[4383],{"type":998,"value":1052},{"type":993,"tag":1034,"props":4385,"children":4386},{"style":1055},[4387],{"type":998,"value":4388}," get_choice_input",{"type":993,"tag":1034,"props":4390,"children":4391},{"style":1061},[4392],{"type":998,"value":4393},"(prompt, choices, case_sensitive",{"type":993,"tag":1034,"props":4395,"children":4396},{"style":1049},[4397],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4399,"children":4400},{"style":1079},[4401],{"type":998,"value":4402},"False",{"type":993,"tag":1034,"props":4404,"children":4405},{"style":1061},[4406],{"type":998,"value":1937},{"type":993,"tag":1034,"props":4408,"children":4409},{"class":1036,"line":27},[4410],{"type":993,"tag":1034,"props":4411,"children":4412},{"style":1070},[4413],{"type":998,"value":4414},"    \"\"\"Get user choice from predefined options\"\"\"\n",{"type":993,"tag":1034,"props":4416,"children":4417},{"class":1036,"line":36},[4418,4423,4427],{"type":993,"tag":1034,"props":4419,"children":4420},{"style":1049},[4421],{"type":998,"value":4422},"    if",{"type":993,"tag":1034,"props":4424,"children":4425},{"style":1049},[4426],{"type":998,"value":2238},{"type":993,"tag":1034,"props":4428,"children":4429},{"style":1061},[4430],{"type":998,"value":4431}," case_sensitive:\n",{"type":993,"tag":1034,"props":4433,"children":4434},{"class":1036,"line":45},[4435,4440,4444,4449,4454,4459,4463],{"type":993,"tag":1034,"props":4436,"children":4437},{"style":1061},[4438],{"type":998,"value":4439},"        choices ",{"type":993,"tag":1034,"props":4441,"children":4442},{"style":1049},[4443],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4445,"children":4446},{"style":1061},[4447],{"type":998,"value":4448}," [choice.lower() ",{"type":993,"tag":1034,"props":4450,"children":4451},{"style":1049},[4452],{"type":998,"value":4453},"for",{"type":993,"tag":1034,"props":4455,"children":4456},{"style":1061},[4457],{"type":998,"value":4458}," choice ",{"type":993,"tag":1034,"props":4460,"children":4461},{"style":1049},[4462],{"type":998,"value":1228},{"type":993,"tag":1034,"props":4464,"children":4465},{"style":1061},[4466],{"type":998,"value":4467}," choices]\n",{"type":993,"tag":1034,"props":4469,"children":4470},{"class":1036,"line":54},[4471],{"type":993,"tag":1034,"props":4472,"children":4473},{"style":1061},[4474],{"type":998,"value":1105},{"type":993,"tag":1034,"props":4476,"children":4477},{"class":1036,"line":63},[4478,4483,4487,4492],{"type":993,"tag":1034,"props":4479,"children":4480},{"style":1061},[4481],{"type":998,"value":4482},"    choice_str ",{"type":993,"tag":1034,"props":4484,"children":4485},{"style":1049},[4486],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4488,"children":4489},{"style":1070},[4490],{"type":998,"value":4491}," \" / \"",{"type":993,"tag":1034,"props":4493,"children":4494},{"style":1061},[4495],{"type":998,"value":4496},".join(choices)\n",{"type":993,"tag":1034,"props":4498,"children":4499},{"class":1036,"line":72},[4500,4505,4509,4514,4518,4522,4526,4530,4535,4539,4544,4548],{"type":993,"tag":1034,"props":4501,"children":4502},{"style":1061},[4503],{"type":998,"value":4504},"    full_prompt ",{"type":993,"tag":1034,"props":4506,"children":4507},{"style":1049},[4508],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4510,"children":4511},{"style":1049},[4512],{"type":998,"value":4513}," f",{"type":993,"tag":1034,"props":4515,"children":4516},{"style":1070},[4517],{"type":998,"value":1260},{"type":993,"tag":1034,"props":4519,"children":4520},{"style":1079},[4521],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4523,"children":4524},{"style":1061},[4525],{"type":998,"value":1270},{"type":993,"tag":1034,"props":4527,"children":4528},{"style":1079},[4529],{"type":998,"value":1285},{"type":993,"tag":1034,"props":4531,"children":4532},{"style":1070},[4533],{"type":998,"value":4534}," (",{"type":993,"tag":1034,"props":4536,"children":4537},{"style":1079},[4538],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4540,"children":4541},{"style":1061},[4542],{"type":998,"value":4543},"choice_str",{"type":993,"tag":1034,"props":4545,"children":4546},{"style":1079},[4547],{"type":998,"value":1285},{"type":993,"tag":1034,"props":4549,"children":4550},{"style":1070},[4551],{"type":998,"value":4552},"): \"\n",{"type":993,"tag":1034,"props":4554,"children":4555},{"class":1036,"line":81},[4556],{"type":993,"tag":1034,"props":4557,"children":4558},{"style":1061},[4559],{"type":998,"value":1105},{"type":993,"tag":1034,"props":4561,"children":4562},{"class":1036,"line":91},[4563,4567,4571],{"type":993,"tag":1034,"props":4564,"children":4565},{"style":1049},[4566],{"type":998,"value":1953},{"type":993,"tag":1034,"props":4568,"children":4569},{"style":1079},[4570],{"type":998,"value":1958},{"type":993,"tag":1034,"props":4572,"children":4573},{"style":1061},[4574],{"type":998,"value":1400},{"type":993,"tag":1034,"props":4576,"children":4577},{"class":1036,"line":100},[4578],{"type":993,"tag":1034,"props":4579,"children":4580},{"style":1040},[4581],{"type":998,"value":4582},"        # Simulate user choices for demo\n",{"type":993,"tag":1034,"props":4584,"children":4585},{"class":1036,"line":109},[4586,4591,4595,4599,4604,4608,4613,4617,4622,4626,4631,4635,4640],{"type":993,"tag":1034,"props":4587,"children":4588},{"style":1061},[4589],{"type":998,"value":4590},"        test_inputs ",{"type":993,"tag":1034,"props":4592,"children":4593},{"style":1049},[4594],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4596,"children":4597},{"style":1061},[4598],{"type":998,"value":1131},{"type":993,"tag":1034,"props":4600,"children":4601},{"style":1070},[4602],{"type":998,"value":4603},"\"yes\"",{"type":993,"tag":1034,"props":4605,"children":4606},{"style":1061},[4607],{"type":998,"value":1141},{"type":993,"tag":1034,"props":4609,"children":4610},{"style":1070},[4611],{"type":998,"value":4612},"\"maybe\"",{"type":993,"tag":1034,"props":4614,"children":4615},{"style":1061},[4616],{"type":998,"value":1141},{"type":993,"tag":1034,"props":4618,"children":4619},{"style":1070},[4620],{"type":998,"value":4621},"\"no\"",{"type":993,"tag":1034,"props":4623,"children":4624},{"style":1061},[4625],{"type":998,"value":1141},{"type":993,"tag":1034,"props":4627,"children":4628},{"style":1070},[4629],{"type":998,"value":4630},"\"y\"",{"type":993,"tag":1034,"props":4632,"children":4633},{"style":1061},[4634],{"type":998,"value":1141},{"type":993,"tag":1034,"props":4636,"children":4637},{"style":1070},[4638],{"type":998,"value":4639},"\"invalid\"",{"type":993,"tag":1034,"props":4641,"children":4642},{"style":1061},[4643],{"type":998,"value":1160},{"type":993,"tag":1034,"props":4645,"children":4646},{"class":1036,"line":118},[4647],{"type":993,"tag":1034,"props":4648,"children":4649},{"style":1061},[4650],{"type":998,"value":1301},{"type":993,"tag":1034,"props":4652,"children":4653},{"class":1036,"line":127},[4654,4659,4664,4668],{"type":993,"tag":1034,"props":4655,"children":4656},{"style":1049},[4657],{"type":998,"value":4658},"        for",{"type":993,"tag":1034,"props":4660,"children":4661},{"style":1061},[4662],{"type":998,"value":4663}," test_input ",{"type":993,"tag":1034,"props":4665,"children":4666},{"style":1049},[4667],{"type":998,"value":1228},{"type":993,"tag":1034,"props":4669,"children":4670},{"style":1061},[4671],{"type":998,"value":4672}," test_inputs:\n",{"type":993,"tag":1034,"props":4674,"children":4675},{"class":1036,"line":136},[4676,4680,4684,4688,4692,4696,4701,4705,4709,4713,4717],{"type":993,"tag":1034,"props":4677,"children":4678},{"style":1079},[4679],{"type":998,"value":1332},{"type":993,"tag":1034,"props":4681,"children":4682},{"style":1061},[4683],{"type":998,"value":1087},{"type":993,"tag":1034,"props":4685,"children":4686},{"style":1049},[4687],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4689,"children":4690},{"style":1070},[4691],{"type":998,"value":1260},{"type":993,"tag":1034,"props":4693,"children":4694},{"style":1079},[4695],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4697,"children":4698},{"style":1061},[4699],{"type":998,"value":4700},"full_prompt",{"type":993,"tag":1034,"props":4702,"children":4703},{"style":1079},[4704],{"type":998,"value":1275},{"type":993,"tag":1034,"props":4706,"children":4707},{"style":1061},[4708],{"type":998,"value":2894},{"type":993,"tag":1034,"props":4710,"children":4711},{"style":1079},[4712],{"type":998,"value":1285},{"type":993,"tag":1034,"props":4714,"children":4715},{"style":1070},[4716],{"type":998,"value":1260},{"type":993,"tag":1034,"props":4718,"children":4719},{"style":1061},[4720],{"type":998,"value":1097},{"type":993,"tag":1034,"props":4722,"children":4723},{"class":1036,"line":146},[4724],{"type":993,"tag":1034,"props":4725,"children":4726},{"style":1061},[4727],{"type":998,"value":3117},{"type":993,"tag":1034,"props":4729,"children":4730},{"class":1036,"line":155},[4731,4736,4740],{"type":993,"tag":1034,"props":4732,"children":4733},{"style":1061},[4734],{"type":998,"value":4735},"            user_choice ",{"type":993,"tag":1034,"props":4737,"children":4738},{"style":1049},[4739],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4741,"children":4742},{"style":1061},[4743],{"type":998,"value":4744}," test_input.strip()\n",{"type":993,"tag":1034,"props":4746,"children":4747},{"class":1036,"line":164},[4748,4752,4756],{"type":993,"tag":1034,"props":4749,"children":4750},{"style":1049},[4751],{"type":998,"value":2004},{"type":993,"tag":1034,"props":4753,"children":4754},{"style":1049},[4755],{"type":998,"value":2238},{"type":993,"tag":1034,"props":4757,"children":4758},{"style":1061},[4759],{"type":998,"value":4431},{"type":993,"tag":1034,"props":4761,"children":4762},{"class":1036,"line":173},[4763,4768,4772],{"type":993,"tag":1034,"props":4764,"children":4765},{"style":1061},[4766],{"type":998,"value":4767},"                user_choice ",{"type":993,"tag":1034,"props":4769,"children":4770},{"style":1049},[4771],{"type":998,"value":1126},{"type":993,"tag":1034,"props":4773,"children":4774},{"style":1061},[4775],{"type":998,"value":4776}," user_choice.lower()\n",{"type":993,"tag":1034,"props":4778,"children":4779},{"class":1036,"line":182},[4780],{"type":993,"tag":1034,"props":4781,"children":4782},{"style":1061},[4783],{"type":998,"value":3117},{"type":993,"tag":1034,"props":4785,"children":4786},{"class":1036,"line":191},[4787,4791,4796,4800],{"type":993,"tag":1034,"props":4788,"children":4789},{"style":1049},[4790],{"type":998,"value":2004},{"type":993,"tag":1034,"props":4792,"children":4793},{"style":1061},[4794],{"type":998,"value":4795}," user_choice ",{"type":993,"tag":1034,"props":4797,"children":4798},{"style":1049},[4799],{"type":998,"value":1228},{"type":993,"tag":1034,"props":4801,"children":4802},{"style":1061},[4803],{"type":998,"value":4804}," choices:\n",{"type":993,"tag":1034,"props":4806,"children":4807},{"class":1036,"line":201},[4808,4812,4816,4820,4825,4829,4834,4838,4842],{"type":993,"tag":1034,"props":4809,"children":4810},{"style":1079},[4811],{"type":998,"value":1430},{"type":993,"tag":1034,"props":4813,"children":4814},{"style":1061},[4815],{"type":998,"value":1087},{"type":993,"tag":1034,"props":4817,"children":4818},{"style":1049},[4819],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4821,"children":4822},{"style":1070},[4823],{"type":998,"value":4824},"\"✅ Selected: ",{"type":993,"tag":1034,"props":4826,"children":4827},{"style":1079},[4828],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4830,"children":4831},{"style":1061},[4832],{"type":998,"value":4833},"user_choice",{"type":993,"tag":1034,"props":4835,"children":4836},{"style":1079},[4837],{"type":998,"value":1285},{"type":993,"tag":1034,"props":4839,"children":4840},{"style":1070},[4841],{"type":998,"value":1260},{"type":993,"tag":1034,"props":4843,"children":4844},{"style":1061},[4845],{"type":998,"value":1097},{"type":993,"tag":1034,"props":4847,"children":4848},{"class":1036,"line":210},[4849,4853],{"type":993,"tag":1034,"props":4850,"children":4851},{"style":1049},[4852],{"type":998,"value":2017},{"type":993,"tag":1034,"props":4854,"children":4855},{"style":1061},[4856],{"type":998,"value":4857}," user_choice\n",{"type":993,"tag":1034,"props":4859,"children":4860},{"class":1036,"line":219},[4861,4865],{"type":993,"tag":1034,"props":4862,"children":4863},{"style":1049},[4864],{"type":998,"value":2030},{"type":993,"tag":1034,"props":4866,"children":4867},{"style":1061},[4868],{"type":998,"value":1400},{"type":993,"tag":1034,"props":4870,"children":4871},{"class":1036,"line":228},[4872,4876,4880,4884,4889,4893,4897,4901,4905],{"type":993,"tag":1034,"props":4873,"children":4874},{"style":1079},[4875],{"type":998,"value":1430},{"type":993,"tag":1034,"props":4877,"children":4878},{"style":1061},[4879],{"type":998,"value":1087},{"type":993,"tag":1034,"props":4881,"children":4882},{"style":1049},[4883],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4885,"children":4886},{"style":1070},[4887],{"type":998,"value":4888},"\"❌ Invalid choice. Please choose from: ",{"type":993,"tag":1034,"props":4890,"children":4891},{"style":1079},[4892],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4894,"children":4895},{"style":1061},[4896],{"type":998,"value":4543},{"type":993,"tag":1034,"props":4898,"children":4899},{"style":1079},[4900],{"type":998,"value":1285},{"type":993,"tag":1034,"props":4902,"children":4903},{"style":1070},[4904],{"type":998,"value":1260},{"type":993,"tag":1034,"props":4906,"children":4907},{"style":1061},[4908],{"type":998,"value":1097},{"type":993,"tag":1034,"props":4910,"children":4911},{"class":1036,"line":238},[4912],{"type":993,"tag":1034,"props":4913,"children":4914},{"style":1049},[4915],{"type":998,"value":4020},{"type":993,"tag":1034,"props":4917,"children":4918},{"class":1036,"line":247},[4919],{"type":993,"tag":1034,"props":4920,"children":4921},{"emptyLinePlaceholder":13},[4922],{"type":998,"value":1589},{"type":993,"tag":1034,"props":4924,"children":4925},{"class":1036,"line":256},[4926,4930,4935],{"type":993,"tag":1034,"props":4927,"children":4928},{"style":1049},[4929],{"type":998,"value":1052},{"type":993,"tag":1034,"props":4931,"children":4932},{"style":1055},[4933],{"type":998,"value":4934}," create_menu",{"type":993,"tag":1034,"props":4936,"children":4937},{"style":1061},[4938],{"type":998,"value":4939},"(title, options):\n",{"type":993,"tag":1034,"props":4941,"children":4942},{"class":1036,"line":265},[4943],{"type":993,"tag":1034,"props":4944,"children":4945},{"style":1070},[4946],{"type":998,"value":4947},"    \"\"\"Create interactive menu system\"\"\"\n",{"type":993,"tag":1034,"props":4949,"children":4950},{"class":1036,"line":274},[4951,4955,4959,4963,4967,4971,4976,4980,4985,4989,4994],{"type":993,"tag":1034,"props":4952,"children":4953},{"style":1079},[4954],{"type":998,"value":1082},{"type":993,"tag":1034,"props":4956,"children":4957},{"style":1061},[4958],{"type":998,"value":1087},{"type":993,"tag":1034,"props":4960,"children":4961},{"style":1049},[4962],{"type":998,"value":1255},{"type":993,"tag":1034,"props":4964,"children":4965},{"style":1070},[4966],{"type":998,"value":1260},{"type":993,"tag":1034,"props":4968,"children":4969},{"style":1079},[4970],{"type":998,"value":2083},{"type":993,"tag":1034,"props":4972,"children":4973},{"style":1070},[4974],{"type":998,"value":4975},"=== ",{"type":993,"tag":1034,"props":4977,"children":4978},{"style":1079},[4979],{"type":998,"value":1265},{"type":993,"tag":1034,"props":4981,"children":4982},{"style":1061},[4983],{"type":998,"value":4984},"title",{"type":993,"tag":1034,"props":4986,"children":4987},{"style":1079},[4988],{"type":998,"value":1285},{"type":993,"tag":1034,"props":4990,"children":4991},{"style":1070},[4992],{"type":998,"value":4993}," ===\"",{"type":993,"tag":1034,"props":4995,"children":4996},{"style":1061},[4997],{"type":998,"value":1097},{"type":993,"tag":1034,"props":4999,"children":5000},{"class":1036,"line":284},[5001],{"type":993,"tag":1034,"props":5002,"children":5003},{"style":1061},[5004],{"type":998,"value":1105},{"type":993,"tag":1034,"props":5006,"children":5007},{"class":1036,"line":293},[5008,5012,5017,5021,5026,5031,5036],{"type":993,"tag":1034,"props":5009,"children":5010},{"style":1049},[5011],{"type":998,"value":1218},{"type":993,"tag":1034,"props":5013,"children":5014},{"style":1061},[5015],{"type":998,"value":5016}," i, option ",{"type":993,"tag":1034,"props":5018,"children":5019},{"style":1049},[5020],{"type":998,"value":1228},{"type":993,"tag":1034,"props":5022,"children":5023},{"style":1079},[5024],{"type":998,"value":5025}," enumerate",{"type":993,"tag":1034,"props":5027,"children":5028},{"style":1061},[5029],{"type":998,"value":5030},"(options, ",{"type":993,"tag":1034,"props":5032,"children":5033},{"style":1079},[5034],{"type":998,"value":5035},"1",{"type":993,"tag":1034,"props":5037,"children":5038},{"style":1061},[5039],{"type":998,"value":1937},{"type":993,"tag":1034,"props":5041,"children":5042},{"class":1036,"line":302},[5043,5047,5051,5055,5059,5063,5068,5072,5077,5081,5086,5090,5094],{"type":993,"tag":1034,"props":5044,"children":5045},{"style":1079},[5046],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5048,"children":5049},{"style":1061},[5050],{"type":998,"value":1087},{"type":993,"tag":1034,"props":5052,"children":5053},{"style":1049},[5054],{"type":998,"value":1255},{"type":993,"tag":1034,"props":5056,"children":5057},{"style":1070},[5058],{"type":998,"value":1260},{"type":993,"tag":1034,"props":5060,"children":5061},{"style":1079},[5062],{"type":998,"value":1265},{"type":993,"tag":1034,"props":5064,"children":5065},{"style":1061},[5066],{"type":998,"value":5067},"i",{"type":993,"tag":1034,"props":5069,"children":5070},{"style":1079},[5071],{"type":998,"value":1285},{"type":993,"tag":1034,"props":5073,"children":5074},{"style":1070},[5075],{"type":998,"value":5076},". ",{"type":993,"tag":1034,"props":5078,"children":5079},{"style":1079},[5080],{"type":998,"value":1265},{"type":993,"tag":1034,"props":5082,"children":5083},{"style":1061},[5084],{"type":998,"value":5085},"option",{"type":993,"tag":1034,"props":5087,"children":5088},{"style":1079},[5089],{"type":998,"value":1285},{"type":993,"tag":1034,"props":5091,"children":5092},{"style":1070},[5093],{"type":998,"value":1260},{"type":993,"tag":1034,"props":5095,"children":5096},{"style":1061},[5097],{"type":998,"value":1097},{"type":993,"tag":1034,"props":5099,"children":5100},{"class":1036,"line":311},[5101],{"type":993,"tag":1034,"props":5102,"children":5103},{"style":1061},[5104],{"type":998,"value":1105},{"type":993,"tag":1034,"props":5106,"children":5107},{"class":1036,"line":320},[5108,5112,5116],{"type":993,"tag":1034,"props":5109,"children":5110},{"style":1049},[5111],{"type":998,"value":1953},{"type":993,"tag":1034,"props":5113,"children":5114},{"style":1079},[5115],{"type":998,"value":1958},{"type":993,"tag":1034,"props":5117,"children":5118},{"style":1061},[5119],{"type":998,"value":1400},{"type":993,"tag":1034,"props":5121,"children":5122},{"class":1036,"line":329},[5123],{"type":993,"tag":1034,"props":5124,"children":5125},{"style":1040},[5126],{"type":998,"value":5127},"        # Simulate menu selections\n",{"type":993,"tag":1034,"props":5129,"children":5130},{"class":1036,"line":338},[5131,5136,5140,5144,5149,5153,5158,5162,5166,5170,5175,5179,5184],{"type":993,"tag":1034,"props":5132,"children":5133},{"style":1061},[5134],{"type":998,"value":5135},"        test_selections ",{"type":993,"tag":1034,"props":5137,"children":5138},{"style":1049},[5139],{"type":998,"value":1126},{"type":993,"tag":1034,"props":5141,"children":5142},{"style":1061},[5143],{"type":998,"value":1131},{"type":993,"tag":1034,"props":5145,"children":5146},{"style":1070},[5147],{"type":998,"value":5148},"\"1\"",{"type":993,"tag":1034,"props":5150,"children":5151},{"style":1061},[5152],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5154,"children":5155},{"style":1070},[5156],{"type":998,"value":5157},"\"5\"",{"type":993,"tag":1034,"props":5159,"children":5160},{"style":1061},[5161],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5163,"children":5164},{"style":1070},[5165],{"type":998,"value":2745},{"type":993,"tag":1034,"props":5167,"children":5168},{"style":1061},[5169],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5171,"children":5172},{"style":1070},[5173],{"type":998,"value":5174},"\"2\"",{"type":993,"tag":1034,"props":5176,"children":5177},{"style":1061},[5178],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5180,"children":5181},{"style":1070},[5182],{"type":998,"value":5183},"\"3\"",{"type":993,"tag":1034,"props":5185,"children":5186},{"style":1061},[5187],{"type":998,"value":1160},{"type":993,"tag":1034,"props":5189,"children":5190},{"class":1036,"line":347},[5191],{"type":993,"tag":1034,"props":5192,"children":5193},{"style":1061},[5194],{"type":998,"value":1301},{"type":993,"tag":1034,"props":5196,"children":5197},{"class":1036,"line":356},[5198,5202,5207,5211],{"type":993,"tag":1034,"props":5199,"children":5200},{"style":1049},[5201],{"type":998,"value":4658},{"type":993,"tag":1034,"props":5203,"children":5204},{"style":1061},[5205],{"type":998,"value":5206}," selection ",{"type":993,"tag":1034,"props":5208,"children":5209},{"style":1049},[5210],{"type":998,"value":1228},{"type":993,"tag":1034,"props":5212,"children":5213},{"style":1061},[5214],{"type":998,"value":5215}," test_selections:\n",{"type":993,"tag":1034,"props":5217,"children":5218},{"class":1036,"line":365},[5219,5223,5227,5231,5236,5241,5246,5250,5255,5259,5264,5268,5272],{"type":993,"tag":1034,"props":5220,"children":5221},{"style":1079},[5222],{"type":998,"value":1332},{"type":993,"tag":1034,"props":5224,"children":5225},{"style":1061},[5226],{"type":998,"value":1087},{"type":993,"tag":1034,"props":5228,"children":5229},{"style":1049},[5230],{"type":998,"value":1255},{"type":993,"tag":1034,"props":5232,"children":5233},{"style":1070},[5234],{"type":998,"value":5235},"\"Select option (1-",{"type":993,"tag":1034,"props":5237,"children":5238},{"style":1079},[5239],{"type":998,"value":5240},"{len",{"type":993,"tag":1034,"props":5242,"children":5243},{"style":1061},[5244],{"type":998,"value":5245},"(options)",{"type":993,"tag":1034,"props":5247,"children":5248},{"style":1079},[5249],{"type":998,"value":1285},{"type":993,"tag":1034,"props":5251,"children":5252},{"style":1070},[5253],{"type":998,"value":5254},"): ",{"type":993,"tag":1034,"props":5256,"children":5257},{"style":1079},[5258],{"type":998,"value":1265},{"type":993,"tag":1034,"props":5260,"children":5261},{"style":1061},[5262],{"type":998,"value":5263},"selection",{"type":993,"tag":1034,"props":5265,"children":5266},{"style":1079},[5267],{"type":998,"value":1285},{"type":993,"tag":1034,"props":5269,"children":5270},{"style":1070},[5271],{"type":998,"value":1260},{"type":993,"tag":1034,"props":5273,"children":5274},{"style":1061},[5275],{"type":998,"value":1097},{"type":993,"tag":1034,"props":5277,"children":5278},{"class":1036,"line":374},[5279],{"type":993,"tag":1034,"props":5280,"children":5281},{"style":1061},[5282],{"type":998,"value":3117},{"type":993,"tag":1034,"props":5284,"children":5285},{"class":1036,"line":384},[5286,5290],{"type":993,"tag":1034,"props":5287,"children":5288},{"style":1049},[5289],{"type":998,"value":1395},{"type":993,"tag":1034,"props":5291,"children":5292},{"style":1061},[5293],{"type":998,"value":1400},{"type":993,"tag":1034,"props":5295,"children":5296},{"class":1036,"line":393},[5297,5302,5306,5310],{"type":993,"tag":1034,"props":5298,"children":5299},{"style":1061},[5300],{"type":998,"value":5301},"                choice ",{"type":993,"tag":1034,"props":5303,"children":5304},{"style":1049},[5305],{"type":998,"value":1126},{"type":993,"tag":1034,"props":5307,"children":5308},{"style":1079},[5309],{"type":998,"value":1417},{"type":993,"tag":1034,"props":5311,"children":5312},{"style":1061},[5313],{"type":998,"value":5314},"(selection)\n",{"type":993,"tag":1034,"props":5316,"children":5317},{"class":1036,"line":402},[5318,5323,5328,5332,5336,5340,5344],{"type":993,"tag":1034,"props":5319,"children":5320},{"style":1049},[5321],{"type":998,"value":5322},"                if",{"type":993,"tag":1034,"props":5324,"children":5325},{"style":1079},[5326],{"type":998,"value":5327}," 1",{"type":993,"tag":1034,"props":5329,"children":5330},{"style":1049},[5331],{"type":998,"value":2420},{"type":993,"tag":1034,"props":5333,"children":5334},{"style":1061},[5335],{"type":998,"value":4458},{"type":993,"tag":1034,"props":5337,"children":5338},{"style":1049},[5339],{"type":998,"value":2430},{"type":993,"tag":1034,"props":5341,"children":5342},{"style":1079},[5343],{"type":998,"value":2213},{"type":993,"tag":1034,"props":5345,"children":5346},{"style":1061},[5347],{"type":998,"value":5348},"(options):\n",{"type":993,"tag":1034,"props":5350,"children":5351},{"class":1036,"line":411},[5352,5357,5361,5366,5371,5375],{"type":993,"tag":1034,"props":5353,"children":5354},{"style":1061},[5355],{"type":998,"value":5356},"                    selected_option ",{"type":993,"tag":1034,"props":5358,"children":5359},{"style":1049},[5360],{"type":998,"value":1126},{"type":993,"tag":1034,"props":5362,"children":5363},{"style":1061},[5364],{"type":998,"value":5365}," options[choice ",{"type":993,"tag":1034,"props":5367,"children":5368},{"style":1049},[5369],{"type":998,"value":5370},"-",{"type":993,"tag":1034,"props":5372,"children":5373},{"style":1079},[5374],{"type":998,"value":5327},{"type":993,"tag":1034,"props":5376,"children":5377},{"style":1061},[5378],{"type":998,"value":1160},{"type":993,"tag":1034,"props":5380,"children":5381},{"class":1036,"line":420},[5382,5386,5390,5394,5399,5403,5408,5412,5416],{"type":993,"tag":1034,"props":5383,"children":5384},{"style":1079},[5385],{"type":998,"value":3509},{"type":993,"tag":1034,"props":5387,"children":5388},{"style":1061},[5389],{"type":998,"value":1087},{"type":993,"tag":1034,"props":5391,"children":5392},{"style":1049},[5393],{"type":998,"value":1255},{"type":993,"tag":1034,"props":5395,"children":5396},{"style":1070},[5397],{"type":998,"value":5398},"\"✅ You selected: ",{"type":993,"tag":1034,"props":5400,"children":5401},{"style":1079},[5402],{"type":998,"value":1265},{"type":993,"tag":1034,"props":5404,"children":5405},{"style":1061},[5406],{"type":998,"value":5407},"selected_option",{"type":993,"tag":1034,"props":5409,"children":5410},{"style":1079},[5411],{"type":998,"value":1285},{"type":993,"tag":1034,"props":5413,"children":5414},{"style":1070},[5415],{"type":998,"value":1260},{"type":993,"tag":1034,"props":5417,"children":5418},{"style":1061},[5419],{"type":998,"value":1097},{"type":993,"tag":1034,"props":5421,"children":5422},{"class":1036,"line":429},[5423,5427],{"type":993,"tag":1034,"props":5424,"children":5425},{"style":1049},[5426],{"type":998,"value":3551},{"type":993,"tag":1034,"props":5428,"children":5429},{"style":1061},[5430],{"type":998,"value":5431}," choice, selected_option\n",{"type":993,"tag":1034,"props":5433,"children":5434},{"class":1036,"line":438},[5435,5440],{"type":993,"tag":1034,"props":5436,"children":5437},{"style":1049},[5438],{"type":998,"value":5439},"                else",{"type":993,"tag":1034,"props":5441,"children":5442},{"style":1061},[5443],{"type":998,"value":1400},{"type":993,"tag":1034,"props":5445,"children":5446},{"class":1036,"line":447},[5447,5451,5455,5459,5464,5468,5472,5476,5480],{"type":993,"tag":1034,"props":5448,"children":5449},{"style":1079},[5450],{"type":998,"value":3509},{"type":993,"tag":1034,"props":5452,"children":5453},{"style":1061},[5454],{"type":998,"value":1087},{"type":993,"tag":1034,"props":5456,"children":5457},{"style":1049},[5458],{"type":998,"value":1255},{"type":993,"tag":1034,"props":5460,"children":5461},{"style":1070},[5462],{"type":998,"value":5463},"\"❌ Please enter a number between 1 and ",{"type":993,"tag":1034,"props":5465,"children":5466},{"style":1079},[5467],{"type":998,"value":5240},{"type":993,"tag":1034,"props":5469,"children":5470},{"style":1061},[5471],{"type":998,"value":5245},{"type":993,"tag":1034,"props":5473,"children":5474},{"style":1079},[5475],{"type":998,"value":1285},{"type":993,"tag":1034,"props":5477,"children":5478},{"style":1070},[5479],{"type":998,"value":1260},{"type":993,"tag":1034,"props":5481,"children":5482},{"style":1061},[5483],{"type":998,"value":1097},{"type":993,"tag":1034,"props":5485,"children":5486},{"class":1036,"line":457},[5487,5491,5495],{"type":993,"tag":1034,"props":5488,"children":5489},{"style":1049},[5490],{"type":998,"value":1479},{"type":993,"tag":1034,"props":5492,"children":5493},{"style":1079},[5494],{"type":998,"value":1484},{"type":993,"tag":1034,"props":5496,"children":5497},{"style":1061},[5498],{"type":998,"value":1400},{"type":993,"tag":1034,"props":5500,"children":5501},{"class":1036,"line":466},[5502,5506,5510,5515],{"type":993,"tag":1034,"props":5503,"children":5504},{"style":1079},[5505],{"type":998,"value":1430},{"type":993,"tag":1034,"props":5507,"children":5508},{"style":1061},[5509],{"type":998,"value":1087},{"type":993,"tag":1034,"props":5511,"children":5512},{"style":1070},[5513],{"type":998,"value":5514},"\"❌ Please enter a valid number\"",{"type":993,"tag":1034,"props":5516,"children":5517},{"style":1061},[5518],{"type":998,"value":1097},{"type":993,"tag":1034,"props":5520,"children":5521},{"class":1036,"line":475},[5522],{"type":993,"tag":1034,"props":5523,"children":5524},{"emptyLinePlaceholder":13},[5525],{"type":998,"value":1589},{"type":993,"tag":1034,"props":5527,"children":5528},{"class":1036,"line":484},[5529],{"type":993,"tag":1034,"props":5530,"children":5531},{"style":1040},[5532],{"type":998,"value":5533},"# Demonstrate choice input\n",{"type":993,"tag":1034,"props":5535,"children":5536},{"class":1036,"line":493},[5537,5541,5545,5550],{"type":993,"tag":1034,"props":5538,"children":5539},{"style":1079},[5540],{"type":998,"value":4232},{"type":993,"tag":1034,"props":5542,"children":5543},{"style":1061},[5544],{"type":998,"value":1087},{"type":993,"tag":1034,"props":5546,"children":5547},{"style":1070},[5548],{"type":998,"value":5549},"\"=== Choice Input Demo ===\"",{"type":993,"tag":1034,"props":5551,"children":5552},{"style":1061},[5553],{"type":998,"value":1097},{"type":993,"tag":1034,"props":5555,"children":5556},{"class":1036,"line":502},[5557,5562,5566,5571,5576,5581,5585,5589,5593,5597,5601],{"type":993,"tag":1034,"props":5558,"children":5559},{"style":1061},[5560],{"type":998,"value":5561},"choice ",{"type":993,"tag":1034,"props":5563,"children":5564},{"style":1049},[5565],{"type":998,"value":1126},{"type":993,"tag":1034,"props":5567,"children":5568},{"style":1061},[5569],{"type":998,"value":5570}," get_choice_input(",{"type":993,"tag":1034,"props":5572,"children":5573},{"style":1070},[5574],{"type":998,"value":5575},"\"Do you want to continue?\"",{"type":993,"tag":1034,"props":5577,"children":5578},{"style":1061},[5579],{"type":998,"value":5580},", [",{"type":993,"tag":1034,"props":5582,"children":5583},{"style":1070},[5584],{"type":998,"value":4603},{"type":993,"tag":1034,"props":5586,"children":5587},{"style":1061},[5588],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5590,"children":5591},{"style":1070},[5592],{"type":998,"value":4621},{"type":993,"tag":1034,"props":5594,"children":5595},{"style":1061},[5596],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5598,"children":5599},{"style":1070},[5600],{"type":998,"value":4612},{"type":993,"tag":1034,"props":5602,"children":5603},{"style":1061},[5604],{"type":998,"value":5605},"])\n",{"type":993,"tag":1034,"props":5607,"children":5608},{"class":1036,"line":511},[5609],{"type":993,"tag":1034,"props":5610,"children":5611},{"emptyLinePlaceholder":13},[5612],{"type":998,"value":1589},{"type":993,"tag":1034,"props":5614,"children":5615},{"class":1036,"line":520},[5616],{"type":993,"tag":1034,"props":5617,"children":5618},{"style":1040},[5619],{"type":998,"value":5620},"# Demonstrate menu system\n",{"type":993,"tag":1034,"props":5622,"children":5623},{"class":1036,"line":530},[5624,5629,5633,5637,5642,5646,5651,5655,5660,5664,5669],{"type":993,"tag":1034,"props":5625,"children":5626},{"style":1061},[5627],{"type":998,"value":5628},"menu_options ",{"type":993,"tag":1034,"props":5630,"children":5631},{"style":1049},[5632],{"type":998,"value":1126},{"type":993,"tag":1034,"props":5634,"children":5635},{"style":1061},[5636],{"type":998,"value":1131},{"type":993,"tag":1034,"props":5638,"children":5639},{"style":1070},[5640],{"type":998,"value":5641},"\"Create new file\"",{"type":993,"tag":1034,"props":5643,"children":5644},{"style":1061},[5645],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5647,"children":5648},{"style":1070},[5649],{"type":998,"value":5650},"\"Open existing file\"",{"type":993,"tag":1034,"props":5652,"children":5653},{"style":1061},[5654],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5656,"children":5657},{"style":1070},[5658],{"type":998,"value":5659},"\"Save file\"",{"type":993,"tag":1034,"props":5661,"children":5662},{"style":1061},[5663],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5665,"children":5666},{"style":1070},[5667],{"type":998,"value":5668},"\"Exit\"",{"type":993,"tag":1034,"props":5670,"children":5671},{"style":1061},[5672],{"type":998,"value":1160},{"type":993,"tag":1034,"props":5674,"children":5675},{"class":1036,"line":539},[5676,5681,5685,5690,5695],{"type":993,"tag":1034,"props":5677,"children":5678},{"style":1061},[5679],{"type":998,"value":5680},"selection, option ",{"type":993,"tag":1034,"props":5682,"children":5683},{"style":1049},[5684],{"type":998,"value":1126},{"type":993,"tag":1034,"props":5686,"children":5687},{"style":1061},[5688],{"type":998,"value":5689}," create_menu(",{"type":993,"tag":1034,"props":5691,"children":5692},{"style":1070},[5693],{"type":998,"value":5694},"\"File Menu\"",{"type":993,"tag":1034,"props":5696,"children":5697},{"style":1061},[5698],{"type":998,"value":5699},", menu_options)\n",{"type":993,"tag":1599,"props":5701,"children":5703},{"id":5702},"interactive-applications",[5704],{"type":998,"value":5705},"🚀 Interactive Applications",{"type":993,"tag":1886,"props":5707,"children":5709},{"id":5708},"building-conversational-interfaces",[5710],{"type":998,"value":5711},"Building Conversational Interfaces",{"type":993,"tag":1001,"props":5713,"children":5714},{},[5715],{"type":998,"value":5716},"Create engaging user experiences with natural conversation flows and helpful feedback.",{"type":993,"tag":1021,"props":5718,"children":5719},{},[5720],{"type":993,"tag":1025,"props":5721,"children":5723},{"className":1027,"code":5722,"language":6,"meta":8,"style":8},"class InteractiveApp:\n    \"\"\"Interactive application with conversation flow\"\"\"\n    \n    def __init__(self):\n        self.user_data = {}\n        self.conversation_log = []\n    \n    def greet_user(self):\n        \"\"\"Welcome user and start conversation\"\"\"\n        print(\"🎉 Welcome to the Interactive Python App!\")\n        print(\"I'll help you create a personalized profile.\")\n        self.log_interaction(\"app_start\", \"User started application\")\n    \n    def collect_user_info(self):\n        \"\"\"Collect user information with validation\"\"\"\n        # Simulate conversation flow\n        questions = [\n            (\"name\", \"What's your name?\", str),\n            (\"age\", \"What's your age?\", int),\n            (\"email\", \"What's your email address?\", str),\n            (\"interests\", \"What are your interests? (comma-separated)\", list)\n        ]\n        \n        # Simulate user responses\n        sample_responses = {\n            \"name\": \"Alice Johnson\",\n            \"age\": \"28\",\n            \"email\": \"alice@example.com\", \n            \"interests\": \"programming, reading, hiking\"\n        }\n        \n        for field, question, data_type in questions:\n            print(f\"\\n{question}\")\n            response = sample_responses.get(field, \"\")\n            print(f\"> {response}\")\n            \n            try:\n                if data_type == int:\n                    value = int(response)\n                    if not 0 \u003C= value \u003C= 150:\n                        raise ValueError(\"Age must be between 0 and 150\")\n                elif data_type == list:\n                    value = [item.strip() for item in response.split(\",\")]\n                elif field == \"email\":\n                    if \"@\" not in response or \".\" not in response:\n                        raise ValueError(\"Invalid email format\")\n                    value = response\n                else:\n                    value = response\n                \n                self.user_data[field] = value\n                self.log_interaction(f\"collected_{field}\", f\"Collected {field}: {value}\")\n                print(f\"✅ Thanks! Recorded your {field}.\")\n                \n            except ValueError as e:\n                print(f\"❌ Error: {e}\")\n                self.log_interaction(f\"error_{field}\", str(e))\n    \n    def show_summary(self):\n        \"\"\"Display user profile summary\"\"\"\n        print(\"\\n🎯 Your Profile Summary:\")\n        print(\"=\" * 30)\n        \n        for field, value in self.user_data.items():\n            if field == \"interests\":\n                formatted_value = \", \".join(value)\n            else:\n                formatted_value = value\n            \n            print(f\"{field.title()}: {formatted_value}\")\n    \n    def log_interaction(self, action, details):\n        \"\"\"Log user interactions for analytics\"\"\"\n        import datetime\n        self.conversation_log.append({\n            \"timestamp\": datetime.datetime.now().isoformat(),\n            \"action\": action,\n            \"details\": details\n        })\n    \n    def get_feedback(self):\n        \"\"\"Collect user feedback\"\"\"\n        print(\"\\n💬 How was your experience?\")\n        \n        feedback_options = [\"excellent\", \"good\", \"okay\", \"poor\"]\n        # Simulate feedback\n        feedback = \"good\"\n        print(f\"Rate your experience ({'/'.join(feedback_options)}): {feedback}\")\n        \n        if feedback in feedback_options:\n            self.user_data[\"feedback\"] = feedback\n            self.log_interaction(\"feedback\", f\"User rated experience: {feedback}\")\n            print(f\"✅ Thank you for the {feedback} rating!\")\n        \n        # Optional comment\n        comment = \"The app was easy to use and helpful!\"\n        print(f\"Any additional comments? {comment}\")\n        if comment:\n            self.user_data[\"comment\"] = comment\n            self.log_interaction(\"comment\", f\"User comment: {comment}\")\n    \n    def run_app(self):\n        \"\"\"Main application flow\"\"\"\n        try:\n            self.greet_user()\n            self.collect_user_info()\n            self.show_summary()\n            self.get_feedback()\n            \n            print(\"\\n🎉 Thank you for using our app!\")\n            print(\"Your information has been saved securely.\")\n            \n        except KeyboardInterrupt:\n            print(\"\\n\\n👋 Thanks for trying our app! Come back anytime.\")\n            self.log_interaction(\"app_exit\", \"User cancelled application\")\n        except Exception as e:\n            print(f\"\\n❌ An unexpected error occurred: {e}\")\n            self.log_interaction(\"error\", f\"Unexpected error: {e}\")\n\n# Run the interactive application\napp = InteractiveApp()\napp.run_app()\n",[5724],{"type":993,"tag":1007,"props":5725,"children":5726},{"__ignoreMap":8},[5727,5744,5752,5759,5777,5799,5820,5827,5843,5851,5871,5891,5921,5928,5944,5952,5960,5976,6011,6045,6078,6112,6120,6127,6135,6152,6174,6194,6215,6232,6240,6247,6268,6309,6334,6375,6382,6393,6418,6438,6474,6499,6524,6568,6593,6639,6662,6678,6689,6704,6711,6732,6818,6859,6866,6885,6925,6974,6981,6997,7005,7033,7063,7070,7096,7120,7142,7153,7168,7175,7232,7239,7256,7264,7277,7289,7302,7315,7328,7336,7343,7359,7367,7395,7403,7455,7463,7480,7543,7550,7571,7603,7651,7692,7699,7707,7724,7765,7777,7806,7854,7861,7877,7885,7896,7908,7920,7932,7945,7953,7982,8003,8011,8027,8057,8087,8107,8156,8205,8213,8222,8240],{"type":993,"tag":1034,"props":5728,"children":5729},{"class":1036,"line":12},[5730,5735,5740],{"type":993,"tag":1034,"props":5731,"children":5732},{"style":1049},[5733],{"type":998,"value":5734},"class",{"type":993,"tag":1034,"props":5736,"children":5737},{"style":1055},[5738],{"type":998,"value":5739}," InteractiveApp",{"type":993,"tag":1034,"props":5741,"children":5742},{"style":1061},[5743],{"type":998,"value":1400},{"type":993,"tag":1034,"props":5745,"children":5746},{"class":1036,"line":27},[5747],{"type":993,"tag":1034,"props":5748,"children":5749},{"style":1070},[5750],{"type":998,"value":5751},"    \"\"\"Interactive application with conversation flow\"\"\"\n",{"type":993,"tag":1034,"props":5753,"children":5754},{"class":1036,"line":36},[5755],{"type":993,"tag":1034,"props":5756,"children":5757},{"style":1061},[5758],{"type":998,"value":1105},{"type":993,"tag":1034,"props":5760,"children":5761},{"class":1036,"line":45},[5762,5767,5772],{"type":993,"tag":1034,"props":5763,"children":5764},{"style":1049},[5765],{"type":998,"value":5766},"    def",{"type":993,"tag":1034,"props":5768,"children":5769},{"style":1079},[5770],{"type":998,"value":5771}," __init__",{"type":993,"tag":1034,"props":5773,"children":5774},{"style":1061},[5775],{"type":998,"value":5776},"(self):\n",{"type":993,"tag":1034,"props":5778,"children":5779},{"class":1036,"line":54},[5780,5785,5790,5794],{"type":993,"tag":1034,"props":5781,"children":5782},{"style":1079},[5783],{"type":998,"value":5784},"        self",{"type":993,"tag":1034,"props":5786,"children":5787},{"style":1061},[5788],{"type":998,"value":5789},".user_data ",{"type":993,"tag":1034,"props":5791,"children":5792},{"style":1049},[5793],{"type":998,"value":1126},{"type":993,"tag":1034,"props":5795,"children":5796},{"style":1061},[5797],{"type":998,"value":5798}," {}\n",{"type":993,"tag":1034,"props":5800,"children":5801},{"class":1036,"line":63},[5802,5806,5811,5815],{"type":993,"tag":1034,"props":5803,"children":5804},{"style":1079},[5805],{"type":998,"value":5784},{"type":993,"tag":1034,"props":5807,"children":5808},{"style":1061},[5809],{"type":998,"value":5810},".conversation_log ",{"type":993,"tag":1034,"props":5812,"children":5813},{"style":1049},[5814],{"type":998,"value":1126},{"type":993,"tag":1034,"props":5816,"children":5817},{"style":1061},[5818],{"type":998,"value":5819}," []\n",{"type":993,"tag":1034,"props":5821,"children":5822},{"class":1036,"line":72},[5823],{"type":993,"tag":1034,"props":5824,"children":5825},{"style":1061},[5826],{"type":998,"value":1105},{"type":993,"tag":1034,"props":5828,"children":5829},{"class":1036,"line":81},[5830,5834,5839],{"type":993,"tag":1034,"props":5831,"children":5832},{"style":1049},[5833],{"type":998,"value":5766},{"type":993,"tag":1034,"props":5835,"children":5836},{"style":1055},[5837],{"type":998,"value":5838}," greet_user",{"type":993,"tag":1034,"props":5840,"children":5841},{"style":1061},[5842],{"type":998,"value":5776},{"type":993,"tag":1034,"props":5844,"children":5845},{"class":1036,"line":91},[5846],{"type":993,"tag":1034,"props":5847,"children":5848},{"style":1070},[5849],{"type":998,"value":5850},"        \"\"\"Welcome user and start conversation\"\"\"\n",{"type":993,"tag":1034,"props":5852,"children":5853},{"class":1036,"line":100},[5854,5858,5862,5867],{"type":993,"tag":1034,"props":5855,"children":5856},{"style":1079},[5857],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5859,"children":5860},{"style":1061},[5861],{"type":998,"value":1087},{"type":993,"tag":1034,"props":5863,"children":5864},{"style":1070},[5865],{"type":998,"value":5866},"\"🎉 Welcome to the Interactive Python App!\"",{"type":993,"tag":1034,"props":5868,"children":5869},{"style":1061},[5870],{"type":998,"value":1097},{"type":993,"tag":1034,"props":5872,"children":5873},{"class":1036,"line":109},[5874,5878,5882,5887],{"type":993,"tag":1034,"props":5875,"children":5876},{"style":1079},[5877],{"type":998,"value":1246},{"type":993,"tag":1034,"props":5879,"children":5880},{"style":1061},[5881],{"type":998,"value":1087},{"type":993,"tag":1034,"props":5883,"children":5884},{"style":1070},[5885],{"type":998,"value":5886},"\"I'll help you create a personalized profile.\"",{"type":993,"tag":1034,"props":5888,"children":5889},{"style":1061},[5890],{"type":998,"value":1097},{"type":993,"tag":1034,"props":5892,"children":5893},{"class":1036,"line":118},[5894,5898,5903,5908,5912,5917],{"type":993,"tag":1034,"props":5895,"children":5896},{"style":1079},[5897],{"type":998,"value":5784},{"type":993,"tag":1034,"props":5899,"children":5900},{"style":1061},[5901],{"type":998,"value":5902},".log_interaction(",{"type":993,"tag":1034,"props":5904,"children":5905},{"style":1070},[5906],{"type":998,"value":5907},"\"app_start\"",{"type":993,"tag":1034,"props":5909,"children":5910},{"style":1061},[5911],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5913,"children":5914},{"style":1070},[5915],{"type":998,"value":5916},"\"User started application\"",{"type":993,"tag":1034,"props":5918,"children":5919},{"style":1061},[5920],{"type":998,"value":1097},{"type":993,"tag":1034,"props":5922,"children":5923},{"class":1036,"line":127},[5924],{"type":993,"tag":1034,"props":5925,"children":5926},{"style":1061},[5927],{"type":998,"value":1105},{"type":993,"tag":1034,"props":5929,"children":5930},{"class":1036,"line":136},[5931,5935,5940],{"type":993,"tag":1034,"props":5932,"children":5933},{"style":1049},[5934],{"type":998,"value":5766},{"type":993,"tag":1034,"props":5936,"children":5937},{"style":1055},[5938],{"type":998,"value":5939}," collect_user_info",{"type":993,"tag":1034,"props":5941,"children":5942},{"style":1061},[5943],{"type":998,"value":5776},{"type":993,"tag":1034,"props":5945,"children":5946},{"class":1036,"line":146},[5947],{"type":993,"tag":1034,"props":5948,"children":5949},{"style":1070},[5950],{"type":998,"value":5951},"        \"\"\"Collect user information with validation\"\"\"\n",{"type":993,"tag":1034,"props":5953,"children":5954},{"class":1036,"line":155},[5955],{"type":993,"tag":1034,"props":5956,"children":5957},{"style":1040},[5958],{"type":998,"value":5959},"        # Simulate conversation flow\n",{"type":993,"tag":1034,"props":5961,"children":5962},{"class":1036,"line":164},[5963,5968,5972],{"type":993,"tag":1034,"props":5964,"children":5965},{"style":1061},[5966],{"type":998,"value":5967},"        questions ",{"type":993,"tag":1034,"props":5969,"children":5970},{"style":1049},[5971],{"type":998,"value":1126},{"type":993,"tag":1034,"props":5973,"children":5974},{"style":1061},[5975],{"type":998,"value":2554},{"type":993,"tag":1034,"props":5977,"children":5978},{"class":1036,"line":173},[5979,5984,5989,5993,5998,6002,6007],{"type":993,"tag":1034,"props":5980,"children":5981},{"style":1061},[5982],{"type":998,"value":5983},"            (",{"type":993,"tag":1034,"props":5985,"children":5986},{"style":1070},[5987],{"type":998,"value":5988},"\"name\"",{"type":993,"tag":1034,"props":5990,"children":5991},{"style":1061},[5992],{"type":998,"value":1141},{"type":993,"tag":1034,"props":5994,"children":5995},{"style":1070},[5996],{"type":998,"value":5997},"\"What's your name?\"",{"type":993,"tag":1034,"props":5999,"children":6000},{"style":1061},[6001],{"type":998,"value":1141},{"type":993,"tag":1034,"props":6003,"children":6004},{"style":1079},[6005],{"type":998,"value":6006},"str",{"type":993,"tag":1034,"props":6008,"children":6009},{"style":1061},[6010],{"type":998,"value":2581},{"type":993,"tag":1034,"props":6012,"children":6013},{"class":1036,"line":182},[6014,6018,6023,6027,6032,6036,6041],{"type":993,"tag":1034,"props":6015,"children":6016},{"style":1061},[6017],{"type":998,"value":5983},{"type":993,"tag":1034,"props":6019,"children":6020},{"style":1070},[6021],{"type":998,"value":6022},"\"age\"",{"type":993,"tag":1034,"props":6024,"children":6025},{"style":1061},[6026],{"type":998,"value":1141},{"type":993,"tag":1034,"props":6028,"children":6029},{"style":1070},[6030],{"type":998,"value":6031},"\"What's your age?\"",{"type":993,"tag":1034,"props":6033,"children":6034},{"style":1061},[6035],{"type":998,"value":1141},{"type":993,"tag":1034,"props":6037,"children":6038},{"style":1079},[6039],{"type":998,"value":6040},"int",{"type":993,"tag":1034,"props":6042,"children":6043},{"style":1061},[6044],{"type":998,"value":2581},{"type":993,"tag":1034,"props":6046,"children":6047},{"class":1036,"line":191},[6048,6052,6057,6061,6066,6070,6074],{"type":993,"tag":1034,"props":6049,"children":6050},{"style":1061},[6051],{"type":998,"value":5983},{"type":993,"tag":1034,"props":6053,"children":6054},{"style":1070},[6055],{"type":998,"value":6056},"\"email\"",{"type":993,"tag":1034,"props":6058,"children":6059},{"style":1061},[6060],{"type":998,"value":1141},{"type":993,"tag":1034,"props":6062,"children":6063},{"style":1070},[6064],{"type":998,"value":6065},"\"What's your email address?\"",{"type":993,"tag":1034,"props":6067,"children":6068},{"style":1061},[6069],{"type":998,"value":1141},{"type":993,"tag":1034,"props":6071,"children":6072},{"style":1079},[6073],{"type":998,"value":6006},{"type":993,"tag":1034,"props":6075,"children":6076},{"style":1061},[6077],{"type":998,"value":2581},{"type":993,"tag":1034,"props":6079,"children":6080},{"class":1036,"line":201},[6081,6085,6090,6094,6099,6103,6108],{"type":993,"tag":1034,"props":6082,"children":6083},{"style":1061},[6084],{"type":998,"value":5983},{"type":993,"tag":1034,"props":6086,"children":6087},{"style":1070},[6088],{"type":998,"value":6089},"\"interests\"",{"type":993,"tag":1034,"props":6091,"children":6092},{"style":1061},[6093],{"type":998,"value":1141},{"type":993,"tag":1034,"props":6095,"children":6096},{"style":1070},[6097],{"type":998,"value":6098},"\"What are your interests? (comma-separated)\"",{"type":993,"tag":1034,"props":6100,"children":6101},{"style":1061},[6102],{"type":998,"value":1141},{"type":993,"tag":1034,"props":6104,"children":6105},{"style":1079},[6106],{"type":998,"value":6107},"list",{"type":993,"tag":1034,"props":6109,"children":6110},{"style":1061},[6111],{"type":998,"value":1097},{"type":993,"tag":1034,"props":6113,"children":6114},{"class":1036,"line":210},[6115],{"type":993,"tag":1034,"props":6116,"children":6117},{"style":1061},[6118],{"type":998,"value":6119},"        ]\n",{"type":993,"tag":1034,"props":6121,"children":6122},{"class":1036,"line":219},[6123],{"type":993,"tag":1034,"props":6124,"children":6125},{"style":1061},[6126],{"type":998,"value":1301},{"type":993,"tag":1034,"props":6128,"children":6129},{"class":1036,"line":228},[6130],{"type":993,"tag":1034,"props":6131,"children":6132},{"style":1040},[6133],{"type":998,"value":6134},"        # Simulate user responses\n",{"type":993,"tag":1034,"props":6136,"children":6137},{"class":1036,"line":238},[6138,6143,6147],{"type":993,"tag":1034,"props":6139,"children":6140},{"style":1061},[6141],{"type":998,"value":6142},"        sample_responses ",{"type":993,"tag":1034,"props":6144,"children":6145},{"style":1049},[6146],{"type":998,"value":1126},{"type":993,"tag":1034,"props":6148,"children":6149},{"style":1061},[6150],{"type":998,"value":6151}," {\n",{"type":993,"tag":1034,"props":6153,"children":6154},{"class":1036,"line":247},[6155,6160,6165,6169],{"type":993,"tag":1034,"props":6156,"children":6157},{"style":1070},[6158],{"type":998,"value":6159},"            \"name\"",{"type":993,"tag":1034,"props":6161,"children":6162},{"style":1061},[6163],{"type":998,"value":6164},": ",{"type":993,"tag":1034,"props":6166,"children":6167},{"style":1070},[6168],{"type":998,"value":1136},{"type":993,"tag":1034,"props":6170,"children":6171},{"style":1061},[6172],{"type":998,"value":6173},",\n",{"type":993,"tag":1034,"props":6175,"children":6176},{"class":1036,"line":256},[6177,6182,6186,6190],{"type":993,"tag":1034,"props":6178,"children":6179},{"style":1070},[6180],{"type":998,"value":6181},"            \"age\"",{"type":993,"tag":1034,"props":6183,"children":6184},{"style":1061},[6185],{"type":998,"value":6164},{"type":993,"tag":1034,"props":6187,"children":6188},{"style":1070},[6189],{"type":998,"value":1146},{"type":993,"tag":1034,"props":6191,"children":6192},{"style":1061},[6193],{"type":998,"value":6173},{"type":993,"tag":1034,"props":6195,"children":6196},{"class":1036,"line":265},[6197,6202,6206,6210],{"type":993,"tag":1034,"props":6198,"children":6199},{"style":1070},[6200],{"type":998,"value":6201},"            \"email\"",{"type":993,"tag":1034,"props":6203,"children":6204},{"style":1061},[6205],{"type":998,"value":6164},{"type":993,"tag":1034,"props":6207,"children":6208},{"style":1070},[6209],{"type":998,"value":2643},{"type":993,"tag":1034,"props":6211,"children":6212},{"style":1061},[6213],{"type":998,"value":6214},", \n",{"type":993,"tag":1034,"props":6216,"children":6217},{"class":1036,"line":274},[6218,6223,6227],{"type":993,"tag":1034,"props":6219,"children":6220},{"style":1070},[6221],{"type":998,"value":6222},"            \"interests\"",{"type":993,"tag":1034,"props":6224,"children":6225},{"style":1061},[6226],{"type":998,"value":6164},{"type":993,"tag":1034,"props":6228,"children":6229},{"style":1070},[6230],{"type":998,"value":6231},"\"programming, reading, hiking\"\n",{"type":993,"tag":1034,"props":6233,"children":6234},{"class":1036,"line":284},[6235],{"type":993,"tag":1034,"props":6236,"children":6237},{"style":1061},[6238],{"type":998,"value":6239},"        }\n",{"type":993,"tag":1034,"props":6241,"children":6242},{"class":1036,"line":293},[6243],{"type":993,"tag":1034,"props":6244,"children":6245},{"style":1061},[6246],{"type":998,"value":1301},{"type":993,"tag":1034,"props":6248,"children":6249},{"class":1036,"line":302},[6250,6254,6259,6263],{"type":993,"tag":1034,"props":6251,"children":6252},{"style":1049},[6253],{"type":998,"value":4658},{"type":993,"tag":1034,"props":6255,"children":6256},{"style":1061},[6257],{"type":998,"value":6258}," field, question, data_type ",{"type":993,"tag":1034,"props":6260,"children":6261},{"style":1049},[6262],{"type":998,"value":1228},{"type":993,"tag":1034,"props":6264,"children":6265},{"style":1061},[6266],{"type":998,"value":6267}," questions:\n",{"type":993,"tag":1034,"props":6269,"children":6270},{"class":1036,"line":311},[6271,6275,6279,6283,6287,6292,6297,6301,6305],{"type":993,"tag":1034,"props":6272,"children":6273},{"style":1079},[6274],{"type":998,"value":1332},{"type":993,"tag":1034,"props":6276,"children":6277},{"style":1061},[6278],{"type":998,"value":1087},{"type":993,"tag":1034,"props":6280,"children":6281},{"style":1049},[6282],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6284,"children":6285},{"style":1070},[6286],{"type":998,"value":1260},{"type":993,"tag":1034,"props":6288,"children":6289},{"style":1079},[6290],{"type":998,"value":6291},"\\n{",{"type":993,"tag":1034,"props":6293,"children":6294},{"style":1061},[6295],{"type":998,"value":6296},"question",{"type":993,"tag":1034,"props":6298,"children":6299},{"style":1079},[6300],{"type":998,"value":1285},{"type":993,"tag":1034,"props":6302,"children":6303},{"style":1070},[6304],{"type":998,"value":1260},{"type":993,"tag":1034,"props":6306,"children":6307},{"style":1061},[6308],{"type":998,"value":1097},{"type":993,"tag":1034,"props":6310,"children":6311},{"class":1036,"line":320},[6312,6317,6321,6326,6330],{"type":993,"tag":1034,"props":6313,"children":6314},{"style":1061},[6315],{"type":998,"value":6316},"            response ",{"type":993,"tag":1034,"props":6318,"children":6319},{"style":1049},[6320],{"type":998,"value":1126},{"type":993,"tag":1034,"props":6322,"children":6323},{"style":1061},[6324],{"type":998,"value":6325}," sample_responses.get(field, ",{"type":993,"tag":1034,"props":6327,"children":6328},{"style":1070},[6329],{"type":998,"value":3105},{"type":993,"tag":1034,"props":6331,"children":6332},{"style":1061},[6333],{"type":998,"value":1097},{"type":993,"tag":1034,"props":6335,"children":6336},{"class":1036,"line":329},[6337,6341,6345,6349,6354,6358,6363,6367,6371],{"type":993,"tag":1034,"props":6338,"children":6339},{"style":1079},[6340],{"type":998,"value":1332},{"type":993,"tag":1034,"props":6342,"children":6343},{"style":1061},[6344],{"type":998,"value":1087},{"type":993,"tag":1034,"props":6346,"children":6347},{"style":1049},[6348],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6350,"children":6351},{"style":1070},[6352],{"type":998,"value":6353},"\"> ",{"type":993,"tag":1034,"props":6355,"children":6356},{"style":1079},[6357],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6359,"children":6360},{"style":1061},[6361],{"type":998,"value":6362},"response",{"type":993,"tag":1034,"props":6364,"children":6365},{"style":1079},[6366],{"type":998,"value":1285},{"type":993,"tag":1034,"props":6368,"children":6369},{"style":1070},[6370],{"type":998,"value":1260},{"type":993,"tag":1034,"props":6372,"children":6373},{"style":1061},[6374],{"type":998,"value":1097},{"type":993,"tag":1034,"props":6376,"children":6377},{"class":1036,"line":338},[6378],{"type":993,"tag":1034,"props":6379,"children":6380},{"style":1061},[6381],{"type":998,"value":3117},{"type":993,"tag":1034,"props":6383,"children":6384},{"class":1036,"line":347},[6385,6389],{"type":993,"tag":1034,"props":6386,"children":6387},{"style":1049},[6388],{"type":998,"value":1395},{"type":993,"tag":1034,"props":6390,"children":6391},{"style":1061},[6392],{"type":998,"value":1400},{"type":993,"tag":1034,"props":6394,"children":6395},{"class":1036,"line":356},[6396,6400,6405,6410,6414],{"type":993,"tag":1034,"props":6397,"children":6398},{"style":1049},[6399],{"type":998,"value":5322},{"type":993,"tag":1034,"props":6401,"children":6402},{"style":1061},[6403],{"type":998,"value":6404}," data_type ",{"type":993,"tag":1034,"props":6406,"children":6407},{"style":1049},[6408],{"type":998,"value":6409},"==",{"type":993,"tag":1034,"props":6411,"children":6412},{"style":1079},[6413],{"type":998,"value":1417},{"type":993,"tag":1034,"props":6415,"children":6416},{"style":1061},[6417],{"type":998,"value":1400},{"type":993,"tag":1034,"props":6419,"children":6420},{"class":1036,"line":365},[6421,6425,6429,6433],{"type":993,"tag":1034,"props":6422,"children":6423},{"style":1061},[6424],{"type":998,"value":3281},{"type":993,"tag":1034,"props":6426,"children":6427},{"style":1049},[6428],{"type":998,"value":1126},{"type":993,"tag":1034,"props":6430,"children":6431},{"style":1079},[6432],{"type":998,"value":1417},{"type":993,"tag":1034,"props":6434,"children":6435},{"style":1061},[6436],{"type":998,"value":6437},"(response)\n",{"type":993,"tag":1034,"props":6439,"children":6440},{"class":1036,"line":374},[6441,6445,6449,6453,6457,6461,6465,6470],{"type":993,"tag":1034,"props":6442,"children":6443},{"style":1049},[6444],{"type":998,"value":3310},{"type":993,"tag":1034,"props":6446,"children":6447},{"style":1049},[6448],{"type":998,"value":2238},{"type":993,"tag":1034,"props":6450,"children":6451},{"style":1079},[6452],{"type":998,"value":2415},{"type":993,"tag":1034,"props":6454,"children":6455},{"style":1049},[6456],{"type":998,"value":2420},{"type":993,"tag":1034,"props":6458,"children":6459},{"style":1061},[6460],{"type":998,"value":3338},{"type":993,"tag":1034,"props":6462,"children":6463},{"style":1049},[6464],{"type":998,"value":2430},{"type":993,"tag":1034,"props":6466,"children":6467},{"style":1079},[6468],{"type":998,"value":6469}," 150",{"type":993,"tag":1034,"props":6471,"children":6472},{"style":1061},[6473],{"type":998,"value":1400},{"type":993,"tag":1034,"props":6475,"children":6476},{"class":1036,"line":384},[6477,6482,6486,6490,6495],{"type":993,"tag":1034,"props":6478,"children":6479},{"style":1049},[6480],{"type":998,"value":6481},"                        raise",{"type":993,"tag":1034,"props":6483,"children":6484},{"style":1079},[6485],{"type":998,"value":1484},{"type":993,"tag":1034,"props":6487,"children":6488},{"style":1061},[6489],{"type":998,"value":1087},{"type":993,"tag":1034,"props":6491,"children":6492},{"style":1070},[6493],{"type":998,"value":6494},"\"Age must be between 0 and 150\"",{"type":993,"tag":1034,"props":6496,"children":6497},{"style":1061},[6498],{"type":998,"value":1097},{"type":993,"tag":1034,"props":6500,"children":6501},{"class":1036,"line":393},[6502,6507,6511,6515,6520],{"type":993,"tag":1034,"props":6503,"children":6504},{"style":1049},[6505],{"type":998,"value":6506},"                elif",{"type":993,"tag":1034,"props":6508,"children":6509},{"style":1061},[6510],{"type":998,"value":6404},{"type":993,"tag":1034,"props":6512,"children":6513},{"style":1049},[6514],{"type":998,"value":6409},{"type":993,"tag":1034,"props":6516,"children":6517},{"style":1079},[6518],{"type":998,"value":6519}," list",{"type":993,"tag":1034,"props":6521,"children":6522},{"style":1061},[6523],{"type":998,"value":1400},{"type":993,"tag":1034,"props":6525,"children":6526},{"class":1036,"line":402},[6527,6531,6535,6540,6544,6549,6553,6558,6563],{"type":993,"tag":1034,"props":6528,"children":6529},{"style":1061},[6530],{"type":998,"value":3281},{"type":993,"tag":1034,"props":6532,"children":6533},{"style":1049},[6534],{"type":998,"value":1126},{"type":993,"tag":1034,"props":6536,"children":6537},{"style":1061},[6538],{"type":998,"value":6539}," [item.strip() ",{"type":993,"tag":1034,"props":6541,"children":6542},{"style":1049},[6543],{"type":998,"value":4453},{"type":993,"tag":1034,"props":6545,"children":6546},{"style":1061},[6547],{"type":998,"value":6548}," item ",{"type":993,"tag":1034,"props":6550,"children":6551},{"style":1049},[6552],{"type":998,"value":1228},{"type":993,"tag":1034,"props":6554,"children":6555},{"style":1061},[6556],{"type":998,"value":6557}," response.split(",{"type":993,"tag":1034,"props":6559,"children":6560},{"style":1070},[6561],{"type":998,"value":6562},"\",\"",{"type":993,"tag":1034,"props":6564,"children":6565},{"style":1061},[6566],{"type":998,"value":6567},")]\n",{"type":993,"tag":1034,"props":6569,"children":6570},{"class":1036,"line":411},[6571,6575,6580,6584,6589],{"type":993,"tag":1034,"props":6572,"children":6573},{"style":1049},[6574],{"type":998,"value":6506},{"type":993,"tag":1034,"props":6576,"children":6577},{"style":1061},[6578],{"type":998,"value":6579}," field ",{"type":993,"tag":1034,"props":6581,"children":6582},{"style":1049},[6583],{"type":998,"value":6409},{"type":993,"tag":1034,"props":6585,"children":6586},{"style":1070},[6587],{"type":998,"value":6588}," \"email\"",{"type":993,"tag":1034,"props":6590,"children":6591},{"style":1061},[6592],{"type":998,"value":1400},{"type":993,"tag":1034,"props":6594,"children":6595},{"class":1036,"line":420},[6596,6600,6604,6608,6612,6617,6622,6626,6630,6634],{"type":993,"tag":1034,"props":6597,"children":6598},{"style":1049},[6599],{"type":998,"value":3310},{"type":993,"tag":1034,"props":6601,"children":6602},{"style":1070},[6603],{"type":998,"value":2287},{"type":993,"tag":1034,"props":6605,"children":6606},{"style":1049},[6607],{"type":998,"value":2238},{"type":993,"tag":1034,"props":6609,"children":6610},{"style":1049},[6611],{"type":998,"value":1319},{"type":993,"tag":1034,"props":6613,"children":6614},{"style":1061},[6615],{"type":998,"value":6616}," response ",{"type":993,"tag":1034,"props":6618,"children":6619},{"style":1049},[6620],{"type":998,"value":6621},"or",{"type":993,"tag":1034,"props":6623,"children":6624},{"style":1070},[6625],{"type":998,"value":2306},{"type":993,"tag":1034,"props":6627,"children":6628},{"style":1049},[6629],{"type":998,"value":2238},{"type":993,"tag":1034,"props":6631,"children":6632},{"style":1049},[6633],{"type":998,"value":1319},{"type":993,"tag":1034,"props":6635,"children":6636},{"style":1061},[6637],{"type":998,"value":6638}," response:\n",{"type":993,"tag":1034,"props":6640,"children":6641},{"class":1036,"line":429},[6642,6646,6650,6654,6658],{"type":993,"tag":1034,"props":6643,"children":6644},{"style":1049},[6645],{"type":998,"value":6481},{"type":993,"tag":1034,"props":6647,"children":6648},{"style":1079},[6649],{"type":998,"value":1484},{"type":993,"tag":1034,"props":6651,"children":6652},{"style":1061},[6653],{"type":998,"value":1087},{"type":993,"tag":1034,"props":6655,"children":6656},{"style":1070},[6657],{"type":998,"value":2678},{"type":993,"tag":1034,"props":6659,"children":6660},{"style":1061},[6661],{"type":998,"value":1097},{"type":993,"tag":1034,"props":6663,"children":6664},{"class":1036,"line":438},[6665,6669,6673],{"type":993,"tag":1034,"props":6666,"children":6667},{"style":1061},[6668],{"type":998,"value":3281},{"type":993,"tag":1034,"props":6670,"children":6671},{"style":1049},[6672],{"type":998,"value":1126},{"type":993,"tag":1034,"props":6674,"children":6675},{"style":1061},[6676],{"type":998,"value":6677}," response\n",{"type":993,"tag":1034,"props":6679,"children":6680},{"class":1036,"line":447},[6681,6685],{"type":993,"tag":1034,"props":6682,"children":6683},{"style":1049},[6684],{"type":998,"value":5439},{"type":993,"tag":1034,"props":6686,"children":6687},{"style":1061},[6688],{"type":998,"value":1400},{"type":993,"tag":1034,"props":6690,"children":6691},{"class":1036,"line":457},[6692,6696,6700],{"type":993,"tag":1034,"props":6693,"children":6694},{"style":1061},[6695],{"type":998,"value":3281},{"type":993,"tag":1034,"props":6697,"children":6698},{"style":1049},[6699],{"type":998,"value":1126},{"type":993,"tag":1034,"props":6701,"children":6702},{"style":1061},[6703],{"type":998,"value":6677},{"type":993,"tag":1034,"props":6705,"children":6706},{"class":1036,"line":466},[6707],{"type":993,"tag":1034,"props":6708,"children":6709},{"style":1061},[6710],{"type":998,"value":3261},{"type":993,"tag":1034,"props":6712,"children":6713},{"class":1036,"line":475},[6714,6719,6724,6728],{"type":993,"tag":1034,"props":6715,"children":6716},{"style":1079},[6717],{"type":998,"value":6718},"                self",{"type":993,"tag":1034,"props":6720,"children":6721},{"style":1061},[6722],{"type":998,"value":6723},".user_data[field] ",{"type":993,"tag":1034,"props":6725,"children":6726},{"style":1049},[6727],{"type":998,"value":1126},{"type":993,"tag":1034,"props":6729,"children":6730},{"style":1061},[6731],{"type":998,"value":3556},{"type":993,"tag":1034,"props":6733,"children":6734},{"class":1036,"line":484},[6735,6739,6743,6747,6752,6756,6761,6765,6769,6773,6777,6782,6786,6790,6794,6798,6802,6806,6810,6814],{"type":993,"tag":1034,"props":6736,"children":6737},{"style":1079},[6738],{"type":998,"value":6718},{"type":993,"tag":1034,"props":6740,"children":6741},{"style":1061},[6742],{"type":998,"value":5902},{"type":993,"tag":1034,"props":6744,"children":6745},{"style":1049},[6746],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6748,"children":6749},{"style":1070},[6750],{"type":998,"value":6751},"\"collected_",{"type":993,"tag":1034,"props":6753,"children":6754},{"style":1079},[6755],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6757,"children":6758},{"style":1061},[6759],{"type":998,"value":6760},"field",{"type":993,"tag":1034,"props":6762,"children":6763},{"style":1079},[6764],{"type":998,"value":1285},{"type":993,"tag":1034,"props":6766,"children":6767},{"style":1070},[6768],{"type":998,"value":1260},{"type":993,"tag":1034,"props":6770,"children":6771},{"style":1061},[6772],{"type":998,"value":1141},{"type":993,"tag":1034,"props":6774,"children":6775},{"style":1049},[6776],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6778,"children":6779},{"style":1070},[6780],{"type":998,"value":6781},"\"Collected ",{"type":993,"tag":1034,"props":6783,"children":6784},{"style":1079},[6785],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6787,"children":6788},{"style":1061},[6789],{"type":998,"value":6760},{"type":993,"tag":1034,"props":6791,"children":6792},{"style":1079},[6793],{"type":998,"value":1285},{"type":993,"tag":1034,"props":6795,"children":6796},{"style":1070},[6797],{"type":998,"value":6164},{"type":993,"tag":1034,"props":6799,"children":6800},{"style":1079},[6801],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6803,"children":6804},{"style":1061},[6805],{"type":998,"value":3531},{"type":993,"tag":1034,"props":6807,"children":6808},{"style":1079},[6809],{"type":998,"value":1285},{"type":993,"tag":1034,"props":6811,"children":6812},{"style":1070},[6813],{"type":998,"value":1260},{"type":993,"tag":1034,"props":6815,"children":6816},{"style":1061},[6817],{"type":998,"value":1097},{"type":993,"tag":1034,"props":6819,"children":6820},{"class":1036,"line":493},[6821,6825,6829,6833,6838,6842,6846,6850,6855],{"type":993,"tag":1034,"props":6822,"children":6823},{"style":1079},[6824],{"type":998,"value":1430},{"type":993,"tag":1034,"props":6826,"children":6827},{"style":1061},[6828],{"type":998,"value":1087},{"type":993,"tag":1034,"props":6830,"children":6831},{"style":1049},[6832],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6834,"children":6835},{"style":1070},[6836],{"type":998,"value":6837},"\"✅ Thanks! Recorded your ",{"type":993,"tag":1034,"props":6839,"children":6840},{"style":1079},[6841],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6843,"children":6844},{"style":1061},[6845],{"type":998,"value":6760},{"type":993,"tag":1034,"props":6847,"children":6848},{"style":1079},[6849],{"type":998,"value":1285},{"type":993,"tag":1034,"props":6851,"children":6852},{"style":1070},[6853],{"type":998,"value":6854},".\"",{"type":993,"tag":1034,"props":6856,"children":6857},{"style":1061},[6858],{"type":998,"value":1097},{"type":993,"tag":1034,"props":6860,"children":6861},{"class":1036,"line":502},[6862],{"type":993,"tag":1034,"props":6863,"children":6864},{"style":1061},[6865],{"type":998,"value":3261},{"type":993,"tag":1034,"props":6867,"children":6868},{"class":1036,"line":511},[6869,6873,6877,6881],{"type":993,"tag":1034,"props":6870,"children":6871},{"style":1049},[6872],{"type":998,"value":1479},{"type":993,"tag":1034,"props":6874,"children":6875},{"style":1079},[6876],{"type":998,"value":1484},{"type":993,"tag":1034,"props":6878,"children":6879},{"style":1049},[6880],{"type":998,"value":2122},{"type":993,"tag":1034,"props":6882,"children":6883},{"style":1061},[6884],{"type":998,"value":2127},{"type":993,"tag":1034,"props":6886,"children":6887},{"class":1036,"line":520},[6888,6892,6896,6900,6905,6909,6913,6917,6921],{"type":993,"tag":1034,"props":6889,"children":6890},{"style":1079},[6891],{"type":998,"value":1430},{"type":993,"tag":1034,"props":6893,"children":6894},{"style":1061},[6895],{"type":998,"value":1087},{"type":993,"tag":1034,"props":6897,"children":6898},{"style":1049},[6899],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6901,"children":6902},{"style":1070},[6903],{"type":998,"value":6904},"\"❌ Error: ",{"type":993,"tag":1034,"props":6906,"children":6907},{"style":1079},[6908],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6910,"children":6911},{"style":1061},[6912],{"type":998,"value":2156},{"type":993,"tag":1034,"props":6914,"children":6915},{"style":1079},[6916],{"type":998,"value":1285},{"type":993,"tag":1034,"props":6918,"children":6919},{"style":1070},[6920],{"type":998,"value":1260},{"type":993,"tag":1034,"props":6922,"children":6923},{"style":1061},[6924],{"type":998,"value":1097},{"type":993,"tag":1034,"props":6926,"children":6927},{"class":1036,"line":530},[6928,6932,6936,6940,6945,6949,6953,6957,6961,6965,6969],{"type":993,"tag":1034,"props":6929,"children":6930},{"style":1079},[6931],{"type":998,"value":6718},{"type":993,"tag":1034,"props":6933,"children":6934},{"style":1061},[6935],{"type":998,"value":5902},{"type":993,"tag":1034,"props":6937,"children":6938},{"style":1049},[6939],{"type":998,"value":1255},{"type":993,"tag":1034,"props":6941,"children":6942},{"style":1070},[6943],{"type":998,"value":6944},"\"error_",{"type":993,"tag":1034,"props":6946,"children":6947},{"style":1079},[6948],{"type":998,"value":1265},{"type":993,"tag":1034,"props":6950,"children":6951},{"style":1061},[6952],{"type":998,"value":6760},{"type":993,"tag":1034,"props":6954,"children":6955},{"style":1079},[6956],{"type":998,"value":1285},{"type":993,"tag":1034,"props":6958,"children":6959},{"style":1070},[6960],{"type":998,"value":1260},{"type":993,"tag":1034,"props":6962,"children":6963},{"style":1061},[6964],{"type":998,"value":1141},{"type":993,"tag":1034,"props":6966,"children":6967},{"style":1079},[6968],{"type":998,"value":6006},{"type":993,"tag":1034,"props":6970,"children":6971},{"style":1061},[6972],{"type":998,"value":6973},"(e))\n",{"type":993,"tag":1034,"props":6975,"children":6976},{"class":1036,"line":539},[6977],{"type":993,"tag":1034,"props":6978,"children":6979},{"style":1061},[6980],{"type":998,"value":1105},{"type":993,"tag":1034,"props":6982,"children":6983},{"class":1036,"line":548},[6984,6988,6993],{"type":993,"tag":1034,"props":6985,"children":6986},{"style":1049},[6987],{"type":998,"value":5766},{"type":993,"tag":1034,"props":6989,"children":6990},{"style":1055},[6991],{"type":998,"value":6992}," show_summary",{"type":993,"tag":1034,"props":6994,"children":6995},{"style":1061},[6996],{"type":998,"value":5776},{"type":993,"tag":1034,"props":6998,"children":6999},{"class":1036,"line":557},[7000],{"type":993,"tag":1034,"props":7001,"children":7002},{"style":1070},[7003],{"type":998,"value":7004},"        \"\"\"Display user profile summary\"\"\"\n",{"type":993,"tag":1034,"props":7006,"children":7007},{"class":1036,"line":566},[7008,7012,7016,7020,7024,7029],{"type":993,"tag":1034,"props":7009,"children":7010},{"style":1079},[7011],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7013,"children":7014},{"style":1061},[7015],{"type":998,"value":1087},{"type":993,"tag":1034,"props":7017,"children":7018},{"style":1070},[7019],{"type":998,"value":1260},{"type":993,"tag":1034,"props":7021,"children":7022},{"style":1079},[7023],{"type":998,"value":2083},{"type":993,"tag":1034,"props":7025,"children":7026},{"style":1070},[7027],{"type":998,"value":7028},"🎯 Your Profile Summary:\"",{"type":993,"tag":1034,"props":7030,"children":7031},{"style":1061},[7032],{"type":998,"value":1097},{"type":993,"tag":1034,"props":7034,"children":7035},{"class":1036,"line":575},[7036,7040,7044,7049,7054,7059],{"type":993,"tag":1034,"props":7037,"children":7038},{"style":1079},[7039],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7041,"children":7042},{"style":1061},[7043],{"type":998,"value":1087},{"type":993,"tag":1034,"props":7045,"children":7046},{"style":1070},[7047],{"type":998,"value":7048},"\"=\"",{"type":993,"tag":1034,"props":7050,"children":7051},{"style":1049},[7052],{"type":998,"value":7053}," *",{"type":993,"tag":1034,"props":7055,"children":7056},{"style":1079},[7057],{"type":998,"value":7058}," 30",{"type":993,"tag":1034,"props":7060,"children":7061},{"style":1061},[7062],{"type":998,"value":1097},{"type":993,"tag":1034,"props":7064,"children":7065},{"class":1036,"line":584},[7066],{"type":993,"tag":1034,"props":7067,"children":7068},{"style":1061},[7069],{"type":998,"value":1301},{"type":993,"tag":1034,"props":7071,"children":7072},{"class":1036,"line":593},[7073,7077,7082,7086,7091],{"type":993,"tag":1034,"props":7074,"children":7075},{"style":1049},[7076],{"type":998,"value":4658},{"type":993,"tag":1034,"props":7078,"children":7079},{"style":1061},[7080],{"type":998,"value":7081}," field, value ",{"type":993,"tag":1034,"props":7083,"children":7084},{"style":1049},[7085],{"type":998,"value":1228},{"type":993,"tag":1034,"props":7087,"children":7088},{"style":1079},[7089],{"type":998,"value":7090}," self",{"type":993,"tag":1034,"props":7092,"children":7093},{"style":1061},[7094],{"type":998,"value":7095},".user_data.items():\n",{"type":993,"tag":1034,"props":7097,"children":7098},{"class":1036,"line":602},[7099,7103,7107,7111,7116],{"type":993,"tag":1034,"props":7100,"children":7101},{"style":1049},[7102],{"type":998,"value":2004},{"type":993,"tag":1034,"props":7104,"children":7105},{"style":1061},[7106],{"type":998,"value":6579},{"type":993,"tag":1034,"props":7108,"children":7109},{"style":1049},[7110],{"type":998,"value":6409},{"type":993,"tag":1034,"props":7112,"children":7113},{"style":1070},[7114],{"type":998,"value":7115}," \"interests\"",{"type":993,"tag":1034,"props":7117,"children":7118},{"style":1061},[7119],{"type":998,"value":1400},{"type":993,"tag":1034,"props":7121,"children":7122},{"class":1036,"line":611},[7123,7128,7132,7137],{"type":993,"tag":1034,"props":7124,"children":7125},{"style":1061},[7126],{"type":998,"value":7127},"                formatted_value ",{"type":993,"tag":1034,"props":7129,"children":7130},{"style":1049},[7131],{"type":998,"value":1126},{"type":993,"tag":1034,"props":7133,"children":7134},{"style":1070},[7135],{"type":998,"value":7136}," \", \"",{"type":993,"tag":1034,"props":7138,"children":7139},{"style":1061},[7140],{"type":998,"value":7141},".join(value)\n",{"type":993,"tag":1034,"props":7143,"children":7144},{"class":1036,"line":621},[7145,7149],{"type":993,"tag":1034,"props":7146,"children":7147},{"style":1049},[7148],{"type":998,"value":2030},{"type":993,"tag":1034,"props":7150,"children":7151},{"style":1061},[7152],{"type":998,"value":1400},{"type":993,"tag":1034,"props":7154,"children":7155},{"class":1036,"line":630},[7156,7160,7164],{"type":993,"tag":1034,"props":7157,"children":7158},{"style":1061},[7159],{"type":998,"value":7127},{"type":993,"tag":1034,"props":7161,"children":7162},{"style":1049},[7163],{"type":998,"value":1126},{"type":993,"tag":1034,"props":7165,"children":7166},{"style":1061},[7167],{"type":998,"value":3556},{"type":993,"tag":1034,"props":7169,"children":7170},{"class":1036,"line":639},[7171],{"type":993,"tag":1034,"props":7172,"children":7173},{"style":1061},[7174],{"type":998,"value":3117},{"type":993,"tag":1034,"props":7176,"children":7177},{"class":1036,"line":648},[7178,7182,7186,7190,7194,7198,7203,7207,7211,7215,7220,7224,7228],{"type":993,"tag":1034,"props":7179,"children":7180},{"style":1079},[7181],{"type":998,"value":1332},{"type":993,"tag":1034,"props":7183,"children":7184},{"style":1061},[7185],{"type":998,"value":1087},{"type":993,"tag":1034,"props":7187,"children":7188},{"style":1049},[7189],{"type":998,"value":1255},{"type":993,"tag":1034,"props":7191,"children":7192},{"style":1070},[7193],{"type":998,"value":1260},{"type":993,"tag":1034,"props":7195,"children":7196},{"style":1079},[7197],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7199,"children":7200},{"style":1061},[7201],{"type":998,"value":7202},"field.title()",{"type":993,"tag":1034,"props":7204,"children":7205},{"style":1079},[7206],{"type":998,"value":1285},{"type":993,"tag":1034,"props":7208,"children":7209},{"style":1070},[7210],{"type":998,"value":6164},{"type":993,"tag":1034,"props":7212,"children":7213},{"style":1079},[7214],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7216,"children":7217},{"style":1061},[7218],{"type":998,"value":7219},"formatted_value",{"type":993,"tag":1034,"props":7221,"children":7222},{"style":1079},[7223],{"type":998,"value":1285},{"type":993,"tag":1034,"props":7225,"children":7226},{"style":1070},[7227],{"type":998,"value":1260},{"type":993,"tag":1034,"props":7229,"children":7230},{"style":1061},[7231],{"type":998,"value":1097},{"type":993,"tag":1034,"props":7233,"children":7234},{"class":1036,"line":657},[7235],{"type":993,"tag":1034,"props":7236,"children":7237},{"style":1061},[7238],{"type":998,"value":1105},{"type":993,"tag":1034,"props":7240,"children":7241},{"class":1036,"line":666},[7242,7246,7251],{"type":993,"tag":1034,"props":7243,"children":7244},{"style":1049},[7245],{"type":998,"value":5766},{"type":993,"tag":1034,"props":7247,"children":7248},{"style":1055},[7249],{"type":998,"value":7250}," log_interaction",{"type":993,"tag":1034,"props":7252,"children":7253},{"style":1061},[7254],{"type":998,"value":7255},"(self, action, details):\n",{"type":993,"tag":1034,"props":7257,"children":7258},{"class":1036,"line":675},[7259],{"type":993,"tag":1034,"props":7260,"children":7261},{"style":1070},[7262],{"type":998,"value":7263},"        \"\"\"Log user interactions for analytics\"\"\"\n",{"type":993,"tag":1034,"props":7265,"children":7266},{"class":1036,"line":685},[7267,7272],{"type":993,"tag":1034,"props":7268,"children":7269},{"style":1049},[7270],{"type":998,"value":7271},"        import",{"type":993,"tag":1034,"props":7273,"children":7274},{"style":1061},[7275],{"type":998,"value":7276}," datetime\n",{"type":993,"tag":1034,"props":7278,"children":7279},{"class":1036,"line":694},[7280,7284],{"type":993,"tag":1034,"props":7281,"children":7282},{"style":1079},[7283],{"type":998,"value":5784},{"type":993,"tag":1034,"props":7285,"children":7286},{"style":1061},[7287],{"type":998,"value":7288},".conversation_log.append({\n",{"type":993,"tag":1034,"props":7290,"children":7291},{"class":1036,"line":703},[7292,7297],{"type":993,"tag":1034,"props":7293,"children":7294},{"style":1070},[7295],{"type":998,"value":7296},"            \"timestamp\"",{"type":993,"tag":1034,"props":7298,"children":7299},{"style":1061},[7300],{"type":998,"value":7301},": datetime.datetime.now().isoformat(),\n",{"type":993,"tag":1034,"props":7303,"children":7304},{"class":1036,"line":712},[7305,7310],{"type":993,"tag":1034,"props":7306,"children":7307},{"style":1070},[7308],{"type":998,"value":7309},"            \"action\"",{"type":993,"tag":1034,"props":7311,"children":7312},{"style":1061},[7313],{"type":998,"value":7314},": action,\n",{"type":993,"tag":1034,"props":7316,"children":7317},{"class":1036,"line":721},[7318,7323],{"type":993,"tag":1034,"props":7319,"children":7320},{"style":1070},[7321],{"type":998,"value":7322},"            \"details\"",{"type":993,"tag":1034,"props":7324,"children":7325},{"style":1061},[7326],{"type":998,"value":7327},": details\n",{"type":993,"tag":1034,"props":7329,"children":7330},{"class":1036,"line":730},[7331],{"type":993,"tag":1034,"props":7332,"children":7333},{"style":1061},[7334],{"type":998,"value":7335},"        })\n",{"type":993,"tag":1034,"props":7337,"children":7338},{"class":1036,"line":739},[7339],{"type":993,"tag":1034,"props":7340,"children":7341},{"style":1061},[7342],{"type":998,"value":1105},{"type":993,"tag":1034,"props":7344,"children":7345},{"class":1036,"line":749},[7346,7350,7355],{"type":993,"tag":1034,"props":7347,"children":7348},{"style":1049},[7349],{"type":998,"value":5766},{"type":993,"tag":1034,"props":7351,"children":7352},{"style":1055},[7353],{"type":998,"value":7354}," get_feedback",{"type":993,"tag":1034,"props":7356,"children":7357},{"style":1061},[7358],{"type":998,"value":5776},{"type":993,"tag":1034,"props":7360,"children":7361},{"class":1036,"line":758},[7362],{"type":993,"tag":1034,"props":7363,"children":7364},{"style":1070},[7365],{"type":998,"value":7366},"        \"\"\"Collect user feedback\"\"\"\n",{"type":993,"tag":1034,"props":7368,"children":7369},{"class":1036,"line":767},[7370,7374,7378,7382,7386,7391],{"type":993,"tag":1034,"props":7371,"children":7372},{"style":1079},[7373],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7375,"children":7376},{"style":1061},[7377],{"type":998,"value":1087},{"type":993,"tag":1034,"props":7379,"children":7380},{"style":1070},[7381],{"type":998,"value":1260},{"type":993,"tag":1034,"props":7383,"children":7384},{"style":1079},[7385],{"type":998,"value":2083},{"type":993,"tag":1034,"props":7387,"children":7388},{"style":1070},[7389],{"type":998,"value":7390},"💬 How was your experience?\"",{"type":993,"tag":1034,"props":7392,"children":7393},{"style":1061},[7394],{"type":998,"value":1097},{"type":993,"tag":1034,"props":7396,"children":7398},{"class":1036,"line":7397},84,[7399],{"type":993,"tag":1034,"props":7400,"children":7401},{"style":1061},[7402],{"type":998,"value":1301},{"type":993,"tag":1034,"props":7404,"children":7405},{"class":1036,"line":776},[7406,7411,7415,7419,7424,7428,7433,7437,7442,7446,7451],{"type":993,"tag":1034,"props":7407,"children":7408},{"style":1061},[7409],{"type":998,"value":7410},"        feedback_options ",{"type":993,"tag":1034,"props":7412,"children":7413},{"style":1049},[7414],{"type":998,"value":1126},{"type":993,"tag":1034,"props":7416,"children":7417},{"style":1061},[7418],{"type":998,"value":1131},{"type":993,"tag":1034,"props":7420,"children":7421},{"style":1070},[7422],{"type":998,"value":7423},"\"excellent\"",{"type":993,"tag":1034,"props":7425,"children":7426},{"style":1061},[7427],{"type":998,"value":1141},{"type":993,"tag":1034,"props":7429,"children":7430},{"style":1070},[7431],{"type":998,"value":7432},"\"good\"",{"type":993,"tag":1034,"props":7434,"children":7435},{"style":1061},[7436],{"type":998,"value":1141},{"type":993,"tag":1034,"props":7438,"children":7439},{"style":1070},[7440],{"type":998,"value":7441},"\"okay\"",{"type":993,"tag":1034,"props":7443,"children":7444},{"style":1061},[7445],{"type":998,"value":1141},{"type":993,"tag":1034,"props":7447,"children":7448},{"style":1070},[7449],{"type":998,"value":7450},"\"poor\"",{"type":993,"tag":1034,"props":7452,"children":7453},{"style":1061},[7454],{"type":998,"value":1160},{"type":993,"tag":1034,"props":7456,"children":7457},{"class":1036,"line":785},[7458],{"type":993,"tag":1034,"props":7459,"children":7460},{"style":1040},[7461],{"type":998,"value":7462},"        # Simulate feedback\n",{"type":993,"tag":1034,"props":7464,"children":7465},{"class":1036,"line":794},[7466,7471,7475],{"type":993,"tag":1034,"props":7467,"children":7468},{"style":1061},[7469],{"type":998,"value":7470},"        feedback ",{"type":993,"tag":1034,"props":7472,"children":7473},{"style":1049},[7474],{"type":998,"value":1126},{"type":993,"tag":1034,"props":7476,"children":7477},{"style":1070},[7478],{"type":998,"value":7479}," \"good\"\n",{"type":993,"tag":1034,"props":7481,"children":7482},{"class":1036,"line":803},[7483,7487,7491,7495,7500,7504,7509,7514,7518,7522,7526,7531,7535,7539],{"type":993,"tag":1034,"props":7484,"children":7485},{"style":1079},[7486],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7488,"children":7489},{"style":1061},[7490],{"type":998,"value":1087},{"type":993,"tag":1034,"props":7492,"children":7493},{"style":1049},[7494],{"type":998,"value":1255},{"type":993,"tag":1034,"props":7496,"children":7497},{"style":1070},[7498],{"type":998,"value":7499},"\"Rate your experience (",{"type":993,"tag":1034,"props":7501,"children":7502},{"style":1079},[7503],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7505,"children":7506},{"style":1070},[7507],{"type":998,"value":7508},"'/'",{"type":993,"tag":1034,"props":7510,"children":7511},{"style":1061},[7512],{"type":998,"value":7513},".join(feedback_options)",{"type":993,"tag":1034,"props":7515,"children":7516},{"style":1079},[7517],{"type":998,"value":1285},{"type":993,"tag":1034,"props":7519,"children":7520},{"style":1070},[7521],{"type":998,"value":5254},{"type":993,"tag":1034,"props":7523,"children":7524},{"style":1079},[7525],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7527,"children":7528},{"style":1061},[7529],{"type":998,"value":7530},"feedback",{"type":993,"tag":1034,"props":7532,"children":7533},{"style":1079},[7534],{"type":998,"value":1285},{"type":993,"tag":1034,"props":7536,"children":7537},{"style":1070},[7538],{"type":998,"value":1260},{"type":993,"tag":1034,"props":7540,"children":7541},{"style":1061},[7542],{"type":998,"value":1097},{"type":993,"tag":1034,"props":7544,"children":7545},{"class":1036,"line":812},[7546],{"type":993,"tag":1034,"props":7547,"children":7548},{"style":1061},[7549],{"type":998,"value":1301},{"type":993,"tag":1034,"props":7551,"children":7552},{"class":1036,"line":822},[7553,7557,7562,7566],{"type":993,"tag":1034,"props":7554,"children":7555},{"style":1049},[7556],{"type":998,"value":1309},{"type":993,"tag":1034,"props":7558,"children":7559},{"style":1061},[7560],{"type":998,"value":7561}," feedback ",{"type":993,"tag":1034,"props":7563,"children":7564},{"style":1049},[7565],{"type":998,"value":1228},{"type":993,"tag":1034,"props":7567,"children":7568},{"style":1061},[7569],{"type":998,"value":7570}," feedback_options:\n",{"type":993,"tag":1034,"props":7572,"children":7573},{"class":1036,"line":831},[7574,7579,7584,7589,7594,7598],{"type":993,"tag":1034,"props":7575,"children":7576},{"style":1079},[7577],{"type":998,"value":7578},"            self",{"type":993,"tag":1034,"props":7580,"children":7581},{"style":1061},[7582],{"type":998,"value":7583},".user_data[",{"type":993,"tag":1034,"props":7585,"children":7586},{"style":1070},[7587],{"type":998,"value":7588},"\"feedback\"",{"type":993,"tag":1034,"props":7590,"children":7591},{"style":1061},[7592],{"type":998,"value":7593},"] ",{"type":993,"tag":1034,"props":7595,"children":7596},{"style":1049},[7597],{"type":998,"value":1126},{"type":993,"tag":1034,"props":7599,"children":7600},{"style":1061},[7601],{"type":998,"value":7602}," feedback\n",{"type":993,"tag":1034,"props":7604,"children":7605},{"class":1036,"line":840},[7606,7610,7614,7618,7622,7626,7631,7635,7639,7643,7647],{"type":993,"tag":1034,"props":7607,"children":7608},{"style":1079},[7609],{"type":998,"value":7578},{"type":993,"tag":1034,"props":7611,"children":7612},{"style":1061},[7613],{"type":998,"value":5902},{"type":993,"tag":1034,"props":7615,"children":7616},{"style":1070},[7617],{"type":998,"value":7588},{"type":993,"tag":1034,"props":7619,"children":7620},{"style":1061},[7621],{"type":998,"value":1141},{"type":993,"tag":1034,"props":7623,"children":7624},{"style":1049},[7625],{"type":998,"value":1255},{"type":993,"tag":1034,"props":7627,"children":7628},{"style":1070},[7629],{"type":998,"value":7630},"\"User rated experience: ",{"type":993,"tag":1034,"props":7632,"children":7633},{"style":1079},[7634],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7636,"children":7637},{"style":1061},[7638],{"type":998,"value":7530},{"type":993,"tag":1034,"props":7640,"children":7641},{"style":1079},[7642],{"type":998,"value":1285},{"type":993,"tag":1034,"props":7644,"children":7645},{"style":1070},[7646],{"type":998,"value":1260},{"type":993,"tag":1034,"props":7648,"children":7649},{"style":1061},[7650],{"type":998,"value":1097},{"type":993,"tag":1034,"props":7652,"children":7653},{"class":1036,"line":849},[7654,7658,7662,7666,7671,7675,7679,7683,7688],{"type":993,"tag":1034,"props":7655,"children":7656},{"style":1079},[7657],{"type":998,"value":1332},{"type":993,"tag":1034,"props":7659,"children":7660},{"style":1061},[7661],{"type":998,"value":1087},{"type":993,"tag":1034,"props":7663,"children":7664},{"style":1049},[7665],{"type":998,"value":1255},{"type":993,"tag":1034,"props":7667,"children":7668},{"style":1070},[7669],{"type":998,"value":7670},"\"✅ Thank you for the ",{"type":993,"tag":1034,"props":7672,"children":7673},{"style":1079},[7674],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7676,"children":7677},{"style":1061},[7678],{"type":998,"value":7530},{"type":993,"tag":1034,"props":7680,"children":7681},{"style":1079},[7682],{"type":998,"value":1285},{"type":993,"tag":1034,"props":7684,"children":7685},{"style":1070},[7686],{"type":998,"value":7687}," rating!\"",{"type":993,"tag":1034,"props":7689,"children":7690},{"style":1061},[7691],{"type":998,"value":1097},{"type":993,"tag":1034,"props":7693,"children":7694},{"class":1036,"line":858},[7695],{"type":993,"tag":1034,"props":7696,"children":7697},{"style":1061},[7698],{"type":998,"value":1301},{"type":993,"tag":1034,"props":7700,"children":7701},{"class":1036,"line":868},[7702],{"type":993,"tag":1034,"props":7703,"children":7704},{"style":1040},[7705],{"type":998,"value":7706},"        # Optional comment\n",{"type":993,"tag":1034,"props":7708,"children":7709},{"class":1036,"line":877},[7710,7715,7719],{"type":993,"tag":1034,"props":7711,"children":7712},{"style":1061},[7713],{"type":998,"value":7714},"        comment ",{"type":993,"tag":1034,"props":7716,"children":7717},{"style":1049},[7718],{"type":998,"value":1126},{"type":993,"tag":1034,"props":7720,"children":7721},{"style":1070},[7722],{"type":998,"value":7723}," \"The app was easy to use and helpful!\"\n",{"type":993,"tag":1034,"props":7725,"children":7726},{"class":1036,"line":886},[7727,7731,7735,7739,7744,7748,7753,7757,7761],{"type":993,"tag":1034,"props":7728,"children":7729},{"style":1079},[7730],{"type":998,"value":1246},{"type":993,"tag":1034,"props":7732,"children":7733},{"style":1061},[7734],{"type":998,"value":1087},{"type":993,"tag":1034,"props":7736,"children":7737},{"style":1049},[7738],{"type":998,"value":1255},{"type":993,"tag":1034,"props":7740,"children":7741},{"style":1070},[7742],{"type":998,"value":7743},"\"Any additional comments? ",{"type":993,"tag":1034,"props":7745,"children":7746},{"style":1079},[7747],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7749,"children":7750},{"style":1061},[7751],{"type":998,"value":7752},"comment",{"type":993,"tag":1034,"props":7754,"children":7755},{"style":1079},[7756],{"type":998,"value":1285},{"type":993,"tag":1034,"props":7758,"children":7759},{"style":1070},[7760],{"type":998,"value":1260},{"type":993,"tag":1034,"props":7762,"children":7763},{"style":1061},[7764],{"type":998,"value":1097},{"type":993,"tag":1034,"props":7766,"children":7767},{"class":1036,"line":895},[7768,7772],{"type":993,"tag":1034,"props":7769,"children":7770},{"style":1049},[7771],{"type":998,"value":1309},{"type":993,"tag":1034,"props":7773,"children":7774},{"style":1061},[7775],{"type":998,"value":7776}," comment:\n",{"type":993,"tag":1034,"props":7778,"children":7779},{"class":1036,"line":905},[7780,7784,7788,7793,7797,7801],{"type":993,"tag":1034,"props":7781,"children":7782},{"style":1079},[7783],{"type":998,"value":7578},{"type":993,"tag":1034,"props":7785,"children":7786},{"style":1061},[7787],{"type":998,"value":7583},{"type":993,"tag":1034,"props":7789,"children":7790},{"style":1070},[7791],{"type":998,"value":7792},"\"comment\"",{"type":993,"tag":1034,"props":7794,"children":7795},{"style":1061},[7796],{"type":998,"value":7593},{"type":993,"tag":1034,"props":7798,"children":7799},{"style":1049},[7800],{"type":998,"value":1126},{"type":993,"tag":1034,"props":7802,"children":7803},{"style":1061},[7804],{"type":998,"value":7805}," comment\n",{"type":993,"tag":1034,"props":7807,"children":7808},{"class":1036,"line":914},[7809,7813,7817,7821,7825,7829,7834,7838,7842,7846,7850],{"type":993,"tag":1034,"props":7810,"children":7811},{"style":1079},[7812],{"type":998,"value":7578},{"type":993,"tag":1034,"props":7814,"children":7815},{"style":1061},[7816],{"type":998,"value":5902},{"type":993,"tag":1034,"props":7818,"children":7819},{"style":1070},[7820],{"type":998,"value":7792},{"type":993,"tag":1034,"props":7822,"children":7823},{"style":1061},[7824],{"type":998,"value":1141},{"type":993,"tag":1034,"props":7826,"children":7827},{"style":1049},[7828],{"type":998,"value":1255},{"type":993,"tag":1034,"props":7830,"children":7831},{"style":1070},[7832],{"type":998,"value":7833},"\"User comment: ",{"type":993,"tag":1034,"props":7835,"children":7836},{"style":1079},[7837],{"type":998,"value":1265},{"type":993,"tag":1034,"props":7839,"children":7840},{"style":1061},[7841],{"type":998,"value":7752},{"type":993,"tag":1034,"props":7843,"children":7844},{"style":1079},[7845],{"type":998,"value":1285},{"type":993,"tag":1034,"props":7847,"children":7848},{"style":1070},[7849],{"type":998,"value":1260},{"type":993,"tag":1034,"props":7851,"children":7852},{"style":1061},[7853],{"type":998,"value":1097},{"type":993,"tag":1034,"props":7855,"children":7856},{"class":1036,"line":923},[7857],{"type":993,"tag":1034,"props":7858,"children":7859},{"style":1061},[7860],{"type":998,"value":1105},{"type":993,"tag":1034,"props":7862,"children":7863},{"class":1036,"line":932},[7864,7868,7873],{"type":993,"tag":1034,"props":7865,"children":7866},{"style":1049},[7867],{"type":998,"value":5766},{"type":993,"tag":1034,"props":7869,"children":7870},{"style":1055},[7871],{"type":998,"value":7872}," run_app",{"type":993,"tag":1034,"props":7874,"children":7875},{"style":1061},[7876],{"type":998,"value":5776},{"type":993,"tag":1034,"props":7878,"children":7879},{"class":1036,"line":941},[7880],{"type":993,"tag":1034,"props":7881,"children":7882},{"style":1070},[7883],{"type":998,"value":7884},"        \"\"\"Main application flow\"\"\"\n",{"type":993,"tag":1034,"props":7886,"children":7887},{"class":1036,"line":949},[7888,7892],{"type":993,"tag":1034,"props":7889,"children":7890},{"style":1049},[7891],{"type":998,"value":1970},{"type":993,"tag":1034,"props":7893,"children":7894},{"style":1061},[7895],{"type":998,"value":1400},{"type":993,"tag":1034,"props":7897,"children":7898},{"class":1036,"line":957},[7899,7903],{"type":993,"tag":1034,"props":7900,"children":7901},{"style":1079},[7902],{"type":998,"value":7578},{"type":993,"tag":1034,"props":7904,"children":7905},{"style":1061},[7906],{"type":998,"value":7907},".greet_user()\n",{"type":993,"tag":1034,"props":7909,"children":7910},{"class":1036,"line":966},[7911,7915],{"type":993,"tag":1034,"props":7912,"children":7913},{"style":1079},[7914],{"type":998,"value":7578},{"type":993,"tag":1034,"props":7916,"children":7917},{"style":1061},[7918],{"type":998,"value":7919},".collect_user_info()\n",{"type":993,"tag":1034,"props":7921,"children":7922},{"class":1036,"line":975},[7923,7927],{"type":993,"tag":1034,"props":7924,"children":7925},{"style":1079},[7926],{"type":998,"value":7578},{"type":993,"tag":1034,"props":7928,"children":7929},{"style":1061},[7930],{"type":998,"value":7931},".show_summary()\n",{"type":993,"tag":1034,"props":7933,"children":7935},{"class":1036,"line":7934},108,[7936,7940],{"type":993,"tag":1034,"props":7937,"children":7938},{"style":1079},[7939],{"type":998,"value":7578},{"type":993,"tag":1034,"props":7941,"children":7942},{"style":1061},[7943],{"type":998,"value":7944},".get_feedback()\n",{"type":993,"tag":1034,"props":7946,"children":7948},{"class":1036,"line":7947},109,[7949],{"type":993,"tag":1034,"props":7950,"children":7951},{"style":1061},[7952],{"type":998,"value":3117},{"type":993,"tag":1034,"props":7954,"children":7956},{"class":1036,"line":7955},110,[7957,7961,7965,7969,7973,7978],{"type":993,"tag":1034,"props":7958,"children":7959},{"style":1079},[7960],{"type":998,"value":1332},{"type":993,"tag":1034,"props":7962,"children":7963},{"style":1061},[7964],{"type":998,"value":1087},{"type":993,"tag":1034,"props":7966,"children":7967},{"style":1070},[7968],{"type":998,"value":1260},{"type":993,"tag":1034,"props":7970,"children":7971},{"style":1079},[7972],{"type":998,"value":2083},{"type":993,"tag":1034,"props":7974,"children":7975},{"style":1070},[7976],{"type":998,"value":7977},"🎉 Thank you for using our app!\"",{"type":993,"tag":1034,"props":7979,"children":7980},{"style":1061},[7981],{"type":998,"value":1097},{"type":993,"tag":1034,"props":7983,"children":7985},{"class":1036,"line":7984},111,[7986,7990,7994,7999],{"type":993,"tag":1034,"props":7987,"children":7988},{"style":1079},[7989],{"type":998,"value":1332},{"type":993,"tag":1034,"props":7991,"children":7992},{"style":1061},[7993],{"type":998,"value":1087},{"type":993,"tag":1034,"props":7995,"children":7996},{"style":1070},[7997],{"type":998,"value":7998},"\"Your information has been saved securely.\"",{"type":993,"tag":1034,"props":8000,"children":8001},{"style":1061},[8002],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8004,"children":8006},{"class":1036,"line":8005},112,[8007],{"type":993,"tag":1034,"props":8008,"children":8009},{"style":1061},[8010],{"type":998,"value":3117},{"type":993,"tag":1034,"props":8012,"children":8014},{"class":1036,"line":8013},113,[8015,8019,8023],{"type":993,"tag":1034,"props":8016,"children":8017},{"style":1049},[8018],{"type":998,"value":2054},{"type":993,"tag":1034,"props":8020,"children":8021},{"style":1079},[8022],{"type":998,"value":2059},{"type":993,"tag":1034,"props":8024,"children":8025},{"style":1061},[8026],{"type":998,"value":1400},{"type":993,"tag":1034,"props":8028,"children":8030},{"class":1036,"line":8029},114,[8031,8035,8039,8043,8048,8053],{"type":993,"tag":1034,"props":8032,"children":8033},{"style":1079},[8034],{"type":998,"value":1332},{"type":993,"tag":1034,"props":8036,"children":8037},{"style":1061},[8038],{"type":998,"value":1087},{"type":993,"tag":1034,"props":8040,"children":8041},{"style":1070},[8042],{"type":998,"value":1260},{"type":993,"tag":1034,"props":8044,"children":8045},{"style":1079},[8046],{"type":998,"value":8047},"\\n\\n",{"type":993,"tag":1034,"props":8049,"children":8050},{"style":1070},[8051],{"type":998,"value":8052},"👋 Thanks for trying our app! Come back anytime.\"",{"type":993,"tag":1034,"props":8054,"children":8055},{"style":1061},[8056],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8058,"children":8060},{"class":1036,"line":8059},115,[8061,8065,8069,8074,8078,8083],{"type":993,"tag":1034,"props":8062,"children":8063},{"style":1079},[8064],{"type":998,"value":7578},{"type":993,"tag":1034,"props":8066,"children":8067},{"style":1061},[8068],{"type":998,"value":5902},{"type":993,"tag":1034,"props":8070,"children":8071},{"style":1070},[8072],{"type":998,"value":8073},"\"app_exit\"",{"type":993,"tag":1034,"props":8075,"children":8076},{"style":1061},[8077],{"type":998,"value":1141},{"type":993,"tag":1034,"props":8079,"children":8080},{"style":1070},[8081],{"type":998,"value":8082},"\"User cancelled application\"",{"type":993,"tag":1034,"props":8084,"children":8085},{"style":1061},[8086],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8088,"children":8090},{"class":1036,"line":8089},116,[8091,8095,8099,8103],{"type":993,"tag":1034,"props":8092,"children":8093},{"style":1049},[8094],{"type":998,"value":2054},{"type":993,"tag":1034,"props":8096,"children":8097},{"style":1079},[8098],{"type":998,"value":2117},{"type":993,"tag":1034,"props":8100,"children":8101},{"style":1049},[8102],{"type":998,"value":2122},{"type":993,"tag":1034,"props":8104,"children":8105},{"style":1061},[8106],{"type":998,"value":2127},{"type":993,"tag":1034,"props":8108,"children":8110},{"class":1036,"line":8109},117,[8111,8115,8119,8123,8127,8131,8136,8140,8144,8148,8152],{"type":993,"tag":1034,"props":8112,"children":8113},{"style":1079},[8114],{"type":998,"value":1332},{"type":993,"tag":1034,"props":8116,"children":8117},{"style":1061},[8118],{"type":998,"value":1087},{"type":993,"tag":1034,"props":8120,"children":8121},{"style":1049},[8122],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8124,"children":8125},{"style":1070},[8126],{"type":998,"value":1260},{"type":993,"tag":1034,"props":8128,"children":8129},{"style":1079},[8130],{"type":998,"value":2083},{"type":993,"tag":1034,"props":8132,"children":8133},{"style":1070},[8134],{"type":998,"value":8135},"❌ An unexpected error occurred: ",{"type":993,"tag":1034,"props":8137,"children":8138},{"style":1079},[8139],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8141,"children":8142},{"style":1061},[8143],{"type":998,"value":2156},{"type":993,"tag":1034,"props":8145,"children":8146},{"style":1079},[8147],{"type":998,"value":1285},{"type":993,"tag":1034,"props":8149,"children":8150},{"style":1070},[8151],{"type":998,"value":1260},{"type":993,"tag":1034,"props":8153,"children":8154},{"style":1061},[8155],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8157,"children":8159},{"class":1036,"line":8158},118,[8160,8164,8168,8173,8177,8181,8185,8189,8193,8197,8201],{"type":993,"tag":1034,"props":8161,"children":8162},{"style":1079},[8163],{"type":998,"value":7578},{"type":993,"tag":1034,"props":8165,"children":8166},{"style":1061},[8167],{"type":998,"value":5902},{"type":993,"tag":1034,"props":8169,"children":8170},{"style":1070},[8171],{"type":998,"value":8172},"\"error\"",{"type":993,"tag":1034,"props":8174,"children":8175},{"style":1061},[8176],{"type":998,"value":1141},{"type":993,"tag":1034,"props":8178,"children":8179},{"style":1049},[8180],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8182,"children":8183},{"style":1070},[8184],{"type":998,"value":2147},{"type":993,"tag":1034,"props":8186,"children":8187},{"style":1079},[8188],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8190,"children":8191},{"style":1061},[8192],{"type":998,"value":2156},{"type":993,"tag":1034,"props":8194,"children":8195},{"style":1079},[8196],{"type":998,"value":1285},{"type":993,"tag":1034,"props":8198,"children":8199},{"style":1070},[8200],{"type":998,"value":1260},{"type":993,"tag":1034,"props":8202,"children":8203},{"style":1061},[8204],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8206,"children":8208},{"class":1036,"line":8207},119,[8209],{"type":993,"tag":1034,"props":8210,"children":8211},{"emptyLinePlaceholder":13},[8212],{"type":998,"value":1589},{"type":993,"tag":1034,"props":8214,"children":8216},{"class":1036,"line":8215},120,[8217],{"type":993,"tag":1034,"props":8218,"children":8219},{"style":1040},[8220],{"type":998,"value":8221},"# Run the interactive application\n",{"type":993,"tag":1034,"props":8223,"children":8225},{"class":1036,"line":8224},121,[8226,8231,8235],{"type":993,"tag":1034,"props":8227,"children":8228},{"style":1061},[8229],{"type":998,"value":8230},"app ",{"type":993,"tag":1034,"props":8232,"children":8233},{"style":1049},[8234],{"type":998,"value":1126},{"type":993,"tag":1034,"props":8236,"children":8237},{"style":1061},[8238],{"type":998,"value":8239}," InteractiveApp()\n",{"type":993,"tag":1034,"props":8241,"children":8243},{"class":1036,"line":8242},122,[8244],{"type":993,"tag":1034,"props":8245,"children":8246},{"style":1061},[8247],{"type":998,"value":8248},"app.run_app()\n",{"type":993,"tag":1886,"props":8250,"children":8252},{"id":8251},"command-line-interface-patterns",[8253],{"type":998,"value":8254},"Command-Line Interface Patterns",{"type":993,"tag":1001,"props":8256,"children":8257},{},[8258],{"type":998,"value":8259},"Professional command-line interfaces provide powerful user interaction capabilities.",{"type":993,"tag":1021,"props":8261,"children":8262},{},[8263],{"type":993,"tag":1025,"props":8264,"children":8266},{"className":1027,"code":8265,"language":6,"meta":8,"style":8},"def create_cli_calculator():\n    \"\"\"Command-line calculator with user input\"\"\"\n    \n    print(\"🧮 Python Calculator\")\n    print(\"=\" * 20)\n    print(\"Operations: +, -, *, /, **, sqrt\")\n    print(\"Type 'quit' to exit\")\n    \n    # Simulate calculator session\n    commands = [\n        \"10 + 5\",\n        \"20 * 3\",\n        \"100 / 4\", \n        \"invalid command\",\n        \"sqrt 16\",\n        \"quit\"\n    ]\n    \n    for command in commands:\n        print(f\"\\n> {command}\")\n        \n        if command.lower() == 'quit':\n            print(\"👋 Thanks for using the calculator!\")\n            break\n        \n        try:\n            # Parse command\n            if command.startswith('sqrt'):\n                parts = command.split()\n                if len(parts) == 2:\n                    number = float(parts[1])\n                    result = number ** 0.5\n                    print(f\"✅ √{number} = {result}\")\n                else:\n                    print(\"❌ Usage: sqrt \u003Cnumber>\")\n            else:\n                # Basic arithmetic\n                if any(op in command for op in ['+', '-', '*', '/', '**']):\n                    # Safe evaluation (in real apps, use proper parsing)\n                    result = eval(command)\n                    print(f\"✅ {command} = {result}\")\n                else:\n                    print(\"❌ Invalid command. Use: number operator number\")\n                    \n        except ZeroDivisionError:\n            print(\"❌ Error: Cannot divide by zero\")\n        except ValueError:\n            print(\"❌ Error: Invalid number format\")\n        except Exception as e:\n            print(f\"❌ Error: {e}\")\n\ncreate_cli_calculator()\n",[8267],{"type":993,"tag":1007,"props":8268,"children":8269},{"__ignoreMap":8},[8270,8286,8294,8301,8321,8349,8369,8389,8396,8404,8420,8432,8444,8456,8468,8480,8488,8495,8502,8523,8572,8579,8604,8624,8631,8638,8649,8657,8678,8695,8723,8752,8779,8838,8849,8869,8880,8888,8975,8983,9004,9060,9071,9091,9098,9114,9134,9149,9169,9188,9227,9234],{"type":993,"tag":1034,"props":8271,"children":8272},{"class":1036,"line":12},[8273,8277,8282],{"type":993,"tag":1034,"props":8274,"children":8275},{"style":1049},[8276],{"type":998,"value":1052},{"type":993,"tag":1034,"props":8278,"children":8279},{"style":1055},[8280],{"type":998,"value":8281}," create_cli_calculator",{"type":993,"tag":1034,"props":8283,"children":8284},{"style":1061},[8285],{"type":998,"value":1064},{"type":993,"tag":1034,"props":8287,"children":8288},{"class":1036,"line":27},[8289],{"type":993,"tag":1034,"props":8290,"children":8291},{"style":1070},[8292],{"type":998,"value":8293},"    \"\"\"Command-line calculator with user input\"\"\"\n",{"type":993,"tag":1034,"props":8295,"children":8296},{"class":1036,"line":36},[8297],{"type":993,"tag":1034,"props":8298,"children":8299},{"style":1061},[8300],{"type":998,"value":1105},{"type":993,"tag":1034,"props":8302,"children":8303},{"class":1036,"line":45},[8304,8308,8312,8317],{"type":993,"tag":1034,"props":8305,"children":8306},{"style":1079},[8307],{"type":998,"value":1082},{"type":993,"tag":1034,"props":8309,"children":8310},{"style":1061},[8311],{"type":998,"value":1087},{"type":993,"tag":1034,"props":8313,"children":8314},{"style":1070},[8315],{"type":998,"value":8316},"\"🧮 Python Calculator\"",{"type":993,"tag":1034,"props":8318,"children":8319},{"style":1061},[8320],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8322,"children":8323},{"class":1036,"line":54},[8324,8328,8332,8336,8340,8345],{"type":993,"tag":1034,"props":8325,"children":8326},{"style":1079},[8327],{"type":998,"value":1082},{"type":993,"tag":1034,"props":8329,"children":8330},{"style":1061},[8331],{"type":998,"value":1087},{"type":993,"tag":1034,"props":8333,"children":8334},{"style":1070},[8335],{"type":998,"value":7048},{"type":993,"tag":1034,"props":8337,"children":8338},{"style":1049},[8339],{"type":998,"value":7053},{"type":993,"tag":1034,"props":8341,"children":8342},{"style":1079},[8343],{"type":998,"value":8344}," 20",{"type":993,"tag":1034,"props":8346,"children":8347},{"style":1061},[8348],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8350,"children":8351},{"class":1036,"line":63},[8352,8356,8360,8365],{"type":993,"tag":1034,"props":8353,"children":8354},{"style":1079},[8355],{"type":998,"value":1082},{"type":993,"tag":1034,"props":8357,"children":8358},{"style":1061},[8359],{"type":998,"value":1087},{"type":993,"tag":1034,"props":8361,"children":8362},{"style":1070},[8363],{"type":998,"value":8364},"\"Operations: +, -, *, /, **, sqrt\"",{"type":993,"tag":1034,"props":8366,"children":8367},{"style":1061},[8368],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8370,"children":8371},{"class":1036,"line":72},[8372,8376,8380,8385],{"type":993,"tag":1034,"props":8373,"children":8374},{"style":1079},[8375],{"type":998,"value":1082},{"type":993,"tag":1034,"props":8377,"children":8378},{"style":1061},[8379],{"type":998,"value":1087},{"type":993,"tag":1034,"props":8381,"children":8382},{"style":1070},[8383],{"type":998,"value":8384},"\"Type 'quit' to exit\"",{"type":993,"tag":1034,"props":8386,"children":8387},{"style":1061},[8388],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8390,"children":8391},{"class":1036,"line":81},[8392],{"type":993,"tag":1034,"props":8393,"children":8394},{"style":1061},[8395],{"type":998,"value":1105},{"type":993,"tag":1034,"props":8397,"children":8398},{"class":1036,"line":91},[8399],{"type":993,"tag":1034,"props":8400,"children":8401},{"style":1040},[8402],{"type":998,"value":8403},"    # Simulate calculator session\n",{"type":993,"tag":1034,"props":8405,"children":8406},{"class":1036,"line":100},[8407,8412,8416],{"type":993,"tag":1034,"props":8408,"children":8409},{"style":1061},[8410],{"type":998,"value":8411},"    commands ",{"type":993,"tag":1034,"props":8413,"children":8414},{"style":1049},[8415],{"type":998,"value":1126},{"type":993,"tag":1034,"props":8417,"children":8418},{"style":1061},[8419],{"type":998,"value":2554},{"type":993,"tag":1034,"props":8421,"children":8422},{"class":1036,"line":109},[8423,8428],{"type":993,"tag":1034,"props":8424,"children":8425},{"style":1070},[8426],{"type":998,"value":8427},"        \"10 + 5\"",{"type":993,"tag":1034,"props":8429,"children":8430},{"style":1061},[8431],{"type":998,"value":6173},{"type":993,"tag":1034,"props":8433,"children":8434},{"class":1036,"line":118},[8435,8440],{"type":993,"tag":1034,"props":8436,"children":8437},{"style":1070},[8438],{"type":998,"value":8439},"        \"20 * 3\"",{"type":993,"tag":1034,"props":8441,"children":8442},{"style":1061},[8443],{"type":998,"value":6173},{"type":993,"tag":1034,"props":8445,"children":8446},{"class":1036,"line":127},[8447,8452],{"type":993,"tag":1034,"props":8448,"children":8449},{"style":1070},[8450],{"type":998,"value":8451},"        \"100 / 4\"",{"type":993,"tag":1034,"props":8453,"children":8454},{"style":1061},[8455],{"type":998,"value":6214},{"type":993,"tag":1034,"props":8457,"children":8458},{"class":1036,"line":136},[8459,8464],{"type":993,"tag":1034,"props":8460,"children":8461},{"style":1070},[8462],{"type":998,"value":8463},"        \"invalid command\"",{"type":993,"tag":1034,"props":8465,"children":8466},{"style":1061},[8467],{"type":998,"value":6173},{"type":993,"tag":1034,"props":8469,"children":8470},{"class":1036,"line":146},[8471,8476],{"type":993,"tag":1034,"props":8472,"children":8473},{"style":1070},[8474],{"type":998,"value":8475},"        \"sqrt 16\"",{"type":993,"tag":1034,"props":8477,"children":8478},{"style":1061},[8479],{"type":998,"value":6173},{"type":993,"tag":1034,"props":8481,"children":8482},{"class":1036,"line":155},[8483],{"type":993,"tag":1034,"props":8484,"children":8485},{"style":1070},[8486],{"type":998,"value":8487},"        \"quit\"\n",{"type":993,"tag":1034,"props":8489,"children":8490},{"class":1036,"line":164},[8491],{"type":993,"tag":1034,"props":8492,"children":8493},{"style":1061},[8494],{"type":998,"value":2766},{"type":993,"tag":1034,"props":8496,"children":8497},{"class":1036,"line":173},[8498],{"type":993,"tag":1034,"props":8499,"children":8500},{"style":1061},[8501],{"type":998,"value":1105},{"type":993,"tag":1034,"props":8503,"children":8504},{"class":1036,"line":182},[8505,8509,8514,8518],{"type":993,"tag":1034,"props":8506,"children":8507},{"style":1049},[8508],{"type":998,"value":1218},{"type":993,"tag":1034,"props":8510,"children":8511},{"style":1061},[8512],{"type":998,"value":8513}," command ",{"type":993,"tag":1034,"props":8515,"children":8516},{"style":1049},[8517],{"type":998,"value":1228},{"type":993,"tag":1034,"props":8519,"children":8520},{"style":1061},[8521],{"type":998,"value":8522}," commands:\n",{"type":993,"tag":1034,"props":8524,"children":8525},{"class":1036,"line":191},[8526,8530,8534,8538,8542,8546,8551,8555,8560,8564,8568],{"type":993,"tag":1034,"props":8527,"children":8528},{"style":1079},[8529],{"type":998,"value":1246},{"type":993,"tag":1034,"props":8531,"children":8532},{"style":1061},[8533],{"type":998,"value":1087},{"type":993,"tag":1034,"props":8535,"children":8536},{"style":1049},[8537],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8539,"children":8540},{"style":1070},[8541],{"type":998,"value":1260},{"type":993,"tag":1034,"props":8543,"children":8544},{"style":1079},[8545],{"type":998,"value":2083},{"type":993,"tag":1034,"props":8547,"children":8548},{"style":1070},[8549],{"type":998,"value":8550},"> ",{"type":993,"tag":1034,"props":8552,"children":8553},{"style":1079},[8554],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8556,"children":8557},{"style":1061},[8558],{"type":998,"value":8559},"command",{"type":993,"tag":1034,"props":8561,"children":8562},{"style":1079},[8563],{"type":998,"value":1285},{"type":993,"tag":1034,"props":8565,"children":8566},{"style":1070},[8567],{"type":998,"value":1260},{"type":993,"tag":1034,"props":8569,"children":8570},{"style":1061},[8571],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8573,"children":8574},{"class":1036,"line":201},[8575],{"type":993,"tag":1034,"props":8576,"children":8577},{"style":1061},[8578],{"type":998,"value":1301},{"type":993,"tag":1034,"props":8580,"children":8581},{"class":1036,"line":210},[8582,8586,8591,8595,8600],{"type":993,"tag":1034,"props":8583,"children":8584},{"style":1049},[8585],{"type":998,"value":1309},{"type":993,"tag":1034,"props":8587,"children":8588},{"style":1061},[8589],{"type":998,"value":8590}," command.lower() ",{"type":993,"tag":1034,"props":8592,"children":8593},{"style":1049},[8594],{"type":998,"value":6409},{"type":993,"tag":1034,"props":8596,"children":8597},{"style":1070},[8598],{"type":998,"value":8599}," 'quit'",{"type":993,"tag":1034,"props":8601,"children":8602},{"style":1061},[8603],{"type":998,"value":1400},{"type":993,"tag":1034,"props":8605,"children":8606},{"class":1036,"line":219},[8607,8611,8615,8620],{"type":993,"tag":1034,"props":8608,"children":8609},{"style":1079},[8610],{"type":998,"value":1332},{"type":993,"tag":1034,"props":8612,"children":8613},{"style":1061},[8614],{"type":998,"value":1087},{"type":993,"tag":1034,"props":8616,"children":8617},{"style":1070},[8618],{"type":998,"value":8619},"\"👋 Thanks for using the calculator!\"",{"type":993,"tag":1034,"props":8621,"children":8622},{"style":1061},[8623],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8625,"children":8626},{"class":1036,"line":228},[8627],{"type":993,"tag":1034,"props":8628,"children":8629},{"style":1049},[8630],{"type":998,"value":4167},{"type":993,"tag":1034,"props":8632,"children":8633},{"class":1036,"line":238},[8634],{"type":993,"tag":1034,"props":8635,"children":8636},{"style":1061},[8637],{"type":998,"value":1301},{"type":993,"tag":1034,"props":8639,"children":8640},{"class":1036,"line":247},[8641,8645],{"type":993,"tag":1034,"props":8642,"children":8643},{"style":1049},[8644],{"type":998,"value":1970},{"type":993,"tag":1034,"props":8646,"children":8647},{"style":1061},[8648],{"type":998,"value":1400},{"type":993,"tag":1034,"props":8650,"children":8651},{"class":1036,"line":256},[8652],{"type":993,"tag":1034,"props":8653,"children":8654},{"style":1040},[8655],{"type":998,"value":8656},"            # Parse command\n",{"type":993,"tag":1034,"props":8658,"children":8659},{"class":1036,"line":265},[8660,8664,8669,8674],{"type":993,"tag":1034,"props":8661,"children":8662},{"style":1049},[8663],{"type":998,"value":2004},{"type":993,"tag":1034,"props":8665,"children":8666},{"style":1061},[8667],{"type":998,"value":8668}," command.startswith(",{"type":993,"tag":1034,"props":8670,"children":8671},{"style":1070},[8672],{"type":998,"value":8673},"'sqrt'",{"type":993,"tag":1034,"props":8675,"children":8676},{"style":1061},[8677],{"type":998,"value":1937},{"type":993,"tag":1034,"props":8679,"children":8680},{"class":1036,"line":274},[8681,8686,8690],{"type":993,"tag":1034,"props":8682,"children":8683},{"style":1061},[8684],{"type":998,"value":8685},"                parts ",{"type":993,"tag":1034,"props":8687,"children":8688},{"style":1049},[8689],{"type":998,"value":1126},{"type":993,"tag":1034,"props":8691,"children":8692},{"style":1061},[8693],{"type":998,"value":8694}," command.split()\n",{"type":993,"tag":1034,"props":8696,"children":8697},{"class":1036,"line":284},[8698,8702,8706,8711,8715,8719],{"type":993,"tag":1034,"props":8699,"children":8700},{"style":1049},[8701],{"type":998,"value":5322},{"type":993,"tag":1034,"props":8703,"children":8704},{"style":1079},[8705],{"type":998,"value":2213},{"type":993,"tag":1034,"props":8707,"children":8708},{"style":1061},[8709],{"type":998,"value":8710},"(parts) ",{"type":993,"tag":1034,"props":8712,"children":8713},{"style":1049},[8714],{"type":998,"value":6409},{"type":993,"tag":1034,"props":8716,"children":8717},{"style":1079},[8718],{"type":998,"value":2228},{"type":993,"tag":1034,"props":8720,"children":8721},{"style":1061},[8722],{"type":998,"value":1400},{"type":993,"tag":1034,"props":8724,"children":8725},{"class":1036,"line":293},[8726,8731,8735,8739,8744,8748],{"type":993,"tag":1034,"props":8727,"children":8728},{"style":1061},[8729],{"type":998,"value":8730},"                    number ",{"type":993,"tag":1034,"props":8732,"children":8733},{"style":1049},[8734],{"type":998,"value":1126},{"type":993,"tag":1034,"props":8736,"children":8737},{"style":1079},[8738],{"type":998,"value":3923},{"type":993,"tag":1034,"props":8740,"children":8741},{"style":1061},[8742],{"type":998,"value":8743},"(parts[",{"type":993,"tag":1034,"props":8745,"children":8746},{"style":1079},[8747],{"type":998,"value":5035},{"type":993,"tag":1034,"props":8749,"children":8750},{"style":1061},[8751],{"type":998,"value":5605},{"type":993,"tag":1034,"props":8753,"children":8754},{"class":1036,"line":302},[8755,8760,8764,8769,8774],{"type":993,"tag":1034,"props":8756,"children":8757},{"style":1061},[8758],{"type":998,"value":8759},"                    result ",{"type":993,"tag":1034,"props":8761,"children":8762},{"style":1049},[8763],{"type":998,"value":1126},{"type":993,"tag":1034,"props":8765,"children":8766},{"style":1061},[8767],{"type":998,"value":8768}," number ",{"type":993,"tag":1034,"props":8770,"children":8771},{"style":1049},[8772],{"type":998,"value":8773},"**",{"type":993,"tag":1034,"props":8775,"children":8776},{"style":1079},[8777],{"type":998,"value":8778}," 0.5\n",{"type":993,"tag":1034,"props":8780,"children":8781},{"class":1036,"line":311},[8782,8786,8790,8794,8799,8803,8808,8812,8817,8821,8826,8830,8834],{"type":993,"tag":1034,"props":8783,"children":8784},{"style":1079},[8785],{"type":998,"value":3509},{"type":993,"tag":1034,"props":8787,"children":8788},{"style":1061},[8789],{"type":998,"value":1087},{"type":993,"tag":1034,"props":8791,"children":8792},{"style":1049},[8793],{"type":998,"value":1255},{"type":993,"tag":1034,"props":8795,"children":8796},{"style":1070},[8797],{"type":998,"value":8798},"\"✅ √",{"type":993,"tag":1034,"props":8800,"children":8801},{"style":1079},[8802],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8804,"children":8805},{"style":1061},[8806],{"type":998,"value":8807},"number",{"type":993,"tag":1034,"props":8809,"children":8810},{"style":1079},[8811],{"type":998,"value":1285},{"type":993,"tag":1034,"props":8813,"children":8814},{"style":1070},[8815],{"type":998,"value":8816}," = ",{"type":993,"tag":1034,"props":8818,"children":8819},{"style":1079},[8820],{"type":998,"value":1265},{"type":993,"tag":1034,"props":8822,"children":8823},{"style":1061},[8824],{"type":998,"value":8825},"result",{"type":993,"tag":1034,"props":8827,"children":8828},{"style":1079},[8829],{"type":998,"value":1285},{"type":993,"tag":1034,"props":8831,"children":8832},{"style":1070},[8833],{"type":998,"value":1260},{"type":993,"tag":1034,"props":8835,"children":8836},{"style":1061},[8837],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8839,"children":8840},{"class":1036,"line":320},[8841,8845],{"type":993,"tag":1034,"props":8842,"children":8843},{"style":1049},[8844],{"type":998,"value":5439},{"type":993,"tag":1034,"props":8846,"children":8847},{"style":1061},[8848],{"type":998,"value":1400},{"type":993,"tag":1034,"props":8850,"children":8851},{"class":1036,"line":329},[8852,8856,8860,8865],{"type":993,"tag":1034,"props":8853,"children":8854},{"style":1079},[8855],{"type":998,"value":3509},{"type":993,"tag":1034,"props":8857,"children":8858},{"style":1061},[8859],{"type":998,"value":1087},{"type":993,"tag":1034,"props":8861,"children":8862},{"style":1070},[8863],{"type":998,"value":8864},"\"❌ Usage: sqrt \u003Cnumber>\"",{"type":993,"tag":1034,"props":8866,"children":8867},{"style":1061},[8868],{"type":998,"value":1097},{"type":993,"tag":1034,"props":8870,"children":8871},{"class":1036,"line":338},[8872,8876],{"type":993,"tag":1034,"props":8873,"children":8874},{"style":1049},[8875],{"type":998,"value":2030},{"type":993,"tag":1034,"props":8877,"children":8878},{"style":1061},[8879],{"type":998,"value":1400},{"type":993,"tag":1034,"props":8881,"children":8882},{"class":1036,"line":347},[8883],{"type":993,"tag":1034,"props":8884,"children":8885},{"style":1040},[8886],{"type":998,"value":8887},"                # Basic arithmetic\n",{"type":993,"tag":1034,"props":8889,"children":8890},{"class":1036,"line":356},[8891,8895,8900,8905,8909,8913,8917,8922,8926,8930,8935,8939,8944,8948,8953,8957,8961,8965,8970],{"type":993,"tag":1034,"props":8892,"children":8893},{"style":1049},[8894],{"type":998,"value":5322},{"type":993,"tag":1034,"props":8896,"children":8897},{"style":1079},[8898],{"type":998,"value":8899}," any",{"type":993,"tag":1034,"props":8901,"children":8902},{"style":1061},[8903],{"type":998,"value":8904},"(op ",{"type":993,"tag":1034,"props":8906,"children":8907},{"style":1049},[8908],{"type":998,"value":1228},{"type":993,"tag":1034,"props":8910,"children":8911},{"style":1061},[8912],{"type":998,"value":8513},{"type":993,"tag":1034,"props":8914,"children":8915},{"style":1049},[8916],{"type":998,"value":4453},{"type":993,"tag":1034,"props":8918,"children":8919},{"style":1061},[8920],{"type":998,"value":8921}," op ",{"type":993,"tag":1034,"props":8923,"children":8924},{"style":1049},[8925],{"type":998,"value":1228},{"type":993,"tag":1034,"props":8927,"children":8928},{"style":1061},[8929],{"type":998,"value":1131},{"type":993,"tag":1034,"props":8931,"children":8932},{"style":1070},[8933],{"type":998,"value":8934},"'+'",{"type":993,"tag":1034,"props":8936,"children":8937},{"style":1061},[8938],{"type":998,"value":1141},{"type":993,"tag":1034,"props":8940,"children":8941},{"style":1070},[8942],{"type":998,"value":8943},"'-'",{"type":993,"tag":1034,"props":8945,"children":8946},{"style":1061},[8947],{"type":998,"value":1141},{"type":993,"tag":1034,"props":8949,"children":8950},{"style":1070},[8951],{"type":998,"value":8952},"'*'",{"type":993,"tag":1034,"props":8954,"children":8955},{"style":1061},[8956],{"type":998,"value":1141},{"type":993,"tag":1034,"props":8958,"children":8959},{"style":1070},[8960],{"type":998,"value":7508},{"type":993,"tag":1034,"props":8962,"children":8963},{"style":1061},[8964],{"type":998,"value":1141},{"type":993,"tag":1034,"props":8966,"children":8967},{"style":1070},[8968],{"type":998,"value":8969},"'**'",{"type":993,"tag":1034,"props":8971,"children":8972},{"style":1061},[8973],{"type":998,"value":8974},"]):\n",{"type":993,"tag":1034,"props":8976,"children":8977},{"class":1036,"line":365},[8978],{"type":993,"tag":1034,"props":8979,"children":8980},{"style":1040},[8981],{"type":998,"value":8982},"                    # Safe evaluation (in real apps, use proper parsing)\n",{"type":993,"tag":1034,"props":8984,"children":8985},{"class":1036,"line":374},[8986,8990,8994,8999],{"type":993,"tag":1034,"props":8987,"children":8988},{"style":1061},[8989],{"type":998,"value":8759},{"type":993,"tag":1034,"props":8991,"children":8992},{"style":1049},[8993],{"type":998,"value":1126},{"type":993,"tag":1034,"props":8995,"children":8996},{"style":1079},[8997],{"type":998,"value":8998}," eval",{"type":993,"tag":1034,"props":9000,"children":9001},{"style":1061},[9002],{"type":998,"value":9003},"(command)\n",{"type":993,"tag":1034,"props":9005,"children":9006},{"class":1036,"line":384},[9007,9011,9015,9019,9024,9028,9032,9036,9040,9044,9048,9052,9056],{"type":993,"tag":1034,"props":9008,"children":9009},{"style":1079},[9010],{"type":998,"value":3509},{"type":993,"tag":1034,"props":9012,"children":9013},{"style":1061},[9014],{"type":998,"value":1087},{"type":993,"tag":1034,"props":9016,"children":9017},{"style":1049},[9018],{"type":998,"value":1255},{"type":993,"tag":1034,"props":9020,"children":9021},{"style":1070},[9022],{"type":998,"value":9023},"\"✅ ",{"type":993,"tag":1034,"props":9025,"children":9026},{"style":1079},[9027],{"type":998,"value":1265},{"type":993,"tag":1034,"props":9029,"children":9030},{"style":1061},[9031],{"type":998,"value":8559},{"type":993,"tag":1034,"props":9033,"children":9034},{"style":1079},[9035],{"type":998,"value":1285},{"type":993,"tag":1034,"props":9037,"children":9038},{"style":1070},[9039],{"type":998,"value":8816},{"type":993,"tag":1034,"props":9041,"children":9042},{"style":1079},[9043],{"type":998,"value":1265},{"type":993,"tag":1034,"props":9045,"children":9046},{"style":1061},[9047],{"type":998,"value":8825},{"type":993,"tag":1034,"props":9049,"children":9050},{"style":1079},[9051],{"type":998,"value":1285},{"type":993,"tag":1034,"props":9053,"children":9054},{"style":1070},[9055],{"type":998,"value":1260},{"type":993,"tag":1034,"props":9057,"children":9058},{"style":1061},[9059],{"type":998,"value":1097},{"type":993,"tag":1034,"props":9061,"children":9062},{"class":1036,"line":393},[9063,9067],{"type":993,"tag":1034,"props":9064,"children":9065},{"style":1049},[9066],{"type":998,"value":5439},{"type":993,"tag":1034,"props":9068,"children":9069},{"style":1061},[9070],{"type":998,"value":1400},{"type":993,"tag":1034,"props":9072,"children":9073},{"class":1036,"line":402},[9074,9078,9082,9087],{"type":993,"tag":1034,"props":9075,"children":9076},{"style":1079},[9077],{"type":998,"value":3509},{"type":993,"tag":1034,"props":9079,"children":9080},{"style":1061},[9081],{"type":998,"value":1087},{"type":993,"tag":1034,"props":9083,"children":9084},{"style":1070},[9085],{"type":998,"value":9086},"\"❌ Invalid command. Use: number operator number\"",{"type":993,"tag":1034,"props":9088,"children":9089},{"style":1061},[9090],{"type":998,"value":1097},{"type":993,"tag":1034,"props":9092,"children":9093},{"class":1036,"line":411},[9094],{"type":993,"tag":1034,"props":9095,"children":9096},{"style":1061},[9097],{"type":998,"value":3302},{"type":993,"tag":1034,"props":9099,"children":9100},{"class":1036,"line":420},[9101,9105,9110],{"type":993,"tag":1034,"props":9102,"children":9103},{"style":1049},[9104],{"type":998,"value":2054},{"type":993,"tag":1034,"props":9106,"children":9107},{"style":1079},[9108],{"type":998,"value":9109}," ZeroDivisionError",{"type":993,"tag":1034,"props":9111,"children":9112},{"style":1061},[9113],{"type":998,"value":1400},{"type":993,"tag":1034,"props":9115,"children":9116},{"class":1036,"line":429},[9117,9121,9125,9130],{"type":993,"tag":1034,"props":9118,"children":9119},{"style":1079},[9120],{"type":998,"value":1332},{"type":993,"tag":1034,"props":9122,"children":9123},{"style":1061},[9124],{"type":998,"value":1087},{"type":993,"tag":1034,"props":9126,"children":9127},{"style":1070},[9128],{"type":998,"value":9129},"\"❌ Error: Cannot divide by zero\"",{"type":993,"tag":1034,"props":9131,"children":9132},{"style":1061},[9133],{"type":998,"value":1097},{"type":993,"tag":1034,"props":9135,"children":9136},{"class":1036,"line":438},[9137,9141,9145],{"type":993,"tag":1034,"props":9138,"children":9139},{"style":1049},[9140],{"type":998,"value":2054},{"type":993,"tag":1034,"props":9142,"children":9143},{"style":1079},[9144],{"type":998,"value":1484},{"type":993,"tag":1034,"props":9146,"children":9147},{"style":1061},[9148],{"type":998,"value":1400},{"type":993,"tag":1034,"props":9150,"children":9151},{"class":1036,"line":447},[9152,9156,9160,9165],{"type":993,"tag":1034,"props":9153,"children":9154},{"style":1079},[9155],{"type":998,"value":1332},{"type":993,"tag":1034,"props":9157,"children":9158},{"style":1061},[9159],{"type":998,"value":1087},{"type":993,"tag":1034,"props":9161,"children":9162},{"style":1070},[9163],{"type":998,"value":9164},"\"❌ Error: Invalid number format\"",{"type":993,"tag":1034,"props":9166,"children":9167},{"style":1061},[9168],{"type":998,"value":1097},{"type":993,"tag":1034,"props":9170,"children":9171},{"class":1036,"line":457},[9172,9176,9180,9184],{"type":993,"tag":1034,"props":9173,"children":9174},{"style":1049},[9175],{"type":998,"value":2054},{"type":993,"tag":1034,"props":9177,"children":9178},{"style":1079},[9179],{"type":998,"value":2117},{"type":993,"tag":1034,"props":9181,"children":9182},{"style":1049},[9183],{"type":998,"value":2122},{"type":993,"tag":1034,"props":9185,"children":9186},{"style":1061},[9187],{"type":998,"value":2127},{"type":993,"tag":1034,"props":9189,"children":9190},{"class":1036,"line":466},[9191,9195,9199,9203,9207,9211,9215,9219,9223],{"type":993,"tag":1034,"props":9192,"children":9193},{"style":1079},[9194],{"type":998,"value":1332},{"type":993,"tag":1034,"props":9196,"children":9197},{"style":1061},[9198],{"type":998,"value":1087},{"type":993,"tag":1034,"props":9200,"children":9201},{"style":1049},[9202],{"type":998,"value":1255},{"type":993,"tag":1034,"props":9204,"children":9205},{"style":1070},[9206],{"type":998,"value":6904},{"type":993,"tag":1034,"props":9208,"children":9209},{"style":1079},[9210],{"type":998,"value":1265},{"type":993,"tag":1034,"props":9212,"children":9213},{"style":1061},[9214],{"type":998,"value":2156},{"type":993,"tag":1034,"props":9216,"children":9217},{"style":1079},[9218],{"type":998,"value":1285},{"type":993,"tag":1034,"props":9220,"children":9221},{"style":1070},[9222],{"type":998,"value":1260},{"type":993,"tag":1034,"props":9224,"children":9225},{"style":1061},[9226],{"type":998,"value":1097},{"type":993,"tag":1034,"props":9228,"children":9229},{"class":1036,"line":475},[9230],{"type":993,"tag":1034,"props":9231,"children":9232},{"emptyLinePlaceholder":13},[9233],{"type":998,"value":1589},{"type":993,"tag":1034,"props":9235,"children":9236},{"class":1036,"line":484},[9237],{"type":993,"tag":1034,"props":9238,"children":9239},{"style":1061},[9240],{"type":998,"value":9241},"create_cli_calculator()\n",{"type":993,"tag":1599,"props":9243,"children":9245},{"id":9244},"best-practices-and-patterns",[9246],{"type":998,"value":9247},"🌟 Best Practices and Patterns",{"type":993,"tag":1886,"props":9249,"children":9251},{"id":9250},"input-sanitization-and-security",[9252],{"type":998,"value":9253},"Input Sanitization and Security",{"type":993,"tag":1001,"props":9255,"children":9256},{},[9257],{"type":998,"value":9258},"Proper input handling prevents security vulnerabilities and data corruption.",{"type":993,"tag":1021,"props":9260,"children":9261},{},[9262],{"type":993,"tag":1025,"props":9263,"children":9265},{"className":1027,"code":9264,"language":6,"meta":8,"style":8},"import re\n\ndef sanitize_input(user_input, input_type=\"text\"):\n    \"\"\"Sanitize user input for security and data integrity\"\"\"\n    \n    if not isinstance(user_input, str):\n        user_input = str(user_input)\n    \n    # Basic sanitization\n    sanitized = user_input.strip()\n    \n    if input_type == \"text\":\n        # Remove potentially dangerous characters\n        sanitized = re.sub(r'[\u003C>\\'\\\"&]', '', sanitized)\n        # Limit length\n        sanitized = sanitized[:1000]\n    \n    elif input_type == \"number\":\n        # Allow only digits, decimal point, and minus sign\n        sanitized = re.sub(r'[^0-9.-]', '', sanitized)\n    \n    elif input_type == \"email\":\n        # Basic email character filtering\n        sanitized = re.sub(r'[^a-zA-Z0-9@._-]', '', sanitized)\n        sanitized = sanitized.lower()\n    \n    elif input_type == \"filename\":\n        # Safe filename characters only\n        sanitized = re.sub(r'[^a-zA-Z0-9._-]', '_', sanitized)\n        sanitized = sanitized[:255]  # Filename length limit\n    \n    return sanitized\n\ndef demonstrate_input_sanitization():\n    \"\"\"Show input sanitization in action\"\"\"\n    \n    test_inputs = [\n        (\"Alice\u003Cscript>alert('xss')\u003C/script>\", \"text\"),\n        (\"user@example.com\", \"email\"),\n        (\"invalid@\u003Cscript>\", \"email\"),\n        (\"123.45abc\", \"number\"),\n        (\"my file name!@#.txt\", \"filename\")\n    ]\n    \n    print(\"=== Input Sanitization Demo ===\")\n    \n    for original, input_type in test_inputs:\n        sanitized = sanitize_input(original, input_type)\n        print(f\"Type: {input_type}\")\n        print(f\"Original:  '{original}'\")\n        print(f\"Sanitized: '{sanitized}'\")\n        print()\n\ndemonstrate_input_sanitization()\n",[9266],{"type":993,"tag":1007,"props":9267,"children":9268},{"__ignoreMap":8},[9269,9282,9289,9319,9327,9334,9363,9384,9391,9399,9416,9423,9448,9456,9517,9525,9550,9557,9582,9590,9644,9651,9674,9682,9734,9750,9757,9781,9789,9842,9872,9879,9891,9898,9914,9922,9929,9945,9969,9993,10017,10042,10067,10074,10081,10101,10108,10128,10144,10185,10227,10268,10279,10286],{"type":993,"tag":1034,"props":9270,"children":9271},{"class":1036,"line":12},[9272,9277],{"type":993,"tag":1034,"props":9273,"children":9274},{"style":1049},[9275],{"type":998,"value":9276},"import",{"type":993,"tag":1034,"props":9278,"children":9279},{"style":1061},[9280],{"type":998,"value":9281}," re\n",{"type":993,"tag":1034,"props":9283,"children":9284},{"class":1036,"line":27},[9285],{"type":993,"tag":1034,"props":9286,"children":9287},{"emptyLinePlaceholder":13},[9288],{"type":998,"value":1589},{"type":993,"tag":1034,"props":9290,"children":9291},{"class":1036,"line":36},[9292,9296,9301,9306,9310,9315],{"type":993,"tag":1034,"props":9293,"children":9294},{"style":1049},[9295],{"type":998,"value":1052},{"type":993,"tag":1034,"props":9297,"children":9298},{"style":1055},[9299],{"type":998,"value":9300}," sanitize_input",{"type":993,"tag":1034,"props":9302,"children":9303},{"style":1061},[9304],{"type":998,"value":9305},"(user_input, input_type",{"type":993,"tag":1034,"props":9307,"children":9308},{"style":1049},[9309],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9311,"children":9312},{"style":1070},[9313],{"type":998,"value":9314},"\"text\"",{"type":993,"tag":1034,"props":9316,"children":9317},{"style":1061},[9318],{"type":998,"value":1937},{"type":993,"tag":1034,"props":9320,"children":9321},{"class":1036,"line":45},[9322],{"type":993,"tag":1034,"props":9323,"children":9324},{"style":1070},[9325],{"type":998,"value":9326},"    \"\"\"Sanitize user input for security and data integrity\"\"\"\n",{"type":993,"tag":1034,"props":9328,"children":9329},{"class":1036,"line":54},[9330],{"type":993,"tag":1034,"props":9331,"children":9332},{"style":1061},[9333],{"type":998,"value":1105},{"type":993,"tag":1034,"props":9335,"children":9336},{"class":1036,"line":63},[9337,9341,9345,9350,9355,9359],{"type":993,"tag":1034,"props":9338,"children":9339},{"style":1049},[9340],{"type":998,"value":4422},{"type":993,"tag":1034,"props":9342,"children":9343},{"style":1049},[9344],{"type":998,"value":2238},{"type":993,"tag":1034,"props":9346,"children":9347},{"style":1079},[9348],{"type":998,"value":9349}," isinstance",{"type":993,"tag":1034,"props":9351,"children":9352},{"style":1061},[9353],{"type":998,"value":9354},"(user_input, ",{"type":993,"tag":1034,"props":9356,"children":9357},{"style":1079},[9358],{"type":998,"value":6006},{"type":993,"tag":1034,"props":9360,"children":9361},{"style":1061},[9362],{"type":998,"value":1937},{"type":993,"tag":1034,"props":9364,"children":9365},{"class":1036,"line":72},[9366,9371,9375,9380],{"type":993,"tag":1034,"props":9367,"children":9368},{"style":1061},[9369],{"type":998,"value":9370},"        user_input ",{"type":993,"tag":1034,"props":9372,"children":9373},{"style":1049},[9374],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9376,"children":9377},{"style":1079},[9378],{"type":998,"value":9379}," str",{"type":993,"tag":1034,"props":9381,"children":9382},{"style":1061},[9383],{"type":998,"value":1422},{"type":993,"tag":1034,"props":9385,"children":9386},{"class":1036,"line":81},[9387],{"type":993,"tag":1034,"props":9388,"children":9389},{"style":1061},[9390],{"type":998,"value":1105},{"type":993,"tag":1034,"props":9392,"children":9393},{"class":1036,"line":91},[9394],{"type":993,"tag":1034,"props":9395,"children":9396},{"style":1040},[9397],{"type":998,"value":9398},"    # Basic sanitization\n",{"type":993,"tag":1034,"props":9400,"children":9401},{"class":1036,"line":100},[9402,9407,9411],{"type":993,"tag":1034,"props":9403,"children":9404},{"style":1061},[9405],{"type":998,"value":9406},"    sanitized ",{"type":993,"tag":1034,"props":9408,"children":9409},{"style":1049},[9410],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9412,"children":9413},{"style":1061},[9414],{"type":998,"value":9415}," user_input.strip()\n",{"type":993,"tag":1034,"props":9417,"children":9418},{"class":1036,"line":109},[9419],{"type":993,"tag":1034,"props":9420,"children":9421},{"style":1061},[9422],{"type":998,"value":1105},{"type":993,"tag":1034,"props":9424,"children":9425},{"class":1036,"line":118},[9426,9430,9435,9439,9444],{"type":993,"tag":1034,"props":9427,"children":9428},{"style":1049},[9429],{"type":998,"value":4422},{"type":993,"tag":1034,"props":9431,"children":9432},{"style":1061},[9433],{"type":998,"value":9434}," input_type ",{"type":993,"tag":1034,"props":9436,"children":9437},{"style":1049},[9438],{"type":998,"value":6409},{"type":993,"tag":1034,"props":9440,"children":9441},{"style":1070},[9442],{"type":998,"value":9443}," \"text\"",{"type":993,"tag":1034,"props":9445,"children":9446},{"style":1061},[9447],{"type":998,"value":1400},{"type":993,"tag":1034,"props":9449,"children":9450},{"class":1036,"line":127},[9451],{"type":993,"tag":1034,"props":9452,"children":9453},{"style":1040},[9454],{"type":998,"value":9455},"        # Remove potentially dangerous characters\n",{"type":993,"tag":1034,"props":9457,"children":9458},{"class":1036,"line":136},[9459,9464,9468,9473,9478,9483,9488,9494,9499,9503,9507,9512],{"type":993,"tag":1034,"props":9460,"children":9461},{"style":1061},[9462],{"type":998,"value":9463},"        sanitized ",{"type":993,"tag":1034,"props":9465,"children":9466},{"style":1049},[9467],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9469,"children":9470},{"style":1061},[9471],{"type":998,"value":9472}," re.sub(",{"type":993,"tag":1034,"props":9474,"children":9475},{"style":1049},[9476],{"type":998,"value":9477},"r",{"type":993,"tag":1034,"props":9479,"children":9480},{"style":1070},[9481],{"type":998,"value":9482},"'",{"type":993,"tag":1034,"props":9484,"children":9485},{"style":1079},[9486],{"type":998,"value":9487},"[\u003C>",{"type":993,"tag":1034,"props":9489,"children":9491},{"style":9490},"--shiki-default:#22863A;--shiki-default-font-weight:bold;--shiki-app-dark-mode:#85E89D;--shiki-app-dark-mode-font-weight:bold",[9492],{"type":998,"value":9493},"\\'\\\"",{"type":993,"tag":1034,"props":9495,"children":9496},{"style":1079},[9497],{"type":998,"value":9498},"&]",{"type":993,"tag":1034,"props":9500,"children":9501},{"style":1070},[9502],{"type":998,"value":9482},{"type":993,"tag":1034,"props":9504,"children":9505},{"style":1061},[9506],{"type":998,"value":1141},{"type":993,"tag":1034,"props":9508,"children":9509},{"style":1070},[9510],{"type":998,"value":9511},"''",{"type":993,"tag":1034,"props":9513,"children":9514},{"style":1061},[9515],{"type":998,"value":9516},", sanitized)\n",{"type":993,"tag":1034,"props":9518,"children":9519},{"class":1036,"line":146},[9520],{"type":993,"tag":1034,"props":9521,"children":9522},{"style":1040},[9523],{"type":998,"value":9524},"        # Limit length\n",{"type":993,"tag":1034,"props":9526,"children":9527},{"class":1036,"line":155},[9528,9532,9536,9541,9546],{"type":993,"tag":1034,"props":9529,"children":9530},{"style":1061},[9531],{"type":998,"value":9463},{"type":993,"tag":1034,"props":9533,"children":9534},{"style":1049},[9535],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9537,"children":9538},{"style":1061},[9539],{"type":998,"value":9540}," sanitized[:",{"type":993,"tag":1034,"props":9542,"children":9543},{"style":1079},[9544],{"type":998,"value":9545},"1000",{"type":993,"tag":1034,"props":9547,"children":9548},{"style":1061},[9549],{"type":998,"value":1160},{"type":993,"tag":1034,"props":9551,"children":9552},{"class":1036,"line":164},[9553],{"type":993,"tag":1034,"props":9554,"children":9555},{"style":1061},[9556],{"type":998,"value":1105},{"type":993,"tag":1034,"props":9558,"children":9559},{"class":1036,"line":173},[9560,9565,9569,9573,9578],{"type":993,"tag":1034,"props":9561,"children":9562},{"style":1049},[9563],{"type":998,"value":9564},"    elif",{"type":993,"tag":1034,"props":9566,"children":9567},{"style":1061},[9568],{"type":998,"value":9434},{"type":993,"tag":1034,"props":9570,"children":9571},{"style":1049},[9572],{"type":998,"value":6409},{"type":993,"tag":1034,"props":9574,"children":9575},{"style":1070},[9576],{"type":998,"value":9577}," \"number\"",{"type":993,"tag":1034,"props":9579,"children":9580},{"style":1061},[9581],{"type":998,"value":1400},{"type":993,"tag":1034,"props":9583,"children":9584},{"class":1036,"line":182},[9585],{"type":993,"tag":1034,"props":9586,"children":9587},{"style":1040},[9588],{"type":998,"value":9589},"        # Allow only digits, decimal point, and minus sign\n",{"type":993,"tag":1034,"props":9591,"children":9592},{"class":1036,"line":191},[9593,9597,9601,9605,9609,9613,9618,9623,9628,9632,9636,9640],{"type":993,"tag":1034,"props":9594,"children":9595},{"style":1061},[9596],{"type":998,"value":9463},{"type":993,"tag":1034,"props":9598,"children":9599},{"style":1049},[9600],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9602,"children":9603},{"style":1061},[9604],{"type":998,"value":9472},{"type":993,"tag":1034,"props":9606,"children":9607},{"style":1049},[9608],{"type":998,"value":9477},{"type":993,"tag":1034,"props":9610,"children":9611},{"style":1070},[9612],{"type":998,"value":9482},{"type":993,"tag":1034,"props":9614,"children":9615},{"style":1079},[9616],{"type":998,"value":9617},"[",{"type":993,"tag":1034,"props":9619,"children":9620},{"style":1049},[9621],{"type":998,"value":9622},"^",{"type":993,"tag":1034,"props":9624,"children":9625},{"style":1079},[9626],{"type":998,"value":9627},"0-9.-]",{"type":993,"tag":1034,"props":9629,"children":9630},{"style":1070},[9631],{"type":998,"value":9482},{"type":993,"tag":1034,"props":9633,"children":9634},{"style":1061},[9635],{"type":998,"value":1141},{"type":993,"tag":1034,"props":9637,"children":9638},{"style":1070},[9639],{"type":998,"value":9511},{"type":993,"tag":1034,"props":9641,"children":9642},{"style":1061},[9643],{"type":998,"value":9516},{"type":993,"tag":1034,"props":9645,"children":9646},{"class":1036,"line":201},[9647],{"type":993,"tag":1034,"props":9648,"children":9649},{"style":1061},[9650],{"type":998,"value":1105},{"type":993,"tag":1034,"props":9652,"children":9653},{"class":1036,"line":210},[9654,9658,9662,9666,9670],{"type":993,"tag":1034,"props":9655,"children":9656},{"style":1049},[9657],{"type":998,"value":9564},{"type":993,"tag":1034,"props":9659,"children":9660},{"style":1061},[9661],{"type":998,"value":9434},{"type":993,"tag":1034,"props":9663,"children":9664},{"style":1049},[9665],{"type":998,"value":6409},{"type":993,"tag":1034,"props":9667,"children":9668},{"style":1070},[9669],{"type":998,"value":6588},{"type":993,"tag":1034,"props":9671,"children":9672},{"style":1061},[9673],{"type":998,"value":1400},{"type":993,"tag":1034,"props":9675,"children":9676},{"class":1036,"line":219},[9677],{"type":993,"tag":1034,"props":9678,"children":9679},{"style":1040},[9680],{"type":998,"value":9681},"        # Basic email character filtering\n",{"type":993,"tag":1034,"props":9683,"children":9684},{"class":1036,"line":228},[9685,9689,9693,9697,9701,9705,9709,9713,9718,9722,9726,9730],{"type":993,"tag":1034,"props":9686,"children":9687},{"style":1061},[9688],{"type":998,"value":9463},{"type":993,"tag":1034,"props":9690,"children":9691},{"style":1049},[9692],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9694,"children":9695},{"style":1061},[9696],{"type":998,"value":9472},{"type":993,"tag":1034,"props":9698,"children":9699},{"style":1049},[9700],{"type":998,"value":9477},{"type":993,"tag":1034,"props":9702,"children":9703},{"style":1070},[9704],{"type":998,"value":9482},{"type":993,"tag":1034,"props":9706,"children":9707},{"style":1079},[9708],{"type":998,"value":9617},{"type":993,"tag":1034,"props":9710,"children":9711},{"style":1049},[9712],{"type":998,"value":9622},{"type":993,"tag":1034,"props":9714,"children":9715},{"style":1079},[9716],{"type":998,"value":9717},"a-zA-Z0-9@._-]",{"type":993,"tag":1034,"props":9719,"children":9720},{"style":1070},[9721],{"type":998,"value":9482},{"type":993,"tag":1034,"props":9723,"children":9724},{"style":1061},[9725],{"type":998,"value":1141},{"type":993,"tag":1034,"props":9727,"children":9728},{"style":1070},[9729],{"type":998,"value":9511},{"type":993,"tag":1034,"props":9731,"children":9732},{"style":1061},[9733],{"type":998,"value":9516},{"type":993,"tag":1034,"props":9735,"children":9736},{"class":1036,"line":238},[9737,9741,9745],{"type":993,"tag":1034,"props":9738,"children":9739},{"style":1061},[9740],{"type":998,"value":9463},{"type":993,"tag":1034,"props":9742,"children":9743},{"style":1049},[9744],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9746,"children":9747},{"style":1061},[9748],{"type":998,"value":9749}," sanitized.lower()\n",{"type":993,"tag":1034,"props":9751,"children":9752},{"class":1036,"line":247},[9753],{"type":993,"tag":1034,"props":9754,"children":9755},{"style":1061},[9756],{"type":998,"value":1105},{"type":993,"tag":1034,"props":9758,"children":9759},{"class":1036,"line":256},[9760,9764,9768,9772,9777],{"type":993,"tag":1034,"props":9761,"children":9762},{"style":1049},[9763],{"type":998,"value":9564},{"type":993,"tag":1034,"props":9765,"children":9766},{"style":1061},[9767],{"type":998,"value":9434},{"type":993,"tag":1034,"props":9769,"children":9770},{"style":1049},[9771],{"type":998,"value":6409},{"type":993,"tag":1034,"props":9773,"children":9774},{"style":1070},[9775],{"type":998,"value":9776}," \"filename\"",{"type":993,"tag":1034,"props":9778,"children":9779},{"style":1061},[9780],{"type":998,"value":1400},{"type":993,"tag":1034,"props":9782,"children":9783},{"class":1036,"line":265},[9784],{"type":993,"tag":1034,"props":9785,"children":9786},{"style":1040},[9787],{"type":998,"value":9788},"        # Safe filename characters only\n",{"type":993,"tag":1034,"props":9790,"children":9791},{"class":1036,"line":274},[9792,9796,9800,9804,9808,9812,9816,9820,9825,9829,9833,9838],{"type":993,"tag":1034,"props":9793,"children":9794},{"style":1061},[9795],{"type":998,"value":9463},{"type":993,"tag":1034,"props":9797,"children":9798},{"style":1049},[9799],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9801,"children":9802},{"style":1061},[9803],{"type":998,"value":9472},{"type":993,"tag":1034,"props":9805,"children":9806},{"style":1049},[9807],{"type":998,"value":9477},{"type":993,"tag":1034,"props":9809,"children":9810},{"style":1070},[9811],{"type":998,"value":9482},{"type":993,"tag":1034,"props":9813,"children":9814},{"style":1079},[9815],{"type":998,"value":9617},{"type":993,"tag":1034,"props":9817,"children":9818},{"style":1049},[9819],{"type":998,"value":9622},{"type":993,"tag":1034,"props":9821,"children":9822},{"style":1079},[9823],{"type":998,"value":9824},"a-zA-Z0-9._-]",{"type":993,"tag":1034,"props":9826,"children":9827},{"style":1070},[9828],{"type":998,"value":9482},{"type":993,"tag":1034,"props":9830,"children":9831},{"style":1061},[9832],{"type":998,"value":1141},{"type":993,"tag":1034,"props":9834,"children":9835},{"style":1070},[9836],{"type":998,"value":9837},"'_'",{"type":993,"tag":1034,"props":9839,"children":9840},{"style":1061},[9841],{"type":998,"value":9516},{"type":993,"tag":1034,"props":9843,"children":9844},{"class":1036,"line":284},[9845,9849,9853,9857,9862,9867],{"type":993,"tag":1034,"props":9846,"children":9847},{"style":1061},[9848],{"type":998,"value":9463},{"type":993,"tag":1034,"props":9850,"children":9851},{"style":1049},[9852],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9854,"children":9855},{"style":1061},[9856],{"type":998,"value":9540},{"type":993,"tag":1034,"props":9858,"children":9859},{"style":1079},[9860],{"type":998,"value":9861},"255",{"type":993,"tag":1034,"props":9863,"children":9864},{"style":1061},[9865],{"type":998,"value":9866},"]  ",{"type":993,"tag":1034,"props":9868,"children":9869},{"style":1040},[9870],{"type":998,"value":9871},"# Filename length limit\n",{"type":993,"tag":1034,"props":9873,"children":9874},{"class":1036,"line":293},[9875],{"type":993,"tag":1034,"props":9876,"children":9877},{"style":1061},[9878],{"type":998,"value":1105},{"type":993,"tag":1034,"props":9880,"children":9881},{"class":1036,"line":302},[9882,9886],{"type":993,"tag":1034,"props":9883,"children":9884},{"style":1049},[9885],{"type":998,"value":2208},{"type":993,"tag":1034,"props":9887,"children":9888},{"style":1061},[9889],{"type":998,"value":9890}," sanitized\n",{"type":993,"tag":1034,"props":9892,"children":9893},{"class":1036,"line":311},[9894],{"type":993,"tag":1034,"props":9895,"children":9896},{"emptyLinePlaceholder":13},[9897],{"type":998,"value":1589},{"type":993,"tag":1034,"props":9899,"children":9900},{"class":1036,"line":320},[9901,9905,9910],{"type":993,"tag":1034,"props":9902,"children":9903},{"style":1049},[9904],{"type":998,"value":1052},{"type":993,"tag":1034,"props":9906,"children":9907},{"style":1055},[9908],{"type":998,"value":9909}," demonstrate_input_sanitization",{"type":993,"tag":1034,"props":9911,"children":9912},{"style":1061},[9913],{"type":998,"value":1064},{"type":993,"tag":1034,"props":9915,"children":9916},{"class":1036,"line":329},[9917],{"type":993,"tag":1034,"props":9918,"children":9919},{"style":1070},[9920],{"type":998,"value":9921},"    \"\"\"Show input sanitization in action\"\"\"\n",{"type":993,"tag":1034,"props":9923,"children":9924},{"class":1036,"line":338},[9925],{"type":993,"tag":1034,"props":9926,"children":9927},{"style":1061},[9928],{"type":998,"value":1105},{"type":993,"tag":1034,"props":9930,"children":9931},{"class":1036,"line":347},[9932,9937,9941],{"type":993,"tag":1034,"props":9933,"children":9934},{"style":1061},[9935],{"type":998,"value":9936},"    test_inputs ",{"type":993,"tag":1034,"props":9938,"children":9939},{"style":1049},[9940],{"type":998,"value":1126},{"type":993,"tag":1034,"props":9942,"children":9943},{"style":1061},[9944],{"type":998,"value":2554},{"type":993,"tag":1034,"props":9946,"children":9947},{"class":1036,"line":356},[9948,9952,9957,9961,9965],{"type":993,"tag":1034,"props":9949,"children":9950},{"style":1061},[9951],{"type":998,"value":2562},{"type":993,"tag":1034,"props":9953,"children":9954},{"style":1070},[9955],{"type":998,"value":9956},"\"Alice\u003Cscript>alert('xss')\u003C/script>\"",{"type":993,"tag":1034,"props":9958,"children":9959},{"style":1061},[9960],{"type":998,"value":1141},{"type":993,"tag":1034,"props":9962,"children":9963},{"style":1070},[9964],{"type":998,"value":9314},{"type":993,"tag":1034,"props":9966,"children":9967},{"style":1061},[9968],{"type":998,"value":2581},{"type":993,"tag":1034,"props":9970,"children":9971},{"class":1036,"line":365},[9972,9976,9981,9985,9989],{"type":993,"tag":1034,"props":9973,"children":9974},{"style":1061},[9975],{"type":998,"value":2562},{"type":993,"tag":1034,"props":9977,"children":9978},{"style":1070},[9979],{"type":998,"value":9980},"\"user@example.com\"",{"type":993,"tag":1034,"props":9982,"children":9983},{"style":1061},[9984],{"type":998,"value":1141},{"type":993,"tag":1034,"props":9986,"children":9987},{"style":1070},[9988],{"type":998,"value":6056},{"type":993,"tag":1034,"props":9990,"children":9991},{"style":1061},[9992],{"type":998,"value":2581},{"type":993,"tag":1034,"props":9994,"children":9995},{"class":1036,"line":374},[9996,10000,10005,10009,10013],{"type":993,"tag":1034,"props":9997,"children":9998},{"style":1061},[9999],{"type":998,"value":2562},{"type":993,"tag":1034,"props":10001,"children":10002},{"style":1070},[10003],{"type":998,"value":10004},"\"invalid@\u003Cscript>\"",{"type":993,"tag":1034,"props":10006,"children":10007},{"style":1061},[10008],{"type":998,"value":1141},{"type":993,"tag":1034,"props":10010,"children":10011},{"style":1070},[10012],{"type":998,"value":6056},{"type":993,"tag":1034,"props":10014,"children":10015},{"style":1061},[10016],{"type":998,"value":2581},{"type":993,"tag":1034,"props":10018,"children":10019},{"class":1036,"line":384},[10020,10024,10029,10033,10038],{"type":993,"tag":1034,"props":10021,"children":10022},{"style":1061},[10023],{"type":998,"value":2562},{"type":993,"tag":1034,"props":10025,"children":10026},{"style":1070},[10027],{"type":998,"value":10028},"\"123.45abc\"",{"type":993,"tag":1034,"props":10030,"children":10031},{"style":1061},[10032],{"type":998,"value":1141},{"type":993,"tag":1034,"props":10034,"children":10035},{"style":1070},[10036],{"type":998,"value":10037},"\"number\"",{"type":993,"tag":1034,"props":10039,"children":10040},{"style":1061},[10041],{"type":998,"value":2581},{"type":993,"tag":1034,"props":10043,"children":10044},{"class":1036,"line":393},[10045,10049,10054,10058,10063],{"type":993,"tag":1034,"props":10046,"children":10047},{"style":1061},[10048],{"type":998,"value":2562},{"type":993,"tag":1034,"props":10050,"children":10051},{"style":1070},[10052],{"type":998,"value":10053},"\"my file name!@#.txt\"",{"type":993,"tag":1034,"props":10055,"children":10056},{"style":1061},[10057],{"type":998,"value":1141},{"type":993,"tag":1034,"props":10059,"children":10060},{"style":1070},[10061],{"type":998,"value":10062},"\"filename\"",{"type":993,"tag":1034,"props":10064,"children":10065},{"style":1061},[10066],{"type":998,"value":1097},{"type":993,"tag":1034,"props":10068,"children":10069},{"class":1036,"line":402},[10070],{"type":993,"tag":1034,"props":10071,"children":10072},{"style":1061},[10073],{"type":998,"value":2766},{"type":993,"tag":1034,"props":10075,"children":10076},{"class":1036,"line":411},[10077],{"type":993,"tag":1034,"props":10078,"children":10079},{"style":1061},[10080],{"type":998,"value":1105},{"type":993,"tag":1034,"props":10082,"children":10083},{"class":1036,"line":420},[10084,10088,10092,10097],{"type":993,"tag":1034,"props":10085,"children":10086},{"style":1079},[10087],{"type":998,"value":1082},{"type":993,"tag":1034,"props":10089,"children":10090},{"style":1061},[10091],{"type":998,"value":1087},{"type":993,"tag":1034,"props":10093,"children":10094},{"style":1070},[10095],{"type":998,"value":10096},"\"=== Input Sanitization Demo ===\"",{"type":993,"tag":1034,"props":10098,"children":10099},{"style":1061},[10100],{"type":998,"value":1097},{"type":993,"tag":1034,"props":10102,"children":10103},{"class":1036,"line":429},[10104],{"type":993,"tag":1034,"props":10105,"children":10106},{"style":1061},[10107],{"type":998,"value":1105},{"type":993,"tag":1034,"props":10109,"children":10110},{"class":1036,"line":438},[10111,10115,10120,10124],{"type":993,"tag":1034,"props":10112,"children":10113},{"style":1049},[10114],{"type":998,"value":1218},{"type":993,"tag":1034,"props":10116,"children":10117},{"style":1061},[10118],{"type":998,"value":10119}," original, input_type ",{"type":993,"tag":1034,"props":10121,"children":10122},{"style":1049},[10123],{"type":998,"value":1228},{"type":993,"tag":1034,"props":10125,"children":10126},{"style":1061},[10127],{"type":998,"value":4672},{"type":993,"tag":1034,"props":10129,"children":10130},{"class":1036,"line":447},[10131,10135,10139],{"type":993,"tag":1034,"props":10132,"children":10133},{"style":1061},[10134],{"type":998,"value":9463},{"type":993,"tag":1034,"props":10136,"children":10137},{"style":1049},[10138],{"type":998,"value":1126},{"type":993,"tag":1034,"props":10140,"children":10141},{"style":1061},[10142],{"type":998,"value":10143}," sanitize_input(original, input_type)\n",{"type":993,"tag":1034,"props":10145,"children":10146},{"class":1036,"line":457},[10147,10151,10155,10159,10164,10168,10173,10177,10181],{"type":993,"tag":1034,"props":10148,"children":10149},{"style":1079},[10150],{"type":998,"value":1246},{"type":993,"tag":1034,"props":10152,"children":10153},{"style":1061},[10154],{"type":998,"value":1087},{"type":993,"tag":1034,"props":10156,"children":10157},{"style":1049},[10158],{"type":998,"value":1255},{"type":993,"tag":1034,"props":10160,"children":10161},{"style":1070},[10162],{"type":998,"value":10163},"\"Type: ",{"type":993,"tag":1034,"props":10165,"children":10166},{"style":1079},[10167],{"type":998,"value":1265},{"type":993,"tag":1034,"props":10169,"children":10170},{"style":1061},[10171],{"type":998,"value":10172},"input_type",{"type":993,"tag":1034,"props":10174,"children":10175},{"style":1079},[10176],{"type":998,"value":1285},{"type":993,"tag":1034,"props":10178,"children":10179},{"style":1070},[10180],{"type":998,"value":1260},{"type":993,"tag":1034,"props":10182,"children":10183},{"style":1061},[10184],{"type":998,"value":1097},{"type":993,"tag":1034,"props":10186,"children":10187},{"class":1036,"line":466},[10188,10192,10196,10200,10205,10209,10214,10218,10223],{"type":993,"tag":1034,"props":10189,"children":10190},{"style":1079},[10191],{"type":998,"value":1246},{"type":993,"tag":1034,"props":10193,"children":10194},{"style":1061},[10195],{"type":998,"value":1087},{"type":993,"tag":1034,"props":10197,"children":10198},{"style":1049},[10199],{"type":998,"value":1255},{"type":993,"tag":1034,"props":10201,"children":10202},{"style":1070},[10203],{"type":998,"value":10204},"\"Original:  '",{"type":993,"tag":1034,"props":10206,"children":10207},{"style":1079},[10208],{"type":998,"value":1265},{"type":993,"tag":1034,"props":10210,"children":10211},{"style":1061},[10212],{"type":998,"value":10213},"original",{"type":993,"tag":1034,"props":10215,"children":10216},{"style":1079},[10217],{"type":998,"value":1285},{"type":993,"tag":1034,"props":10219,"children":10220},{"style":1070},[10221],{"type":998,"value":10222},"'\"",{"type":993,"tag":1034,"props":10224,"children":10225},{"style":1061},[10226],{"type":998,"value":1097},{"type":993,"tag":1034,"props":10228,"children":10229},{"class":1036,"line":475},[10230,10234,10238,10242,10247,10251,10256,10260,10264],{"type":993,"tag":1034,"props":10231,"children":10232},{"style":1079},[10233],{"type":998,"value":1246},{"type":993,"tag":1034,"props":10235,"children":10236},{"style":1061},[10237],{"type":998,"value":1087},{"type":993,"tag":1034,"props":10239,"children":10240},{"style":1049},[10241],{"type":998,"value":1255},{"type":993,"tag":1034,"props":10243,"children":10244},{"style":1070},[10245],{"type":998,"value":10246},"\"Sanitized: '",{"type":993,"tag":1034,"props":10248,"children":10249},{"style":1079},[10250],{"type":998,"value":1265},{"type":993,"tag":1034,"props":10252,"children":10253},{"style":1061},[10254],{"type":998,"value":10255},"sanitized",{"type":993,"tag":1034,"props":10257,"children":10258},{"style":1079},[10259],{"type":998,"value":1285},{"type":993,"tag":1034,"props":10261,"children":10262},{"style":1070},[10263],{"type":998,"value":10222},{"type":993,"tag":1034,"props":10265,"children":10266},{"style":1061},[10267],{"type":998,"value":1097},{"type":993,"tag":1034,"props":10269,"children":10270},{"class":1036,"line":484},[10271,10275],{"type":993,"tag":1034,"props":10272,"children":10273},{"style":1079},[10274],{"type":998,"value":1246},{"type":993,"tag":1034,"props":10276,"children":10277},{"style":1061},[10278],{"type":998,"value":1581},{"type":993,"tag":1034,"props":10280,"children":10281},{"class":1036,"line":493},[10282],{"type":993,"tag":1034,"props":10283,"children":10284},{"emptyLinePlaceholder":13},[10285],{"type":998,"value":1589},{"type":993,"tag":1034,"props":10287,"children":10288},{"class":1036,"line":502},[10289],{"type":993,"tag":1034,"props":10290,"children":10291},{"style":1061},[10292],{"type":998,"value":10293},"demonstrate_input_sanitization()\n",{"type":993,"tag":1611,"props":10295,"children":10299},{"emoji":10296,"title":10297,"type":10298},"✅","Best Practices","success",[10300,10308,10331,10339,10362,10370,10393,10401],{"type":993,"tag":1001,"props":10301,"children":10302},{},[10303],{"type":993,"tag":1621,"props":10304,"children":10305},{},[10306],{"type":998,"value":10307},"Input Handling Guidelines:",{"type":993,"tag":1627,"props":10309,"children":10310},{},[10311,10316,10321,10326],{"type":993,"tag":1631,"props":10312,"children":10313},{},[10314],{"type":998,"value":10315},"Always validate input before processing or storing",{"type":993,"tag":1631,"props":10317,"children":10318},{},[10319],{"type":998,"value":10320},"Provide clear, helpful error messages",{"type":993,"tag":1631,"props":10322,"children":10323},{},[10324],{"type":998,"value":10325},"Use appropriate data types for different input scenarios",{"type":993,"tag":1631,"props":10327,"children":10328},{},[10329],{"type":998,"value":10330},"Implement retry mechanisms for user correction",{"type":993,"tag":1001,"props":10332,"children":10333},{},[10334],{"type":993,"tag":1621,"props":10335,"children":10336},{},[10337],{"type":998,"value":10338},"Security Considerations:",{"type":993,"tag":1627,"props":10340,"children":10341},{},[10342,10347,10352,10357],{"type":993,"tag":1631,"props":10343,"children":10344},{},[10345],{"type":998,"value":10346},"Sanitize input to prevent injection attacks",{"type":993,"tag":1631,"props":10348,"children":10349},{},[10350],{"type":998,"value":10351},"Set reasonable limits on input length and values",{"type":993,"tag":1631,"props":10353,"children":10354},{},[10355],{"type":998,"value":10356},"Never use eval() on user input in production",{"type":993,"tag":1631,"props":10358,"children":10359},{},[10360],{"type":998,"value":10361},"Validate data on both client and server sides",{"type":993,"tag":1001,"props":10363,"children":10364},{},[10365],{"type":993,"tag":1621,"props":10366,"children":10367},{},[10368],{"type":998,"value":10369},"User Experience Tips:",{"type":993,"tag":1627,"props":10371,"children":10372},{},[10373,10378,10383,10388],{"type":993,"tag":1631,"props":10374,"children":10375},{},[10376],{"type":998,"value":10377},"Show examples of expected input formats",{"type":993,"tag":1631,"props":10379,"children":10380},{},[10381],{"type":998,"value":10382},"Provide immediate feedback on input validity",{"type":993,"tag":1631,"props":10384,"children":10385},{},[10386],{"type":998,"value":10387},"Allow users to correct mistakes easily",{"type":993,"tag":1631,"props":10389,"children":10390},{},[10391],{"type":998,"value":10392},"Use default values when appropriate",{"type":993,"tag":1001,"props":10394,"children":10395},{},[10396],{"type":993,"tag":1621,"props":10397,"children":10398},{},[10399],{"type":998,"value":10400},"Performance Considerations:",{"type":993,"tag":1627,"props":10402,"children":10403},{},[10404,10409,10414,10419],{"type":993,"tag":1631,"props":10405,"children":10406},{},[10407],{"type":998,"value":10408},"Cache validation rules for repeated use",{"type":993,"tag":1631,"props":10410,"children":10411},{},[10412],{"type":998,"value":10413},"Use efficient validation patterns",{"type":993,"tag":1631,"props":10415,"children":10416},{},[10417],{"type":998,"value":10418},"Limit input processing time for large data",{"type":993,"tag":1631,"props":10420,"children":10421},{},[10422],{"type":998,"value":10423},"Consider using input masking for sensitive data",{"type":993,"tag":1599,"props":10425,"children":10427},{"id":10426},"essential-input-functions-and-validation",[10428],{"type":998,"value":10429},"Essential Input Functions and Validation",{"type":993,"tag":1001,"props":10431,"children":10432},{},[10433],{"type":998,"value":10434},"Understanding core input techniques enables robust user interaction and data collection in Python applications.",{"type":993,"tag":10436,"props":10437,"children":10438},"table",{},[10439,10468],{"type":993,"tag":10440,"props":10441,"children":10442},"thead",{},[10443],{"type":993,"tag":10444,"props":10445,"children":10446},"tr",{},[10447,10453,10458,10463],{"type":993,"tag":10448,"props":10449,"children":10450},"th",{},[10451],{"type":998,"value":10452},"Function",{"type":993,"tag":10448,"props":10454,"children":10455},{},[10456],{"type":998,"value":10457},"Purpose",{"type":993,"tag":10448,"props":10459,"children":10460},{},[10461],{"type":998,"value":10462},"Example",{"type":993,"tag":10448,"props":10464,"children":10465},{},[10466],{"type":998,"value":10467},"Best Practice",{"type":993,"tag":10469,"props":10470,"children":10471},"tbody",{},[10472,10504,10535,10566,10597,10628,10657,10684],{"type":993,"tag":10444,"props":10473,"children":10474},{},[10475,10485,10490,10499],{"type":993,"tag":10476,"props":10477,"children":10478},"td",{},[10479],{"type":993,"tag":1007,"props":10480,"children":10482},{"className":10481},[],[10483],{"type":998,"value":10484},"input(prompt)",{"type":993,"tag":10476,"props":10486,"children":10487},{},[10488],{"type":998,"value":10489},"Get user text input",{"type":993,"tag":10476,"props":10491,"children":10492},{},[10493],{"type":993,"tag":1007,"props":10494,"children":10496},{"className":10495},[],[10497],{"type":998,"value":10498},"name = input(\"Enter name: \")",{"type":993,"tag":10476,"props":10500,"children":10501},{},[10502],{"type":998,"value":10503},"Always provide clear prompts",{"type":993,"tag":10444,"props":10505,"children":10506},{},[10507,10516,10521,10530],{"type":993,"tag":10476,"props":10508,"children":10509},{},[10510],{"type":993,"tag":1007,"props":10511,"children":10513},{"className":10512},[],[10514],{"type":998,"value":10515},"int(input())",{"type":993,"tag":10476,"props":10517,"children":10518},{},[10519],{"type":998,"value":10520},"Get integer input",{"type":993,"tag":10476,"props":10522,"children":10523},{},[10524],{"type":993,"tag":1007,"props":10525,"children":10527},{"className":10526},[],[10528],{"type":998,"value":10529},"age = int(input(\"Age: \"))",{"type":993,"tag":10476,"props":10531,"children":10532},{},[10533],{"type":998,"value":10534},"Use try/except for conversion",{"type":993,"tag":10444,"props":10536,"children":10537},{},[10538,10547,10552,10561],{"type":993,"tag":10476,"props":10539,"children":10540},{},[10541],{"type":993,"tag":1007,"props":10542,"children":10544},{"className":10543},[],[10545],{"type":998,"value":10546},"float(input())",{"type":993,"tag":10476,"props":10548,"children":10549},{},[10550],{"type":998,"value":10551},"Get decimal input",{"type":993,"tag":10476,"props":10553,"children":10554},{},[10555],{"type":993,"tag":1007,"props":10556,"children":10558},{"className":10557},[],[10559],{"type":998,"value":10560},"price = float(input(\"Price: \"))",{"type":993,"tag":10476,"props":10562,"children":10563},{},[10564],{"type":998,"value":10565},"Validate numeric ranges",{"type":993,"tag":10444,"props":10567,"children":10568},{},[10569,10578,10583,10592],{"type":993,"tag":10476,"props":10570,"children":10571},{},[10572],{"type":993,"tag":1007,"props":10573,"children":10575},{"className":10574},[],[10576],{"type":998,"value":10577},"input().strip()",{"type":993,"tag":10476,"props":10579,"children":10580},{},[10581],{"type":998,"value":10582},"Remove whitespace",{"type":993,"tag":10476,"props":10584,"children":10585},{},[10586],{"type":993,"tag":1007,"props":10587,"children":10589},{"className":10588},[],[10590],{"type":998,"value":10591},"text = input(\"Text: \").strip()",{"type":993,"tag":10476,"props":10593,"children":10594},{},[10595],{"type":998,"value":10596},"Clean input before processing",{"type":993,"tag":10444,"props":10598,"children":10599},{},[10600,10609,10614,10623],{"type":993,"tag":10476,"props":10601,"children":10602},{},[10603],{"type":993,"tag":1007,"props":10604,"children":10606},{"className":10605},[],[10607],{"type":998,"value":10608},"input().lower()",{"type":993,"tag":10476,"props":10610,"children":10611},{},[10612],{"type":998,"value":10613},"Normalize case",{"type":993,"tag":10476,"props":10615,"children":10616},{},[10617],{"type":993,"tag":1007,"props":10618,"children":10620},{"className":10619},[],[10621],{"type":998,"value":10622},"choice = input(\"Y/N: \").lower()",{"type":993,"tag":10476,"props":10624,"children":10625},{},[10626],{"type":998,"value":10627},"Consistent comparison",{"type":993,"tag":10444,"props":10629,"children":10630},{},[10631,10642,10647,10652],{"type":993,"tag":10476,"props":10632,"children":10633},{},[10634,10640],{"type":993,"tag":1007,"props":10635,"children":10637},{"className":10636},[],[10638],{"type":998,"value":10639},"while True:",{"type":998,"value":10641}," loop",{"type":993,"tag":10476,"props":10643,"children":10644},{},[10645],{"type":998,"value":10646},"Input validation",{"type":993,"tag":10476,"props":10648,"children":10649},{},[10650],{"type":998,"value":10651},"Retry until valid input",{"type":993,"tag":10476,"props":10653,"children":10654},{},[10655],{"type":998,"value":10656},"Provide clear error messages",{"type":993,"tag":10444,"props":10658,"children":10659},{},[10660,10669,10674,10679],{"type":993,"tag":10476,"props":10661,"children":10662},{},[10663],{"type":993,"tag":1007,"props":10664,"children":10666},{"className":10665},[],[10667],{"type":998,"value":10668},"try/except",{"type":993,"tag":10476,"props":10670,"children":10671},{},[10672],{"type":998,"value":10673},"Handle conversion errors",{"type":993,"tag":10476,"props":10675,"children":10676},{},[10677],{"type":998,"value":10678},"Catch ValueError exceptions",{"type":993,"tag":10476,"props":10680,"children":10681},{},[10682],{"type":998,"value":10683},"Graceful error handling",{"type":993,"tag":10444,"props":10685,"children":10686},{},[10687,10696,10701,10706],{"type":993,"tag":10476,"props":10688,"children":10689},{},[10690],{"type":993,"tag":1007,"props":10691,"children":10693},{"className":10692},[],[10694],{"type":998,"value":10695},"len(input_text)",{"type":993,"tag":10476,"props":10697,"children":10698},{},[10699],{"type":998,"value":10700},"Validate input length",{"type":993,"tag":10476,"props":10702,"children":10703},{},[10704],{"type":998,"value":10705},"Check minimum/maximum length",{"type":993,"tag":10476,"props":10707,"children":10708},{},[10709],{"type":998,"value":10710},"Prevent empty/long input",{"type":993,"tag":10712,"props":10713,"children":10715},"content-exercise",{":widget-view":10714,"category":6,"id":793},"true",[],{"type":993,"tag":10717,"props":10718,"children":10721},"exercise",{"hint":10719,"prompt":10720},"Use input() to get answers, validate using if statements, keep score in a variable","Create a simple quiz game that asks the user questions and keeps score. Get user input for answers, validate responses, and provide feedback. Include at least 3 questions with different answer types.",[10722],{"type":993,"tag":1025,"props":10723,"children":10725},{"className":1027,"code":10724,"language":6,"meta":8,"style":8},"def create_quiz_game():\n    # TODO: Initialize score\n    # TODO: Create list of questions with answers\n    # TODO: Loop through questions\n    # TODO: Get user input for each question\n    # TODO: Check answers and update score\n    # TODO: Show final results\n    pass\n\ndef ask_question(question, correct_answer, question_type=\"text\"):\n    # TODO: Display question\n    # TODO: Get user input\n    # TODO: Validate answer based on type\n    # TODO: Return True if correct, False if wrong\n    pass\n\n# TODO: Test your quiz game\nprint(\"Welcome to the Python Quiz!\")\nprint(\"Answer the following questions:\")\n\n# Sample questions\nquestions = [\n    {\"question\": \"What is 5 + 3?\", \"answer\": \"8\", \"type\": \"number\"},\n    {\"question\": \"What is the capital of France?\", \"answer\": \"paris\", \"type\": \"text\"},\n    {\"question\": \"Is Python a programming language? (yes/no)\", \"answer\": \"yes\", \"type\": \"text\"}\n]\n\n# Run the quiz\ncreate_quiz_game()\n",[10726],{"type":993,"tag":1007,"props":10727,"children":10728},{"__ignoreMap":8},[10729,10745,10763,10779,10795,10811,10827,10843,10851,10858,10887,10903,10919,10935,10951,10958,10965,10982,11002,11022,11029,11037,11053,11115,11172,11229,11236,11243,11251],{"type":993,"tag":1034,"props":10730,"children":10731},{"class":1036,"line":12},[10732,10736,10741],{"type":993,"tag":1034,"props":10733,"children":10734},{"style":1049},[10735],{"type":998,"value":1052},{"type":993,"tag":1034,"props":10737,"children":10738},{"style":1055},[10739],{"type":998,"value":10740}," create_quiz_game",{"type":993,"tag":1034,"props":10742,"children":10743},{"style":1061},[10744],{"type":998,"value":1064},{"type":993,"tag":1034,"props":10746,"children":10747},{"class":1036,"line":27},[10748,10753,10758],{"type":993,"tag":1034,"props":10749,"children":10750},{"style":1040},[10751],{"type":998,"value":10752},"    # ",{"type":993,"tag":1034,"props":10754,"children":10755},{"style":1049},[10756],{"type":998,"value":10757},"TODO",{"type":993,"tag":1034,"props":10759,"children":10760},{"style":1040},[10761],{"type":998,"value":10762},": Initialize score\n",{"type":993,"tag":1034,"props":10764,"children":10765},{"class":1036,"line":36},[10766,10770,10774],{"type":993,"tag":1034,"props":10767,"children":10768},{"style":1040},[10769],{"type":998,"value":10752},{"type":993,"tag":1034,"props":10771,"children":10772},{"style":1049},[10773],{"type":998,"value":10757},{"type":993,"tag":1034,"props":10775,"children":10776},{"style":1040},[10777],{"type":998,"value":10778},": Create list of questions with answers\n",{"type":993,"tag":1034,"props":10780,"children":10781},{"class":1036,"line":45},[10782,10786,10790],{"type":993,"tag":1034,"props":10783,"children":10784},{"style":1040},[10785],{"type":998,"value":10752},{"type":993,"tag":1034,"props":10787,"children":10788},{"style":1049},[10789],{"type":998,"value":10757},{"type":993,"tag":1034,"props":10791,"children":10792},{"style":1040},[10793],{"type":998,"value":10794},": Loop through questions\n",{"type":993,"tag":1034,"props":10796,"children":10797},{"class":1036,"line":54},[10798,10802,10806],{"type":993,"tag":1034,"props":10799,"children":10800},{"style":1040},[10801],{"type":998,"value":10752},{"type":993,"tag":1034,"props":10803,"children":10804},{"style":1049},[10805],{"type":998,"value":10757},{"type":993,"tag":1034,"props":10807,"children":10808},{"style":1040},[10809],{"type":998,"value":10810},": Get user input for each question\n",{"type":993,"tag":1034,"props":10812,"children":10813},{"class":1036,"line":63},[10814,10818,10822],{"type":993,"tag":1034,"props":10815,"children":10816},{"style":1040},[10817],{"type":998,"value":10752},{"type":993,"tag":1034,"props":10819,"children":10820},{"style":1049},[10821],{"type":998,"value":10757},{"type":993,"tag":1034,"props":10823,"children":10824},{"style":1040},[10825],{"type":998,"value":10826},": Check answers and update score\n",{"type":993,"tag":1034,"props":10828,"children":10829},{"class":1036,"line":72},[10830,10834,10838],{"type":993,"tag":1034,"props":10831,"children":10832},{"style":1040},[10833],{"type":998,"value":10752},{"type":993,"tag":1034,"props":10835,"children":10836},{"style":1049},[10837],{"type":998,"value":10757},{"type":993,"tag":1034,"props":10839,"children":10840},{"style":1040},[10841],{"type":998,"value":10842},": Show final results\n",{"type":993,"tag":1034,"props":10844,"children":10845},{"class":1036,"line":81},[10846],{"type":993,"tag":1034,"props":10847,"children":10848},{"style":1049},[10849],{"type":998,"value":10850},"    pass\n",{"type":993,"tag":1034,"props":10852,"children":10853},{"class":1036,"line":91},[10854],{"type":993,"tag":1034,"props":10855,"children":10856},{"emptyLinePlaceholder":13},[10857],{"type":998,"value":1589},{"type":993,"tag":1034,"props":10859,"children":10860},{"class":1036,"line":100},[10861,10865,10870,10875,10879,10883],{"type":993,"tag":1034,"props":10862,"children":10863},{"style":1049},[10864],{"type":998,"value":1052},{"type":993,"tag":1034,"props":10866,"children":10867},{"style":1055},[10868],{"type":998,"value":10869}," ask_question",{"type":993,"tag":1034,"props":10871,"children":10872},{"style":1061},[10873],{"type":998,"value":10874},"(question, correct_answer, question_type",{"type":993,"tag":1034,"props":10876,"children":10877},{"style":1049},[10878],{"type":998,"value":1126},{"type":993,"tag":1034,"props":10880,"children":10881},{"style":1070},[10882],{"type":998,"value":9314},{"type":993,"tag":1034,"props":10884,"children":10885},{"style":1061},[10886],{"type":998,"value":1937},{"type":993,"tag":1034,"props":10888,"children":10889},{"class":1036,"line":109},[10890,10894,10898],{"type":993,"tag":1034,"props":10891,"children":10892},{"style":1040},[10893],{"type":998,"value":10752},{"type":993,"tag":1034,"props":10895,"children":10896},{"style":1049},[10897],{"type":998,"value":10757},{"type":993,"tag":1034,"props":10899,"children":10900},{"style":1040},[10901],{"type":998,"value":10902},": Display question\n",{"type":993,"tag":1034,"props":10904,"children":10905},{"class":1036,"line":118},[10906,10910,10914],{"type":993,"tag":1034,"props":10907,"children":10908},{"style":1040},[10909],{"type":998,"value":10752},{"type":993,"tag":1034,"props":10911,"children":10912},{"style":1049},[10913],{"type":998,"value":10757},{"type":993,"tag":1034,"props":10915,"children":10916},{"style":1040},[10917],{"type":998,"value":10918},": Get user input\n",{"type":993,"tag":1034,"props":10920,"children":10921},{"class":1036,"line":127},[10922,10926,10930],{"type":993,"tag":1034,"props":10923,"children":10924},{"style":1040},[10925],{"type":998,"value":10752},{"type":993,"tag":1034,"props":10927,"children":10928},{"style":1049},[10929],{"type":998,"value":10757},{"type":993,"tag":1034,"props":10931,"children":10932},{"style":1040},[10933],{"type":998,"value":10934},": Validate answer based on type\n",{"type":993,"tag":1034,"props":10936,"children":10937},{"class":1036,"line":136},[10938,10942,10946],{"type":993,"tag":1034,"props":10939,"children":10940},{"style":1040},[10941],{"type":998,"value":10752},{"type":993,"tag":1034,"props":10943,"children":10944},{"style":1049},[10945],{"type":998,"value":10757},{"type":993,"tag":1034,"props":10947,"children":10948},{"style":1040},[10949],{"type":998,"value":10950},": Return True if correct, False if wrong\n",{"type":993,"tag":1034,"props":10952,"children":10953},{"class":1036,"line":146},[10954],{"type":993,"tag":1034,"props":10955,"children":10956},{"style":1049},[10957],{"type":998,"value":10850},{"type":993,"tag":1034,"props":10959,"children":10960},{"class":1036,"line":155},[10961],{"type":993,"tag":1034,"props":10962,"children":10963},{"emptyLinePlaceholder":13},[10964],{"type":998,"value":1589},{"type":993,"tag":1034,"props":10966,"children":10967},{"class":1036,"line":164},[10968,10973,10977],{"type":993,"tag":1034,"props":10969,"children":10970},{"style":1040},[10971],{"type":998,"value":10972},"# ",{"type":993,"tag":1034,"props":10974,"children":10975},{"style":1049},[10976],{"type":998,"value":10757},{"type":993,"tag":1034,"props":10978,"children":10979},{"style":1040},[10980],{"type":998,"value":10981},": Test your quiz game\n",{"type":993,"tag":1034,"props":10983,"children":10984},{"class":1036,"line":173},[10985,10989,10993,10998],{"type":993,"tag":1034,"props":10986,"children":10987},{"style":1079},[10988],{"type":998,"value":4232},{"type":993,"tag":1034,"props":10990,"children":10991},{"style":1061},[10992],{"type":998,"value":1087},{"type":993,"tag":1034,"props":10994,"children":10995},{"style":1070},[10996],{"type":998,"value":10997},"\"Welcome to the Python Quiz!\"",{"type":993,"tag":1034,"props":10999,"children":11000},{"style":1061},[11001],{"type":998,"value":1097},{"type":993,"tag":1034,"props":11003,"children":11004},{"class":1036,"line":182},[11005,11009,11013,11018],{"type":993,"tag":1034,"props":11006,"children":11007},{"style":1079},[11008],{"type":998,"value":4232},{"type":993,"tag":1034,"props":11010,"children":11011},{"style":1061},[11012],{"type":998,"value":1087},{"type":993,"tag":1034,"props":11014,"children":11015},{"style":1070},[11016],{"type":998,"value":11017},"\"Answer the following questions:\"",{"type":993,"tag":1034,"props":11019,"children":11020},{"style":1061},[11021],{"type":998,"value":1097},{"type":993,"tag":1034,"props":11023,"children":11024},{"class":1036,"line":191},[11025],{"type":993,"tag":1034,"props":11026,"children":11027},{"emptyLinePlaceholder":13},[11028],{"type":998,"value":1589},{"type":993,"tag":1034,"props":11030,"children":11031},{"class":1036,"line":201},[11032],{"type":993,"tag":1034,"props":11033,"children":11034},{"style":1040},[11035],{"type":998,"value":11036},"# Sample questions\n",{"type":993,"tag":1034,"props":11038,"children":11039},{"class":1036,"line":210},[11040,11045,11049],{"type":993,"tag":1034,"props":11041,"children":11042},{"style":1061},[11043],{"type":998,"value":11044},"questions ",{"type":993,"tag":1034,"props":11046,"children":11047},{"style":1049},[11048],{"type":998,"value":1126},{"type":993,"tag":1034,"props":11050,"children":11051},{"style":1061},[11052],{"type":998,"value":2554},{"type":993,"tag":1034,"props":11054,"children":11055},{"class":1036,"line":219},[11056,11061,11066,11070,11075,11079,11084,11088,11093,11097,11102,11106,11110],{"type":993,"tag":1034,"props":11057,"children":11058},{"style":1061},[11059],{"type":998,"value":11060},"    {",{"type":993,"tag":1034,"props":11062,"children":11063},{"style":1070},[11064],{"type":998,"value":11065},"\"question\"",{"type":993,"tag":1034,"props":11067,"children":11068},{"style":1061},[11069],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11071,"children":11072},{"style":1070},[11073],{"type":998,"value":11074},"\"What is 5 + 3?\"",{"type":993,"tag":1034,"props":11076,"children":11077},{"style":1061},[11078],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11080,"children":11081},{"style":1070},[11082],{"type":998,"value":11083},"\"answer\"",{"type":993,"tag":1034,"props":11085,"children":11086},{"style":1061},[11087],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11089,"children":11090},{"style":1070},[11091],{"type":998,"value":11092},"\"8\"",{"type":993,"tag":1034,"props":11094,"children":11095},{"style":1061},[11096],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11098,"children":11099},{"style":1070},[11100],{"type":998,"value":11101},"\"type\"",{"type":993,"tag":1034,"props":11103,"children":11104},{"style":1061},[11105],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11107,"children":11108},{"style":1070},[11109],{"type":998,"value":10037},{"type":993,"tag":1034,"props":11111,"children":11112},{"style":1061},[11113],{"type":998,"value":11114},"},\n",{"type":993,"tag":1034,"props":11116,"children":11117},{"class":1036,"line":228},[11118,11122,11126,11130,11135,11139,11143,11147,11152,11156,11160,11164,11168],{"type":993,"tag":1034,"props":11119,"children":11120},{"style":1061},[11121],{"type":998,"value":11060},{"type":993,"tag":1034,"props":11123,"children":11124},{"style":1070},[11125],{"type":998,"value":11065},{"type":993,"tag":1034,"props":11127,"children":11128},{"style":1061},[11129],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11131,"children":11132},{"style":1070},[11133],{"type":998,"value":11134},"\"What is the capital of France?\"",{"type":993,"tag":1034,"props":11136,"children":11137},{"style":1061},[11138],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11140,"children":11141},{"style":1070},[11142],{"type":998,"value":11083},{"type":993,"tag":1034,"props":11144,"children":11145},{"style":1061},[11146],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11148,"children":11149},{"style":1070},[11150],{"type":998,"value":11151},"\"paris\"",{"type":993,"tag":1034,"props":11153,"children":11154},{"style":1061},[11155],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11157,"children":11158},{"style":1070},[11159],{"type":998,"value":11101},{"type":993,"tag":1034,"props":11161,"children":11162},{"style":1061},[11163],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11165,"children":11166},{"style":1070},[11167],{"type":998,"value":9314},{"type":993,"tag":1034,"props":11169,"children":11170},{"style":1061},[11171],{"type":998,"value":11114},{"type":993,"tag":1034,"props":11173,"children":11174},{"class":1036,"line":238},[11175,11179,11183,11187,11192,11196,11200,11204,11208,11212,11216,11220,11224],{"type":993,"tag":1034,"props":11176,"children":11177},{"style":1061},[11178],{"type":998,"value":11060},{"type":993,"tag":1034,"props":11180,"children":11181},{"style":1070},[11182],{"type":998,"value":11065},{"type":993,"tag":1034,"props":11184,"children":11185},{"style":1061},[11186],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11188,"children":11189},{"style":1070},[11190],{"type":998,"value":11191},"\"Is Python a programming language? (yes/no)\"",{"type":993,"tag":1034,"props":11193,"children":11194},{"style":1061},[11195],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11197,"children":11198},{"style":1070},[11199],{"type":998,"value":11083},{"type":993,"tag":1034,"props":11201,"children":11202},{"style":1061},[11203],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11205,"children":11206},{"style":1070},[11207],{"type":998,"value":4603},{"type":993,"tag":1034,"props":11209,"children":11210},{"style":1061},[11211],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11213,"children":11214},{"style":1070},[11215],{"type":998,"value":11101},{"type":993,"tag":1034,"props":11217,"children":11218},{"style":1061},[11219],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11221,"children":11222},{"style":1070},[11223],{"type":998,"value":9314},{"type":993,"tag":1034,"props":11225,"children":11226},{"style":1061},[11227],{"type":998,"value":11228},"}\n",{"type":993,"tag":1034,"props":11230,"children":11231},{"class":1036,"line":247},[11232],{"type":993,"tag":1034,"props":11233,"children":11234},{"style":1061},[11235],{"type":998,"value":1160},{"type":993,"tag":1034,"props":11237,"children":11238},{"class":1036,"line":256},[11239],{"type":993,"tag":1034,"props":11240,"children":11241},{"emptyLinePlaceholder":13},[11242],{"type":998,"value":1589},{"type":993,"tag":1034,"props":11244,"children":11245},{"class":1036,"line":265},[11246],{"type":993,"tag":1034,"props":11247,"children":11248},{"style":1040},[11249],{"type":998,"value":11250},"# Run the quiz\n",{"type":993,"tag":1034,"props":11252,"children":11253},{"class":1036,"line":274},[11254],{"type":993,"tag":1034,"props":11255,"children":11256},{"style":1061},[11257],{"type":998,"value":11258},"create_quiz_game()\n",{"type":993,"tag":1886,"props":11260,"children":11262},{"id":11261},"solution-and-explanation",[11263],{"type":998,"value":11264},"Solution and Explanation 💡",{"type":993,"tag":11266,"props":11267,"children":11268},"details",{},[11269,11277,13407,13415],{"type":993,"tag":11270,"props":11271,"children":11274},"summary",{"className":11272},[11273],"cursor-pointer",[11275],{"type":998,"value":11276},"Click to see the complete solution",{"type":993,"tag":1021,"props":11278,"children":11279},{},[11280],{"type":993,"tag":1025,"props":11281,"children":11283},{"className":1027,"code":11282,"language":6,"meta":8,"style":8},"def create_quiz_game():\n    # Initialize score\n    score = 0\n    total_questions = 0\n    \n    # Create list of questions with answers\n    questions = [\n        {\"question\": \"What is 5 + 3?\", \"answer\": \"8\", \"type\": \"number\"},\n        {\"question\": \"What is the capital of France?\", \"answer\": \"paris\", \"type\": \"text\"},\n        {\"question\": \"Is Python a programming language? (yes/no)\", \"answer\": \"yes\", \"type\": \"text\"},\n        {\"question\": \"What is 10 - 4?\", \"answer\": \"6\", \"type\": \"number\"},\n        {\"question\": \"What color do you get when you mix red and blue?\", \"answer\": \"purple\", \"type\": \"text\"}\n    ]\n    \n    print(\"Welcome to the Python Quiz!\")\n    print(\"Answer the following questions:\")\n    print(\"-\" * 30)\n    \n    # Loop through questions\n    for i, q in enumerate(questions, 1):\n        print(f\"\\nQuestion {i}:\")\n        if ask_question(q[\"question\"], q[\"answer\"], q[\"type\"]):\n            score += 1\n            print(\"✅ Correct!\")\n        else:\n            print(f\"❌ Wrong! The correct answer is: {q['answer']}\")\n        total_questions += 1\n    \n    # Show final results\n    print(f\"\\n🎯 Quiz Complete!\")\n    print(f\"Your score: {score}/{total_questions}\")\n    percentage = (score / total_questions) * 100\n    print(f\"Percentage: {percentage:.1f}%\")\n    \n    if percentage >= 80:\n        print(\"🎉 Excellent work!\")\n    elif percentage >= 60:\n        print(\"👍 Good job!\")\n    else:\n        print(\"📚 Keep studying!\")\n\ndef ask_question(question, correct_answer, question_type=\"text\"):\n    # Display question\n    user_answer = input(f\"{question} \")\n    \n    # Validate answer based on type\n    if question_type == \"number\":\n        try:\n            # Convert both to numbers for comparison\n            user_num = float(user_answer)\n            correct_num = float(correct_answer)\n            return user_num == correct_num\n        except ValueError:\n            return False\n    else:\n        # Text comparison (case insensitive)\n        return user_answer.lower().strip() == correct_answer.lower().strip()\n\n# Test your quiz game (simulation without actual input)\ndef simulate_quiz():\n    # Simulate user answers for demonstration\n    questions = [\n        {\"question\": \"What is 5 + 3?\", \"answer\": \"8\", \"type\": \"number\"},\n        {\"question\": \"What is the capital of France?\", \"answer\": \"paris\", \"type\": \"text\"},\n        {\"question\": \"Is Python a programming language? (yes/no)\", \"answer\": \"yes\", \"type\": \"text\"}\n    ]\n    \n    # Simulated answers\n    simulated_answers = [\"8\", \"Paris\", \"yes\"]\n    \n    print(\"Quiz Simulation:\")\n    score = 0\n    \n    for i, q in enumerate(questions):\n        print(f\"\\nQuestion {i+1}: {q['question']}\")\n        print(f\"Your answer: {simulated_answers[i]}\")\n        \n        # Check answer\n        if q[\"type\"] == \"number\":\n            correct = simulated_answers[i] == q[\"answer\"]\n        else:\n            correct = simulated_answers[i].lower() == q[\"answer\"].lower()\n        \n        if correct:\n            score += 1\n            print(\"✅ Correct!\")\n        else:\n            print(f\"❌ Wrong! Correct answer: {q['answer']}\")\n    \n    print(f\"\\nFinal Score: {score}/{len(questions)}\")\n\n# Run simulation\nsimulate_quiz()\n\n# Uncomment to run actual interactive quiz:\n# create_quiz_game()\n",[11284],{"type":993,"tag":1007,"props":11285,"children":11286},{"__ignoreMap":8},[11287,11302,11310,11327,11343,11350,11358,11374,11430,11485,11540,11597,11654,11661,11668,11687,11706,11734,11741,11749,11782,11831,11868,11886,11906,11918,11969,11985,11992,12000,12032,12091,12127,12174,12181,12206,12226,12250,12270,12282,12302,12309,12336,12344,12393,12400,12408,12432,12443,12451,12472,12493,12514,12529,12540,12551,12559,12580,12587,12595,12611,12619,12634,12689,12744,12799,12806,12813,12821,12862,12869,12889,12904,12911,12935,13012,13053,13060,13068,13100,13133,13144,13177,13184,13196,13211,13230,13241,13289,13296,13361,13368,13376,13384,13391,13399],{"type":993,"tag":1034,"props":11288,"children":11289},{"class":1036,"line":12},[11290,11294,11298],{"type":993,"tag":1034,"props":11291,"children":11292},{"style":1049},[11293],{"type":998,"value":1052},{"type":993,"tag":1034,"props":11295,"children":11296},{"style":1055},[11297],{"type":998,"value":10740},{"type":993,"tag":1034,"props":11299,"children":11300},{"style":1061},[11301],{"type":998,"value":1064},{"type":993,"tag":1034,"props":11303,"children":11304},{"class":1036,"line":27},[11305],{"type":993,"tag":1034,"props":11306,"children":11307},{"style":1040},[11308],{"type":998,"value":11309},"    # Initialize score\n",{"type":993,"tag":1034,"props":11311,"children":11312},{"class":1036,"line":36},[11313,11318,11322],{"type":993,"tag":1034,"props":11314,"children":11315},{"style":1061},[11316],{"type":998,"value":11317},"    score ",{"type":993,"tag":1034,"props":11319,"children":11320},{"style":1049},[11321],{"type":998,"value":1126},{"type":993,"tag":1034,"props":11323,"children":11324},{"style":1079},[11325],{"type":998,"value":11326}," 0\n",{"type":993,"tag":1034,"props":11328,"children":11329},{"class":1036,"line":45},[11330,11335,11339],{"type":993,"tag":1034,"props":11331,"children":11332},{"style":1061},[11333],{"type":998,"value":11334},"    total_questions ",{"type":993,"tag":1034,"props":11336,"children":11337},{"style":1049},[11338],{"type":998,"value":1126},{"type":993,"tag":1034,"props":11340,"children":11341},{"style":1079},[11342],{"type":998,"value":11326},{"type":993,"tag":1034,"props":11344,"children":11345},{"class":1036,"line":54},[11346],{"type":993,"tag":1034,"props":11347,"children":11348},{"style":1061},[11349],{"type":998,"value":1105},{"type":993,"tag":1034,"props":11351,"children":11352},{"class":1036,"line":63},[11353],{"type":993,"tag":1034,"props":11354,"children":11355},{"style":1040},[11356],{"type":998,"value":11357},"    # Create list of questions with answers\n",{"type":993,"tag":1034,"props":11359,"children":11360},{"class":1036,"line":72},[11361,11366,11370],{"type":993,"tag":1034,"props":11362,"children":11363},{"style":1061},[11364],{"type":998,"value":11365},"    questions ",{"type":993,"tag":1034,"props":11367,"children":11368},{"style":1049},[11369],{"type":998,"value":1126},{"type":993,"tag":1034,"props":11371,"children":11372},{"style":1061},[11373],{"type":998,"value":2554},{"type":993,"tag":1034,"props":11375,"children":11376},{"class":1036,"line":81},[11377,11382,11386,11390,11394,11398,11402,11406,11410,11414,11418,11422,11426],{"type":993,"tag":1034,"props":11378,"children":11379},{"style":1061},[11380],{"type":998,"value":11381},"        {",{"type":993,"tag":1034,"props":11383,"children":11384},{"style":1070},[11385],{"type":998,"value":11065},{"type":993,"tag":1034,"props":11387,"children":11388},{"style":1061},[11389],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11391,"children":11392},{"style":1070},[11393],{"type":998,"value":11074},{"type":993,"tag":1034,"props":11395,"children":11396},{"style":1061},[11397],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11399,"children":11400},{"style":1070},[11401],{"type":998,"value":11083},{"type":993,"tag":1034,"props":11403,"children":11404},{"style":1061},[11405],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11407,"children":11408},{"style":1070},[11409],{"type":998,"value":11092},{"type":993,"tag":1034,"props":11411,"children":11412},{"style":1061},[11413],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11415,"children":11416},{"style":1070},[11417],{"type":998,"value":11101},{"type":993,"tag":1034,"props":11419,"children":11420},{"style":1061},[11421],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11423,"children":11424},{"style":1070},[11425],{"type":998,"value":10037},{"type":993,"tag":1034,"props":11427,"children":11428},{"style":1061},[11429],{"type":998,"value":11114},{"type":993,"tag":1034,"props":11431,"children":11432},{"class":1036,"line":91},[11433,11437,11441,11445,11449,11453,11457,11461,11465,11469,11473,11477,11481],{"type":993,"tag":1034,"props":11434,"children":11435},{"style":1061},[11436],{"type":998,"value":11381},{"type":993,"tag":1034,"props":11438,"children":11439},{"style":1070},[11440],{"type":998,"value":11065},{"type":993,"tag":1034,"props":11442,"children":11443},{"style":1061},[11444],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11446,"children":11447},{"style":1070},[11448],{"type":998,"value":11134},{"type":993,"tag":1034,"props":11450,"children":11451},{"style":1061},[11452],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11454,"children":11455},{"style":1070},[11456],{"type":998,"value":11083},{"type":993,"tag":1034,"props":11458,"children":11459},{"style":1061},[11460],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11462,"children":11463},{"style":1070},[11464],{"type":998,"value":11151},{"type":993,"tag":1034,"props":11466,"children":11467},{"style":1061},[11468],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11470,"children":11471},{"style":1070},[11472],{"type":998,"value":11101},{"type":993,"tag":1034,"props":11474,"children":11475},{"style":1061},[11476],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11478,"children":11479},{"style":1070},[11480],{"type":998,"value":9314},{"type":993,"tag":1034,"props":11482,"children":11483},{"style":1061},[11484],{"type":998,"value":11114},{"type":993,"tag":1034,"props":11486,"children":11487},{"class":1036,"line":100},[11488,11492,11496,11500,11504,11508,11512,11516,11520,11524,11528,11532,11536],{"type":993,"tag":1034,"props":11489,"children":11490},{"style":1061},[11491],{"type":998,"value":11381},{"type":993,"tag":1034,"props":11493,"children":11494},{"style":1070},[11495],{"type":998,"value":11065},{"type":993,"tag":1034,"props":11497,"children":11498},{"style":1061},[11499],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11501,"children":11502},{"style":1070},[11503],{"type":998,"value":11191},{"type":993,"tag":1034,"props":11505,"children":11506},{"style":1061},[11507],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11509,"children":11510},{"style":1070},[11511],{"type":998,"value":11083},{"type":993,"tag":1034,"props":11513,"children":11514},{"style":1061},[11515],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11517,"children":11518},{"style":1070},[11519],{"type":998,"value":4603},{"type":993,"tag":1034,"props":11521,"children":11522},{"style":1061},[11523],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11525,"children":11526},{"style":1070},[11527],{"type":998,"value":11101},{"type":993,"tag":1034,"props":11529,"children":11530},{"style":1061},[11531],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11533,"children":11534},{"style":1070},[11535],{"type":998,"value":9314},{"type":993,"tag":1034,"props":11537,"children":11538},{"style":1061},[11539],{"type":998,"value":11114},{"type":993,"tag":1034,"props":11541,"children":11542},{"class":1036,"line":109},[11543,11547,11551,11555,11560,11564,11568,11572,11577,11581,11585,11589,11593],{"type":993,"tag":1034,"props":11544,"children":11545},{"style":1061},[11546],{"type":998,"value":11381},{"type":993,"tag":1034,"props":11548,"children":11549},{"style":1070},[11550],{"type":998,"value":11065},{"type":993,"tag":1034,"props":11552,"children":11553},{"style":1061},[11554],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11556,"children":11557},{"style":1070},[11558],{"type":998,"value":11559},"\"What is 10 - 4?\"",{"type":993,"tag":1034,"props":11561,"children":11562},{"style":1061},[11563],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11565,"children":11566},{"style":1070},[11567],{"type":998,"value":11083},{"type":993,"tag":1034,"props":11569,"children":11570},{"style":1061},[11571],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11573,"children":11574},{"style":1070},[11575],{"type":998,"value":11576},"\"6\"",{"type":993,"tag":1034,"props":11578,"children":11579},{"style":1061},[11580],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11582,"children":11583},{"style":1070},[11584],{"type":998,"value":11101},{"type":993,"tag":1034,"props":11586,"children":11587},{"style":1061},[11588],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11590,"children":11591},{"style":1070},[11592],{"type":998,"value":10037},{"type":993,"tag":1034,"props":11594,"children":11595},{"style":1061},[11596],{"type":998,"value":11114},{"type":993,"tag":1034,"props":11598,"children":11599},{"class":1036,"line":118},[11600,11604,11608,11612,11617,11621,11625,11629,11634,11638,11642,11646,11650],{"type":993,"tag":1034,"props":11601,"children":11602},{"style":1061},[11603],{"type":998,"value":11381},{"type":993,"tag":1034,"props":11605,"children":11606},{"style":1070},[11607],{"type":998,"value":11065},{"type":993,"tag":1034,"props":11609,"children":11610},{"style":1061},[11611],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11613,"children":11614},{"style":1070},[11615],{"type":998,"value":11616},"\"What color do you get when you mix red and blue?\"",{"type":993,"tag":1034,"props":11618,"children":11619},{"style":1061},[11620],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11622,"children":11623},{"style":1070},[11624],{"type":998,"value":11083},{"type":993,"tag":1034,"props":11626,"children":11627},{"style":1061},[11628],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11630,"children":11631},{"style":1070},[11632],{"type":998,"value":11633},"\"purple\"",{"type":993,"tag":1034,"props":11635,"children":11636},{"style":1061},[11637],{"type":998,"value":1141},{"type":993,"tag":1034,"props":11639,"children":11640},{"style":1070},[11641],{"type":998,"value":11101},{"type":993,"tag":1034,"props":11643,"children":11644},{"style":1061},[11645],{"type":998,"value":6164},{"type":993,"tag":1034,"props":11647,"children":11648},{"style":1070},[11649],{"type":998,"value":9314},{"type":993,"tag":1034,"props":11651,"children":11652},{"style":1061},[11653],{"type":998,"value":11228},{"type":993,"tag":1034,"props":11655,"children":11656},{"class":1036,"line":127},[11657],{"type":993,"tag":1034,"props":11658,"children":11659},{"style":1061},[11660],{"type":998,"value":2766},{"type":993,"tag":1034,"props":11662,"children":11663},{"class":1036,"line":136},[11664],{"type":993,"tag":1034,"props":11665,"children":11666},{"style":1061},[11667],{"type":998,"value":1105},{"type":993,"tag":1034,"props":11669,"children":11670},{"class":1036,"line":146},[11671,11675,11679,11683],{"type":993,"tag":1034,"props":11672,"children":11673},{"style":1079},[11674],{"type":998,"value":1082},{"type":993,"tag":1034,"props":11676,"children":11677},{"style":1061},[11678],{"type":998,"value":1087},{"type":993,"tag":1034,"props":11680,"children":11681},{"style":1070},[11682],{"type":998,"value":10997},{"type":993,"tag":1034,"props":11684,"children":11685},{"style":1061},[11686],{"type":998,"value":1097},{"type":993,"tag":1034,"props":11688,"children":11689},{"class":1036,"line":155},[11690,11694,11698,11702],{"type":993,"tag":1034,"props":11691,"children":11692},{"style":1079},[11693],{"type":998,"value":1082},{"type":993,"tag":1034,"props":11695,"children":11696},{"style":1061},[11697],{"type":998,"value":1087},{"type":993,"tag":1034,"props":11699,"children":11700},{"style":1070},[11701],{"type":998,"value":11017},{"type":993,"tag":1034,"props":11703,"children":11704},{"style":1061},[11705],{"type":998,"value":1097},{"type":993,"tag":1034,"props":11707,"children":11708},{"class":1036,"line":164},[11709,11713,11717,11722,11726,11730],{"type":993,"tag":1034,"props":11710,"children":11711},{"style":1079},[11712],{"type":998,"value":1082},{"type":993,"tag":1034,"props":11714,"children":11715},{"style":1061},[11716],{"type":998,"value":1087},{"type":993,"tag":1034,"props":11718,"children":11719},{"style":1070},[11720],{"type":998,"value":11721},"\"-\"",{"type":993,"tag":1034,"props":11723,"children":11724},{"style":1049},[11725],{"type":998,"value":7053},{"type":993,"tag":1034,"props":11727,"children":11728},{"style":1079},[11729],{"type":998,"value":7058},{"type":993,"tag":1034,"props":11731,"children":11732},{"style":1061},[11733],{"type":998,"value":1097},{"type":993,"tag":1034,"props":11735,"children":11736},{"class":1036,"line":173},[11737],{"type":993,"tag":1034,"props":11738,"children":11739},{"style":1061},[11740],{"type":998,"value":1105},{"type":993,"tag":1034,"props":11742,"children":11743},{"class":1036,"line":182},[11744],{"type":993,"tag":1034,"props":11745,"children":11746},{"style":1040},[11747],{"type":998,"value":11748},"    # Loop through questions\n",{"type":993,"tag":1034,"props":11750,"children":11751},{"class":1036,"line":191},[11752,11756,11761,11765,11769,11774,11778],{"type":993,"tag":1034,"props":11753,"children":11754},{"style":1049},[11755],{"type":998,"value":1218},{"type":993,"tag":1034,"props":11757,"children":11758},{"style":1061},[11759],{"type":998,"value":11760}," i, q ",{"type":993,"tag":1034,"props":11762,"children":11763},{"style":1049},[11764],{"type":998,"value":1228},{"type":993,"tag":1034,"props":11766,"children":11767},{"style":1079},[11768],{"type":998,"value":5025},{"type":993,"tag":1034,"props":11770,"children":11771},{"style":1061},[11772],{"type":998,"value":11773},"(questions, ",{"type":993,"tag":1034,"props":11775,"children":11776},{"style":1079},[11777],{"type":998,"value":5035},{"type":993,"tag":1034,"props":11779,"children":11780},{"style":1061},[11781],{"type":998,"value":1937},{"type":993,"tag":1034,"props":11783,"children":11784},{"class":1036,"line":201},[11785,11789,11793,11797,11801,11805,11810,11814,11818,11822,11827],{"type":993,"tag":1034,"props":11786,"children":11787},{"style":1079},[11788],{"type":998,"value":1246},{"type":993,"tag":1034,"props":11790,"children":11791},{"style":1061},[11792],{"type":998,"value":1087},{"type":993,"tag":1034,"props":11794,"children":11795},{"style":1049},[11796],{"type":998,"value":1255},{"type":993,"tag":1034,"props":11798,"children":11799},{"style":1070},[11800],{"type":998,"value":1260},{"type":993,"tag":1034,"props":11802,"children":11803},{"style":1079},[11804],{"type":998,"value":2083},{"type":993,"tag":1034,"props":11806,"children":11807},{"style":1070},[11808],{"type":998,"value":11809},"Question ",{"type":993,"tag":1034,"props":11811,"children":11812},{"style":1079},[11813],{"type":998,"value":1265},{"type":993,"tag":1034,"props":11815,"children":11816},{"style":1061},[11817],{"type":998,"value":5067},{"type":993,"tag":1034,"props":11819,"children":11820},{"style":1079},[11821],{"type":998,"value":1285},{"type":993,"tag":1034,"props":11823,"children":11824},{"style":1070},[11825],{"type":998,"value":11826},":\"",{"type":993,"tag":1034,"props":11828,"children":11829},{"style":1061},[11830],{"type":998,"value":1097},{"type":993,"tag":1034,"props":11832,"children":11833},{"class":1036,"line":210},[11834,11838,11843,11847,11852,11856,11860,11864],{"type":993,"tag":1034,"props":11835,"children":11836},{"style":1049},[11837],{"type":998,"value":1309},{"type":993,"tag":1034,"props":11839,"children":11840},{"style":1061},[11841],{"type":998,"value":11842}," ask_question(q[",{"type":993,"tag":1034,"props":11844,"children":11845},{"style":1070},[11846],{"type":998,"value":11065},{"type":993,"tag":1034,"props":11848,"children":11849},{"style":1061},[11850],{"type":998,"value":11851},"], q[",{"type":993,"tag":1034,"props":11853,"children":11854},{"style":1070},[11855],{"type":998,"value":11083},{"type":993,"tag":1034,"props":11857,"children":11858},{"style":1061},[11859],{"type":998,"value":11851},{"type":993,"tag":1034,"props":11861,"children":11862},{"style":1070},[11863],{"type":998,"value":11101},{"type":993,"tag":1034,"props":11865,"children":11866},{"style":1061},[11867],{"type":998,"value":8974},{"type":993,"tag":1034,"props":11869,"children":11870},{"class":1036,"line":219},[11871,11876,11881],{"type":993,"tag":1034,"props":11872,"children":11873},{"style":1061},[11874],{"type":998,"value":11875},"            score ",{"type":993,"tag":1034,"props":11877,"children":11878},{"style":1049},[11879],{"type":998,"value":11880},"+=",{"type":993,"tag":1034,"props":11882,"children":11883},{"style":1079},[11884],{"type":998,"value":11885}," 1\n",{"type":993,"tag":1034,"props":11887,"children":11888},{"class":1036,"line":228},[11889,11893,11897,11902],{"type":993,"tag":1034,"props":11890,"children":11891},{"style":1079},[11892],{"type":998,"value":1332},{"type":993,"tag":1034,"props":11894,"children":11895},{"style":1061},[11896],{"type":998,"value":1087},{"type":993,"tag":1034,"props":11898,"children":11899},{"style":1070},[11900],{"type":998,"value":11901},"\"✅ Correct!\"",{"type":993,"tag":1034,"props":11903,"children":11904},{"style":1061},[11905],{"type":998,"value":1097},{"type":993,"tag":1034,"props":11907,"children":11908},{"class":1036,"line":238},[11909,11914],{"type":993,"tag":1034,"props":11910,"children":11911},{"style":1049},[11912],{"type":998,"value":11913},"        else",{"type":993,"tag":1034,"props":11915,"children":11916},{"style":1061},[11917],{"type":998,"value":1400},{"type":993,"tag":1034,"props":11919,"children":11920},{"class":1036,"line":247},[11921,11925,11929,11933,11938,11942,11947,11952,11957,11961,11965],{"type":993,"tag":1034,"props":11922,"children":11923},{"style":1079},[11924],{"type":998,"value":1332},{"type":993,"tag":1034,"props":11926,"children":11927},{"style":1061},[11928],{"type":998,"value":1087},{"type":993,"tag":1034,"props":11930,"children":11931},{"style":1049},[11932],{"type":998,"value":1255},{"type":993,"tag":1034,"props":11934,"children":11935},{"style":1070},[11936],{"type":998,"value":11937},"\"❌ Wrong! The correct answer is: ",{"type":993,"tag":1034,"props":11939,"children":11940},{"style":1079},[11941],{"type":998,"value":1265},{"type":993,"tag":1034,"props":11943,"children":11944},{"style":1061},[11945],{"type":998,"value":11946},"q[",{"type":993,"tag":1034,"props":11948,"children":11949},{"style":1070},[11950],{"type":998,"value":11951},"'answer'",{"type":993,"tag":1034,"props":11953,"children":11954},{"style":1061},[11955],{"type":998,"value":11956},"]",{"type":993,"tag":1034,"props":11958,"children":11959},{"style":1079},[11960],{"type":998,"value":1285},{"type":993,"tag":1034,"props":11962,"children":11963},{"style":1070},[11964],{"type":998,"value":1260},{"type":993,"tag":1034,"props":11966,"children":11967},{"style":1061},[11968],{"type":998,"value":1097},{"type":993,"tag":1034,"props":11970,"children":11971},{"class":1036,"line":256},[11972,11977,11981],{"type":993,"tag":1034,"props":11973,"children":11974},{"style":1061},[11975],{"type":998,"value":11976},"        total_questions ",{"type":993,"tag":1034,"props":11978,"children":11979},{"style":1049},[11980],{"type":998,"value":11880},{"type":993,"tag":1034,"props":11982,"children":11983},{"style":1079},[11984],{"type":998,"value":11885},{"type":993,"tag":1034,"props":11986,"children":11987},{"class":1036,"line":265},[11988],{"type":993,"tag":1034,"props":11989,"children":11990},{"style":1061},[11991],{"type":998,"value":1105},{"type":993,"tag":1034,"props":11993,"children":11994},{"class":1036,"line":274},[11995],{"type":993,"tag":1034,"props":11996,"children":11997},{"style":1040},[11998],{"type":998,"value":11999},"    # Show final results\n",{"type":993,"tag":1034,"props":12001,"children":12002},{"class":1036,"line":284},[12003,12007,12011,12015,12019,12023,12028],{"type":993,"tag":1034,"props":12004,"children":12005},{"style":1079},[12006],{"type":998,"value":1082},{"type":993,"tag":1034,"props":12008,"children":12009},{"style":1061},[12010],{"type":998,"value":1087},{"type":993,"tag":1034,"props":12012,"children":12013},{"style":1049},[12014],{"type":998,"value":1255},{"type":993,"tag":1034,"props":12016,"children":12017},{"style":1070},[12018],{"type":998,"value":1260},{"type":993,"tag":1034,"props":12020,"children":12021},{"style":1079},[12022],{"type":998,"value":2083},{"type":993,"tag":1034,"props":12024,"children":12025},{"style":1070},[12026],{"type":998,"value":12027},"🎯 Quiz Complete!\"",{"type":993,"tag":1034,"props":12029,"children":12030},{"style":1061},[12031],{"type":998,"value":1097},{"type":993,"tag":1034,"props":12033,"children":12034},{"class":1036,"line":293},[12035,12039,12043,12047,12052,12056,12061,12065,12070,12074,12079,12083,12087],{"type":993,"tag":1034,"props":12036,"children":12037},{"style":1079},[12038],{"type":998,"value":1082},{"type":993,"tag":1034,"props":12040,"children":12041},{"style":1061},[12042],{"type":998,"value":1087},{"type":993,"tag":1034,"props":12044,"children":12045},{"style":1049},[12046],{"type":998,"value":1255},{"type":993,"tag":1034,"props":12048,"children":12049},{"style":1070},[12050],{"type":998,"value":12051},"\"Your score: ",{"type":993,"tag":1034,"props":12053,"children":12054},{"style":1079},[12055],{"type":998,"value":1265},{"type":993,"tag":1034,"props":12057,"children":12058},{"style":1061},[12059],{"type":998,"value":12060},"score",{"type":993,"tag":1034,"props":12062,"children":12063},{"style":1079},[12064],{"type":998,"value":1285},{"type":993,"tag":1034,"props":12066,"children":12067},{"style":1070},[12068],{"type":998,"value":12069},"/",{"type":993,"tag":1034,"props":12071,"children":12072},{"style":1079},[12073],{"type":998,"value":1265},{"type":993,"tag":1034,"props":12075,"children":12076},{"style":1061},[12077],{"type":998,"value":12078},"total_questions",{"type":993,"tag":1034,"props":12080,"children":12081},{"style":1079},[12082],{"type":998,"value":1285},{"type":993,"tag":1034,"props":12084,"children":12085},{"style":1070},[12086],{"type":998,"value":1260},{"type":993,"tag":1034,"props":12088,"children":12089},{"style":1061},[12090],{"type":998,"value":1097},{"type":993,"tag":1034,"props":12092,"children":12093},{"class":1036,"line":302},[12094,12099,12103,12108,12112,12117,12122],{"type":993,"tag":1034,"props":12095,"children":12096},{"style":1061},[12097],{"type":998,"value":12098},"    percentage ",{"type":993,"tag":1034,"props":12100,"children":12101},{"style":1049},[12102],{"type":998,"value":1126},{"type":993,"tag":1034,"props":12104,"children":12105},{"style":1061},[12106],{"type":998,"value":12107}," (score ",{"type":993,"tag":1034,"props":12109,"children":12110},{"style":1049},[12111],{"type":998,"value":12069},{"type":993,"tag":1034,"props":12113,"children":12114},{"style":1061},[12115],{"type":998,"value":12116}," total_questions) ",{"type":993,"tag":1034,"props":12118,"children":12119},{"style":1049},[12120],{"type":998,"value":12121},"*",{"type":993,"tag":1034,"props":12123,"children":12124},{"style":1079},[12125],{"type":998,"value":12126}," 100\n",{"type":993,"tag":1034,"props":12128,"children":12129},{"class":1036,"line":311},[12130,12134,12138,12142,12147,12151,12156,12161,12165,12170],{"type":993,"tag":1034,"props":12131,"children":12132},{"style":1079},[12133],{"type":998,"value":1082},{"type":993,"tag":1034,"props":12135,"children":12136},{"style":1061},[12137],{"type":998,"value":1087},{"type":993,"tag":1034,"props":12139,"children":12140},{"style":1049},[12141],{"type":998,"value":1255},{"type":993,"tag":1034,"props":12143,"children":12144},{"style":1070},[12145],{"type":998,"value":12146},"\"Percentage: ",{"type":993,"tag":1034,"props":12148,"children":12149},{"style":1079},[12150],{"type":998,"value":1265},{"type":993,"tag":1034,"props":12152,"children":12153},{"style":1061},[12154],{"type":998,"value":12155},"percentage",{"type":993,"tag":1034,"props":12157,"children":12158},{"style":1049},[12159],{"type":998,"value":12160},":.1f",{"type":993,"tag":1034,"props":12162,"children":12163},{"style":1079},[12164],{"type":998,"value":1285},{"type":993,"tag":1034,"props":12166,"children":12167},{"style":1070},[12168],{"type":998,"value":12169},"%\"",{"type":993,"tag":1034,"props":12171,"children":12172},{"style":1061},[12173],{"type":998,"value":1097},{"type":993,"tag":1034,"props":12175,"children":12176},{"class":1036,"line":320},[12177],{"type":993,"tag":1034,"props":12178,"children":12179},{"style":1061},[12180],{"type":998,"value":1105},{"type":993,"tag":1034,"props":12182,"children":12183},{"class":1036,"line":329},[12184,12188,12193,12197,12202],{"type":993,"tag":1034,"props":12185,"children":12186},{"style":1049},[12187],{"type":998,"value":4422},{"type":993,"tag":1034,"props":12189,"children":12190},{"style":1061},[12191],{"type":998,"value":12192}," percentage ",{"type":993,"tag":1034,"props":12194,"children":12195},{"style":1049},[12196],{"type":998,"value":2223},{"type":993,"tag":1034,"props":12198,"children":12199},{"style":1079},[12200],{"type":998,"value":12201}," 80",{"type":993,"tag":1034,"props":12203,"children":12204},{"style":1061},[12205],{"type":998,"value":1400},{"type":993,"tag":1034,"props":12207,"children":12208},{"class":1036,"line":338},[12209,12213,12217,12222],{"type":993,"tag":1034,"props":12210,"children":12211},{"style":1079},[12212],{"type":998,"value":1246},{"type":993,"tag":1034,"props":12214,"children":12215},{"style":1061},[12216],{"type":998,"value":1087},{"type":993,"tag":1034,"props":12218,"children":12219},{"style":1070},[12220],{"type":998,"value":12221},"\"🎉 Excellent work!\"",{"type":993,"tag":1034,"props":12223,"children":12224},{"style":1061},[12225],{"type":998,"value":1097},{"type":993,"tag":1034,"props":12227,"children":12228},{"class":1036,"line":347},[12229,12233,12237,12241,12246],{"type":993,"tag":1034,"props":12230,"children":12231},{"style":1049},[12232],{"type":998,"value":9564},{"type":993,"tag":1034,"props":12234,"children":12235},{"style":1061},[12236],{"type":998,"value":12192},{"type":993,"tag":1034,"props":12238,"children":12239},{"style":1049},[12240],{"type":998,"value":2223},{"type":993,"tag":1034,"props":12242,"children":12243},{"style":1079},[12244],{"type":998,"value":12245}," 60",{"type":993,"tag":1034,"props":12247,"children":12248},{"style":1061},[12249],{"type":998,"value":1400},{"type":993,"tag":1034,"props":12251,"children":12252},{"class":1036,"line":356},[12253,12257,12261,12266],{"type":993,"tag":1034,"props":12254,"children":12255},{"style":1079},[12256],{"type":998,"value":1246},{"type":993,"tag":1034,"props":12258,"children":12259},{"style":1061},[12260],{"type":998,"value":1087},{"type":993,"tag":1034,"props":12262,"children":12263},{"style":1070},[12264],{"type":998,"value":12265},"\"👍 Good job!\"",{"type":993,"tag":1034,"props":12267,"children":12268},{"style":1061},[12269],{"type":998,"value":1097},{"type":993,"tag":1034,"props":12271,"children":12272},{"class":1036,"line":365},[12273,12278],{"type":993,"tag":1034,"props":12274,"children":12275},{"style":1049},[12276],{"type":998,"value":12277},"    else",{"type":993,"tag":1034,"props":12279,"children":12280},{"style":1061},[12281],{"type":998,"value":1400},{"type":993,"tag":1034,"props":12283,"children":12284},{"class":1036,"line":374},[12285,12289,12293,12298],{"type":993,"tag":1034,"props":12286,"children":12287},{"style":1079},[12288],{"type":998,"value":1246},{"type":993,"tag":1034,"props":12290,"children":12291},{"style":1061},[12292],{"type":998,"value":1087},{"type":993,"tag":1034,"props":12294,"children":12295},{"style":1070},[12296],{"type":998,"value":12297},"\"📚 Keep studying!\"",{"type":993,"tag":1034,"props":12299,"children":12300},{"style":1061},[12301],{"type":998,"value":1097},{"type":993,"tag":1034,"props":12303,"children":12304},{"class":1036,"line":384},[12305],{"type":993,"tag":1034,"props":12306,"children":12307},{"emptyLinePlaceholder":13},[12308],{"type":998,"value":1589},{"type":993,"tag":1034,"props":12310,"children":12311},{"class":1036,"line":393},[12312,12316,12320,12324,12328,12332],{"type":993,"tag":1034,"props":12313,"children":12314},{"style":1049},[12315],{"type":998,"value":1052},{"type":993,"tag":1034,"props":12317,"children":12318},{"style":1055},[12319],{"type":998,"value":10869},{"type":993,"tag":1034,"props":12321,"children":12322},{"style":1061},[12323],{"type":998,"value":10874},{"type":993,"tag":1034,"props":12325,"children":12326},{"style":1049},[12327],{"type":998,"value":1126},{"type":993,"tag":1034,"props":12329,"children":12330},{"style":1070},[12331],{"type":998,"value":9314},{"type":993,"tag":1034,"props":12333,"children":12334},{"style":1061},[12335],{"type":998,"value":1937},{"type":993,"tag":1034,"props":12337,"children":12338},{"class":1036,"line":402},[12339],{"type":993,"tag":1034,"props":12340,"children":12341},{"style":1040},[12342],{"type":998,"value":12343},"    # Display question\n",{"type":993,"tag":1034,"props":12345,"children":12346},{"class":1036,"line":411},[12347,12352,12356,12360,12364,12368,12372,12376,12380,12384,12389],{"type":993,"tag":1034,"props":12348,"children":12349},{"style":1061},[12350],{"type":998,"value":12351},"    user_answer ",{"type":993,"tag":1034,"props":12353,"children":12354},{"style":1049},[12355],{"type":998,"value":1126},{"type":993,"tag":1034,"props":12357,"children":12358},{"style":1079},[12359],{"type":998,"value":1991},{"type":993,"tag":1034,"props":12361,"children":12362},{"style":1061},[12363],{"type":998,"value":1087},{"type":993,"tag":1034,"props":12365,"children":12366},{"style":1049},[12367],{"type":998,"value":1255},{"type":993,"tag":1034,"props":12369,"children":12370},{"style":1070},[12371],{"type":998,"value":1260},{"type":993,"tag":1034,"props":12373,"children":12374},{"style":1079},[12375],{"type":998,"value":1265},{"type":993,"tag":1034,"props":12377,"children":12378},{"style":1061},[12379],{"type":998,"value":6296},{"type":993,"tag":1034,"props":12381,"children":12382},{"style":1079},[12383],{"type":998,"value":1285},{"type":993,"tag":1034,"props":12385,"children":12386},{"style":1070},[12387],{"type":998,"value":12388}," \"",{"type":993,"tag":1034,"props":12390,"children":12391},{"style":1061},[12392],{"type":998,"value":1097},{"type":993,"tag":1034,"props":12394,"children":12395},{"class":1036,"line":420},[12396],{"type":993,"tag":1034,"props":12397,"children":12398},{"style":1061},[12399],{"type":998,"value":1105},{"type":993,"tag":1034,"props":12401,"children":12402},{"class":1036,"line":429},[12403],{"type":993,"tag":1034,"props":12404,"children":12405},{"style":1040},[12406],{"type":998,"value":12407},"    # Validate answer based on type\n",{"type":993,"tag":1034,"props":12409,"children":12410},{"class":1036,"line":438},[12411,12415,12420,12424,12428],{"type":993,"tag":1034,"props":12412,"children":12413},{"style":1049},[12414],{"type":998,"value":4422},{"type":993,"tag":1034,"props":12416,"children":12417},{"style":1061},[12418],{"type":998,"value":12419}," question_type ",{"type":993,"tag":1034,"props":12421,"children":12422},{"style":1049},[12423],{"type":998,"value":6409},{"type":993,"tag":1034,"props":12425,"children":12426},{"style":1070},[12427],{"type":998,"value":9577},{"type":993,"tag":1034,"props":12429,"children":12430},{"style":1061},[12431],{"type":998,"value":1400},{"type":993,"tag":1034,"props":12433,"children":12434},{"class":1036,"line":447},[12435,12439],{"type":993,"tag":1034,"props":12436,"children":12437},{"style":1049},[12438],{"type":998,"value":1970},{"type":993,"tag":1034,"props":12440,"children":12441},{"style":1061},[12442],{"type":998,"value":1400},{"type":993,"tag":1034,"props":12444,"children":12445},{"class":1036,"line":457},[12446],{"type":993,"tag":1034,"props":12447,"children":12448},{"style":1040},[12449],{"type":998,"value":12450},"            # Convert both to numbers for comparison\n",{"type":993,"tag":1034,"props":12452,"children":12453},{"class":1036,"line":466},[12454,12459,12463,12467],{"type":993,"tag":1034,"props":12455,"children":12456},{"style":1061},[12457],{"type":998,"value":12458},"            user_num ",{"type":993,"tag":1034,"props":12460,"children":12461},{"style":1049},[12462],{"type":998,"value":1126},{"type":993,"tag":1034,"props":12464,"children":12465},{"style":1079},[12466],{"type":998,"value":3923},{"type":993,"tag":1034,"props":12468,"children":12469},{"style":1061},[12470],{"type":998,"value":12471},"(user_answer)\n",{"type":993,"tag":1034,"props":12473,"children":12474},{"class":1036,"line":475},[12475,12480,12484,12488],{"type":993,"tag":1034,"props":12476,"children":12477},{"style":1061},[12478],{"type":998,"value":12479},"            correct_num ",{"type":993,"tag":1034,"props":12481,"children":12482},{"style":1049},[12483],{"type":998,"value":1126},{"type":993,"tag":1034,"props":12485,"children":12486},{"style":1079},[12487],{"type":998,"value":3923},{"type":993,"tag":1034,"props":12489,"children":12490},{"style":1061},[12491],{"type":998,"value":12492},"(correct_answer)\n",{"type":993,"tag":1034,"props":12494,"children":12495},{"class":1036,"line":484},[12496,12500,12505,12509],{"type":993,"tag":1034,"props":12497,"children":12498},{"style":1049},[12499],{"type":998,"value":2100},{"type":993,"tag":1034,"props":12501,"children":12502},{"style":1061},[12503],{"type":998,"value":12504}," user_num ",{"type":993,"tag":1034,"props":12506,"children":12507},{"style":1049},[12508],{"type":998,"value":6409},{"type":993,"tag":1034,"props":12510,"children":12511},{"style":1061},[12512],{"type":998,"value":12513}," correct_num\n",{"type":993,"tag":1034,"props":12515,"children":12516},{"class":1036,"line":493},[12517,12521,12525],{"type":993,"tag":1034,"props":12518,"children":12519},{"style":1049},[12520],{"type":998,"value":2054},{"type":993,"tag":1034,"props":12522,"children":12523},{"style":1079},[12524],{"type":998,"value":1484},{"type":993,"tag":1034,"props":12526,"children":12527},{"style":1061},[12528],{"type":998,"value":1400},{"type":993,"tag":1034,"props":12530,"children":12531},{"class":1036,"line":502},[12532,12536],{"type":993,"tag":1034,"props":12533,"children":12534},{"style":1049},[12535],{"type":998,"value":2100},{"type":993,"tag":1034,"props":12537,"children":12538},{"style":1079},[12539],{"type":998,"value":2463},{"type":993,"tag":1034,"props":12541,"children":12542},{"class":1036,"line":511},[12543,12547],{"type":993,"tag":1034,"props":12544,"children":12545},{"style":1049},[12546],{"type":998,"value":12277},{"type":993,"tag":1034,"props":12548,"children":12549},{"style":1061},[12550],{"type":998,"value":1400},{"type":993,"tag":1034,"props":12552,"children":12553},{"class":1036,"line":520},[12554],{"type":993,"tag":1034,"props":12555,"children":12556},{"style":1040},[12557],{"type":998,"value":12558},"        # Text comparison (case insensitive)\n",{"type":993,"tag":1034,"props":12560,"children":12561},{"class":1036,"line":530},[12562,12566,12571,12575],{"type":993,"tag":1034,"props":12563,"children":12564},{"style":1049},[12565],{"type":998,"value":2410},{"type":993,"tag":1034,"props":12567,"children":12568},{"style":1061},[12569],{"type":998,"value":12570}," user_answer.lower().strip() ",{"type":993,"tag":1034,"props":12572,"children":12573},{"style":1049},[12574],{"type":998,"value":6409},{"type":993,"tag":1034,"props":12576,"children":12577},{"style":1061},[12578],{"type":998,"value":12579}," correct_answer.lower().strip()\n",{"type":993,"tag":1034,"props":12581,"children":12582},{"class":1036,"line":539},[12583],{"type":993,"tag":1034,"props":12584,"children":12585},{"emptyLinePlaceholder":13},[12586],{"type":998,"value":1589},{"type":993,"tag":1034,"props":12588,"children":12589},{"class":1036,"line":548},[12590],{"type":993,"tag":1034,"props":12591,"children":12592},{"style":1040},[12593],{"type":998,"value":12594},"# Test your quiz game (simulation without actual input)\n",{"type":993,"tag":1034,"props":12596,"children":12597},{"class":1036,"line":557},[12598,12602,12607],{"type":993,"tag":1034,"props":12599,"children":12600},{"style":1049},[12601],{"type":998,"value":1052},{"type":993,"tag":1034,"props":12603,"children":12604},{"style":1055},[12605],{"type":998,"value":12606}," simulate_quiz",{"type":993,"tag":1034,"props":12608,"children":12609},{"style":1061},[12610],{"type":998,"value":1064},{"type":993,"tag":1034,"props":12612,"children":12613},{"class":1036,"line":566},[12614],{"type":993,"tag":1034,"props":12615,"children":12616},{"style":1040},[12617],{"type":998,"value":12618},"    # Simulate user answers for demonstration\n",{"type":993,"tag":1034,"props":12620,"children":12621},{"class":1036,"line":575},[12622,12626,12630],{"type":993,"tag":1034,"props":12623,"children":12624},{"style":1061},[12625],{"type":998,"value":11365},{"type":993,"tag":1034,"props":12627,"children":12628},{"style":1049},[12629],{"type":998,"value":1126},{"type":993,"tag":1034,"props":12631,"children":12632},{"style":1061},[12633],{"type":998,"value":2554},{"type":993,"tag":1034,"props":12635,"children":12636},{"class":1036,"line":584},[12637,12641,12645,12649,12653,12657,12661,12665,12669,12673,12677,12681,12685],{"type":993,"tag":1034,"props":12638,"children":12639},{"style":1061},[12640],{"type":998,"value":11381},{"type":993,"tag":1034,"props":12642,"children":12643},{"style":1070},[12644],{"type":998,"value":11065},{"type":993,"tag":1034,"props":12646,"children":12647},{"style":1061},[12648],{"type":998,"value":6164},{"type":993,"tag":1034,"props":12650,"children":12651},{"style":1070},[12652],{"type":998,"value":11074},{"type":993,"tag":1034,"props":12654,"children":12655},{"style":1061},[12656],{"type":998,"value":1141},{"type":993,"tag":1034,"props":12658,"children":12659},{"style":1070},[12660],{"type":998,"value":11083},{"type":993,"tag":1034,"props":12662,"children":12663},{"style":1061},[12664],{"type":998,"value":6164},{"type":993,"tag":1034,"props":12666,"children":12667},{"style":1070},[12668],{"type":998,"value":11092},{"type":993,"tag":1034,"props":12670,"children":12671},{"style":1061},[12672],{"type":998,"value":1141},{"type":993,"tag":1034,"props":12674,"children":12675},{"style":1070},[12676],{"type":998,"value":11101},{"type":993,"tag":1034,"props":12678,"children":12679},{"style":1061},[12680],{"type":998,"value":6164},{"type":993,"tag":1034,"props":12682,"children":12683},{"style":1070},[12684],{"type":998,"value":10037},{"type":993,"tag":1034,"props":12686,"children":12687},{"style":1061},[12688],{"type":998,"value":11114},{"type":993,"tag":1034,"props":12690,"children":12691},{"class":1036,"line":593},[12692,12696,12700,12704,12708,12712,12716,12720,12724,12728,12732,12736,12740],{"type":993,"tag":1034,"props":12693,"children":12694},{"style":1061},[12695],{"type":998,"value":11381},{"type":993,"tag":1034,"props":12697,"children":12698},{"style":1070},[12699],{"type":998,"value":11065},{"type":993,"tag":1034,"props":12701,"children":12702},{"style":1061},[12703],{"type":998,"value":6164},{"type":993,"tag":1034,"props":12705,"children":12706},{"style":1070},[12707],{"type":998,"value":11134},{"type":993,"tag":1034,"props":12709,"children":12710},{"style":1061},[12711],{"type":998,"value":1141},{"type":993,"tag":1034,"props":12713,"children":12714},{"style":1070},[12715],{"type":998,"value":11083},{"type":993,"tag":1034,"props":12717,"children":12718},{"style":1061},[12719],{"type":998,"value":6164},{"type":993,"tag":1034,"props":12721,"children":12722},{"style":1070},[12723],{"type":998,"value":11151},{"type":993,"tag":1034,"props":12725,"children":12726},{"style":1061},[12727],{"type":998,"value":1141},{"type":993,"tag":1034,"props":12729,"children":12730},{"style":1070},[12731],{"type":998,"value":11101},{"type":993,"tag":1034,"props":12733,"children":12734},{"style":1061},[12735],{"type":998,"value":6164},{"type":993,"tag":1034,"props":12737,"children":12738},{"style":1070},[12739],{"type":998,"value":9314},{"type":993,"tag":1034,"props":12741,"children":12742},{"style":1061},[12743],{"type":998,"value":11114},{"type":993,"tag":1034,"props":12745,"children":12746},{"class":1036,"line":602},[12747,12751,12755,12759,12763,12767,12771,12775,12779,12783,12787,12791,12795],{"type":993,"tag":1034,"props":12748,"children":12749},{"style":1061},[12750],{"type":998,"value":11381},{"type":993,"tag":1034,"props":12752,"children":12753},{"style":1070},[12754],{"type":998,"value":11065},{"type":993,"tag":1034,"props":12756,"children":12757},{"style":1061},[12758],{"type":998,"value":6164},{"type":993,"tag":1034,"props":12760,"children":12761},{"style":1070},[12762],{"type":998,"value":11191},{"type":993,"tag":1034,"props":12764,"children":12765},{"style":1061},[12766],{"type":998,"value":1141},{"type":993,"tag":1034,"props":12768,"children":12769},{"style":1070},[12770],{"type":998,"value":11083},{"type":993,"tag":1034,"props":12772,"children":12773},{"style":1061},[12774],{"type":998,"value":6164},{"type":993,"tag":1034,"props":12776,"children":12777},{"style":1070},[12778],{"type":998,"value":4603},{"type":993,"tag":1034,"props":12780,"children":12781},{"style":1061},[12782],{"type":998,"value":1141},{"type":993,"tag":1034,"props":12784,"children":12785},{"style":1070},[12786],{"type":998,"value":11101},{"type":993,"tag":1034,"props":12788,"children":12789},{"style":1061},[12790],{"type":998,"value":6164},{"type":993,"tag":1034,"props":12792,"children":12793},{"style":1070},[12794],{"type":998,"value":9314},{"type":993,"tag":1034,"props":12796,"children":12797},{"style":1061},[12798],{"type":998,"value":11228},{"type":993,"tag":1034,"props":12800,"children":12801},{"class":1036,"line":611},[12802],{"type":993,"tag":1034,"props":12803,"children":12804},{"style":1061},[12805],{"type":998,"value":2766},{"type":993,"tag":1034,"props":12807,"children":12808},{"class":1036,"line":621},[12809],{"type":993,"tag":1034,"props":12810,"children":12811},{"style":1061},[12812],{"type":998,"value":1105},{"type":993,"tag":1034,"props":12814,"children":12815},{"class":1036,"line":630},[12816],{"type":993,"tag":1034,"props":12817,"children":12818},{"style":1040},[12819],{"type":998,"value":12820},"    # Simulated answers\n",{"type":993,"tag":1034,"props":12822,"children":12823},{"class":1036,"line":639},[12824,12829,12833,12837,12841,12845,12850,12854,12858],{"type":993,"tag":1034,"props":12825,"children":12826},{"style":1061},[12827],{"type":998,"value":12828},"    simulated_answers ",{"type":993,"tag":1034,"props":12830,"children":12831},{"style":1049},[12832],{"type":998,"value":1126},{"type":993,"tag":1034,"props":12834,"children":12835},{"style":1061},[12836],{"type":998,"value":1131},{"type":993,"tag":1034,"props":12838,"children":12839},{"style":1070},[12840],{"type":998,"value":11092},{"type":993,"tag":1034,"props":12842,"children":12843},{"style":1061},[12844],{"type":998,"value":1141},{"type":993,"tag":1034,"props":12846,"children":12847},{"style":1070},[12848],{"type":998,"value":12849},"\"Paris\"",{"type":993,"tag":1034,"props":12851,"children":12852},{"style":1061},[12853],{"type":998,"value":1141},{"type":993,"tag":1034,"props":12855,"children":12856},{"style":1070},[12857],{"type":998,"value":4603},{"type":993,"tag":1034,"props":12859,"children":12860},{"style":1061},[12861],{"type":998,"value":1160},{"type":993,"tag":1034,"props":12863,"children":12864},{"class":1036,"line":648},[12865],{"type":993,"tag":1034,"props":12866,"children":12867},{"style":1061},[12868],{"type":998,"value":1105},{"type":993,"tag":1034,"props":12870,"children":12871},{"class":1036,"line":657},[12872,12876,12880,12885],{"type":993,"tag":1034,"props":12873,"children":12874},{"style":1079},[12875],{"type":998,"value":1082},{"type":993,"tag":1034,"props":12877,"children":12878},{"style":1061},[12879],{"type":998,"value":1087},{"type":993,"tag":1034,"props":12881,"children":12882},{"style":1070},[12883],{"type":998,"value":12884},"\"Quiz Simulation:\"",{"type":993,"tag":1034,"props":12886,"children":12887},{"style":1061},[12888],{"type":998,"value":1097},{"type":993,"tag":1034,"props":12890,"children":12891},{"class":1036,"line":666},[12892,12896,12900],{"type":993,"tag":1034,"props":12893,"children":12894},{"style":1061},[12895],{"type":998,"value":11317},{"type":993,"tag":1034,"props":12897,"children":12898},{"style":1049},[12899],{"type":998,"value":1126},{"type":993,"tag":1034,"props":12901,"children":12902},{"style":1079},[12903],{"type":998,"value":11326},{"type":993,"tag":1034,"props":12905,"children":12906},{"class":1036,"line":675},[12907],{"type":993,"tag":1034,"props":12908,"children":12909},{"style":1061},[12910],{"type":998,"value":1105},{"type":993,"tag":1034,"props":12912,"children":12913},{"class":1036,"line":685},[12914,12918,12922,12926,12930],{"type":993,"tag":1034,"props":12915,"children":12916},{"style":1049},[12917],{"type":998,"value":1218},{"type":993,"tag":1034,"props":12919,"children":12920},{"style":1061},[12921],{"type":998,"value":11760},{"type":993,"tag":1034,"props":12923,"children":12924},{"style":1049},[12925],{"type":998,"value":1228},{"type":993,"tag":1034,"props":12927,"children":12928},{"style":1079},[12929],{"type":998,"value":5025},{"type":993,"tag":1034,"props":12931,"children":12932},{"style":1061},[12933],{"type":998,"value":12934},"(questions):\n",{"type":993,"tag":1034,"props":12936,"children":12937},{"class":1036,"line":694},[12938,12942,12946,12950,12954,12958,12962,12966,12970,12974,12979,12983,12987,12991,12996,13000,13004,13008],{"type":993,"tag":1034,"props":12939,"children":12940},{"style":1079},[12941],{"type":998,"value":1246},{"type":993,"tag":1034,"props":12943,"children":12944},{"style":1061},[12945],{"type":998,"value":1087},{"type":993,"tag":1034,"props":12947,"children":12948},{"style":1049},[12949],{"type":998,"value":1255},{"type":993,"tag":1034,"props":12951,"children":12952},{"style":1070},[12953],{"type":998,"value":1260},{"type":993,"tag":1034,"props":12955,"children":12956},{"style":1079},[12957],{"type":998,"value":2083},{"type":993,"tag":1034,"props":12959,"children":12960},{"style":1070},[12961],{"type":998,"value":11809},{"type":993,"tag":1034,"props":12963,"children":12964},{"style":1079},[12965],{"type":998,"value":1265},{"type":993,"tag":1034,"props":12967,"children":12968},{"style":1061},[12969],{"type":998,"value":5067},{"type":993,"tag":1034,"props":12971,"children":12972},{"style":1049},[12973],{"type":998,"value":1457},{"type":993,"tag":1034,"props":12975,"children":12976},{"style":1079},[12977],{"type":998,"value":12978},"1}",{"type":993,"tag":1034,"props":12980,"children":12981},{"style":1070},[12982],{"type":998,"value":6164},{"type":993,"tag":1034,"props":12984,"children":12985},{"style":1079},[12986],{"type":998,"value":1265},{"type":993,"tag":1034,"props":12988,"children":12989},{"style":1061},[12990],{"type":998,"value":11946},{"type":993,"tag":1034,"props":12992,"children":12993},{"style":1070},[12994],{"type":998,"value":12995},"'question'",{"type":993,"tag":1034,"props":12997,"children":12998},{"style":1061},[12999],{"type":998,"value":11956},{"type":993,"tag":1034,"props":13001,"children":13002},{"style":1079},[13003],{"type":998,"value":1285},{"type":993,"tag":1034,"props":13005,"children":13006},{"style":1070},[13007],{"type":998,"value":1260},{"type":993,"tag":1034,"props":13009,"children":13010},{"style":1061},[13011],{"type":998,"value":1097},{"type":993,"tag":1034,"props":13013,"children":13014},{"class":1036,"line":703},[13015,13019,13023,13027,13032,13036,13041,13045,13049],{"type":993,"tag":1034,"props":13016,"children":13017},{"style":1079},[13018],{"type":998,"value":1246},{"type":993,"tag":1034,"props":13020,"children":13021},{"style":1061},[13022],{"type":998,"value":1087},{"type":993,"tag":1034,"props":13024,"children":13025},{"style":1049},[13026],{"type":998,"value":1255},{"type":993,"tag":1034,"props":13028,"children":13029},{"style":1070},[13030],{"type":998,"value":13031},"\"Your answer: ",{"type":993,"tag":1034,"props":13033,"children":13034},{"style":1079},[13035],{"type":998,"value":1265},{"type":993,"tag":1034,"props":13037,"children":13038},{"style":1061},[13039],{"type":998,"value":13040},"simulated_answers[i]",{"type":993,"tag":1034,"props":13042,"children":13043},{"style":1079},[13044],{"type":998,"value":1285},{"type":993,"tag":1034,"props":13046,"children":13047},{"style":1070},[13048],{"type":998,"value":1260},{"type":993,"tag":1034,"props":13050,"children":13051},{"style":1061},[13052],{"type":998,"value":1097},{"type":993,"tag":1034,"props":13054,"children":13055},{"class":1036,"line":712},[13056],{"type":993,"tag":1034,"props":13057,"children":13058},{"style":1061},[13059],{"type":998,"value":1301},{"type":993,"tag":1034,"props":13061,"children":13062},{"class":1036,"line":721},[13063],{"type":993,"tag":1034,"props":13064,"children":13065},{"style":1040},[13066],{"type":998,"value":13067},"        # Check answer\n",{"type":993,"tag":1034,"props":13069,"children":13070},{"class":1036,"line":730},[13071,13075,13080,13084,13088,13092,13096],{"type":993,"tag":1034,"props":13072,"children":13073},{"style":1049},[13074],{"type":998,"value":1309},{"type":993,"tag":1034,"props":13076,"children":13077},{"style":1061},[13078],{"type":998,"value":13079}," q[",{"type":993,"tag":1034,"props":13081,"children":13082},{"style":1070},[13083],{"type":998,"value":11101},{"type":993,"tag":1034,"props":13085,"children":13086},{"style":1061},[13087],{"type":998,"value":7593},{"type":993,"tag":1034,"props":13089,"children":13090},{"style":1049},[13091],{"type":998,"value":6409},{"type":993,"tag":1034,"props":13093,"children":13094},{"style":1070},[13095],{"type":998,"value":9577},{"type":993,"tag":1034,"props":13097,"children":13098},{"style":1061},[13099],{"type":998,"value":1400},{"type":993,"tag":1034,"props":13101,"children":13102},{"class":1036,"line":739},[13103,13108,13112,13117,13121,13125,13129],{"type":993,"tag":1034,"props":13104,"children":13105},{"style":1061},[13106],{"type":998,"value":13107},"            correct ",{"type":993,"tag":1034,"props":13109,"children":13110},{"style":1049},[13111],{"type":998,"value":1126},{"type":993,"tag":1034,"props":13113,"children":13114},{"style":1061},[13115],{"type":998,"value":13116}," simulated_answers[i] ",{"type":993,"tag":1034,"props":13118,"children":13119},{"style":1049},[13120],{"type":998,"value":6409},{"type":993,"tag":1034,"props":13122,"children":13123},{"style":1061},[13124],{"type":998,"value":13079},{"type":993,"tag":1034,"props":13126,"children":13127},{"style":1070},[13128],{"type":998,"value":11083},{"type":993,"tag":1034,"props":13130,"children":13131},{"style":1061},[13132],{"type":998,"value":1160},{"type":993,"tag":1034,"props":13134,"children":13135},{"class":1036,"line":749},[13136,13140],{"type":993,"tag":1034,"props":13137,"children":13138},{"style":1049},[13139],{"type":998,"value":11913},{"type":993,"tag":1034,"props":13141,"children":13142},{"style":1061},[13143],{"type":998,"value":1400},{"type":993,"tag":1034,"props":13145,"children":13146},{"class":1036,"line":758},[13147,13151,13155,13160,13164,13168,13172],{"type":993,"tag":1034,"props":13148,"children":13149},{"style":1061},[13150],{"type":998,"value":13107},{"type":993,"tag":1034,"props":13152,"children":13153},{"style":1049},[13154],{"type":998,"value":1126},{"type":993,"tag":1034,"props":13156,"children":13157},{"style":1061},[13158],{"type":998,"value":13159}," simulated_answers[i].lower() ",{"type":993,"tag":1034,"props":13161,"children":13162},{"style":1049},[13163],{"type":998,"value":6409},{"type":993,"tag":1034,"props":13165,"children":13166},{"style":1061},[13167],{"type":998,"value":13079},{"type":993,"tag":1034,"props":13169,"children":13170},{"style":1070},[13171],{"type":998,"value":11083},{"type":993,"tag":1034,"props":13173,"children":13174},{"style":1061},[13175],{"type":998,"value":13176},"].lower()\n",{"type":993,"tag":1034,"props":13178,"children":13179},{"class":1036,"line":767},[13180],{"type":993,"tag":1034,"props":13181,"children":13182},{"style":1061},[13183],{"type":998,"value":1301},{"type":993,"tag":1034,"props":13185,"children":13186},{"class":1036,"line":7397},[13187,13191],{"type":993,"tag":1034,"props":13188,"children":13189},{"style":1049},[13190],{"type":998,"value":1309},{"type":993,"tag":1034,"props":13192,"children":13193},{"style":1061},[13194],{"type":998,"value":13195}," correct:\n",{"type":993,"tag":1034,"props":13197,"children":13198},{"class":1036,"line":776},[13199,13203,13207],{"type":993,"tag":1034,"props":13200,"children":13201},{"style":1061},[13202],{"type":998,"value":11875},{"type":993,"tag":1034,"props":13204,"children":13205},{"style":1049},[13206],{"type":998,"value":11880},{"type":993,"tag":1034,"props":13208,"children":13209},{"style":1079},[13210],{"type":998,"value":11885},{"type":993,"tag":1034,"props":13212,"children":13213},{"class":1036,"line":785},[13214,13218,13222,13226],{"type":993,"tag":1034,"props":13215,"children":13216},{"style":1079},[13217],{"type":998,"value":1332},{"type":993,"tag":1034,"props":13219,"children":13220},{"style":1061},[13221],{"type":998,"value":1087},{"type":993,"tag":1034,"props":13223,"children":13224},{"style":1070},[13225],{"type":998,"value":11901},{"type":993,"tag":1034,"props":13227,"children":13228},{"style":1061},[13229],{"type":998,"value":1097},{"type":993,"tag":1034,"props":13231,"children":13232},{"class":1036,"line":794},[13233,13237],{"type":993,"tag":1034,"props":13234,"children":13235},{"style":1049},[13236],{"type":998,"value":11913},{"type":993,"tag":1034,"props":13238,"children":13239},{"style":1061},[13240],{"type":998,"value":1400},{"type":993,"tag":1034,"props":13242,"children":13243},{"class":1036,"line":803},[13244,13248,13252,13256,13261,13265,13269,13273,13277,13281,13285],{"type":993,"tag":1034,"props":13245,"children":13246},{"style":1079},[13247],{"type":998,"value":1332},{"type":993,"tag":1034,"props":13249,"children":13250},{"style":1061},[13251],{"type":998,"value":1087},{"type":993,"tag":1034,"props":13253,"children":13254},{"style":1049},[13255],{"type":998,"value":1255},{"type":993,"tag":1034,"props":13257,"children":13258},{"style":1070},[13259],{"type":998,"value":13260},"\"❌ Wrong! Correct answer: ",{"type":993,"tag":1034,"props":13262,"children":13263},{"style":1079},[13264],{"type":998,"value":1265},{"type":993,"tag":1034,"props":13266,"children":13267},{"style":1061},[13268],{"type":998,"value":11946},{"type":993,"tag":1034,"props":13270,"children":13271},{"style":1070},[13272],{"type":998,"value":11951},{"type":993,"tag":1034,"props":13274,"children":13275},{"style":1061},[13276],{"type":998,"value":11956},{"type":993,"tag":1034,"props":13278,"children":13279},{"style":1079},[13280],{"type":998,"value":1285},{"type":993,"tag":1034,"props":13282,"children":13283},{"style":1070},[13284],{"type":998,"value":1260},{"type":993,"tag":1034,"props":13286,"children":13287},{"style":1061},[13288],{"type":998,"value":1097},{"type":993,"tag":1034,"props":13290,"children":13291},{"class":1036,"line":812},[13292],{"type":993,"tag":1034,"props":13293,"children":13294},{"style":1061},[13295],{"type":998,"value":1105},{"type":993,"tag":1034,"props":13297,"children":13298},{"class":1036,"line":822},[13299,13303,13307,13311,13315,13319,13324,13328,13332,13336,13340,13344,13349,13353,13357],{"type":993,"tag":1034,"props":13300,"children":13301},{"style":1079},[13302],{"type":998,"value":1082},{"type":993,"tag":1034,"props":13304,"children":13305},{"style":1061},[13306],{"type":998,"value":1087},{"type":993,"tag":1034,"props":13308,"children":13309},{"style":1049},[13310],{"type":998,"value":1255},{"type":993,"tag":1034,"props":13312,"children":13313},{"style":1070},[13314],{"type":998,"value":1260},{"type":993,"tag":1034,"props":13316,"children":13317},{"style":1079},[13318],{"type":998,"value":2083},{"type":993,"tag":1034,"props":13320,"children":13321},{"style":1070},[13322],{"type":998,"value":13323},"Final Score: ",{"type":993,"tag":1034,"props":13325,"children":13326},{"style":1079},[13327],{"type":998,"value":1265},{"type":993,"tag":1034,"props":13329,"children":13330},{"style":1061},[13331],{"type":998,"value":12060},{"type":993,"tag":1034,"props":13333,"children":13334},{"style":1079},[13335],{"type":998,"value":1285},{"type":993,"tag":1034,"props":13337,"children":13338},{"style":1070},[13339],{"type":998,"value":12069},{"type":993,"tag":1034,"props":13341,"children":13342},{"style":1079},[13343],{"type":998,"value":5240},{"type":993,"tag":1034,"props":13345,"children":13346},{"style":1061},[13347],{"type":998,"value":13348},"(questions)",{"type":993,"tag":1034,"props":13350,"children":13351},{"style":1079},[13352],{"type":998,"value":1285},{"type":993,"tag":1034,"props":13354,"children":13355},{"style":1070},[13356],{"type":998,"value":1260},{"type":993,"tag":1034,"props":13358,"children":13359},{"style":1061},[13360],{"type":998,"value":1097},{"type":993,"tag":1034,"props":13362,"children":13363},{"class":1036,"line":831},[13364],{"type":993,"tag":1034,"props":13365,"children":13366},{"emptyLinePlaceholder":13},[13367],{"type":998,"value":1589},{"type":993,"tag":1034,"props":13369,"children":13370},{"class":1036,"line":840},[13371],{"type":993,"tag":1034,"props":13372,"children":13373},{"style":1040},[13374],{"type":998,"value":13375},"# Run simulation\n",{"type":993,"tag":1034,"props":13377,"children":13378},{"class":1036,"line":849},[13379],{"type":993,"tag":1034,"props":13380,"children":13381},{"style":1061},[13382],{"type":998,"value":13383},"simulate_quiz()\n",{"type":993,"tag":1034,"props":13385,"children":13386},{"class":1036,"line":858},[13387],{"type":993,"tag":1034,"props":13388,"children":13389},{"emptyLinePlaceholder":13},[13390],{"type":998,"value":1589},{"type":993,"tag":1034,"props":13392,"children":13393},{"class":1036,"line":868},[13394],{"type":993,"tag":1034,"props":13395,"children":13396},{"style":1040},[13397],{"type":998,"value":13398},"# Uncomment to run actual interactive quiz:\n",{"type":993,"tag":1034,"props":13400,"children":13401},{"class":1036,"line":877},[13402],{"type":993,"tag":1034,"props":13403,"children":13404},{"style":1040},[13405],{"type":998,"value":13406},"# create_quiz_game()\n",{"type":993,"tag":1001,"props":13408,"children":13409},{},[13410],{"type":993,"tag":1621,"props":13411,"children":13412},{},[13413],{"type":998,"value":13414},"Key Learning Points:",{"type":993,"tag":1627,"props":13416,"children":13417},{},[13418,13430,13440,13451,13462],{"type":993,"tag":1631,"props":13419,"children":13420},{},[13421,13423,13428],{"type":998,"value":13422},"📌 ",{"type":993,"tag":1621,"props":13424,"children":13425},{},[13426],{"type":998,"value":13427},"input() function",{"type":998,"value":13429},": Gets text input from the user",{"type":993,"tag":1631,"props":13431,"children":13432},{},[13433,13434,13438],{"type":998,"value":13422},{"type":993,"tag":1621,"props":13435,"children":13436},{},[13437],{"type":998,"value":10646},{"type":998,"value":13439},": Check answer types and formats before processing",{"type":993,"tag":1631,"props":13441,"children":13442},{},[13443,13444,13449],{"type":998,"value":13422},{"type":993,"tag":1621,"props":13445,"children":13446},{},[13447],{"type":998,"value":13448},"String methods",{"type":998,"value":13450},": Use .lower() and .strip() for flexible text comparison",{"type":993,"tag":1631,"props":13452,"children":13453},{},[13454,13455,13460],{"type":998,"value":13422},{"type":993,"tag":1621,"props":13456,"children":13457},{},[13458],{"type":998,"value":13459},"Score tracking",{"type":998,"value":13461},": Keep count of correct answers and total questions",{"type":993,"tag":1631,"props":13463,"children":13464},{},[13465,13466,13471],{"type":998,"value":13422},{"type":993,"tag":1621,"props":13467,"children":13468},{},[13469],{"type":998,"value":13470},"User feedback",{"type":998,"value":13472},": Provide immediate feedback after each answer",{"type":993,"tag":1599,"props":13474,"children":13476},{"id":13475},"test-your-knowledge",[13477],{"type":998,"value":13478},"Test Your Knowledge",{"type":993,"tag":1001,"props":13480,"children":13481},{},[13482],{"type":998,"value":13483},"Test what you've learned about getting user input:",{"type":993,"tag":13485,"props":13486,"children":13490},"redirect-button",{"icon":13487,"label":13488,"url":13489},"pi pi-send","Take Quiz","/tutorial-quiz/python/getting-user-input",[],{"type":993,"tag":1599,"props":13492,"children":13494},{"id":13493},"whats-next",[13495],{"type":998,"value":13496},"What's Next?",{"type":993,"tag":1001,"props":13498,"children":13499},{},[13500],{"type":998,"value":13501},"Now that you can handle user input effectively, you're ready to explore text formatting. Learn how to create professional, well-formatted output that enhances the user experience of your applications.",{"type":993,"tag":1001,"props":13503,"children":13504},{},[13505,13507,13512],{"type":998,"value":13506},"Ready to continue? Check out our lesson on ",{"type":993,"tag":13508,"props":13509,"children":13510},"a",{"href":799},[13511],{"type":998,"value":800},{"type":998,"value":13513},".",{"type":993,"tag":13515,"props":13516,"children":13517},"style",{},[13518],{"type":998,"value":13519},"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":13521},[13522,13525,13529,13533,13536,13539,13540],{"id":1601,"depth":27,"text":1604,"children":13523},[13524],{"id":1888,"depth":36,"text":1891},{"id":2942,"depth":27,"text":2945,"children":13526},[13527,13528],{"id":2948,"depth":36,"text":2951},{"id":4358,"depth":36,"text":4361},{"id":5702,"depth":27,"text":5705,"children":13530},[13531,13532],{"id":5708,"depth":36,"text":5711},{"id":8251,"depth":36,"text":8254},{"id":9244,"depth":27,"text":9247,"children":13534},[13535],{"id":9250,"depth":36,"text":9253},{"id":10426,"depth":27,"text":10429,"children":13537},[13538],{"id":11261,"depth":36,"text":11264},{"id":13475,"depth":27,"text":13478},{"id":13493,"depth":27,"text":13496},1782373749618]