
{"id":16330,"date":"2015-03-23T14:52:20","date_gmt":"2015-03-23T14:52:20","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=16330"},"modified":"2015-03-23T14:52:20","modified_gmt":"2015-03-23T14:52:20","slug":"hacking-with-python-system-basics","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2015\/03\/23\/hacking-with-python-system-basics\/","title":{"rendered":"Looking into a few commands with python interactive shell"},"content":{"rendered":"<p><u>ABOUT PYTHON<\/u><\/p>\n<pre>\nPython is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python has a design philosophy that emphasizes code readability, notably using significant whitespace. It provides constructs that enable clear programming on both small and large scales.[26] Van Rossum led the language community until stepping down as leader in July 2018.[27][28]\n<\/pre>\n<p><u>TYPICAL PYTHON SHELL EXPOSURE<\/u><br \/>\n[python]<br \/>\nPython 2.7.9 (default, Mar  1 2015, 12:57:24)<br \/>\n[GCC 4.9.2] on linux2<br \/>\nType &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br \/>\n&gt;&gt;&gt; import sys, os<br \/>\n&gt;&gt;&gt; len(dir(sys))<br \/>\n69<br \/>\n&gt;&gt;&gt; len(dir(os))<br \/>\n235<br \/>\n&gt;&gt;&gt; len(dir(os.oath))<br \/>\nTraceback (most recent call last):<br \/>\n  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br \/>\nAttributeError: &#8216;module&#8217; object has no attribute &#8216;oath&#8217;<br \/>\n&gt;&gt;&gt; len(dir(os.path))<br \/>\n53<br \/>\n&gt;&gt;&gt;<br \/>\n[\/python]<br \/>\n[python]<br \/>\nPython 2.7.15+ (default, Feb 16 2019, 10:39:20)<br \/>\n[GCC 8.2.0] on linux2<br \/>\nType &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br \/>\n&gt;&gt;&gt; help<br \/>\nType help() for interactive help, or help(object) for help about object.<br \/>\n&gt;&gt;&gt; help()<\/p>\n<p>Welcome to Python 2.7!  This is the online help utility.<\/p>\n<p>If this is your first time using Python, you should definitely check out<br \/>\nthe tutorial on the Internet at http:\/\/docs.python.org\/2.7\/tutorial\/.<\/p>\n<p>Enter the name of any module, keyword, or topic to get help on writing<br \/>\nPython programs and using Python modules.  To quit this help utility and<br \/>\nreturn to the interpreter, just type &quot;quit&quot;.<\/p>\n<p>To get a list of available modules, keywords, or topics, type &quot;modules&quot;,<br \/>\n&quot;keywords&quot;, or &quot;topics&quot;.  Each module also comes with a one-line summary<br \/>\nof what it does; to list the modules whose summaries contain a given word<br \/>\nsuch as &quot;spam&quot;, type &quot;modules spam&quot;.<\/p>\n<p>help&gt; help if<br \/>\nno Python documentation found for &#8216;help if&#8217;<\/p>\n<p>help&gt; if<\/p>\n<p>Related help topics: TRUTHVALUE<\/p>\n<p>help&gt; keywords<\/p>\n<p>Here is a list of the Python keywords.  Enter any keyword to get more help.<\/p>\n<p>and                 elif                if                  print<br \/>\nas                  else                import              raise<br \/>\nassert              except              in                  return<br \/>\nbreak               exec                is                  try<br \/>\nclass               finally             lambda              while<br \/>\ncontinue            for                 not                 with<br \/>\ndef                 from                or                  yield<br \/>\ndel                 global              pass                <\/p>\n<p>help&gt; <\/p>\n<p>[\/python]]<\/p>\n<p>LINKS<br \/>\n<a href=\"https:\/\/en.wikipedia.org\/wiki\/Python_(programming_language)\">https:\/\/en.wikipedia.org\/wiki\/Python_(programming_language)<\/a><br \/>\n<a href=\"https:\/\/docs.python.org\/3\/tutorial\/interpreter.html\">https:\/\/docs.python.org\/3\/tutorial\/interpreter.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ABOUT PYTHON Python is an interpreted, high-level, general-purpose programming language. Created by Guido van Rossum and first released in 1991, Python has a design philosophy that emphasizes code readability, notably using significant whitespace. It provides constructs that enable clear programming on both small and large scales.[26] Van Rossum led the language community until stepping down &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2015\/03\/23\/hacking-with-python-system-basics\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Looking into a few commands with python interactive shell&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83,91],"tags":[1332,1533],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16330"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=16330"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/16330\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=16330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=16330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=16330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}