{"id":17784,"date":"2020-08-29T20:18:01","date_gmt":"2020-08-29T20:18:01","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=17784"},"modified":"2022-07-24T10:15:39","modified_gmt":"2022-07-24T10:15:39","slug":"how-python-works","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/how-python-works\/","title":{"rendered":"Python Tutorials: How Python Works"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">How Python Works?<\/h3>\n\n\n\n<p><strong>Byte Code \u2013<\/strong> Byte Code represents the fixed set of instruction created by Python developers representing all type of operations like arithmetic operations, comparison operation, memory related operation etc.<br>The size of each byte code instruction is 1 byte or 8 bits.<br>We can find byte code instruction in the .pyc file.<\/p>\n\n\n\n<p><strong>Python Compiler<\/strong> \u2013 A Python Compiler converts the program source code into byte code.<br><strong>Type of Python Compilers :-<\/strong><br>CPython<br>Jpython\/ Jython<br>PyPy<br>RubyPython<br>IronPython<br>StacklessPython<br>Pythonxy<br>AnacondaPython<\/p>\n\n\n\n<p>Write Source Code \/ Program<br>Compile the Program using Python Compiler<br>Compiler Converts the Python Program into byte Code<br>Computer\/Machine Can not understand Byte Code so we convert it into Machine Code using PVM<br>PVM uses an interpreter which understands the byte code and convert it into machine code<br>Machine Code instructions are then executed by the processor and results are displayed<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"813\" height=\"144\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/image-83.png\" alt=\"compiler-python-by-devopsschool\n\" class=\"wp-image-17785\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/image-83.png 813w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/image-83-300x53.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/08\/image-83-768x136.png 768w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/figure>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_75712\"><figure class=\"wp-block-embed wp-block-embed-youtube is-type-video is-provider-youtube epyt-figure\"><div class=\"wp-block-embed__wrapper\"><iframe loading=\"lazy\"  id=\"_ytid_50736\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_75712\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><\/div><\/figure><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>How Python Works? Byte Code \u2013 Byte Code represents the fixed set of instruction created by Python developers representing all type of operations like arithmetic operations, comparison operation, memory related operation etc.The size of each byte code instruction is 1 byte or 8 bits.We can find byte code instruction in the .pyc file. Python Compiler&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[499],"tags":[],"class_list":["post-17784","post","type-post","status-publish","format-standard","hentry","category-python-programming-scripting-languages"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=17784"}],"version-history":[{"count":4,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17784\/revisions"}],"predecessor-version":[{"id":30735,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/17784\/revisions\/30735"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=17784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=17784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=17784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}