{"id":2089,"date":"2018-02-27T09:50:30","date_gmt":"2018-02-27T04:20:30","guid":{"rendered":"http:\/\/stepbystepschools.net\/?p=2089"},"modified":"2018-02-27T09:50:30","modified_gmt":"2018-02-27T04:20:30","slug":"data-science-training-in-mumbai-execute-python-programs-using-visual-studio","status":"publish","type":"post","link":"https:\/\/www.stepbystepschools.net\/?p=2089","title":{"rendered":"Data Science Training in Mumbai :- Execute Python programs using Visual Studio."},"content":{"rendered":"<p>To create and execute python programs using visual studio we must first setup a python environment.<\/p>\n<p>Below are the necessary software which needs to be installed on your computer to create your first application in python:<\/p>\n<p>Steps:<\/p>\n<ol type=\"1\">\n<li>Visit <a target=\"_blank\" href=\"https:\/\/www.python.org\/downloads\/\">https:\/\/www.python.org\/downloads\/<\/a> and download one of the following versions<\/li>\n<li><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-6.png\" rel=\"attachment wp-att-2093\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-6.png\" alt=\"1\" width=\"575\" height=\"116\" class=\"aligncenter size-full wp-image-2093\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-6.png 575w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-6-300x61.png 300w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/a><br \/>\nI recommend going with Python 3.6.x version because 3.6.4 is the latest version which will most likely remain stable while 2.7.x is just released to support legacy code.\n<\/li>\n<li>While installing python you need to select this option as it is very important and will help us further as we progress<br \/>\n<a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/2-5.png\" rel=\"attachment wp-att-2094\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/2-5.png\" alt=\"2\" width=\"588\" height=\"93\" class=\"aligncenter size-full wp-image-2094\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/2-5.png 588w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/2-5-300x47.png 300w\" sizes=\"(max-width: 588px) 100vw, 588px\" \/><\/a><\/p>\n<p>After this click Install Now and let the software install itself<\/p>\n<\/li>\n<\/ol>\n<p>Now open Visual Studio on your pc and then click on Get Tools and features&#8230; inside Tools<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/3-5.png\" rel=\"attachment wp-att-2095\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/3-5.png\" alt=\"3\" width=\"602\" height=\"61\" class=\"aligncenter size-full wp-image-2095\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/3-5.png 602w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/3-5-300x30.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/a><\/p>\n<p>Now in the feature installation window check and install the following features.<\/p>\n<p>For Visual Studio 2017.<\/p>\n<p>Contains Tools for Data Science.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/4-4.png\" rel=\"attachment wp-att-2096\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/4-4.png\" alt=\"4\" width=\"403\" height=\"86\" class=\"aligncenter size-full wp-image-2096\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/4-4.png 403w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/4-4-300x64.png 300w\" sizes=\"(max-width: 403px) 100vw, 403px\" \/><\/a><\/p>\n<p>Provides interactive tools for python application development.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/5-4.png\" rel=\"attachment wp-att-2097\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/5-4.png\" alt=\"5\" width=\"408\" height=\"87\" class=\"aligncenter size-full wp-image-2097\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/5-4.png 408w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/5-4-300x64.png 300w\" sizes=\"(max-width: 408px) 100vw, 408px\" \/><\/a><\/p>\n<p>For Visual Studio 2015 and 2013 we need to install the above packages from the visual studio website.<\/p>\n<p>Now let\u2019s create a new python program by adding a new project and selecting the Python Application.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/6-2.png\" rel=\"attachment wp-att-2098\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/6-2.png\" alt=\"6\" width=\"540\" height=\"316\" class=\"aligncenter size-full wp-image-2098\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/6-2.png 540w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/6-2-300x176.png 300w\" sizes=\"(max-width: 540px) 100vw, 540px\" \/><\/a><\/p>\n<p>The file structure of our newly created application is shown below:<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/7-1.png\" rel=\"attachment wp-att-2099\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/7-1.png\" alt=\"7\" width=\"381\" height=\"352\" class=\"aligncenter size-full wp-image-2099\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/7-1.png 381w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2018\/02\/7-1-300x277.png 300w\" sizes=\"(max-width: 381px) 100vw, 381px\" \/><\/a><\/p>\n<p>And write the following code inside our PythonVS17.py file<\/p>\n<pre><font face=\"Cambria\" size=\"6\">print(1,2,3)\r\nprint(<font color=\"#CE0000\">'GM<\/font><font color=\"#CE0000\">'<\/font>)\r\nprint(<font color=\"#007D7D\">type<\/font>(<font color=\"#CE0000\">'hello<\/font><font color=\"#CE0000\">'<\/font>))\r\nprint(<font color=\"#007D7D\">type<\/font>(3))\r\nprint(<font color=\"#007D7D\">type<\/font>(3.2))\r\na = 15\r\nb = 24\r\nprint(a+b)<\/font>\r\n<\/pre>\n<p>We can run and execute this code like any other application we run on visual studio preferably by either pressing on start or just starting without debugging.<\/p>\n<p>Type in the above code is used to display the datatype of the value provided.<\/p>\n<p>We get the following output when we run our application.<\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/8-1.png\" rel=\"attachment wp-att-2100\"><img loading=\"lazy\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/8-1.png\" alt=\"8\" width=\"286\" height=\"185\" class=\"alignleft size-full wp-image-2100\" \/><\/a><\/p>\n<p><\/br><br \/>\n<\/br><br \/>\n<\/br><br \/>\n<\/br><br \/>\n<\/br><\/p>\n<p><a target=\"_blank\" href=\"http:\/\/stepbystepschools.net\/?page_id=1842\">Syllabus of Data Science training in Mumbai<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To create and execute python programs using visual studio we must first setup a python environment. Below are the necessary software which needs to be installed on your computer to create your first application in python: Steps: Visit https:\/\/www.python.org\/downloads\/ and &hellip; <a href=\"https:\/\/www.stepbystepschools.net\/?p=2089\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[1],"tags":[198,199,210,214,215],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Data Science Training in Mumbai :- Execute Python programs using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.stepbystepschools.net\/?p=2089\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Data Science Training in Mumbai :- Execute Python programs using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\" \/>\n<meta property=\"og:description\" content=\"To create and execute python programs using visual studio we must first setup a python environment. Below are the necessary software which needs to be installed on your computer to create your first application in python: Steps: Visit https:\/\/www.python.org\/downloads\/ and &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.stepbystepschools.net\/?p=2089\" \/>\n<meta property=\"og:site_name\" content=\"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\" \/>\n<meta property=\"article:published_time\" content=\"2018-02-27T04:20:30+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-6.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"StepByStepSchoolsSupport\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#website\",\"url\":\"https:\/\/www.stepbystepschools.net\/\",\"name\":\"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\",\"description\":\"MVC 5\/Core, AngularJS 1.x, 2.0, 4.0, Design Pattern, Architecture, SSIS, SSAS, SSRS, Data Science, Big data, Hadoop classroom training\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.stepbystepschools.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2089#primaryimage\",\"url\":\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-6.png\",\"contentUrl\":\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-6.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2089#webpage\",\"url\":\"https:\/\/www.stepbystepschools.net\/?p=2089\",\"name\":\"Data Science Training in Mumbai :- Execute Python programs using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\",\"isPartOf\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2089#primaryimage\"},\"datePublished\":\"2018-02-27T04:20:30+00:00\",\"dateModified\":\"2018-02-27T04:20:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2089#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.stepbystepschools.net\/?p=2089\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=2089#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.stepbystepschools.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Science Training in Mumbai :- Execute Python programs using Visual Studio.\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655\",\"name\":\"StepByStepSchoolsSupport\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g\",\"caption\":\"StepByStepSchoolsSupport\"},\"url\":\"https:\/\/www.stepbystepschools.net\/?author=40\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Data Science Training in Mumbai :- Execute Python programs using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.stepbystepschools.net\/?p=2089","og_locale":"en_US","og_type":"article","og_title":"Data Science Training in Mumbai :- Execute Python programs using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","og_description":"To create and execute python programs using visual studio we must first setup a python environment. Below are the necessary software which needs to be installed on your computer to create your first application in python: Steps: Visit https:\/\/www.python.org\/downloads\/ and &hellip; Continue reading &rarr;","og_url":"https:\/\/www.stepbystepschools.net\/?p=2089","og_site_name":"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","article_published_time":"2018-02-27T04:20:30+00:00","og_image":[{"url":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-6.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"StepByStepSchoolsSupport","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.stepbystepschools.net\/#website","url":"https:\/\/www.stepbystepschools.net\/","name":"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","description":"MVC 5\/Core, AngularJS 1.x, 2.0, 4.0, Design Pattern, Architecture, SSIS, SSAS, SSRS, Data Science, Big data, Hadoop classroom training","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.stepbystepschools.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stepbystepschools.net\/?p=2089#primaryimage","url":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-6.png","contentUrl":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2018\/02\/1-6.png"},{"@type":"WebPage","@id":"https:\/\/www.stepbystepschools.net\/?p=2089#webpage","url":"https:\/\/www.stepbystepschools.net\/?p=2089","name":"Data Science Training in Mumbai :- Execute Python programs using Visual Studio. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","isPartOf":{"@id":"https:\/\/www.stepbystepschools.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.stepbystepschools.net\/?p=2089#primaryimage"},"datePublished":"2018-02-27T04:20:30+00:00","dateModified":"2018-02-27T04:20:30+00:00","author":{"@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655"},"breadcrumb":{"@id":"https:\/\/www.stepbystepschools.net\/?p=2089#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.stepbystepschools.net\/?p=2089"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.stepbystepschools.net\/?p=2089#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.stepbystepschools.net\/"},{"@type":"ListItem","position":2,"name":"Data Science Training in Mumbai :- Execute Python programs using Visual Studio."}]},{"@type":"Person","@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655","name":"StepByStepSchoolsSupport","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g","caption":"StepByStepSchoolsSupport"},"url":"https:\/\/www.stepbystepschools.net\/?author=40"}]}},"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/2089"}],"collection":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2089"}],"version-history":[{"count":8,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/2089\/revisions"}],"predecessor-version":[{"id":2108,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/2089\/revisions\/2108"}],"wp:attachment":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2089"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2089"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2089"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}