<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: qkrgksals17</title>
    <description>The latest articles on Forem by qkrgksals17 (@qkrgksals17).</description>
    <link>https://forem.com/qkrgksals17</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F45754%2F78a0f9c7-3933-49d5-80bf-2c072e6a6ef7.png</url>
      <title>Forem: qkrgksals17</title>
      <link>https://forem.com/qkrgksals17</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/qkrgksals17"/>
    <language>en</language>
    <item>
      <title>The way to fix an endless loop</title>
      <dc:creator>qkrgksals17</dc:creator>
      <pubDate>Tue, 21 Nov 2017 02:05:37 +0000</pubDate>
      <link>https://forem.com/qkrgksals17/i-created-an-endless-loop-at-parts-but-i-dont-know-how-to-fix-it-2ic</link>
      <guid>https://forem.com/qkrgksals17/i-created-an-endless-loop-at-parts-but-i-dont-know-how-to-fix-it-2ic</guid>
      <description>&lt;p&gt;Here is my code that creates endless loop, the line that has *.&lt;br&gt;
Please let me know how to fix this.&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Ask to choice coffee
coffee_choice = input("Enter 1 for jonestown brew and 2 for plymouth jolt: ")
*while coffee_choice != 1 and coffee_choice!= 2:
    print ("Please enter a valid option.\n\n")
    coffee_choice = input("Enter 1 for jonestown brew and 2 for plymouth jolt: ")

# Ask pounds of coffee
pounds = input("Enter the amount of coffee you want to order in pounds: ")
*if type(pounds) != float and type(pounds) != int:
    print ("Please enter a valid option.\n\n")
    pounds = input("Enter the amount of coffee you want to order in pounds: ")

# Ask for States
state = input("Please enter your state: ")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>help</category>
    </item>
  </channel>
</rss>
