{"id":10135,"date":"2020-11-20T09:48:22","date_gmt":"2020-11-20T09:48:22","guid":{"rendered":"http:\/\/onlineclassesguru.com\/?p=10135"},"modified":"2020-11-20T09:48:22","modified_gmt":"2020-11-20T09:48:22","slug":"a-loop-with-header-for-count-in-range","status":"publish","type":"post","link":"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/","title":{"rendered":"a loop with header for count in range"},"content":{"rendered":"<style type=\"text\/css\"><\/style><p>A. How many times will a loop with header for count in range(5): execute statements in its body?<\/p>\n<p>&nbsp;<\/p>\n<p>a. 5 times \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0b. 4 times<\/p>\n<p>c. 6 times \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0d. 3 times<\/p>\n<p>B. What will be the output of the following program?<\/p>\n<p>count = 35<\/p>\n<p>for x in range(0,10):<\/p>\n<p>count = count &#8211; 1<\/p>\n<p>if x == 2:<\/p>\n<p>break<\/p>\n<p>print(count)<\/p>\n<p>a. 35\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0b. 32<\/p>\n<p>c. 35, 34 , 33\u00a0\u00a0 \u00a0d. 34, 33, 32<\/p>\n<p>C. What will be the output of the following program?<\/p>\n<p>Z = 1<\/p>\n<p>while Z&lt;&gt;<\/p>\n<p>if Z % 7 == 0:<\/p>\n<p>break<\/p>\n<p>Z = Z + 2<\/p>\n<p>print(Z)<\/p>\n<p>a. 5\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0b. 3<\/p>\n<p>c. 4 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0d. 2<\/p>\n<p>D. What will be the output of the following program?<\/p>\n<p>My_str = \u201cI LOVE PHYTHON\u201d<\/p>\n<p>count = 0<\/p>\n<p>for char in my_str:<\/p>\n<p>if char == \u201cO\u201d:<\/p>\n<p>continue<\/p>\n<p>else:<\/p>\n<p>count = count + 1<\/p>\n<p>print(count)<\/p>\n<p>a. 10\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0b. 9<\/p>\n<p>c. 11 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0d. 12<\/p>\n<p>&nbsp;<\/p>\n<p>E. What will be the output of the following program?<\/p>\n<p>my_str = \u201cI LOVE PYTHON\u201d<\/p>\n<p>count = 0<\/p>\n<p>for char in my_str:<\/p>\n<p>count = count + 1<\/p>\n<p>if char == \u201cE\u201d:<\/p>\n<p>break<\/p>\n<p>print(count)<\/p>\n<p>a. 11 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0b. 13<\/p>\n<p>c. 10 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0d. 12<\/p>\n<p><center><a href=\"http:\/\/onlineclassesguru.com\/orders\/ordernow\"><img decoding=\"async\" src=\"https:\/\/encrypted-tbn0.gstatic.com\/images?q=tbn:ANd9GcTyj99p60XCLyLk1htB7-1neRt8-2QdnenNlQ&usqp=CAU\"target=\"_http:\/\/onlineclassesguru.com\/orders\/ordernow\"\/><\/center><p>","protected":false},"excerpt":{"rendered":"<p>A. How many times will a loop with header for count in range(5): execute statements in its body? &nbsp; a. 5 times \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0b. 4 times c. 6 times \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0d. 3 times B. What will be the output of the following program? count = 35 for x in range(0,10): count = count &#8211; 1 if x&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10135","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>a loop with header for count in range - onlineclassesguru<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"a loop with header for count in range - onlineclassesguru\" \/>\n<meta property=\"og:description\" content=\"A. How many times will a loop with header for count in range(5): execute statements in its body? &nbsp; a. 5 times \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0b. 4 times c. 6 times \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0d. 3 times B. What will be the output of the following program? count = 35 for x in range(0,10): count = count &#8211; 1 if x...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/\" \/>\n<meta property=\"og:site_name\" content=\"onlineclassesguru\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-20T09:48:22+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin_admin\" \/>\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:\/\/onlineclassesguru.com\/#website\",\"url\":\"https:\/\/onlineclassesguru.com\/\",\"name\":\"onlineclassesguru\",\"description\":\"Cheap Professional coursework and reaction papers help\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineclassesguru.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/#webpage\",\"url\":\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/\",\"name\":\"a loop with header for count in range - onlineclassesguru\",\"isPartOf\":{\"@id\":\"https:\/\/onlineclassesguru.com\/#website\"},\"datePublished\":\"2020-11-20T09:48:22+00:00\",\"dateModified\":\"2020-11-20T09:48:22+00:00\",\"author\":{\"@id\":\"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742\"},\"breadcrumb\":{\"@id\":\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineclassesguru.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"a loop with header for count in range\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742\",\"name\":\"admin_admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/onlineclassesguru.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g\",\"caption\":\"admin_admin\"},\"url\":\"https:\/\/onlineclassesguru.com\/index.php\/author\/admin_admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"a loop with header for count in range - onlineclassesguru","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":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/","og_locale":"en_US","og_type":"article","og_title":"a loop with header for count in range - onlineclassesguru","og_description":"A. How many times will a loop with header for count in range(5): execute statements in its body? &nbsp; a. 5 times \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0b. 4 times c. 6 times \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0d. 3 times B. What will be the output of the following program? count = 35 for x in range(0,10): count = count &#8211; 1 if x...","og_url":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/","og_site_name":"onlineclassesguru","article_published_time":"2020-11-20T09:48:22+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin_admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/onlineclassesguru.com\/#website","url":"https:\/\/onlineclassesguru.com\/","name":"onlineclassesguru","description":"Cheap Professional coursework and reaction papers help","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineclassesguru.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/#webpage","url":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/","name":"a loop with header for count in range - onlineclassesguru","isPartOf":{"@id":"https:\/\/onlineclassesguru.com\/#website"},"datePublished":"2020-11-20T09:48:22+00:00","dateModified":"2020-11-20T09:48:22+00:00","author":{"@id":"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742"},"breadcrumb":{"@id":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/20\/a-loop-with-header-for-count-in-range\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineclassesguru.com\/"},{"@type":"ListItem","position":2,"name":"a loop with header for count in range"}]},{"@type":"Person","@id":"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742","name":"admin_admin","image":{"@type":"ImageObject","@id":"https:\/\/onlineclassesguru.com\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g","caption":"admin_admin"},"url":"https:\/\/onlineclassesguru.com\/index.php\/author\/admin_admin\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts\/10135"}],"collection":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/comments?post=10135"}],"version-history":[{"count":1,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts\/10135\/revisions"}],"predecessor-version":[{"id":10136,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts\/10135\/revisions\/10136"}],"wp:attachment":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/media?parent=10135"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/categories?post=10135"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/tags?post=10135"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}