{"id":123,"date":"2025-03-13T06:56:58","date_gmt":"2025-03-13T06:56:58","guid":{"rendered":"https:\/\/alpeshconnect.in\/blog\/?p=123"},"modified":"2025-03-13T06:56:58","modified_gmt":"2025-03-13T06:56:58","slug":"python-program-with-user-define-function","status":"publish","type":"post","link":"https:\/\/alpeshconnect.in\/blog\/2025\/03\/13\/python-program-with-user-define-function\/","title":{"rendered":"Python program with user define function"},"content":{"rendered":"\n<p>Python program with user define function that accept a string as a parameter and replace all vowels in the string with &#8220;*&#8221;.<\/p>\n\n\n\n<p><strong>Solution :<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>def replace_vowels(input_string):\n    result = \"\"\n    for char in input_string:\n        if char in 'aeiouAEIOU':\n            result += '*'\n        else:\n            result += char\n    return result\n\n# Get user input\nuser_input = input(\"Enter a string: \")\n\n# Call the function and display the result\nprint(\"Modified string:\", replace_vowels(user_input))<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python program with user define function that accept a string as a parameter and replace all vowels in the string with &#8220;*&#8221;. Solution :<\/p>\n","protected":false},"author":1,"featured_media":96,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,44],"tags":[25,26,46,45],"class_list":["post-123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bca","category-programming-skills","tag-bca","tag-bca-paper-solution","tag-programming-skills","tag-python"],"_links":{"self":[{"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":1,"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions\/124"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/media\/96"}],"wp:attachment":[{"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alpeshconnect.in\/blog\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}