<?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>DEV Community: Mariostarship</title>
    <description>The latest articles on DEV Community by Mariostarship (@mariostarship).</description>
    <link>https://dev.to/mariostarship</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%2F1104538%2Ffad0b100-aa84-4378-a02b-912c69a3f813.png</url>
      <title>DEV Community: Mariostarship</title>
      <link>https://dev.to/mariostarship</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mariostarship"/>
    <language>en</language>
    <item>
      <title>how can i turn py code into executable file /virtual assistant and launch on test platform to see finished product</title>
      <dc:creator>Mariostarship</dc:creator>
      <pubDate>Mon, 19 Jun 2023 21:19:42 +0000</pubDate>
      <link>https://dev.to/mariostarship/how-can-i-turn-py-code-into-executable-file-virtual-assistant-and-launch-on-test-platform-to-see-finished-product-4n9b</link>
      <guid>https://dev.to/mariostarship/how-can-i-turn-py-code-into-executable-file-virtual-assistant-and-launch-on-test-platform-to-see-finished-product-4n9b</guid>
      <description>&lt;p&gt;import random&lt;/p&gt;

&lt;h1&gt;
  
  
  Define a function to handle user input and generate responses
&lt;/h1&gt;

&lt;p&gt;def virtual_assistant(user_input):&lt;br&gt;
    greetings = ["Hello!", "Hi there!", "Greetings!"]&lt;br&gt;
    farewells = ["Goodbye!", "Farewell!", "Until next time!"]&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;user_input = user_input.lower()

&lt;p&gt;if "hello" in user_input or "hi" in user_input:&lt;br&gt;
    return random.choice(greetings)&lt;br&gt;
elif "goodbye" in user_input or "bye" in user_input:&lt;br&gt;
    return random.choice(farewells)&lt;br&gt;
elif "tell a joke" in user_input:&lt;br&gt;
    return "Why don't scientists trust atoms? Because they make up everything!"&lt;br&gt;
else:&lt;br&gt;
    return "I'm sorry, I can't understand that request."&lt;br&gt;
&lt;/p&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Main loop to interact with the virtual assistant&lt;br&gt;
&lt;/h1&gt;

&lt;p&gt;while True:&lt;br&gt;
    user_input = input("User: ")&lt;br&gt;
    response = virtual_assistant(user_input)&lt;br&gt;
    print("Virtual Assistant:", response)&lt;/p&gt;

</description>
    </item>
    <item>
      <title>beginner dumb question</title>
      <dc:creator>Mariostarship</dc:creator>
      <pubDate>Mon, 19 Jun 2023 17:31:46 +0000</pubDate>
      <link>https://dev.to/mariostarship/beginner-dumb-question-43k4</link>
      <guid>https://dev.to/mariostarship/beginner-dumb-question-43k4</guid>
      <description>&lt;p&gt;how do i take this code and make it a real product , Sorry Dummy&lt;/p&gt;

&lt;p&gt;import random&lt;/p&gt;

&lt;h1&gt;
  
  
  Define a function to handle user input and generate responses
&lt;/h1&gt;

&lt;p&gt;def virtual_assistant(user_input):&lt;br&gt;
    greetings = ["Hello!", "Hi there!", "Greetings!"]&lt;br&gt;
    farewells = ["Goodbye!", "Farewell!", "Until next time!"]&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;user_input = user_input.lower()

&lt;p&gt;if "hello" in user_input or "hi" in user_input:&lt;br&gt;
    return random.choice(greetings)&lt;br&gt;
elif "goodbye" in user_input or "bye" in user_input:&lt;br&gt;
    return random.choice(farewells)&lt;br&gt;
elif "tell a joke" in user_input:&lt;br&gt;
    return "Why don't scientists trust atoms? Because they make up everything!"&lt;br&gt;
else:&lt;br&gt;
    return "I'm sorry, I can't understand that request."&lt;br&gt;
&lt;/p&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h1&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  Main loop to interact with the virtual assistant&lt;br&gt;
&lt;/h1&gt;

&lt;p&gt;while True:&lt;br&gt;
    user_input = input("User: ")&lt;br&gt;
    response = virtual_assistant(user_input)&lt;br&gt;
    print("Virtual Assistant:", response)&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
