



{"id":6722,"date":"2019-02-09T16:30:00","date_gmt":"2019-02-09T11:00:00","guid":{"rendered":"http:\/\/computersirkiclass.com\/?p=6722"},"modified":"2026-03-18T17:17:41","modified_gmt":"2026-03-18T11:47:41","slug":"why-do-we-need-classes-2","status":"publish","type":"post","link":"https:\/\/computersirkiclass.com\/cskc\/why-do-we-need-classes-2\/","title":{"rendered":"What is Python (Programming Language)?"},"content":{"rendered":"<div id=\"modal-ready\"><h2><strong>Salient Features:<\/strong><\/h2>\n<ul>\n<li><strong>SIMPLE AS BASIC:<\/strong> Python is a sort of modern day BASIC language.<\/li>\n<li><strong>BEGINNER TO ADVANCED:<\/strong> It is right for beginners and it is truly all purpose in modern times. Language for console applications, GUI applications, scientific applications and web applications.<\/li>\n<li><strong>INTERPRETED:<\/strong> It is an interpreted language. This means that line by line error checking is done.<\/li>\n<li><strong>READABLE:<\/strong> It is highly readable without too scary curly braces.<\/li>\n<li><strong>INDENTED BLOCKS:<\/strong> Code construct is simple and neatly indented with tabs or fixed number of spaces to define blocks within code.<\/li>\n<li><strong>DYNAMIC DATA TYPES:<\/strong> Data typing is automatic and it does not need declarations. This also called dynamic typing concept in python. (for e.g. a=3 and not int a=3)<\/li>\n<li><strong>IN-BUILT DAY-TO-DAY TASKS:<\/strong> Powerful set of features are available to perform most day to day tasks. (For e.g. an array a=[1,2,3] can be reversed by simply writing a.reverse() )<\/li>\n<li><strong>EXTENSIBLE STANDARD AND USER DEFINED LIBRARIES:<\/strong> Easily extensible by using standard libraries or user defined libraries for things like GUI, web frameworks, multimedia, database interaction, networking, image processing, scientific computing, documentation etc.<\/li>\n<li><strong>MANAGED MEMORY:<\/strong> Python performs excellent memory management, without passing the botheration to the user.<\/li>\n<li><strong>SMALL AND EFFICIENT:<\/strong> Python code is usually small and efficient as compared to<br \/>\nmany other high level languages for many simple and complex tasks.<\/li>\n<li><strong>OOPS SUPPORT:<\/strong> Python supports object oriented as well as procedural programming.<\/li>\n<li><strong>PORTABLE:<\/strong> Python code is easily portable and runs without modifications on most computing platforms.<\/li>\n<\/ul>\n<h2><strong>Genesis of Python:<\/strong><\/h2>\n<ul>\n<li>Conceptulised by Dutch programmer Guido Von Rossum in late 1980s.<\/li>\n<li>Version 2.X series existed since year 2000.<\/li>\n<li>Version 3.x series cam in 2008<\/li>\n<\/ul>\n<h2><strong>Demonstration examples:<\/strong><\/h2>\n<p><strong><em>Example 1:<\/em><\/strong><\/p>\n<pre>a=2 # no type for a\r\nb=3 # no line terminator required\r\nprint(a+b) #direct use of operator<\/pre>\n<p>This will output<br \/>\n5<\/p>\n<p><em><br \/>\n<strong>Example 2:<\/strong><\/em><\/p>\n<pre>#watch indented blocks of function and for loop\r\n#watch a simple array declaration termed list\r\ndef test():\r\n  a=[1,2,3]\r\n  for x in a:\r\n    print x<\/pre>\n<p>This will output<br \/>\n1<br \/>\n2<br \/>\n3<\/p>\n<p>&nbsp;<\/p>\n<p><strong><em>Example 3:<\/em><\/strong><\/p>\n<pre>a=[1,2,3] #List is like an array\r\na[0]=5 #List item can be modified\r\nprint a[0]\r\nb=(1,2,3) #Tuple - observe use of round brackets\r\n# b[0]=5 #This statement is not allowed. Tuple items can not be modified\r\nprint b[0]\r\nc={\"A\":4,\"B\":5} #Dictionary contains key value pairs - observe curly braces\r\nprint(c[\"A\"])\r\nc[\"A\"]=6 #Dictionary items can be modified\r\nprint(c[\"A\"])\r\n<\/pre>\n<p>This will output<br \/>\n5<br \/>\n1<br \/>\n4<br \/>\n6<\/p>\n<h2>Notes:<\/h2>\n<ul>\n<li><strong>#<\/strong> is used for commenting<\/li>\n<li>single quote <strong>&#8216; &#8216;<\/strong> and double quote <strong>&#8221; &#8220;<\/strong> are for same purpose, for marking string literal.<\/li>\n<li>: is required for special lines which are expecting more following instruction, for e.g. <strong>test<\/strong>, <strong>for<\/strong>, <strong>while<\/strong> etc.<\/li>\n<li><strong>print<\/strong> can be used directly as print x in version 2.X series but version 3.X series requires <strong>print(x)<\/strong><\/li>\n<\/ul>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Salient Features: SIMPLE AS BASIC: Python is a sort of modern day BASIC language. BEGINNER TO ADVANCED: It is right for beginners and it is truly all purpose in modern times. Language for console applications, GUI applications, scientific applications and web applications. INTERPRETED: It is an interpreted language. This means that line by line error [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7759,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[114,244],"tags":[249],"model_paper":[],"class_list":["post-6722","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cnr","category-python","tag-py010-python-basics"],"acf":[],"_links":{"self":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/6722","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/comments?post=6722"}],"version-history":[{"count":7,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/6722\/revisions"}],"predecessor-version":[{"id":6730,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/posts\/6722\/revisions\/6730"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/media\/7759"}],"wp:attachment":[{"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/media?parent=6722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/categories?post=6722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/tags?post=6722"},{"taxonomy":"model_paper","embeddable":true,"href":"https:\/\/computersirkiclass.com\/cskc\/wp-json\/wp\/v2\/model_paper?post=6722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}