{"componentChunkName":"component---node-modules-smooth-doc-src-templates-doc-js","path":"/docs/misc/","result":{"data":{"mdx":{"fields":{"pageType":"doc","title":"Miscellaneous","editLink":""},"body":"var _excluded = [\"components\"];\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n/* @jsxRuntime classic */\n/* @jsx mdx */\n\nvar _frontmatter = {\n  \"title\": \"Miscellaneous\",\n  \"section\": \"Docs\",\n  \"order\": 8\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n    props = _objectWithoutProperties(_ref, _excluded);\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"h1\", {\n    \"id\": \"miscellaneous\"\n  }, mdx(\"a\", {\n    parentName: \"h1\",\n    \"href\": \"#miscellaneous\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"Miscellaneous\"), mdx(\"p\", null, \"Beyond its core functionalities, Python offers a vast ecosystem of libraries and tools that enable developers to tackle various tasks efficiently. We will delve into several miscellaneous topics in Python, including regular expressions, working with dates and times, functional programming, and working with APIs and web scraping.\"), mdx(\"h2\", {\n    \"id\": \"1-regular-expressions\"\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#1-regular-expressions\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"1. Regular Expressions\"), mdx(\"p\", null, \"Regular expressions, often abbreviated as regex or regexp, provide a powerful and flexible means of matching strings of text. In Python, the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"re\"), \" module provides support for regular expressions.\"), mdx(\"h3\", {\n    \"id\": \"i-key-concepts\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#i-key-concepts\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"i. Key Concepts:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Metacharacters:\"), \" Special characters in regex with a specific meaning, such as \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"^\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"$\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"*\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"+\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"?\"), \", etc.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Quantifiers:\"), \" Used to specify the number of occurrences of a character or group, like \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"*\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"+\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"?\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"{n}\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"{n,}\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"{n,m}\"), \".\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Character Classes:\"), \" Allows matching of specific characters, like \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"\\\\d\"), \" for digits, \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"\\\\w\"), \" for word characters, \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"\\\\s\"), \" for whitespace, etc.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Grouping and Capturing:\"), \" Parentheses \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"()\"), \" are used to group characters together, and also capture the matched text.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Anchors:\"), \" Specify the position in the text where the match must occur, such as \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"^\"), \" for start of string, \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"$\"), \" for end of string, \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"\\\\b\"), \" for word boundary, etc.\")), mdx(\"h3\", {\n    \"id\": \"ii-example\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#ii-example\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"ii. Example:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"import re\\n\\n# Matching phone numbers in a string\\ntext = \\\"Call me at 555-123-4567 or 555-987-6543\\\"\\npattern = r'\\\\d{3}-\\\\d{3}-\\\\d{4}'\\nmatches = re.findall(pattern, text)\\nprint(matches)  # Output: ['555-123-4567', '555-987-6543']\\n\")), mdx(\"h3\", {\n    \"id\": \"iii-resources\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#iii-resources\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"iii. Resources:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Python \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"re\"), \" module documentation: \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://docs.python.org/3/library/re.html\"\n  }, \"docs.python.org/3/library/re.html\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Online regex tester: \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://regex101.com/\"\n  }, \"regex101.com\"))), mdx(\"h2\", {\n    \"id\": \"2-working-with-dates-and-times\"\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#2-working-with-dates-and-times\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"2. Working with Dates and Times\"), mdx(\"p\", null, \"Python's standard library provides the \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"datetime\"), \" module for working with dates and times.\"), mdx(\"h3\", {\n    \"id\": \"i-key-concepts-1\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#i-key-concepts-1\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"i. Key Concepts:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"strong\"\n  }, \"datetime\"), \" Module:\"), \" Provides classes for manipulating dates and times, including \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"datetime\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"date\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"time\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"timedelta\"), \", etc.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Parsing and Formatting:\"), \" Methods like \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"strptime()\"), \" and \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"strftime()\"), \" allow converting between datetime objects and strings.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Arithmetic Operations:\"), \" \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"timedelta\"), \" objects can be added or subtracted from dates to perform date arithmetic.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Timezones:\"), \" The \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"pytz\"), \" module or the built-in \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"timezone\"), \" class can be used to work with timezones.\")), mdx(\"h3\", {\n    \"id\": \"ii-example-1\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#ii-example-1\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"ii. Example:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"from datetime import datetime, timedelta\\n\\n# Current date and time\\nnow = datetime.now()\\nprint(now)\\n\\n# Format datetime as string\\nformatted_date = now.strftime(\\\"%Y-%m-%d %H:%M:%S\\\")\\nprint(formatted_date)\\n\\n# Adding 7 days to current date\\nfuture_date = now + timedelta(days=7)\\nprint(future_date)\\n\")), mdx(\"h3\", {\n    \"id\": \"iii-resources-1\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#iii-resources-1\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"iii. Resources:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Python \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"datetime\"), \" module documentation: \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://docs.python.org/3/library/datetime.html\"\n  }, \"docs.python.org/3/library/datetime.html\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"pytz\"), \" module documentation: \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://pypi.org/project/pytz/\"\n  }, \"pypi.org/project/pytz\"))), mdx(\"h2\", {\n    \"id\": \"3-functional-programming-in-python\"\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#3-functional-programming-in-python\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"3. Functional Programming in Python\"), mdx(\"p\", null, \"Python supports functional programming paradigms, enabling the use of functions as first-class objects.\"), mdx(\"h3\", {\n    \"id\": \"i-key-concepts-2\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#i-key-concepts-2\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"i. Key Concepts:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"First-Class Functions:\"), \" Functions can be assigned to variables, passed as arguments to other functions, and returned from other functions.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Higher-Order Functions:\"), \" Functions that take other functions as arguments or return functions.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Lambda Functions:\"), \" Anonymous functions defined using the \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"lambda\"), \" keyword.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Map, Filter, and Reduce:\"), \" Built-in functions for functional-style programming operations on iterables.\")), mdx(\"h3\", {\n    \"id\": \"ii-example-2\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#ii-example-2\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"ii. Example:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"# Using map and lambda to double each element in a list\\nnumbers = [1, 2, 3, 4, 5]\\ndoubled = list(map(lambda x: x * 2, numbers))\\nprint(doubled)\\n\\n# Using filter and lambda to filter even numbers\\neven_numbers = list(filter(lambda x: x % 2 == 0, numbers))\\nprint(even_numbers)\\n\\n# Using reduce to find the product of all elements in a list\\nfrom functools import reduce\\nproduct = reduce(lambda x, y: x * y, numbers)\\nprint(product)\\n\")), mdx(\"h3\", {\n    \"id\": \"iii-resources-2\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#iii-resources-2\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"iii. Resources:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Functional programming in Python documentation: \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://docs.python.org/3/howto/functional.html\"\n  }, \"docs.python.org/3/howto/functional.html\"))), mdx(\"h2\", {\n    \"id\": \"4-working-with-apis-and-web-scraping\"\n  }, mdx(\"a\", {\n    parentName: \"h2\",\n    \"href\": \"#4-working-with-apis-and-web-scraping\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"4. Working with APIs and Web Scraping\"), mdx(\"p\", null, \"Python provides several libraries for working with APIs and web scraping, including \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"requests\"), \", \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"BeautifulSoup\"), \", and \", mdx(\"inlineCode\", {\n    parentName: \"p\"\n  }, \"Scrapy\"), \".\"), mdx(\"h3\", {\n    \"id\": \"i-key-concepts-3\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#i-key-concepts-3\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"i. Key Concepts:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"strong\"\n  }, \"requests\"), \" Library:\"), \" Used for making HTTP requests to APIs and websites.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"API Integration:\"), \" Interacting with web services to fetch or send data, typically in JSON format.\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Web Scraping:\"), \" Extracting data from web pages programmatically, often using HTML parsing libraries like \", mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"BeautifulSoup\"), \".\"), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"strong\", {\n    parentName: \"li\"\n  }, \"Scrapy:\"), \" A powerful web crawling framework for scraping websites at scale.\")), mdx(\"h3\", {\n    \"id\": \"ii-example-3\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#ii-example-3\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"ii. Example:\"), mdx(\"pre\", null, mdx(\"code\", {\n    parentName: \"pre\",\n    \"className\": \"language-python\"\n  }, \"import requests\\nfrom bs4 import BeautifulSoup\\n\\n# Fetching data from an API\\nresponse = requests.get('https://api.example.com/data')\\ndata = response.json()\\nprint(data)\\n\\n# Scraping data from a web page\\nurl = 'https://example.com'\\nresponse = requests.get(url)\\nsoup = BeautifulSoup(response.text, 'html.parser')\\ntitle = soup.find('title').text\\nprint(title)\\n\")), mdx(\"h3\", {\n    \"id\": \"iii-resources-3\"\n  }, mdx(\"a\", {\n    parentName: \"h3\",\n    \"href\": \"#iii-resources-3\",\n    \"aria-hidden\": true,\n    \"className\": \"anchor\"\n  }, mdx(\"svg\", {\n    \"aria-hidden\": \"true\",\n    height: \"16\",\n    version: \"1.1\",\n    viewBox: \"0 0 16 16\",\n    width: \"16\"\n  }, mdx(\"path\", {\n    fillRule: \"evenodd\",\n    d: \"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"\n  }))), \"iii. Resources:\"), mdx(\"ul\", null, mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"requests\"), \" library documentation: \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://docs.python-requests.org/en/master/\"\n  }, \"docs.python-requests.org/en/master\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, mdx(\"inlineCode\", {\n    parentName: \"li\"\n  }, \"BeautifulSoup\"), \" documentation: \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://www.crummy.com/software/BeautifulSoup/bs4/doc/\"\n  }, \"www.crummy.com/software/BeautifulSoup/bs4/doc\")), mdx(\"li\", {\n    parentName: \"ul\"\n  }, \"Scrapy documentation: \", mdx(\"a\", {\n    parentName: \"li\",\n    \"href\": \"https://docs.scrapy.org/en/latest/\"\n  }, \"docs.scrapy.org/en/latest\"))), mdx(\"hr\", null), mdx(\"p\", null, \"We covered an overview of various miscellaneous topics in Python, including regular expressions, working with dates and times, functional programming, and working with APIs and web scraping. Use these resources and examples to enhance your Python skills and tackle a wide range of tasks efficiently.\"));\n}\n;\nMDXContent.isMDXComponent = true;","tableOfContents":{"items":[{"url":"#miscellaneous","title":"Miscellaneous","items":[{"url":"#1-regular-expressions","title":"1. Regular Expressions","items":[{"url":"#i-key-concepts","title":"i. Key Concepts:"},{"url":"#ii-example","title":"ii. Example:"},{"url":"#iii-resources","title":"iii. Resources:"}]},{"url":"#2-working-with-dates-and-times","title":"2. Working with Dates and Times","items":[{"url":"#i-key-concepts-1","title":"i. Key Concepts:"},{"url":"#ii-example-1","title":"ii. Example:"},{"url":"#iii-resources-1","title":"iii. Resources:"}]},{"url":"#3-functional-programming-in-python","title":"3. Functional Programming in Python","items":[{"url":"#i-key-concepts-2","title":"i. Key Concepts:"},{"url":"#ii-example-2","title":"ii. Example:"},{"url":"#iii-resources-2","title":"iii. Resources:"}]},{"url":"#4-working-with-apis-and-web-scraping","title":"4. Working with APIs and Web Scraping","items":[{"url":"#i-key-concepts-3","title":"i. Key Concepts:"},{"url":"#ii-example-3","title":"ii. Example:"},{"url":"#iii-resources-3","title":"iii. Resources:"}]}]}]}}},"pageContext":{"id":"800e620d-2cc7-5cf5-a76e-652730127ce9"}},"staticQueryHashes":["1022386572","1122327541","1339625561","2140385554","3442269102","3597609067"]}