{"id":8302,"date":"2021-07-27T06:13:28","date_gmt":"2021-07-27T03:13:28","guid":{"rendered":"https:\/\/elzero.org\/?p=8302"},"modified":"2022-10-26T18:54:41","modified_gmt":"2022-10-26T15:54:41","slug":"programming-add-commas-and-underscore","status":"publish","type":"post","link":"https:\/\/elzero.org\/old\/programming-add-commas-and-underscore\/","title":{"rendered":"Add Commas And Underscore"},"content":{"rendered":"<h3>\u0645\u0642\u062f\u0645\u0629 \u0639\u0646 \u0627\u0644\u062a\u062d\u062f\u064a<\/h3>\r\n\r\n<div class=\"text\">\r\n\u0642\u0645 \u0628\u0648\u0636\u0639 Commas \u0648 Underscore \u0628\u064a\u0646 \u0627\u0644\u0623\u0631\u0642\u0627\u0645\r\n<\/div>\r\n\r\n<h3>\u0627\u0644\u0645\u0644\u0627\u062d\u0638\u0627\u062a<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u0625\u062e\u062a\u0631 \u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u062a\u064a \u062a\u0631\u064a\u062f\u0647\u0627 \u0644\u0639\u0645\u0644 \u0627\u0644\u062a\u062d\u062f\u064a<\/li>\r\n  <li>\u064a\u062c\u0628 \u0639\u0645\u0644 \u0627\u0644\u062d\u0644 \u0628\u0637\u0631\u064a\u0642\u062a\u064a\u0646 \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644 \u0628\u0623\u064a \u0644\u063a\u0629 \u0628\u0631\u0645\u062c\u064a\u0629 \u062a\u062e\u062a\u0627\u0631\u0647\u0627<\/li>\r\n<\/ul>\r\n\r\n<h3>\u0627\u0644\u0637\u0644\u0628\u0627\u062a<\/h3>\r\n\r\n<ul class=\"points\">\r\n  <li>\u0642\u0645 \u0628\u0639\u0645\u0644 Function \u0628\u0625\u0633\u0645 add_commas_and_underscore \u062a\u0642\u0628\u0644 Parameter \u0648\u0627\u062d\u062f \u0648\u0647\u0648 \u0627\u0644\u0631\u0642\u0645<\/li>\r\n  <li>\u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0631\u0642\u0645 \u0645\u0643\u0648\u0646 \u0645\u0646 7 \u0623\u0648 8 \u0623\u0648 9 \u0623\u0631\u0642\u0627\u0645 \u062a\u0642\u0648\u0645 \u0628\u0648\u0636\u0639 Underscore \u0628\u0639\u062f \u062b\u0627\u0644\u062b \u0631\u0642\u0645 \u0645\u0646 \u0627\u0644\u064a\u0645\u064a\u0646 \u0648 Comma \u0628\u0639\u062f \u0633\u0627\u062f\u0633 \u0631\u0642\u0645 \u0645\u0646 \u0627\u0644\u064a\u0645\u064a\u0646<\/li>\r\n  <li>\u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0631\u0642\u0645 \u0645\u0643\u0648\u0646 \u0645\u0646 4 \u0623\u0648 5 \u0623\u0648 6 \u0623\u0631\u0642\u0627\u0645 \u062a\u0642\u0648\u0645 \u0628\u0648\u0636\u0639 Underscore \u0628\u0639\u062f \u062b\u0627\u0644\u062b \u0631\u0642\u0645 \u0645\u0646 \u0627\u0644\u064a\u0645\u064a\u0646<\/li>\r\n  <li>\u0625\u0630\u0627 \u0643\u0627\u0646 \u0627\u0644\u0631\u0642\u0645 \u0645\u0643\u0648\u0646 \u0645\u0646 3 \u0623\u0631\u0642\u0627\u0645 \u0644\u0627 \u062a\u0642\u0648\u0645 \u0628\u0648\u0636\u0639 \u0623\u064a \u0634\u064a\u0621<\/li>\r\n<\/ul>\r\n\r\n<h3>\u0645\u062b\u0627\u0644 \u0644\u0639\u0631\u0636 \u0627\u0644\u0641\u0643\u0631\u0629 \u0628\u0644\u063a\u0629 Python<\/h3>\r\n\r\n<script type=\"text\/plain\" class=\"language-python\">\r\ndef add_commas_and_underscore(num):\r\n  return\r\n\r\n# Testing Ouput\r\nprint(add_commas_and_underscore(120)) # 120\r\nprint(add_commas_and_underscore(1530)) # 1_530\r\nprint(add_commas_and_underscore(120510650)) # 120,510_650\r\nprint(add_commas_and_underscore(510650480910)) # 510,650,480_910\r\nprint(add_commas_and_underscore(12069057014032)) # 12,069,057,014_032\r\n<\/script>","protected":false},"excerpt":{"rendered":"<p>Add Commas And Underscore<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[882],"tags":[],"class_list":["post-8302","post","type-post","status-publish","format-standard","hentry","category-programming-challenges"],"_links":{"self":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/8302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/comments?post=8302"}],"version-history":[{"count":1,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/8302\/revisions"}],"predecessor-version":[{"id":8303,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/posts\/8302\/revisions\/8303"}],"wp:attachment":[{"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/media?parent=8302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/categories?post=8302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elzero.org\/old\/wp-json\/wp\/v2\/tags?post=8302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}