{"id":6963,"date":"2026-05-04T14:40:16","date_gmt":"2026-05-04T11:10:16","guid":{"rendered":"https:\/\/actobit.com\/actomag\/?p=6963"},"modified":"2026-05-04T14:40:31","modified_gmt":"2026-05-04T11:10:31","slug":"string-formatting-in-python","status":"publish","type":"post","link":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/","title":{"rendered":"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646"},"content":{"rendered":"<div id=\"model-response-message-contentr_708f3879703533bb\" class=\"markdown markdown-main-panel stronger enable-updated-hr-color\" dir=\"rtl\" aria-live=\"polite\" aria-busy=\"false\">\n<p data-path-to-node=\"0\">\u062f\u0631 \u062f\u0646\u06cc\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646\u060c \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0628\u0647 \u0634\u06a9\u0644\u06cc \u062e\u0648\u0627\u0646\u0627 \u0648 \u0632\u06cc\u0628\u0627 \u0647\u0646\u0631 \u0645\u0647\u0645\u06cc \u0627\u0633\u062a. \u067e\u0627\u06cc\u062a\u0648\u0646 \u062f\u0631 \u0637\u0648\u0644 \u0632\u0645\u0627\u0646 \u062a\u06a9\u0627\u0645\u0644 \u06cc\u0627\u0641\u062a\u0647 \u0648 \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0628\u0631\u0627\u06cc \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 (String Formatting) \u0627\u0631\u0627\u0626\u0647 \u062f\u0627\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p data-path-to-node=\"1\">\u062f\u0631 \u0627\u062f\u0627\u0645\u0647\u060c \u062f\u0648 \u0645\u0648\u0631\u062f \u0627\u0632 \u0645\u062d\u0628\u0648\u0628\u200c\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634\u200c\u0647\u0627 \u06cc\u0639\u0646\u06cc <b data-path-to-node=\"1\" data-index-in-node=\"44\">Format String<\/b> \u0648 <b data-path-to-node=\"1\" data-index-in-node=\"60\">f-string<\/b> \u0631\u0627 \u0628\u0627 \u0647\u0645 \u0645\u0642\u0627\u06cc\u0633\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645:<\/p>\n<h2 data-path-to-node=\"1\">\u0645\u062a\u062f .format() (\u0645\u0639\u0631\u0641\u06cc \u0634\u062f\u0647 \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u06f2.\u06f6)<\/h2>\n<p style=\"text-align: justify;\" data-path-to-node=\"4\">\u0627\u06cc\u0646 \u0631\u0648\u0634 \u0646\u0633\u0628\u062a \u0628\u0647 \u0631\u0648\u0634 \u0642\u062f\u06cc\u0645\u06cc\u0650 % \u0628\u0633\u06cc\u0627\u0631 \u0645\u0646\u0639\u0637\u0641\u200c\u062a\u0631 \u0627\u0633\u062a \u0648 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u0645\u062a\u063a\u06cc\u0631\u0647\u0627 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0628\u0631\u0627\u06a9\u062a {} \u062f\u0631 \u062c\u0627\u06cc \u0645\u0646\u0627\u0633\u0628 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<ul data-path-to-node=\"5\">\n<li>\n<p data-path-to-node=\"5,0,0\"><b data-path-to-node=\"5,0,0\" data-index-in-node=\"0\">\u0646\u062d\u0648 (Syntax):<\/b> \u0645\u062a\u063a\u06cc\u0631\u0647\u0627 \u0628\u0647 \u062a\u0631\u062a\u06cc\u0628 \u062f\u0631 <code data-path-to-node=\"5,0,0\" data-index-in-node=\"34\">{}<\/code> \u062c\u0627\u06cc\u06af\u0630\u0627\u0631\u06cc \u0645\u06cc\u200c\u0634\u0648\u0646\u062f \u06cc\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646 \u0628\u0647 \u0622\u0646\u200c\u0647\u0627 \u0627\u0646\u062f\u06cc\u0633 \u062f\u0627\u062f.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"5,1,0\"><b data-path-to-node=\"5,1,0\" data-index-in-node=\"0\">\u0645\u0632\u06cc\u062a:<\/b> \u062c\u062f\u0627\u0633\u0627\u0632\u06cc \u0645\u062a\u0646 \u0627\u0632 \u062f\u0627\u062f\u0647\u200c\u0647\u0627\u061b \u06cc\u0639\u0646\u06cc \u0627\u0628\u062a\u062f\u0627 \u0642\u0627\u0644\u0628 \u0631\u0634\u062a\u0647 \u0631\u0627 \u0645\u06cc\u200c\u0646\u0648\u06cc\u0633\u06cc\u062f \u0648 \u062f\u0631 \u0627\u0646\u062a\u0647\u0627 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u067e\u0627\u0633 \u0645\u06cc\u200c\u062f\u0647\u06cc\u062f.<\/p>\n<\/li>\n<\/ul>\n<p data-path-to-node=\"6\"><b data-path-to-node=\"6\" data-index-in-node=\"0\">\u0645\u062b\u0627\u0644:<\/b><\/p>\n<div class=\"code-block ng-tns-c3933017335-45 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" data-hveid=\"0\" data-ved=\"0CAAQhtANahgKEwiJv_CouZ-UAxUAAAAAHQAAAAAQnAE\">\n<div class=\"formatted-code-block-internal-container ng-tns-c3933017335-45\">\n<div class=\"animated-opacity ng-tns-c3933017335-45\">\n<pre class=\"ng-tns-c3933017335-45\"><code class=\"code-container formatted ng-tns-c3933017335-45\" role=\"text\" data-test-id=\"code-content\">name = <span class=\"hljs-string\">\"Alice\"<\/span>\r\nage = <span class=\"hljs-number\">\u06f2\u06f5<\/span>\r\n\r\n<span class=\"hljs-comment\"># Positional placeholders<\/span>\r\nprint(<span class=\"hljs-string\">\"Hello, my name is {} and I am {} years old.\"<\/span>.<span class=\"hljs-built_in\">format<\/span>(name, age))\r\n\r\n<span class=\"hljs-comment\"># Using indexes (useful for reordering or repeating)<\/span>\r\nprint(<span class=\"hljs-string\">\"User: {0}, Nickname: {0}, Age: {1}\"<\/span>.<span class=\"hljs-built_in\">format<\/span>(name, age))\r\n\r\n<span class=\"hljs-comment\"># Using keywords<\/span>\r\nprint(<span class=\"hljs-string\">\"Point: x={x}, y={y}\"<\/span>.<span class=\"hljs-built_in\">format<\/span>(x=<span class=\"hljs-number\">\u06f1\u06f0<\/span>, y=<span class=\"hljs-number\">\u06f2\u06f0<\/span>))<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<h2 data-path-to-node=\"9\">f-string (\u0645\u0639\u0631\u0641\u06cc \u0634\u062f\u0647 \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u06f3.\u06f6)<\/h2>\n<p data-path-to-node=\"10\">\u0646\u0627\u0645 \u0631\u0633\u0645\u06cc \u0622\u0646 <b data-path-to-node=\"10\" data-index-in-node=\"12\">Formatted String Literals<\/b> \u0627\u0633\u062a. \u0627\u06cc\u0646 \u0631\u0648\u0634 \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 <b data-path-to-node=\"10\" data-index-in-node=\"63\">\u0628\u0647\u062a\u0631\u06cc\u0646\u060c \u0633\u0631\u06cc\u0639\u200c\u062a\u0631\u06cc\u0646 \u0648 \u062e\u0648\u0627\u0646\u0627\u062a\u0631\u06cc\u0646<\/b> \u0631\u0627\u0647 \u0628\u0631\u0627\u06cc \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u0627\u0633\u062a.<\/p>\n<ul data-path-to-node=\"11\">\n<li>\n<p data-path-to-node=\"11,0,0\"><b data-path-to-node=\"11,0,0\" data-index-in-node=\"0\">\u0646\u062d\u0648 (Syntax):<\/b> \u06a9\u0627\u0641\u06cc \u0627\u0633\u062a \u062d\u0631\u0641 <code data-path-to-node=\"11,0,0\" data-index-in-node=\"27\">f<\/code> \u06cc\u0627 <code data-path-to-node=\"11,0,0\" data-index-in-node=\"32\">F<\/code> \u0631\u0627 \u0642\u0628\u0644 \u0627\u0632 \u0634\u0631\u0648\u0639 \u06a9\u0648\u062a\u06cc\u0634\u0646 \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f \u0648 \u0646\u0627\u0645 \u0645\u062a\u063a\u06cc\u0631 \u0631\u0627 \u0645\u0633\u062a\u0642\u06cc\u0645\u0627\u064b \u062f\u0627\u062e\u0644 <code data-path-to-node=\"11,0,0\" data-index-in-node=\"95\">{}<\/code> \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"11,1,0\"><b data-path-to-node=\"11,1,0\" data-index-in-node=\"0\">\u0645\u0632\u06cc\u062a:<\/b> \u0633\u0631\u0639\u062a \u0627\u062c\u0631\u0627\u06cc \u0628\u0633\u06cc\u0627\u0631 \u0628\u0627\u0644\u0627 (\u0686\u0648\u0646 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0627\u062c\u0631\u0627 \u0627\u0631\u0632\u06cc\u0627\u0628\u06cc \u0645\u06cc\u200c\u0634\u0648\u062f) \u0648 \u062e\u0648\u0627\u0646\u0627\u06cc\u06cc \u0641\u0648\u0642\u200c\u0627\u0644\u0639\u0627\u062f\u0647.<\/p>\n<\/li>\n<\/ul>\n<p data-path-to-node=\"12\"><b data-path-to-node=\"12\" data-index-in-node=\"0\">\u0645\u062b\u0627\u0644:<\/b><\/p>\n<div class=\"code-block ng-tns-c3933017335-29 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" data-hveid=\"0\" data-ved=\"0CAAQhtANahcKEwiJv_CouZ-UAxUAAAAAHQAAAAAQdQ\">\n<div class=\"code-block-decoration header-formatted gds-title-s ng-tns-c3933017335-29 ng-star-inserted\">\n<div class=\"code-block ng-tns-c3933017335-46 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" data-hveid=\"0\" data-ved=\"0CAAQhtANahgKEwiJv_CouZ-UAxUAAAAAHQAAAAAQnQE\">\n<div class=\"formatted-code-block-internal-container ng-tns-c3933017335-46\">\n<div class=\"animated-opacity ng-tns-c3933017335-46\">\n<pre class=\"ng-tns-c3933017335-46\"><code class=\"code-container formatted ng-tns-c3933017335-46\" role=\"text\" data-test-id=\"code-content\">name = <span class=\"hljs-string\">\"Bob\"<\/span>\r\nscore = <span class=\"hljs-number\">\u06f9\u06f5.\u06f5<\/span>\r\n\r\n<span class=\"hljs-comment\"># Direct variable embedding<\/span>\r\nprint(<span class=\"hljs-string\">f\"Student: <span class=\"hljs-subst\">{name}<\/span>, Score: <span class=\"hljs-subst\">{score}<\/span>\"<\/span>)\r\n\r\n<span class=\"hljs-comment\"># Inline expressions and method calls<\/span>\r\nprint(<span class=\"hljs-string\">f\"Upper case name: <span class=\"hljs-subst\">{name.upper()}<\/span>\"<\/span>)\r\nprint(<span class=\"hljs-string\">f\"Is passing? <span class=\"hljs-subst\">{'Yes' <span class=\"hljs-keyword\">if<\/span> score &gt; <span class=\"hljs-number\">\u06f5\u06f0<\/span> <span class=\"hljs-keyword\">else<\/span> 'No'}<\/span>\"<\/span>)\r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"buttons ng-tns-c3933017335-29 ng-star-inserted\"><span style=\"font-size: 22px; font-weight: bold;\">\u0645\u0642\u0627\u06cc\u0633\u0647 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627\u06cc \u067e\u06cc\u0634\u0631\u0641\u062a\u0647<\/span><\/div>\n<\/div>\n<\/div>\n<p data-path-to-node=\"16\">\u0647\u0631 \u062f\u0648 \u0631\u0648\u0634 \u0627\u0632 \u06cc\u06a9 \u0632\u0628\u0627\u0646 \u0645\u0634\u062a\u0631\u06a9 \u0628\u0631\u0627\u06cc \u062a\u0639\u06cc\u06cc\u0646 \u062c\u0632\u0626\u06cc\u0627\u062a (Format Specification Mini-Language) \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u0628\u0631\u062e\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a\u200c\u0647\u0627 \u0639\u0628\u0627\u0631\u062a\u0646\u062f \u0627\u0632:<\/p>\n<table data-path-to-node=\"17\">\n<thead>\n<tr>\n<td><strong>\u0642\u0627\u0628\u0644\u06cc\u062a<\/strong><\/td>\n<td><strong>\u0645\u062b\u0627\u0644 \u062f\u0631 f-string<\/strong><\/td>\n<td><strong>\u062e\u0631\u0648\u062c\u06cc\/\u062a\u0648\u0636\u06cc\u062d<\/strong><\/td>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><span data-path-to-node=\"17,1,0,0\"><b data-path-to-node=\"17,1,0,0\" data-index-in-node=\"0\">\u062a\u0639\u062f\u0627\u062f \u0627\u0631\u0642\u0627\u0645 \u0627\u0639\u0634\u0627\u0631<\/b><\/span><\/td>\n<td><span data-path-to-node=\"17,1,1,0\"><code data-path-to-node=\"17,1,1,0\" data-index-in-node=\"0\">f\"{3.14159:.2f}\"<\/code><\/span><\/td>\n<td><span data-path-to-node=\"17,1,2,0\"><code data-path-to-node=\"17,1,2,0\" data-index-in-node=\"0\">\u06f3.\u06f1\u06f4<\/code><\/span><\/td>\n<\/tr>\n<tr>\n<td><span data-path-to-node=\"17,2,0,0\"><b data-path-to-node=\"17,2,0,0\" data-index-in-node=\"0\">\u062c\u062f\u0627\u06a9\u0646\u0646\u062f\u0647 \u0647\u0632\u0627\u0631\u06af\u0627\u0646<\/b><\/span><\/td>\n<td><span data-path-to-node=\"17,2,1,0\"><code data-path-to-node=\"17,2,1,0\" data-index-in-node=\"0\">f\"{1000000:,}\"<\/code><\/span><\/td>\n<td><span data-path-to-node=\"17,2,2,0\"><code data-path-to-node=\"17,2,2,0\" data-index-in-node=\"0\">\u06f1,\u06f0\u06f0\u06f0,\u06f0\u06f0\u06f0<\/code><\/span><\/td>\n<\/tr>\n<tr>\n<td><span data-path-to-node=\"17,3,0,0\"><b data-path-to-node=\"17,3,0,0\" data-index-in-node=\"0\">\u062a\u0631\u0627\u0632 \u06a9\u0631\u062f\u0646 \u0645\u062a\u0646<\/b><\/span><\/td>\n<td><span data-path-to-node=\"17,3,1,0\"><code data-path-to-node=\"17,3,1,0\" data-index-in-node=\"0\">f\"{'hi':&gt;10}\"<\/code><\/span><\/td>\n<td><span data-path-to-node=\"17,3,2,0\">\u062a\u0631\u0627\u0632 \u0628\u0647 \u0631\u0627\u0633\u062a (\u0628\u0627 \u06f1\u06f0 \u0641\u0627\u0635\u0644\u0647)<\/span><\/td>\n<\/tr>\n<tr>\n<td><span data-path-to-node=\"17,4,0,0\"><b data-path-to-node=\"17,4,0,0\" data-index-in-node=\"0\">\u0639\u0645\u0644\u06cc\u0627\u062a \u0631\u06cc\u0627\u0636\u06cc<\/b><\/span><\/td>\n<td><span data-path-to-node=\"17,4,1,0\"><code data-path-to-node=\"17,4,1,0\" data-index-in-node=\"0\">f\"{2 + 2}\"<\/code><\/span><\/td>\n<td><span data-path-to-node=\"17,4,2,0\"><code data-path-to-node=\"17,4,2,0\" data-index-in-node=\"0\">\u06f4<\/code> (\u0641\u0642\u0637 \u062f\u0631 f-string)<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 data-path-to-node=\"19\">\u06a9\u062f\u0627\u0645 \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u0645\u061f<\/h3>\n<ul data-path-to-node=\"20\">\n<li>\n<p data-path-to-node=\"20,0,0\"><b data-path-to-node=\"20,0,0\" data-index-in-node=\"0\">f-string:<\/b> \u0647\u0645\u06cc\u0634\u0647 \u0627\u0646\u062a\u062e\u0627\u0628 \u0627\u0648\u0644 \u0634\u0645\u0627 \u0628\u0627\u0634\u062f. \u0647\u0645 \u06a9\u062f\u062a\u0627\u0646 \u062a\u0645\u06cc\u0632\u062a\u0631 \u0645\u06cc\u200c\u0634\u0648\u062f \u0648 \u0647\u0645 \u0633\u0631\u0639\u062a \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0627\u0644\u0627\u062a\u0631 \u0645\u06cc\u200c\u0631\u0648\u062f.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"20,1,0\"><b data-path-to-node=\"20,1,0\" data-index-in-node=\"0\">.format():<\/b> \u0632\u0645\u0627\u0646\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0631\u0634\u062a\u0647 \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0634\u0645\u0627 \u0627\u0632 \u0642\u0628\u0644 \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u0627\u0633\u062a (\u0645\u062b\u0644\u0627\u064b \u062f\u0631 \u06cc\u06a9 \u0641\u0627\u06cc\u0644 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u06cc\u0627 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0630\u062e\u06cc\u0631\u0647 \u0634\u062f\u0647) \u0648 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0639\u062f\u0627\u064b \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0631\u0627 \u0628\u0647 \u0622\u0646 \u062a\u0632\u0631\u06cc\u0642 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/li>\n<\/ul>\n<p data-path-to-node=\"21\"><b data-path-to-node=\"21\" data-index-in-node=\"0\">\u06cc\u06a9 \u0646\u06a9\u062a\u0647 \u0628\u0627\u062d\u0627\u0644:<\/b> \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u06f3.\u06f8 \u0628\u0647 \u0628\u0639\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 <code data-path-to-node=\"21\" data-index-in-node=\"50\">=<\/code> \u062f\u0631 f-string \u0628\u0631\u0627\u06cc \u062f\u06cc\u0628\u0627\u06af \u06a9\u0631\u062f\u0646 \u0633\u0631\u06cc\u0639 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"code-block ng-tns-c3933017335-30 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" data-hveid=\"0\" data-ved=\"0CAAQhtANahcKEwiJv_CouZ-UAxUAAAAAHQAAAAAQeQ\">\n<div class=\"code-block-decoration header-formatted gds-title-s ng-tns-c3933017335-30 ng-star-inserted\">\n<div class=\"code-block ng-tns-c3933017335-47 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation\" data-hveid=\"0\" data-ved=\"0CAAQhtANahgKEwiJv_CouZ-UAxUAAAAAHQAAAAAQoQE\">\n<div class=\"formatted-code-block-internal-container ng-tns-c3933017335-47\">\n<div class=\"animated-opacity ng-tns-c3933017335-47\">\n<pre class=\"ng-tns-c3933017335-47\"><code class=\"code-container formatted ng-tns-c3933017335-47\" role=\"text\" data-test-id=\"code-content\">user_id = <span class=\"hljs-number\">\u06f4\u06f0\u06f4<\/span>\r\nstatus = <span class=\"hljs-string\">\"Not Found\"<\/span>\r\n\r\nprint(<span class=\"hljs-string\">f\"<span class=\"hljs-subst\">{user_id=}<\/span>, <span class=\"hljs-subst\">{status=}<\/span>\"<\/span>)\r\n<span class=\"hljs-comment\"># Output: user_id=404, status='Not Found'<\/span><\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u062f\u0646\u06cc\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646\u060c \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0628\u0647 \u0634\u06a9\u0644\u06cc \u062e\u0648\u0627\u0646\u0627 \u0648 \u0632\u06cc\u0628\u0627 \u0647\u0646\u0631 \u0645\u0647\u0645\u06cc \u0627\u0633\u062a. \u067e\u0627\u06cc\u062a\u0648\u0646 \u062f\u0631 \u0637\u0648\u0644 \u0632\u0645\u0627\u0646 \u062a\u06a9\u0627\u0645\u0644 \u06cc\u0627\u0641\u062a\u0647 \u0648 \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0628\u0631\u0627\u06cc \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 (String Formatting) \u0627\u0631\u0627\u0626\u0647 \u062f\u0627\u062f\u0647 \u0627\u0633\u062a. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647\u060c \u062f\u0648 \u0645\u0648\u0631\u062f \u0627\u0632 \u0645\u062d\u0628\u0648\u0628\u200c\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634\u200c\u0647\u0627 \u06cc\u0639\u0646\u06cc Format String \u0648 f-string \u0631\u0627 \u0628\u0627 \u0647\u0645 \u0645\u0642\u0627\u06cc\u0633\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645: \u0645\u062a\u062f .format() (\u0645\u0639\u0631\u0641\u06cc \u0634\u062f\u0647 \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u06f2.\u06f6) \u0627\u06cc\u0646 &hellip;<\/p>\n","protected":false},"author":1417,"featured_media":6965,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[211,328,130,228],"tags":[],"class_list":["post-6963","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programming","category-python-programming","category-training","category-others"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v18.0 (Yoast SEO v24.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"fa_IR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646\" \/>\n<meta property=\"og:description\" content=\"\u062f\u0631 \u062f\u0646\u06cc\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646\u060c \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0628\u0647 \u0634\u06a9\u0644\u06cc \u062e\u0648\u0627\u0646\u0627 \u0648 \u0632\u06cc\u0628\u0627 \u0647\u0646\u0631 \u0645\u0647\u0645\u06cc \u0627\u0633\u062a. \u067e\u0627\u06cc\u062a\u0648\u0646 \u062f\u0631 \u0637\u0648\u0644 \u0632\u0645\u0627\u0646 \u062a\u06a9\u0627\u0645\u0644 \u06cc\u0627\u0641\u062a\u0647 \u0648 \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0628\u0631\u0627\u06cc \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 (String Formatting) \u0627\u0631\u0627\u0626\u0647 \u062f\u0627\u062f\u0647 \u0627\u0633\u062a. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647\u060c \u062f\u0648 \u0645\u0648\u0631\u062f \u0627\u0632 \u0645\u062d\u0628\u0648\u0628\u200c\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634\u200c\u0647\u0627 \u06cc\u0639\u0646\u06cc Format String \u0648 f-string \u0631\u0627 \u0628\u0627 \u0647\u0645 \u0645\u0642\u0627\u06cc\u0633\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645: \u0645\u062a\u062f .format() (\u0645\u0639\u0631\u0641\u06cc \u0634\u062f\u0647 \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u06f2.\u06f6) \u0627\u06cc\u0646 &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-04T11:10:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-05-04T11:10:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2026\/05\/string-formatting-python-1.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"670\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"\u0627\u062f\u0645\u06cc\u0646\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@acto_bit\" \/>\n<meta name=\"twitter:site\" content=\"@acto_bit\" \/>\n<meta name=\"twitter:label1\" content=\"\u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u0627\u062f\u0645\u06cc\u0646\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0632\u0645\u0627\u0646 \u062a\u062e\u0645\u06cc\u0646\u06cc \u0645\u0637\u0627\u0644\u0639\u0647\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u062f\u0642\u06cc\u0642\u0647\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/\"},\"author\":{\"name\":\"\u0627\u062f\u0645\u06cc\u0646\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e\"},\"headline\":\"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646\",\"datePublished\":\"2026-05-04T11:10:16+00:00\",\"dateModified\":\"2026-05-04T11:10:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/\"},\"wordCount\":22,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#organization\"},\"image\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2026\/05\/string-formatting-python-1.webp\",\"articleSection\":[\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc\",\"\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646\",\"\u062f\u0627\u0646\u0634\u0646\u0627\u0645\u0647\",\"\u0633\u0627\u06cc\u0631\"],\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/\",\"url\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/\",\"name\":\"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646\",\"isPartOf\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2026\/05\/string-formatting-python-1.webp\",\"datePublished\":\"2026-05-04T11:10:16+00:00\",\"dateModified\":\"2026-05-04T11:10:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#breadcrumb\"},\"inLanguage\":\"fa-IR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#primaryimage\",\"url\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2026\/05\/string-formatting-python-1.webp\",\"contentUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2026\/05\/string-formatting-python-1.webp\",\"width\":1200,\"height\":670,\"caption\":\"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u062e\u0627\u0646\u0647\",\"item\":\"https:\/\/actobit.com\/actomag\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/actobit.com\/actomag\/#website\",\"url\":\"https:\/\/actobit.com\/actomag\/\",\"name\":\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\",\"description\":\"\u0628\u0644\u0627\u06af \u062c\u0627\u0645\u0639 \u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\",\"publisher\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/actobit.com\/actomag\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"fa-IR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/actobit.com\/actomag\/#organization\",\"name\":\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\",\"url\":\"https:\/\/actobit.com\/actomag\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png\",\"contentUrl\":\"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png\",\"width\":599,\"height\":98,\"caption\":\"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a\"},\"image\":{\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/acto_bit\",\"https:\/\/www.instagram.com\/actobit\/\",\"https:\/\/www.linkedin.com\/in\/actobit\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e\",\"name\":\"\u0627\u062f\u0645\u06cc\u0646\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"fa-IR\",\"@id\":\"https:\/\/actobit.com\/actomag\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g\",\"caption\":\"\u0627\u062f\u0645\u06cc\u0646\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/","og_locale":"fa_IR","og_type":"article","og_title":"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646","og_description":"\u062f\u0631 \u062f\u0646\u06cc\u0627\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646\u060c \u0646\u0645\u0627\u06cc\u0634 \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u0628\u0647 \u0634\u06a9\u0644\u06cc \u062e\u0648\u0627\u0646\u0627 \u0648 \u0632\u06cc\u0628\u0627 \u0647\u0646\u0631 \u0645\u0647\u0645\u06cc \u0627\u0633\u062a. \u067e\u0627\u06cc\u062a\u0648\u0646 \u062f\u0631 \u0637\u0648\u0644 \u0632\u0645\u0627\u0646 \u062a\u06a9\u0627\u0645\u0644 \u06cc\u0627\u0641\u062a\u0647 \u0648 \u0631\u0648\u0634\u200c\u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0628\u0631\u0627\u06cc \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 (String Formatting) \u0627\u0631\u0627\u0626\u0647 \u062f\u0627\u062f\u0647 \u0627\u0633\u062a. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647\u060c \u062f\u0648 \u0645\u0648\u0631\u062f \u0627\u0632 \u0645\u062d\u0628\u0648\u0628\u200c\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634\u200c\u0647\u0627 \u06cc\u0639\u0646\u06cc Format String \u0648 f-string \u0631\u0627 \u0628\u0627 \u0647\u0645 \u0645\u0642\u0627\u06cc\u0633\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645: \u0645\u062a\u062f .format() (\u0645\u0639\u0631\u0641\u06cc \u0634\u062f\u0647 \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646 \u06f2.\u06f6) \u0627\u06cc\u0646 &hellip;","og_url":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/","og_site_name":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","article_published_time":"2026-05-04T11:10:16+00:00","article_modified_time":"2026-05-04T11:10:31+00:00","og_image":[{"width":1200,"height":670,"url":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2026\/05\/string-formatting-python-1.webp","type":"image\/webp"}],"author":"\u0627\u062f\u0645\u06cc\u0646","twitter_card":"summary_large_image","twitter_creator":"@acto_bit","twitter_site":"@acto_bit","twitter_misc":{"\u0646\u0648\u0634\u062a\u0647 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637":"\u0627\u062f\u0645\u06cc\u0646","\u0632\u0645\u0627\u0646 \u062a\u062e\u0645\u06cc\u0646\u06cc \u0645\u0637\u0627\u0644\u0639\u0647":"2 \u062f\u0642\u06cc\u0642\u0647"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#article","isPartOf":{"@id":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/"},"author":{"name":"\u0627\u062f\u0645\u06cc\u0646","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e"},"headline":"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646","datePublished":"2026-05-04T11:10:16+00:00","dateModified":"2026-05-04T11:10:31+00:00","mainEntityOfPage":{"@id":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/"},"wordCount":22,"commentCount":0,"publisher":{"@id":"https:\/\/actobit.com\/actomag\/#organization"},"image":{"@id":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2026\/05\/string-formatting-python-1.webp","articleSection":["\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc","\u0628\u0631\u0646\u0627\u0645\u0647 \u0646\u0648\u06cc\u0633\u06cc \u067e\u0627\u06cc\u062a\u0648\u0646","\u062f\u0627\u0646\u0634\u0646\u0627\u0645\u0647","\u0633\u0627\u06cc\u0631"],"inLanguage":"fa-IR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/","url":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/","name":"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646","isPartOf":{"@id":"https:\/\/actobit.com\/actomag\/#website"},"primaryImageOfPage":{"@id":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#primaryimage"},"image":{"@id":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#primaryimage"},"thumbnailUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2026\/05\/string-formatting-python-1.webp","datePublished":"2026-05-04T11:10:16+00:00","dateModified":"2026-05-04T11:10:31+00:00","breadcrumb":{"@id":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#breadcrumb"},"inLanguage":"fa-IR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/"]}]},{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#primaryimage","url":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2026\/05\/string-formatting-python-1.webp","contentUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2026\/05\/string-formatting-python-1.webp","width":1200,"height":670,"caption":"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646"},{"@type":"BreadcrumbList","@id":"https:\/\/actobit.com\/actomag\/1405\/string-formatting-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u062e\u0627\u0646\u0647","item":"https:\/\/actobit.com\/actomag\/"},{"@type":"ListItem","position":2,"name":"\u0627\u0647\u0645\u06cc\u062a \u0642\u0627\u0644\u0628\u200c\u0628\u0646\u062f\u06cc \u0631\u0634\u062a\u0647\u200c\u0647\u0627 \u06cc\u0627 String Formatting \u062f\u0631 \u067e\u0627\u06cc\u062a\u0648\u0646"}]},{"@type":"WebSite","@id":"https:\/\/actobit.com\/actomag\/#website","url":"https:\/\/actobit.com\/actomag\/","name":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","description":"\u0628\u0644\u0627\u06af \u062c\u0627\u0645\u0639 \u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","publisher":{"@id":"https:\/\/actobit.com\/actomag\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/actobit.com\/actomag\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"fa-IR"},{"@type":"Organization","@id":"https:\/\/actobit.com\/actomag\/#organization","name":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a","url":"https:\/\/actobit.com\/actomag\/","logo":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/","url":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png","contentUrl":"https:\/\/actobit.com\/actomag\/wp-content\/uploads\/2020\/06\/actomag.png","width":599,"height":98,"caption":"\u0627\u06a9\u062a\u0648\u0628\u06cc\u062a"},"image":{"@id":"https:\/\/actobit.com\/actomag\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/acto_bit","https:\/\/www.instagram.com\/actobit\/","https:\/\/www.linkedin.com\/in\/actobit"]},{"@type":"Person","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/person\/373a1606772afbdbc09b93f7b2e5a95e","name":"\u0627\u062f\u0645\u06cc\u0646","image":{"@type":"ImageObject","inLanguage":"fa-IR","@id":"https:\/\/actobit.com\/actomag\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e4c0c194c66063a6885612821c9056cb334a69e1c297cb9de1e0ae7c23ba45fd?s=96&d=wavatar&r=g","caption":"\u0627\u062f\u0645\u06cc\u0646"}}]}},"_links":{"self":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts\/6963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/users\/1417"}],"replies":[{"embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/comments?post=6963"}],"version-history":[{"count":1,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts\/6963\/revisions"}],"predecessor-version":[{"id":6966,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/posts\/6963\/revisions\/6966"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/media\/6965"}],"wp:attachment":[{"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/media?parent=6963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/categories?post=6963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actobit.com\/actomag\/wp-json\/wp\/v2\/tags?post=6963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}