

{"id":136031,"date":"2024-05-04T20:04:32","date_gmt":"2024-05-04T14:34:32","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=136031"},"modified":"2024-05-04T20:04:32","modified_gmt":"2024-05-04T14:34:32","slug":"how-to-open-multiple-software-using-python-os-module","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/","title":{"rendered":"How to Open Multiple Software Using Python OS Module"},"content":{"rendered":"<h3>Program 1<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import os\r\nchoice=0\r\nwhile(choice!=8):\r\n    print(\"--------------------Menu--------------------\")\r\n    print(\"1.NotePad\\n2.Calculator\\n3.MS Word\\n4.MS Excel\\n5.MS Paint\\n6.Power Point\\n7.Notepad++\\n8.Exit\")\r\n    print(\"---------------------------------------------\")\r\n    choice=int(input(\"Enter your choice\"))\r\n    if(choice==1):\r\n        os.system(\"notepad\")\r\n    elif (choice==2):\r\n        os.system(\"calc\")\r\n    elif (choice==3):\r\n        os.system(\"start winword.exe\")\r\n    elif (choice==4):\r\n        os.system(\"start excel.exe\")\r\n    elif(choice==5):\r\n        os.system(\"mspaint\")\r\n    elif (choice==6):\r\n        os.system(\"start powerpnt.exe\")\r\n    elif (choice==7):\r\n        os.system(\"start notepad++.exe\")\r\n    else:\r\n        print(\"Invalid choice.....\")<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Program 1 import os choice=0 while(choice!=8): print(&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;Menu&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&#8220;) print(&#8220;1.NotePad\\n2.Calculator\\n3.MS Word\\n4.MS Excel\\n5.MS Paint\\n6.Power Point\\n7.Notepad++\\n8.Exit&#8221;) print(&#8220;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8220;) choice=int(input(&#8220;Enter your choice&#8221;)) if(choice==1): os.system(&#8220;notepad&#8221;) elif (choice==2): os.system(&#8220;calc&#8221;) elif (choice==3): os.system(&#8220;start winword.exe&#8221;) elif (choice==4): os.system(&#8220;start excel.exe&#8221;) elif(choice==5): os.system(&#8220;mspaint&#8221;) elif (choice==6): os.system(&#8220;start&#46;&#46;&#46;<\/p>\n","protected":false},"author":86671,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[31779,31780,16501,10333,28626,22366],"class_list":["post-136031","post","type-post","status-publish","format-standard","hentry","category-python","tag-how-to-open-multiple-software-using-python-os-module","tag-open-multiple-software-using-python-os-module","tag-os-module-in-python","tag-python","tag-python-practical","tag-python-program"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Open Multiple Software Using Python OS Module - DataFlair<\/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:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Open Multiple Software Using Python OS Module - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Program 1 import os choice=0 while(choice!=8): print(&quot;--------------------Menu--------------------&quot;) print(&quot;1.NotePadn2.Calculatorn3.MS Wordn4.MS Exceln5.MS Paintn6.Power Pointn7.Notepad++n8.Exit&quot;) print(&quot;---------------------------------------------&quot;) choice=int(input(&quot;Enter your choice&quot;)) if(choice==1): os.system(&quot;notepad&quot;) elif (choice==2): os.system(&quot;calc&quot;) elif (choice==3): os.system(&quot;start winword.exe&quot;) elif (choice==4): os.system(&quot;start excel.exe&quot;) elif(choice==5): os.system(&quot;mspaint&quot;) elif (choice==6): os.system(&quot;start&#046;&#046;&#046;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-04T14:34:32+00:00\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Open Multiple Software Using Python OS Module - DataFlair","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:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/","og_locale":"en_US","og_type":"article","og_title":"How to Open Multiple Software Using Python OS Module - DataFlair","og_description":"Program 1 import os choice=0 while(choice!=8): print(\"--------------------Menu--------------------\") print(\"1.NotePadn2.Calculatorn3.MS Wordn4.MS Exceln5.MS Paintn6.Power Pointn7.Notepad++n8.Exit\") print(\"---------------------------------------------\") choice=int(input(\"Enter your choice\")) if(choice==1): os.system(\"notepad\") elif (choice==2): os.system(\"calc\") elif (choice==3): os.system(\"start winword.exe\") elif (choice==4): os.system(\"start excel.exe\") elif(choice==5): os.system(\"mspaint\") elif (choice==6): os.system(\"start&#46;&#46;&#46;","og_url":"https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2024-05-04T14:34:32+00:00","author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/0e594f928e31fc96628ac40f6ae74f49"},"headline":"How to Open Multiple Software Using Python OS Module","datePublished":"2024-05-04T14:34:32+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/"},"wordCount":11,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"keywords":["how to open multiple software using python os module","open multiple software using python os module","Os Module in Python","Python","python practical","python program"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/","url":"https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/","name":"How to Open Multiple Software Using Python OS Module - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"datePublished":"2024-05-04T14:34:32+00:00","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/how-to-open-multiple-software-using-python-os-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Python Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/python\/"},{"@type":"ListItem","position":3,"name":"How to Open Multiple Software Using Python OS Module"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/0e594f928e31fc96628ac40f6ae74f49","name":"TechVidvan Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c89190da3d4010c71ba476b618ab10fdc2335c82cdfa0ad5002d98d0f2473444?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c89190da3d4010c71ba476b618ab10fdc2335c82cdfa0ad5002d98d0f2473444?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c89190da3d4010c71ba476b618ab10fdc2335c82cdfa0ad5002d98d0f2473444?s=96&d=mm&r=g","caption":"TechVidvan Team"},"description":"TechVidvan Team provides high-quality content &amp; courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.","url":"https:\/\/data-flair.training\/blogs\/author\/test001\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/136031","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/86671"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=136031"}],"version-history":[{"count":3,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/136031\/revisions"}],"predecessor-version":[{"id":136875,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/136031\/revisions\/136875"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=136031"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=136031"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=136031"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}