{"id":35418,"date":"2024-04-26T22:58:19","date_gmt":"2024-04-26T22:58:19","guid":{"rendered":"http:\/\/localhost\/branding\/creating-python-pogram\/"},"modified":"2024-04-26T22:58:19","modified_gmt":"2024-04-26T22:58:19","slug":"creating-python-pogram","status":"publish","type":"post","link":"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/","title":{"rendered":"creating python pogram."},"content":{"rendered":"<p>Creating Python Program<\/p>\n<p>Student Name:<\/p>\n<p>Name of Institution:<\/p>\n<p>Python is a programming language that is interactive and objective. It is a very vital programming tool because it can incorporate extremely high data types that are as well dynamic and can be applied to many different classes of problems. Python is text file and can be edited by use of an editor program that is standard (Guido &amp; Jelke, 2001). The choice of an editor text closely depends on the system of operation although a python program can be created by any text editor. The created python program can then be used in the study of continued fraction expansion.<\/p>\n<p>Mathematically, a continued fraction is obtainable by a frequentative process of expressing a number as the sum of its integer part and to other number as the reciprocal then this other number is the sum of its integer and another reciprocal and so forth.<\/p>\n<p>Below is a basic formulae of a continued fraction expression.<\/p>\n<p>Where a0 is an integer, any other ai members are positive integers, and n is positive <\/p>\n<p>Developing a python program<\/p>\n<p>integer.def universal_distro(L=10000): <\/p>\n<p>Import random <\/p>\n<p>y= random.random() <\/p>\n<p>h = list() <\/p>\n<p> r= dict() <\/p>\n<p>p = dict() <\/p>\n<p>L= len(o) <\/p>\n<p>while L &lt; 10000: <\/p>\n<p>for y in range[0,1]: <\/p>\n<p> w = number2cfe(y,L=15) <\/p>\n<p> e = w[n] <\/p>\n<p>if n &lt; 15: <\/p>\n<p>count = 0 <\/p>\n<p>If w[n] not in g: <\/p>\n<p>for e in w: <\/p>\n<p>if e == w[n]: <\/p>\n<p>count += 1 <\/p>\n<p>g.append(w[n]) <\/p>\n<p>n += 1 <\/p>\n<p> r[w[n]] = count <\/p>\n<p> for k in m.keys(): <\/p>\n<p>if o.has_key(k): <\/p>\n<p> o[k] += r[k] <\/p>\n<p>else: <\/p>\n<p> o[k] = r[k] <\/p>\n<p> N += 1 <\/p>\n<p>Studying fraction by use of a python program<\/p>\n<p> import fractions              1<\/p>\n<p> y = fractions. Fraction (1, 3) 2<\/p>\n<p>y<\/p>\n<p>Fraction (1, 3)<\/p>\n<p>y * 2                         3<\/p>\n<p>Fraction (2, 3)<\/p>\n<p>Fraction (6, 4)      4<\/p>\n<p>Fraction (3, 2)<\/p>\n<p>Fraction (0, 0)      5<\/p>\n<p>Trace back (most recent call last):<\/p>\n<p>  File &#8220;&lt;stdin&gt;&#8221;, line 1, in &lt;module&gt;<\/p>\n<p>  File &#8220;fractions.py&#8221;, line 76, in __new__<\/p>\n<p> 0 Error DIV(&#8216;Fraction(%s, 0)&#8217; % numerator)<\/p>\n<p>ZeroDivisionError: Fraction(0, 0)<\/p>\n<p>For augmented assignment statements:<\/p>\n<p>augmented_assignment_stmt ::=  augtarget augop (expression_list | yield_expression)<\/p>\n<p>augtarget                 ::=  identifier | attributeref | subscription | slicing<\/p>\n<p>augop                     ::=  &#8220;+=&#8221; | &#8220;-=&#8221; | &#8220;*=&#8221; | &#8220;\/=&#8221; | &#8220;\/\/=&#8221; | &#8220;%=&#8221; | &#8220;**=&#8221;<\/p>\n<p>                               | &#8220;&gt;&gt;=&#8221; | &#8220;&lt;&lt;=&#8221; | &#8220;&amp;=&#8221; | &#8220;^=&#8221; | &#8220;|=&#8221;<\/p>\n<p>To start using fractions, import the fractions module. <\/p>\n<p>To define a fraction, create a Fraction object and pass in the numerator and denominator. <\/p>\n<p>All expressions with fractions are solvable. Operations change new Fraction object 2 * (1\/3) = (2\/3) <\/p>\n<p>The Fraction object will automatically reduce fractions. (6\/4) = (3\/2) <\/p>\n<p>Python program eliminates the chances of creating zero in the denominator of a fraction.<\/p>\n<p>References<\/p>\n<p>Guido van, R. &amp; Jelke de, B. (2001). Interactively Testing Remote Servers Using the Python Programming Language. Amsterdam: Longman Publishers pp. 283-303.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Creating Python Program Student Name: Name of Institution: Python is a programming language that is interactive and objective. It is<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-35418","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>creating python pogram. - sheilathewriter<\/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:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"creating python pogram. - sheilathewriter\" \/>\n<meta property=\"og:description\" content=\"Creating Python Program Student Name: Name of Institution: Python is a programming language that is interactive and objective. It is\" \/>\n<meta property=\"og:url\" content=\"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/\" \/>\n<meta property=\"og:site_name\" content=\"sheilathewriter\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-26T22:58:19+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\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\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/\",\"url\":\"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/\",\"name\":\"creating python pogram. - sheilathewriter\",\"isPartOf\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#website\"},\"datePublished\":\"2024-04-26T22:58:19+00:00\",\"author\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab\"},\"breadcrumb\":{\"@id\":\"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/sheilathewriter.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"creating python pogram.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#website\",\"url\":\"https:\/\/sheilathewriter.com\/blog\/\",\"name\":\"sheilathewriter\",\"description\":\"Custom essay writing\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/sheilathewriter.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/opskill.com\/propapers\"],\"url\":\"https:\/\/sheilathewriter.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"creating python pogram. - sheilathewriter","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:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/","og_locale":"en_US","og_type":"article","og_title":"creating python pogram. - sheilathewriter","og_description":"Creating Python Program Student Name: Name of Institution: Python is a programming language that is interactive and objective. It is","og_url":"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/","og_site_name":"sheilathewriter","article_published_time":"2024-04-26T22:58:19+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/","url":"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/","name":"creating python pogram. - sheilathewriter","isPartOf":{"@id":"https:\/\/sheilathewriter.com\/blog\/#website"},"datePublished":"2024-04-26T22:58:19+00:00","author":{"@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab"},"breadcrumb":{"@id":"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/sheilathewriter.com\/blog\/creating-python-pogram\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/sheilathewriter.com\/blog\/"},{"@type":"ListItem","position":2,"name":"creating python pogram."}]},{"@type":"WebSite","@id":"https:\/\/sheilathewriter.com\/blog\/#website","url":"https:\/\/sheilathewriter.com\/blog\/","name":"sheilathewriter","description":"Custom essay writing","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/sheilathewriter.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/f5844d28db4a1882523a0a69560bf0ab","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/sheilathewriter.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/9cf817440d627e98709fcac9c5cc379958985e679d683af80df1879b5a471013?s=96&d=mm&r=g","caption":"admin"},"sameAs":["http:\/\/opskill.com\/propapers"],"url":"https:\/\/sheilathewriter.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts\/35418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/comments?post=35418"}],"version-history":[{"count":0,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/posts\/35418\/revisions"}],"wp:attachment":[{"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/media?parent=35418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/categories?post=35418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sheilathewriter.com\/blog\/wp-json\/wp\/v2\/tags?post=35418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}