<?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: T-Roy</title>
    <description>The latest articles on Forem by T-Roy (@troy_25).</description>
    <link>https://forem.com/troy_25</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%2F3133021%2F458fefee-ba36-49dd-af05-234ea22129e3.jpg</url>
      <title>Forem: T-Roy</title>
      <link>https://forem.com/troy_25</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/troy_25"/>
    <language>en</language>
    <item>
      <title>Password Creator Simple</title>
      <dc:creator>T-Roy</dc:creator>
      <pubDate>Sat, 07 Jun 2025 00:45:35 +0000</pubDate>
      <link>https://forem.com/troy_25/password-creator-simple-456o</link>
      <guid>https://forem.com/troy_25/password-creator-simple-456o</guid>
      <description>&lt;p&gt;import random&lt;br&gt;
import string&lt;/p&gt;

&lt;p&gt;print("welcome to password generator")&lt;/p&gt;

&lt;p&gt;len = int(input("enter the number of characters in your password: "))&lt;br&gt;
let = int(input("enter the number of letters in your password: "))&lt;br&gt;
num = int(input("enter the number of numbers in your password: "))&lt;br&gt;
sym = int(input("enter the number of symbols in your password: "))&lt;/p&gt;

&lt;p&gt;if len != let + num + sym:&lt;br&gt;
    print("the number of characters should be equal to the sum of letters, numbers and symbols")&lt;/p&gt;

&lt;p&gt;elif len == let + num + sym:&lt;br&gt;
    password = (&lt;br&gt;
        random.choices(string.ascii_letters, k=let) +&lt;br&gt;
        random.choices(string.digits, k=num) +&lt;br&gt;
        random.choices(string.punctuation, k=sym)&lt;br&gt;
    )&lt;br&gt;
    random.shuffle(password)&lt;/p&gt;

&lt;p&gt;print("your password is: ", "".join(password))&lt;/p&gt;

</description>
      <category>programming</category>
      <category>beginners</category>
      <category>python</category>
      <category>webdev</category>
    </item>
    <item>
      <title>rate me as a beginner in python</title>
      <dc:creator>T-Roy</dc:creator>
      <pubDate>Mon, 02 Jun 2025 04:32:31 +0000</pubDate>
      <link>https://forem.com/troy_25/rate-me-as-a-beginner-in-python-159l</link>
      <guid>https://forem.com/troy_25/rate-me-as-a-beginner-in-python-159l</guid>
      <description>&lt;p&gt;print("&lt;strong&gt;&lt;em&gt;welcome to ishop culculator&lt;/em&gt;&lt;/strong&gt;")&lt;/p&gt;

&lt;h1&gt;
  
  
  ask the user how many items they have in basket
&lt;/h1&gt;

&lt;p&gt;basket_items = int(input("how many items you have in basket: "))&lt;br&gt;
basket = []&lt;br&gt;
prices = []&lt;/p&gt;

&lt;h1&gt;
  
  
  adding items to the basket
&lt;/h1&gt;

&lt;p&gt;print("let's get to counting them ...")&lt;/p&gt;

&lt;p&gt;for i in range(basket_items):&lt;br&gt;
    item = input("enter the name of item number : ".format(i+1))&lt;br&gt;
    basket.append(item)&lt;br&gt;
    price = float(input("enter price of item: $"))&lt;br&gt;
    prices.append(price)&lt;/p&gt;

&lt;h1&gt;
  
  
  ask for total
&lt;/h1&gt;

&lt;p&gt;opinion = input("do you want to see what items in your basket? (yes/no): ").lower()&lt;br&gt;
if opinion == "yes":&lt;br&gt;
    print(basket)&lt;br&gt;
    total = input("would you like to see how much it'll cost?")&lt;br&gt;
    if total == "yes":&lt;br&gt;
        print(f"${sum(prices)}")&lt;br&gt;
else:&lt;br&gt;
    print("thank you for shopping with us")&lt;/p&gt;

</description>
      <category>programming</category>
      <category>python</category>
    </item>
    <item>
      <title>My_First_Project</title>
      <dc:creator>T-Roy</dc:creator>
      <pubDate>Mon, 02 Jun 2025 02:59:01 +0000</pubDate>
      <link>https://forem.com/troy_25/myfirstproject-5h11</link>
      <guid>https://forem.com/troy_25/myfirstproject-5h11</guid>
      <description>&lt;p&gt;import random&lt;/p&gt;

&lt;p&gt;def play_game():&lt;br&gt;
    print("Welcome to Rock, Paper, Scissors!")&lt;br&gt;
    print("Type 'rock', 'paper', or 'scissors' to play. Type 'quit' to exit.")&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;choices = ["rock", "paper", "scissors"]

while True:
    user_choice = input("Your choice: ").lower()
    if user_choice == "quit":
        print("Thanks for playing! Goodbye!")
        break

    if user_choice not in choices:
        print("Invalid choice. Please try again.")
        continue

    computer_choice = random.choice(choices)
    print(f"Computer chose: {computer_choice}")

    if user_choice == computer_choice:
        print("It's a tie!")
    elif (user_choice == "rock" and computer_choice == "scissors") or \
         (user_choice == "paper" and computer_choice == "rock") or \
         (user_choice == "scissors" and computer_choice == "paper"):
        print("You win!")
    else:
        print("You lose!")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>programming</category>
      <category>python</category>
    </item>
  </channel>
</rss>
