{"id":156,"date":"2021-09-29T13:15:53","date_gmt":"2021-09-29T13:15:53","guid":{"rendered":"https:\/\/ethosspace.com\/programmers\/?p=156"},"modified":"2021-11-08T08:56:31","modified_gmt":"2021-11-08T08:56:31","slug":"use-of-interactive-prompt-or-mode-in-python","status":"publish","type":"post","link":"https:\/\/ethosspace.com\/programmers\/use-of-interactive-prompt-or-mode-in-python\/","title":{"rendered":"Use of interactive prompt or mode in python"},"content":{"rendered":"\n<p>On starting python interactive mode we get below output<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Python 3.9.7 (tags\/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) &#91;MSC v.1929 64 bit (AMD64)] on win32\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\n&gt;&gt;&gt;<\/code><\/pre>\n\n\n\n<p>In interactive mode it is not necessary to use &#8220;print&#8221; command explicitly. see below<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&gt;&gt;&gt; print(\"python interactive\")\npython interactive\n&gt;&gt;&gt; \"python interactive\"\n'python interactive'\n&gt;&gt;&gt;<\/code><\/pre>\n\n\n\n<p>Interactive prompt runs code and echo immediately. But code which we write on interactive prompt does not get saved. To perform experiment with functions in python we can use this prompt. interactive prompt runs one statement at one time.  <\/p>\n\n\n\n<p>Run python program online <a href=\"https:\/\/ethosspace.com\/programmers\/free-online-python-compiler-interpreter\/\" title=\"Free Online Python Compiler (Interpreter)\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On starting python interactive mode we get below output In interactive mode it is not necessary to use &#8220;print&#8221; command explicitly. see below Interactive prompt runs code and echo immediately. But code which we write on interactive prompt does not get saved. To perform experiment with functions in python we can use this prompt. interactive [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","footnotes":""},"categories":[11],"tags":[],"class_list":["post-156","post","type-post","status-publish","format-standard","hentry","category-running-code-and-program"],"aioseo_notices":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"sparkling-featured":false,"sparkling-featured-fullwidth":false,"tab-small":false},"uagb_author_info":{"display_name":"program45_-rt8nb","author_link":"https:\/\/ethosspace.com\/programmers\/author\/program45_-rt8nb\/"},"uagb_comment_info":0,"uagb_excerpt":"On starting python interactive mode we get below output In interactive mode it is not necessary to use &#8220;print&#8221; command explicitly. see below Interactive prompt runs code and echo immediately. But code which we write on interactive prompt does not get saved. To perform experiment with functions in python we can use this prompt. interactive&hellip;","_links":{"self":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts\/156","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":2,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":946,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/posts\/156\/revisions\/946"}],"wp:attachment":[{"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ethosspace.com\/programmers\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}