{"id":14187,"date":"2023-03-25T18:01:39","date_gmt":"2023-03-25T12:31:39","guid":{"rendered":"https:\/\/savewithnerds.com\/?p=14187"},"modified":"2024-03-16T14:26:45","modified_gmt":"2024-03-16T08:56:45","slug":"python-functions","status":"publish","type":"post","link":"https:\/\/savewithnerds.com\/kr\/python-functions\/","title":{"rendered":"\uc774 \ud30c\uc774\uc36c \ud568\uc218\ub85c \uc790\uc2e0\uc744 \ubb34\uc7a5\ud558\uc138\uc694"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">\ud30c\uc774\uc36c\uc5d0\uc11c \ud568\uc218\ub294 \ud504\ub85c\uadf8\ub7a8\uc758 \ub2e4\ub978 \ubd80\ubd84\uc5d0\uc11c \uc5ec\ub7ec \ubc88 \ud638\ucd9c\ub420 \uc218 \uc788\uc5b4 \ucf54\ub4dc\ub97c \ub354 \ubaa8\ub4c8\ud654\ud558\uace0 \uc720\uc9c0 \uad00\ub9ac\ud558\uae30 \uc27d\uac8c \ub9cc\ub4ed\ub2c8\ub2e4. \ud568\uc218\ub294 def \ud0a4\uc6cc\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc815\uc758\ub418\uba70, \uadf8 \ub4a4\uc5d0 \ud568\uc218 \uc774\ub984\uacfc \ud568\uc218 \ub9e4\uac1c\ubcc0\uc218\ub97c \ud3ec\ud568\ud558\ub294 \uad04\ud638 \uc138\ud2b8\uac00 \uc635\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\ud30c\uc774\uc36c \ud568\uc218\uc758 \uad6c\ubb38\uc740 \uac04\ub2e8\ud569\ub2c8\ub2e4. def \ud0a4\uc6cc\ub4dc\ub85c \uc2dc\uc791\ud558\uace0, \uadf8 \ub4a4\uc5d0 \ud568\uc218 \uc774\ub984\uacfc 0\uac1c \uc774\uc0c1\uc758 \ub9e4\uac1c\ubcc0\uc218\ub97c \ud3ec\ud568\ud560 \uc218 \uc788\ub294 \uad04\ud638 \uc138\ud2b8\uac00 \uc635\ub2c8\ub2e4. \ud568\uc218 \ubcf8\ubb38\uc740 \ub4e4\uc5ec\uc4f0\uae30\uac00 \ub418\uc5b4 \uc788\uace0 \uc801\uc5b4\ub3c4 \ud558\ub098\uc758 \ubb38\uc7a5\uc744 \ud3ec\ud568\ud574\uc57c \ud569\ub2c8\ub2e4. <\/span><\/p>\n\t\t<div class=\"web-stories-list alignnone has-archive-link is-view-type-circles is-style-default is-carousel\" data-id=\"1\">\n\t\t\t<div\n\t\t\tclass=\"web-stories-list__inner-wrapper carousel-1\"\n\t\t\tstyle=\"--ws-circle-size:100px\"\n\t\t\t>\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\t\tclass=\"web-stories-list__carousel circles\"\n\t\t\t\t\tdata-id=\"carousel-1\"\n\t\t\t\t\tdata-prev=\"Previous\"\n\t\t\t\t\tdata-next=\"Next\"\n\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<div\n\t\t\t\tclass=\"web-stories-list__story\"\n\t\t\t\tdata-wp-interactive=\"web-stories-block\"\n\t\t\t\tdata-wp-context='{\"instanceId\":1}'\t\t\t\tdata-wp-on--click=\"actions.open\"\n\t\t\t\tdata-wp-on-window--popstate=\"actions.onPopstate\"\n\t\t\t\t>\n\t\t\t\t\t\t\t<div class=\"web-stories-list__story-poster\">\n\t\t\t\t<a href=\"https:\/\/savewithnerds.com\/kr\/web-stories\/wiper-blades\/\" >\n\t\t\t\t\t<img\n\t\t\t\t\t\tsrc=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/09\/cropped-Wiper-Blades-Types-How-To-Change-Where-To-Buy-And-Much-More.webp\"\n\t\t\t\t\t\talt=\"Wiper Blades: Types, How To Change, Where To Buy, And Much More\"\n\t\t\t\t\t\twidth=\"185\"\n\t\t\t\t\t\theight=\"308\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tsrcset=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/09\/cropped-Wiper-Blades-Types-How-To-Change-Where-To-Buy-And-Much-More.webp 640w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/09\/cropped-Wiper-Blades-Types-How-To-Change-Where-To-Buy-And-Much-More-225x300.webp 225w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/09\/cropped-Wiper-Blades-Types-How-To-Change-Where-To-Buy-And-Much-More-9x12.webp 9w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/09\/cropped-Wiper-Blades-Types-How-To-Change-Where-To-Buy-And-Much-More-150x200.webp 150w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/09\/cropped-Wiper-Blades-Types-How-To-Change-Where-To-Buy-And-Much-More-450x600.webp 450w\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsizes=\"auto, (max-width: 640px) 100vw, 640px\"\n\t\t\t\t\t\t\t\t\t\t\t\tloading=\"lazy\"\n\t\t\t\t\t\tdecoding=\"async\"\n\t\t\t\t\t>\n\t\t\t\t<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div\n\t\t\t\tclass=\"web-stories-list__story\"\n\t\t\t\tdata-wp-interactive=\"web-stories-block\"\n\t\t\t\tdata-wp-context='{\"instanceId\":1}'\t\t\t\tdata-wp-on--click=\"actions.open\"\n\t\t\t\tdata-wp-on-window--popstate=\"actions.onPopstate\"\n\t\t\t\t>\n\t\t\t\t\t\t\t<div class=\"web-stories-list__story-poster\">\n\t\t\t\t<a href=\"https:\/\/savewithnerds.com\/kr\/web-stories\/why-blend-the-rules-eyeshadow-palette-a-must-have\/\" >\n\t\t\t\t\t<img\n\t\t\t\t\t\tsrc=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2022\/11\/cropped-Untitled-design.webp\"\n\t\t\t\t\t\talt=\"Why Blend The Rules Eyeshadow Palette A Must-Have?\"\n\t\t\t\t\t\twidth=\"185\"\n\t\t\t\t\t\theight=\"308\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tsrcset=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2022\/11\/cropped-Untitled-design.webp 640w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2022\/11\/cropped-Untitled-design-225x300.webp 225w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2022\/11\/cropped-Untitled-design-150x200.webp 150w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2022\/11\/cropped-Untitled-design-450x600.webp 450w\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsizes=\"auto, (max-width: 640px) 100vw, 640px\"\n\t\t\t\t\t\t\t\t\t\t\t\tloading=\"lazy\"\n\t\t\t\t\t\tdecoding=\"async\"\n\t\t\t\t\t>\n\t\t\t\t<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div\n\t\t\t\tclass=\"web-stories-list__story\"\n\t\t\t\tdata-wp-interactive=\"web-stories-block\"\n\t\t\t\tdata-wp-context='{\"instanceId\":1}'\t\t\t\tdata-wp-on--click=\"actions.open\"\n\t\t\t\tdata-wp-on-window--popstate=\"actions.onPopstate\"\n\t\t\t\t>\n\t\t\t\t\t\t\t<div class=\"web-stories-list__story-poster\">\n\t\t\t\t<a href=\"https:\/\/savewithnerds.com\/kr\/web-stories\/unveiling-the-ultimate-bargains-top-us-budget-smartphones-of-2023\/\" >\n\t\t\t\t\t<img\n\t\t\t\t\t\tsrc=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/08\/7-4.webp\"\n\t\t\t\t\t\talt=\"Unveiling the Ultimate Bargains: Top US Budget Smartphones of 2023\"\n\t\t\t\t\t\twidth=\"185\"\n\t\t\t\t\t\theight=\"308\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tsrcset=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/08\/7-4.webp 640w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/08\/7-4-225x300.webp 225w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/08\/7-4-9x12.webp 9w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/08\/7-4-150x200.webp 150w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/08\/7-4-450x600.webp 450w\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsizes=\"auto, (max-width: 640px) 100vw, 640px\"\n\t\t\t\t\t\t\t\t\t\t\t\tloading=\"lazy\"\n\t\t\t\t\t\tdecoding=\"async\"\n\t\t\t\t\t>\n\t\t\t\t<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div\n\t\t\t\tclass=\"web-stories-list__story\"\n\t\t\t\tdata-wp-interactive=\"web-stories-block\"\n\t\t\t\tdata-wp-context='{\"instanceId\":1}'\t\t\t\tdata-wp-on--click=\"actions.open\"\n\t\t\t\tdata-wp-on-window--popstate=\"actions.onPopstate\"\n\t\t\t\t>\n\t\t\t\t\t\t\t<div class=\"web-stories-list__story-poster\">\n\t\t\t\t<a href=\"https:\/\/savewithnerds.com\/kr\/web-stories\/unveiling-the-best-sleeping-bags-for-every-camping-adventure\/\" >\n\t\t\t\t\t<img\n\t\t\t\t\t\tsrc=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/06\/5-2.webp\"\n\t\t\t\t\t\talt=\"Unveiling the Best Sleeping Bags for Every Camping Adventure\"\n\t\t\t\t\t\twidth=\"185\"\n\t\t\t\t\t\theight=\"308\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tsrcset=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/06\/5-2.webp 640w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/06\/5-2-225x300.webp 225w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/06\/5-2-9x12.webp 9w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/06\/5-2-150x200.webp 150w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/06\/5-2-450x600.webp 450w\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsizes=\"auto, (max-width: 640px) 100vw, 640px\"\n\t\t\t\t\t\t\t\t\t\t\t\tloading=\"lazy\"\n\t\t\t\t\t\tdecoding=\"async\"\n\t\t\t\t\t>\n\t\t\t\t<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<div\n\t\t\t\tclass=\"web-stories-list__story\"\n\t\t\t\tdata-wp-interactive=\"web-stories-block\"\n\t\t\t\tdata-wp-context='{\"instanceId\":1}'\t\t\t\tdata-wp-on--click=\"actions.open\"\n\t\t\t\tdata-wp-on-window--popstate=\"actions.onPopstate\"\n\t\t\t\t>\n\t\t\t\t\t\t\t<div class=\"web-stories-list__story-poster\">\n\t\t\t\t<a href=\"https:\/\/savewithnerds.com\/kr\/web-stories\/unveiling-the-advantages-of-investing-in-high-quality-health-equipment-for-your-gym\/\" >\n\t\t\t\t\t<img\n\t\t\t\t\t\tsrc=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/07\/7-5.webp\"\n\t\t\t\t\t\talt=\"Unveiling the Advantages of Investing in High-Quality Health Equipment for Your Gym\"\n\t\t\t\t\t\twidth=\"185\"\n\t\t\t\t\t\theight=\"308\"\n\t\t\t\t\t\t\t\t\t\t\t\t\tsrcset=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/07\/7-5.webp 640w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/07\/7-5-225x300.webp 225w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/07\/7-5-9x12.webp 9w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/07\/7-5-150x200.webp 150w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/07\/7-5-450x600.webp 450w\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsizes=\"auto, (max-width: 640px) 100vw, 640px\"\n\t\t\t\t\t\t\t\t\t\t\t\tloading=\"lazy\"\n\t\t\t\t\t\tdecoding=\"async\"\n\t\t\t\t\t>\n\t\t\t\t<\/a>\n\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<div tabindex=\"0\" aria-label=\"\uc774\uc804\uc758\" class=\"glider-prev\"><\/div>\n\t\t\t\t\t<div tabindex=\"0\" aria-label=\"\ub2e4\uc74c\" class=\"glider-next\"><\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\n<h2><span style=\"font-weight: 400;\">\ud30c\uc774\uc36c \ud568\uc218 \uc815\uc758\ud558\uae30<\/span><\/h2>\n<figure id=\"attachment_14192\" aria-describedby=\"caption-attachment-14192\" style=\"width: 900px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14192\" src=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/defining-a-python-function-11zon.webp\" alt=\"Defining a Python function\" width=\"900\" height=\"500\" srcset=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/defining-a-python-function-11zon.webp 900w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/defining-a-python-function-11zon-300x167.webp 300w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/defining-a-python-function-11zon-768x427.webp 768w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/defining-a-python-function-11zon-18x10.webp 18w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/defining-a-python-function-11zon-150x83.webp 150w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/defining-a-python-function-11zon-450x250.webp 450w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><figcaption id=\"caption-attachment-14192\" class=\"wp-caption-text\">\ud30c\uc774\uc36c \ud568\uc218 \uc815\uc758\ud558\uae30 | savewithnerds<\/figcaption><\/figure>\n<p><span style=\"font-weight: 400;\">\ud2b9\uc815 \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \ub370 \uc7ac\uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \ucf54\ub4dc\uc774\uba70 \ud568\uc218\ub77c\uace0 \ud569\ub2c8\ub2e4. <\/span><a href=\"https:\/\/savewithnerds.com\/kr\/v9kw\/\" target=\"_blank\" rel=\"nofollow noopener sponsored\"><span style=\"font-weight: 400;\">\uc785\ub825\uc744 \ubc1b\uace0 \uc791\uc5c5\uc744 \uc218\ud589\ud569\ub2c8\ub2e4<\/span><\/a><span style=\"font-weight: 400;\"> \uadf8\uac83\uc5d0 \ub300\ud574, \uadf8\ub9ac\uace0 \ucd9c\ub825\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4. \ud30c\uc774\uc36c\uc5d0\uc11c \ud568\uc218\ub294 &quot;def&quot; \ud0a4\uc6cc\ub4dc\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc815\uc758\ub418\uace0, \uadf8 \ub4a4\uc5d0 \ud568\uc218 \uc774\ub984, \uad04\ud638, \ucf5c\ub860\uc774 \uc635\ub2c8\ub2e4. \ud568\uc218\ub97c \uc815\uc758\ud558\uae30 \uc704\ud55c \uad6c\ubb38\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. <\/span><a href=\"https:\/\/savewithnerds.com\/kr\/v9kw\/\" target=\"_blank\" rel=\"nofollow noopener sponsored\"><span style=\"font-weight: 400;\">\ud30c\uc774\uc36c \ud568\uc218<\/span><\/a><span style=\"font-weight: 400;\"> \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">def \ud568\uc218 \uc774\ub984(\uc778\uc218):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\uc9c4\uc220(\ub4e4)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\ubc18\ud658 \ud45c\ud604\uc2dd<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uad6c\ubb38\uc744 \ubd84\uc11d\ud558\uace0 \uac01 \uc694\uc18c\ub97c \uc774\ud574\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&quot;def&quot;: Python\uc5d0\uac8c \ud568\uc218\ub97c \uc815\uc758\ud55c\ub2e4\ub294 \uac83\uc744 \uc54c\ub824\uc8fc\ub294 \ud0a4\uc6cc\ub4dc\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&quot;function_name&quot;: \ud568\uc218\uc758 \uc774\ub984\uc774\uba70 \uc124\uba85\uc801\uc774\uace0 \uc758\ubbf8\uac00 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&quot;\uc778\uc218&quot;: \uc774\uac83\ub4e4\uc740 <\/span><a href=\"https:\/\/savewithnerds.com\/kr\/v9kw\/\" target=\"_blank\" rel=\"nofollow noopener sponsored\"><span style=\"font-weight: 400;\">\uc785\ub825 \ub610\ub294 \ub9e4\uac1c\ubcc0\uc218<\/span><\/a><span style=\"font-weight: 400;\"> \ud568\uc218\uc5d0 \uc804\ub2ec\ub429\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 \uc6d0\ud558\ub294 \uc218\uc758 \ud2b9\uc131\uc744 \uc790\uc720\ub86d\uac8c \uc120\ud0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&quot;\ucf5c\ub860&quot;: \ud568\uc218 \ud5e4\ub354\uc758 \ub05d\uacfc \ud568\uc218 \ubcf8\ubb38\uc758 \uc2dc\uc791\uc744 \ub098\ud0c0\ub0c5\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&quot;\uba85\ub839\ubb38(\ub4e4)&quot;: \uc785\ub825\uc774\ub098 \ubcc0\uc218\uc5d0 \ub300\ud55c \uc5b4\ub5a4 \uc5f0\uc0b0\uc744 \uc218\ud589\ud558\ub294 \uba85\ub839\ubb38\uc758 \uc9d1\ud569\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">&quot;return&quot;: \ud568\uc218\uc758 \ucd9c\ub825\uc744 \uc9c0\uc815\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\ud568\uc218\ub97c \uc815\uc758\ud558\uba74 \ucf54\ub4dc\uc758 \uc5b4\ub290 \uacf3\uc5d0\uc11c\ub098 \ub2e4\uc74c\uc744 \uc804\ub2ec\ud558\uc5ec \ud568\uc218\ub97c \ud638\ucd9c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <\/span><a href=\"https:\/\/savewithnerds.com\/kr\/v9kw\/\" target=\"_blank\" rel=\"nofollow noopener sponsored\"><span style=\"font-weight: 400;\">\ud544\uc218 \uc778\uc218<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<hr \/>\n<h2><span style=\"font-weight: 400;\">\ud30c\uc774\uc36c \ud568\uc218 \ub9e4\uac1c\ubcc0\uc218<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Python \ud568\uc218\ub294 \ub2e4\uc74c\uc744 \uac00\uc9c8 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <\/span><a href=\"https:\/\/savewithnerds.com\/kr\/v9kw\/\" target=\"_blank\" rel=\"nofollow noopener sponsored\"><span style=\"font-weight: 400;\">\ub2e4\uc911 \ub9e4\uac1c\ubcc0\uc218<\/span><\/a><span style=\"font-weight: 400;\">, \uadf8\ub9ac\uace0 \uc6b0\ub9ac\ub294 \ub450 \uac00\uc9c0 \ubc29\ubc95\uc73c\ub85c \uc804\ub2ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc704\uce58 \uc778\uc218\uc640 \ud0a4\uc6cc\ub4dc \uc778\uc218\uc785\ub2c8\ub2e4. \uc704\uce58 \uc778\uc218\ub294 \ud568\uc218 \uc815\uc758\uc5d0 \ub098\ud0c0\ub098\ub294 \uc21c\uc11c\ub300\ub85c \uc804\ub2ec\ub418\ub294 \ubc18\uba74 \ud0a4\uc6cc\ub4dc \uc778\uc218\ub294 \ub9e4\uac1c\ubcc0\uc218 \uc774\ub984 \ub4a4\uc5d0 \ucf5c\ub860\uacfc \uac12\uc774 \uc624\ub294 \ubc29\uc2dd\uc73c\ub85c \uc804\ub2ec\ub429\ub2c8\ub2e4. \ub450 \uac00\uc9c0 \uc720\ud615\uc758 \uc778\uc218\uc758 \uc608\ub97c \uc0b4\ud3b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">def add_numbers(x, y):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\ud569 = x + y<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\ubc18\ud658 \ud569\uacc4<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># \uc704\uce58 \uc778\uc218<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uacb0\uacfc = add_numbers(3, 5)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">print(\uacb0\uacfc) # \ucd9c\ub825: 8<\/span><\/p>\n<p><span style=\"font-weight: 400;\"># \ud0a4\uc6cc\ub4dc \uc778\uc218<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uacb0\uacfc = add_numbers(x=3, y=5)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">print(\uacb0\uacfc) # \ucd9c\ub825: 8<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uc704\uc758 \uc608\uc5d0\uc11c \uc6b0\ub9ac\ub294 \ub450 \uac1c\uc758 \ub9e4\uac1c\ubcc0\uc218 &quot;x&quot;\uc640 &quot;y&quot;\ub97c \ucde8\ud558\uace0 \uadf8 \ud569\uacc4\ub97c \ubc18\ud658\ud558\ub294 \ud568\uc218 &quot;add_numbers&quot;\ub97c \uc815\uc758\ud588\uc2b5\ub2c8\ub2e4. \uc6b0\ub9ac\ub294 \uc774 \ud568\uc218\ub97c \ub450 \ubc88 \ud638\ucd9c\ud588\uc2b5\ub2c8\ub2e4. \ud55c \ubc88\uc740 \uc704\uce58 \uc778\uc218\ub85c, \ud55c \ubc88\uc740 \ud0a4\uc6cc\ub4dc \uc778\uc218\ub85c \ud638\ucd9c\ud588\uc2b5\ub2c8\ub2e4. \ub450 \ubc29\ubc95 \ubaa8\ub450 \ub2e4\uc74c\uacfc \uac19\uc740 \uacb0\uacfc\ub97c \uac00\uc838\uc654\uc2b5\ub2c8\ub2e4. <\/span><a href=\"https:\/\/savewithnerds.com\/kr\/v9kw\/\" target=\"_blank\" rel=\"nofollow noopener sponsored\"><span style=\"font-weight: 400;\">\ub3d9\uc77c\ud55c \ucd9c\ub825<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<hr \/>\n<h2><span style=\"font-weight: 400;\">\ud30c\uc774\uc36c \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ubc29\ubc95<\/span><\/h2>\n<figure id=\"attachment_14193\" aria-describedby=\"caption-attachment-14193\" style=\"width: 900px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14193\" src=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/how-to-call-a-python-function-11zon.webp\" alt=\"How to Call a Python function\" width=\"900\" height=\"500\" srcset=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/how-to-call-a-python-function-11zon.webp 900w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/how-to-call-a-python-function-11zon-300x167.webp 300w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/how-to-call-a-python-function-11zon-768x427.webp 768w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/how-to-call-a-python-function-11zon-18x10.webp 18w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/how-to-call-a-python-function-11zon-150x83.webp 150w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/how-to-call-a-python-function-11zon-450x250.webp 450w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><figcaption id=\"caption-attachment-14193\" class=\"wp-caption-text\">\ud30c\uc774\uc36c \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub294 \ubc29\ubc95 | savewithnerds<\/figcaption><\/figure>\n<p><span style=\"font-weight: 400;\">\ud30c\uc774\uc36c\uc5d0\uc11c \ud568\uc218\ub294 def \ud0a4\uc6cc\ub4dc\ub97c \uba3c\uc800 \uc785\ub825\ud55c \ub2e4\uc74c \ud568\uc218 \uc774\ub984\uc744 \uc785\ub825\ud558\uace0 \ub9c8\uc9c0\ub9c9\uc73c\ub85c \uad04\ud638\ub97c \uc785\ub825\ud558\uc5ec \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud568\uc218\ub97c \uc9c0\uc815\ud558\ub294 \ucf54\ub4dc \ube14\ub85d\uc744 \uad6c\uc131\ud558\ub294 \ud30c\uc774\uc36c \ucf54\ub4dc\ub294 \ub4e4\uc5ec\uc4f0\uae30\uac00 \ub418\uc5b4 \uc788\uc73c\uba70 \ud30c\uc774\uc36c\uc5d0\uc11c \ud569\ubc95\uc801\uc778 \uac83\uc774\uba74 \ubb34\uc5c7\uc774\ub4e0 \ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub2e4\uc74c\uc740 <\/span><a href=\"https:\/\/savewithnerds.com\/kr\/v9kw\/\" target=\"_blank\" rel=\"nofollow noopener sponsored\"><span style=\"font-weight: 400;\">\uac04\ub2e8\ud55c \uae30\ub2a5<\/span><\/a><span style=\"font-weight: 400;\"> \ub450 \uac1c\uc758 \ub9e4\uac1c\ubcc0\uc218\ub97c \ubc1b\uc544\uc11c \ud574\ub2f9 \ub9e4\uac1c\ubcc0\uc218\uc758 \ud569\uc744 \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">def add_numbers(a, b):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0a + b\ub97c \ubc18\ud658\ud558\ub2e4<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uc774 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub824\uba74 a \ubc0f b \ub9e4\uac1c\ubcc0\uc218\uc5d0 \ub300\ud55c \uac12\uc744 \uc81c\uacf5\ud574\uc57c \ud569\ub2c8\ub2e4. \uc544\ub798\uc640 \uac19\uc774 \uac12\uc744 \ud568\uc218\uc5d0 \uc778\uc218\ub85c \uc804\ub2ec\ud558\uc5ec \uc774\ub97c \uc218\ud589\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uacb0\uacfc = add_numbers(5, 10)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">print(\uacb0\uacfc) # \ucd9c\ub825: 15<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uc774 \uc608\uc5d0\uc11c \uc6b0\ub9ac\ub294 \uc778\uc218 5\uc640 10\uc73c\ub85c add_numbers \ud568\uc218\ub97c \ud638\ucd9c\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uc774 \ud568\uc218\ub294 \uc774 \ub450 \uac12\uc758 \ud569\uc744 \ubc18\ud658\ud558\uace0, \uc774\ub294 result \ubcc0\uc218\uc5d0 \uc800\uc7a5\ub429\ub2c8\ub2e4. \uadf8\ub7f0 \ub2e4\uc74c result\uc758 \uac12\uc778 15\ub97c \ucd9c\ub825\ud569\ub2c8\ub2e4.<\/span><\/p>\n<hr \/>\n<h3><span style=\"font-weight: 400;\">Python \ud568\uc218\uc758 \uc704\uce58 \ub9e4\uac1c\ubcc0\uc218<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Python \ud568\uc218\uc5d0\uc11c \ub9e4\uac1c\ubcc0\uc218\ub294 \uc704\uce58 \ub9e4\uac1c\ubcc0\uc218 \ub610\ub294 \ud0a4\uc6cc\ub4dc \ub9e4\uac1c\ubcc0\uc218\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc704\uce58 \ub9e4\uac1c\ubcc0\uc218\ub294 \uac00\uc7a5 \uc77c\ubc18\uc801\uc778 \ub9e4\uac1c\ubcc0\uc218 \uc720\ud615\uc774\uba70 \ud568\uc218 \ud5e4\ub354\uc5d0 \uc815\uc758\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \ud568\uc218\ub97c \ud638\ucd9c\ud560 \ub54c <\/span><a href=\"https:\/\/savewithnerds.com\/kr\/v9kw\/\" target=\"_blank\" rel=\"nofollow noopener sponsored\"><span style=\"font-weight: 400;\">\uc704\uce58 \ub9e4\uac1c\ubcc0\uc218<\/span><\/a><span style=\"font-weight: 400;\">\uac12\uc740 \ud568\uc218 \ud5e4\ub354\uc5d0 \ub098\ud0c0\ub098\ub294 \uc21c\uc11c\ub300\ub85c \uc804\ub2ec\ub429\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\ub2e4\uc74c\uc740 \ub450 \uac1c\uc758 \uc704\uce58 \ub9e4\uac1c\ubcc0\uc218\uac00 \uc788\ub294 \ud568\uc218\uc758 \uc608\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">def greet(\uc774\ub984, \uba54\uc2dc\uc9c0):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0print(f\u201d{\uba54\uc2dc\uc9c0}, {\uc774\ub984}!\u201d)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uc774 \ud568\uc218\ub97c \ud638\ucd9c\ud558\ub824\uba74 \ud568\uc218 \uc815\uc758\uc5d0 \ub098\ud0c0\ub09c \uc21c\uc11c\ub300\ub85c name \ubc0f message \ub9e4\uac1c\ubcc0\uc218\uc5d0 \ub300\ud55c \uac12\uc744 \uc81c\uacf5\ud574\uc57c \ud569\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">greet(\u201cAlice\u201d, \u201cHello\u201d) # \ucd9c\ub825: \uc548\ub155\ud558\uc138\uc694, \uc568\ub9ac\uc2a4!<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uc774 \uc608\uc5d0\uc11c \uc6b0\ub9ac\ub294 &quot;Alice&quot;\uc640 &quot;Hello&quot;\ub77c\ub294 \uc778\uc218\ub97c \uc0ac\uc6a9\ud558\uc5ec greet \ud568\uc218\ub97c \ud638\ucd9c\ud569\ub2c8\ub2e4. \uc774 \ud568\uc218\ub294 \ucf58\uc194\uc5d0 &quot;Hello, Alice!&quot;\ub77c\ub294 \uba54\uc2dc\uc9c0\ub97c \uc778\uc1c4\ud569\ub2c8\ub2e4.<\/span><\/p>\n<hr \/>\n<h3><span style=\"font-weight: 400;\">Python \ud568\uc218\uc758 \ud0a4\uc6cc\ub4dc \ub9e4\uac1c\ubcc0\uc218<\/span><\/h3>\n<figure id=\"attachment_14191\" aria-describedby=\"caption-attachment-14191\" style=\"width: 900px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14191\" src=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/keyword-parameters-in-python-functions-11zon.webp\" alt=\"Keyword parameters in Python functions\" width=\"900\" height=\"500\" srcset=\"https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/keyword-parameters-in-python-functions-11zon.webp 900w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/keyword-parameters-in-python-functions-11zon-300x167.webp 300w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/keyword-parameters-in-python-functions-11zon-768x427.webp 768w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/keyword-parameters-in-python-functions-11zon-18x10.webp 18w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/keyword-parameters-in-python-functions-11zon-150x83.webp 150w, https:\/\/savewithnerds.com\/wp-content\/uploads\/2023\/03\/keyword-parameters-in-python-functions-11zon-450x250.webp 450w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><figcaption id=\"caption-attachment-14191\" class=\"wp-caption-text\">\ud30c\uc774\uc36c \ud568\uc218\uc758 \ud0a4\uc6cc\ub4dc \ub9e4\uac1c\ubcc0\uc218 | savewithnerds<\/figcaption><\/figure>\n<p><a href=\"https:\/\/savewithnerds.com\/kr\/v9kw\/\" target=\"_blank\" rel=\"nofollow noopener sponsored\"><span style=\"font-weight: 400;\">\ud0a4\uc6cc\ub4dc \ub9e4\uac1c\ubcc0\uc218<\/span><\/a><span style=\"font-weight: 400;\"> \ub294 Python \ud568\uc218\uc758 \ub610 \ub2e4\ub978 \uc720\ud615\uc758 \ub9e4\uac1c\ubcc0\uc218\uc785\ub2c8\ub2e4. \ud568\uc218 \ud5e4\ub354\uc5d0\uc11c \uad6c\ubb38 \ub9e4\uac1c\ubcc0\uc218_\uc774\ub984=\uae30\ubcf8\uac12\uc73c\ub85c \uc815\uc758\ub429\ub2c8\ub2e4. \ud0a4\uc6cc\ub4dc \ub9e4\uac1c\ubcc0\uc218\ub85c \ud568\uc218\ub97c \ud638\ucd9c\ud560 \ub54c \uac12\uc744 \uc5b4\ub5a4 \uc21c\uc11c\ub85c\ub4e0 \uc804\ub2ec\ud558\uace0 \ub9e4\uac1c\ubcc0\uc218 \uc774\ub984\uc744 \uc9c0\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\ub2e4\uc74c\uc740 \ub450 \uac1c\uc758 \ud0a4\uc6cc\ub4dc \ub9e4\uac1c\ubcc0\uc218\uac00 \uc788\ub294 \ud568\uc218\uc758 \uc608\uc785\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">def calculate_discount(\uac00\uaca9, \ud560\uc778\uc728=0.1):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\ud560\uc778 \uae08\uc561 = \uac00\uaca9 * \ud560\uc778\uc728<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\ud560\uc778\ub41c \uac00\uaca9 = \uac00\uaca9 - \ud560\uc778 \uae08\uc561<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\u00a0\u00a0\u00a0\u00a0\ud560\uc778\ub41c \uac00\uaca9\uc73c\ub85c \ubc18\ud488<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uc774 \uc608\uc5d0\uc11c calculate_discount \ud568\uc218\ub294 price\uc640 discount_rate\ub77c\ub294 \ub450 \uac1c\uc758 \ub9e4\uac1c\ubcc0\uc218\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. discount_rate \ub9e4\uac1c\ubcc0\uc218\ub294 \uae30\ubcf8\uac12\uc774 0.1\uc785\ub2c8\ub2e4. \uc989, \uc774 \ub9e4\uac1c\ubcc0\uc218\uc5d0 \ub300\ud55c \uac12\uc744 \uc804\ub2ec\ud558\uc9c0 \uc54a\uc73c\uba74 \uae30\ubcf8\uac12\uc774 0.1\uc774 \ub429\ub2c8\ub2e4.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uc6b0\ub9ac\ub294 price \ub9e4\uac1c\ubcc0\uc218\ub85c \uc774 \ud568\uc218\ub97c \ud638\ucd9c\ud558\uace0 \ud0a4\uc6cc\ub4dc \uad6c\ubb38\uc744 \uc0ac\uc6a9\ud558\uc5ec discount_rate\uc758 \uae30\ubcf8\uac12\uc744 \uc7ac\uc815\uc758\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uac00\uaca9 = 100<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\ud560\uc778\ub41c \uac00\uaca9 = \ud560\uc778\uc728 \uacc4\uc0b0(\uac00\uaca9, \ud560\uc778\uc728=0.2)<\/span><\/p>\n<p><span style=\"font-weight: 400;\">print(\ud560\uc778\ub41c \uac00\uaca9) # \ucd9c\ub825: 80.0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">\uc774 \uc608\uc5d0\uc11c \uc6b0\ub9ac\ub294 price \ub9e4\uac1c\ubcc0\uc218\ub97c 100\uc73c\ub85c \uc124\uc815\ud558\uace0 discount_rate \ub9e4\uac1c\ubcc0\uc218\ub97c 0.2\ub85c \uc124\uc815\ud558\uc5ec calculate_discount \ud568\uc218\ub97c \ud638\ucd9c\ud569\ub2c8\ub2e4. \uc774 \ud568\uc218\ub294 \ud560\uc778\ub41c \uac00\uaca9\uc778 80.0\uc744 \ubc18\ud658\ud569\ub2c8\ub2e4.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">\uacb0\ub860<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">\ud30c\uc774\uc36c\uc740 <\/span><a href=\"https:\/\/savewithnerds.com\/kr\/v9kw\/\" target=\"_blank\" rel=\"nofollow noopener sponsored\"><span style=\"font-weight: 400;\">\ub2e4\uc7ac\ub2e4\ub2a5\ud55c \ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4<\/span><\/a><span style=\"font-weight: 400;\"> \ub2e4\uc591\ud55c \uae30\ub2a5\uc744 \uac16\ucd94\uace0 \uc788\uc2b5\ub2c8\ub2e4. Python\uc758 \uac00\uc7a5 \uac15\ub825\ud55c \uae30\ub2a5 \uc911 \ud558\ub098\ub294 \ud568\uc218\ub97c \uc815\uc758\ud558\uace0 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc785\ub2c8\ub2e4. Python\uc758 \ud568\uc218\ub294 \ud504\ub85c\uadf8\ub7a8 \uc804\uccb4\uc5d0\uc11c \uc7ac\uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \uc790\uccb4 \ud3ec\ud568 \ucf54\ub4dc \ube14\ub85d\uc785\ub2c8\ub2e4. \uc5ec\ub7ec \uc720\ud615\uc758 <a href=\"https:\/\/en.wikipedia.org\/wiki\/Python_(programming_language)\" target=\"_blank\" rel=\"noopener\">\ud30c\uc774\uc36c \ud568\uc218<\/a>\uac01\uac01 \uace0\uc720\ud55c \ud2b9\uc131\uc774 \uc788\uc2b5\ub2c8\ub2e4. \uc790\uc138\ud55c \ub0b4\uc6a9\uc740 \ub2e4\uc74c\uc744 \ubc29\ubb38\ud558\uc138\uc694. <\/span><a href=\"https:\/\/savewithnerds.com\/kr\/\"><span style=\"font-weight: 400;\">\uc138\uc774\ube0c\uc704\ub4dc\ub108\ub4dc.<\/span><\/a><\/p>\n<h2><span style=\"font-weight: 400;\">\uc790\uc8fc \ubb3b\ub294 \uc9c8\ubb38<\/span><\/h2>\n<div class=\"su-accordion su-u-trim\"><div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\ud30c\uc774\uc36c\uc758 4\uac00\uc9c0 \ud568\uc218 \uc720\ud615\uc740?<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<p>\ud30c\uc774\uc36c\uc5d0\ub294 4\uac00\uc9c0 \ud568\uc218 \uc720\ud615\uc774 \uc788\uc2b5\ub2c8\ub2e4<\/p>\n<p>\ub0b4\uc7a5 \ud568\uc218<br \/>\n\uc0ac\uc6a9\uc790 \uc815\uc758 \ud568\uc218<br \/>\n\ub78c\ub2e4 \ud568\uc218 \ud30c\uc774\uc36c<br \/>\n\uc7ac\uadc0 \ud568\uc218<\/p>\n<\/div><\/div> <div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>\ud30c\uc774\uc36c\uc5d0\uc11c \ud568\uc218\ub780 \ubb34\uc5c7\uc778\uac00\uc694?<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<p>\ud504\ub85c\uadf8\ub798\ubc0d \uc5b8\uc5b4 Python\uc5d0\uc11c &quot;\ud568\uc218&quot;\ub294 \ud2b9\uc815 \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \uac1c\ubcc4 \ucf54\ub4dc \uc139\uc158\uc774\uba70 \ub3d9\uc77c\ud55c \uc791\uc5c5\uc744 \uc218\ud589\ud558\uae30 \uc704\ud574 \uc5ec\ub7ec \ubc88 &quot;\ud638\ucd9c&quot;\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ud568\uc218\ub97c \ud1b5\ud569\ud558\uc5ec \ud504\ub85c\uadf8\ub7a8\uc758 \ub2e4\uc591\uc131\uc744 \ub192\uc774\uace0 \uc7ac\uc0ac\uc6a9 \uac00\ub2a5\uc131\uc744 \ub192\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>\ud30c\uc774\uc36c\uc5d0\uc11c \ud568\uc218\uac00 \ubb34\uc5c7\uc778\uc9c0 \uc608\ub97c \ub4e4\uc5b4\ubcf4\uc138\uc694.<\/p>\n<p>\ud2b9\uc815 \uc791\uc5c5\uc744 \uc218\ud589\ud558\ub294 \ub370 \uc0ac\uc6a9\ub418\ub294 \ucf54\ub4dc\ub97c \ud568\uc218\ub77c\uace0 \ud569\ub2c8\ub2e4.<\/p>\n<p>\uc608:<\/p>\n<p>def greet():<\/p>\n<p>print(&#039;\uc548\ub155\ud558\uc138\uc694!&#039;)<\/p>\n<p>\ud658\uc601\ud558\ub2e4()<\/p>\n<p># \ucd9c\ub825: Hello World!<\/p>\n<\/div><\/div> <div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Python \ud568\uc218\ub97c \uc5b4\ub5bb\uac8c \uc791\uc131\ud558\ub098\uc694?<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">\n<p>Python \ud568\uc218\uc758 \uc774\ub984 \ub4a4\uc5d0 \ud0a4\uc6cc\ub4dc def\uac00 \ubd99\uace0 Python\uc5d0\uc11c \ud568\uc218\ub97c \uc0dd\uc131\ud560 \ub54c \uad04\ud638\ub85c \ubb36\uc2b5\ub2c8\ub2e4. ( ). \uad04\ud638\ub294 \uc785\ub825\uc73c\ub85c \uc218\uc2e0\ub41c \uc778\uc218\ub098 \uc0ac\uc591\uc744 \ubb36\ub294 \ub370 \uc0ac\uc6a9\ud574\uc57c \ud569\ub2c8\ub2e4. \ub610\ud55c \uc774\ub7ec\ud55c \uad04\ud638 \uc548\uc5d0 \ub9e4\uac1c\ubcc0\uc218\ub97c \uc815\uc758\ud558\ub294 \uc635\uc158\ub3c4 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ud568\uc218\uc758 \ubb38\uc11c\ud654 \ubb38\uc790\uc5f4(docstring)\uc740 \ud568\uc218\uc758 \uccab \ubc88\uc9f8 \ubb38\uc7a5 \uc55e\uc5d0 \ub098\uc624\ub294 \uc784\uc758\uc758 \ubb38\uc7a5\uc77c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ubaa8\ub4e0 \ud568\uc218\uc758 \ucf54\ub4dc \ube14\ub85d\uc740 \ucf5c\ub860(:)\uc73c\ub85c \uc2dc\uc791\ud558\uace0, \ubaa8\ub450 \ubc11\uc904\uc774 \uadf8\uc5b4\uc9d1\ub2c8\ub2e4.<\/p>\n<p>return [expression] \uba85\ub839\ubb38\uc73c\ub85c \ud568\uc218\ub97c \uc885\ub8cc\ud560 \ub54c \ud568\uc218\ub97c \ud638\ucd9c\ud55c \uc0ac\ub78c\uc5d0\uac8c \ud45c\ud604\uc2dd\uc744 \ubc18\ud658\ud558\ub3c4\ub85d \uc120\ud0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub9e4\uac1c\ubcc0\uc218\ub97c \ucde8\ud558\uc9c0 \uc54a\ub294 return \uba85\ub839\ubb38\uc740 return None \uba85\ub839\ubb38\uacfc \uc815\ud655\ud788 \ub3d9\uc77c\ud558\uac8c \ub3d9\uc791\ud569\ub2c8\ub2e4.<\/p>\n<\/div><\/div><\/div>\n<p>&nbsp;<\/p>\n<p><script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [{\n    \"@type\": \"Question\",\n    \"name\": \"Python's four function types?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"There are four function types in Python\n1. Built-in Functions\n2. User-defined Functions\n3. lambda function python\n4. Recursive Functions\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"What is a function in Python?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"In the programming language Python, a \\\"function\\\" is a discrete section of code that performs a specific task and can be \\\"called\\\" numerous times to carry out the same action. You can give your program more versatility and increase its potential for reuse by incorporating functions into it.<\/p>\n<p>Give an example of what a function is in Python.\nA piece of code that is used to carry out a particular operation is known as a function. \nExample: \ndef greet(): \n    print('Hello World!') \ngreet() \n# Output: Hello World!\"\n    }\n  },{\n    \"@type\": \"Question\",\n    \"name\": \"How to write a Python function?\",\n    \"acceptedAnswer\": {\n      \"@type\": \"Answer\",\n      \"text\": \"The name of a Python function is followed by the keyword def and then enclosed in parentheses when a function is created in Python. ( ). The parentheses should be used to enclose any arguments or specifications that are received as input. Additionally, you have the option of defining parameters inside these parentheses.\nThe documentation string of a function, also known as the docstring, can be a discretionary statement that comes before the first statement of a function.\nEach and every one of a function's code blocks begin with a colon (:), and they are all underlined.\nWhen you leave a function with the statement return [expression], you can choose to return an expression to the person who called the function. A return statement that does not take any parameters behaves exactly the same as a return None statement.\"\n    }\n  }]\n}\n<\/script><\/p>","protected":false},"excerpt":{"rendered":"<p>In Python, functions can be called multiple times from different parts of the program, making the code more modular and easier to maintain. They are defined using the def keyword, followed by the function name and a set of parentheses containing the function parameters. The syntax of a Python function is straightforward. It starts with<\/p>","protected":false},"author":2,"featured_media":14190,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[426,1870],"tags":[705],"class_list":{"0":"post-14187","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tech-software","8":"category-datacamp","9":"tag-python-functions"},"_links":{"self":[{"href":"https:\/\/savewithnerds.com\/kr\/wp-json\/wp\/v2\/posts\/14187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savewithnerds.com\/kr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savewithnerds.com\/kr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savewithnerds.com\/kr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/savewithnerds.com\/kr\/wp-json\/wp\/v2\/comments?post=14187"}],"version-history":[{"count":0,"href":"https:\/\/savewithnerds.com\/kr\/wp-json\/wp\/v2\/posts\/14187\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/savewithnerds.com\/kr\/wp-json\/wp\/v2\/media\/14190"}],"wp:attachment":[{"href":"https:\/\/savewithnerds.com\/kr\/wp-json\/wp\/v2\/media?parent=14187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savewithnerds.com\/kr\/wp-json\/wp\/v2\/categories?post=14187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savewithnerds.com\/kr\/wp-json\/wp\/v2\/tags?post=14187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}