{"id":647,"date":"2013-01-29T20:48:13","date_gmt":"2013-01-29T17:48:13","guid":{"rendered":"http:\/\/www.fatihacar.com\/blog\/?p=647"},"modified":"2013-02-08T10:13:03","modified_gmt":"2013-02-08T07:13:03","slug":"python-programing-language-structure","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/python-programing-language-structure\/","title":{"rendered":"Python Programing Language Structure"},"content":{"rendered":"<p>Python supports multiple programming paradigms, including object-oriented, imperative and functional programming styles. It features a fully dynamic type system and automatic memory management, similar to that of Scheme, Ruby, Perl, and Tcl. Like other dynamic languages, Python is often used as a scripting language, but is also used in a wide range of non-scripting contexts. Using third-party tools, Python code can be packaged into standalone executable programs. Python interpreters are available for many operating systems.<\/p>\n<p>If you are a database or a system admin, you can use python language for any script works. Python allows that writes quickly scripts.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-648\" alt=\"Python-Programming-Language\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/Python-Programming-Language.png\" width=\"499\" height=\"162\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/Python-Programming-Language.png 499w, https:\/\/www.fatihacar.com\/blog\/resimler\/Python-Programming-Language-300x97.png 300w\" sizes=\"auto, (max-width: 499px) 100vw, 499px\" \/><\/p>\n<p><strong>Basic Python Code Structure, File Name : test.py<\/strong><\/p>\n<blockquote><p>\n#!\/usr\/bin\/env python<br \/>\n#-*- coding: utf-8 -*-<\/p>\n<p>import os #This choosing allows that you can run os module&#8217;s functions <strong>with<\/strong> writing os.<br \/>\nfrom os import * #This choosing allows that you can run os module&#8217;s functions <strong>without<\/strong> writing os.<\/p>\n<p>def test_function():<\/p>\n<p style=\"padding-left: 30px;\">print &#8220;Hello World.. :)&#8221;<\/p>\n<p>def main():<\/p>\n<p style=\"padding-left: 30px;\">try:<\/p>\n<p style=\"padding-left: 60px;\">test_funtion()<\/p>\n<p style=\"padding-left: 30px;\">except NameError:<\/p>\n<p style=\"padding-left: 60px;\">print &#8220;Can not write any text&#8221;<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Python supports multiple programming paradigms, including object-oriented, imperative and functional programming styles. It features a fully dynamic type system and automatic memory management, similar to that of Scheme, Ruby, Perl, and Tcl. Like other dynamic languages, Python is often used as a scripting language, but is also used in a wide range of non-scripting contexts&#8230;.<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[97],"tags":[33,22],"class_list":["post-647","post","type-post","status-publish","format-standard","hentry","category-python","tag-python","tag-system-administration"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-ar","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/647","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=647"}],"version-history":[{"count":17,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/647\/revisions"}],"predecessor-version":[{"id":678,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/647\/revisions\/678"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=647"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=647"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=647"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}