<?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: Ghazal Abdulraheem</title>
    <description>The latest articles on DEV Community by Ghazal Abdulraheem (@ghazal_abdulraheem_31d57e).</description>
    <link>https://dev.to/ghazal_abdulraheem_31d57e</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%2F3734793%2Facece364-1968-40e7-b7ee-65c9a62b0bc8.jpg</url>
      <title>DEV Community: Ghazal Abdulraheem</title>
      <link>https://dev.to/ghazal_abdulraheem_31d57e</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ghazal_abdulraheem_31d57e"/>
    <language>en</language>
    <item>
      <title>Build a Band Generator</title>
      <dc:creator>Ghazal Abdulraheem</dc:creator>
      <pubDate>Wed, 13 May 2026 08:42:43 +0000</pubDate>
      <link>https://dev.to/ghazal_abdulraheem_31d57e/build-a-band-generator-d0d</link>
      <guid>https://dev.to/ghazal_abdulraheem_31d57e/build-a-band-generator-d0d</guid>
      <description>&lt;p&gt;In this post, you'll learn how to build a fun project called &lt;strong&gt;"Band Name Generator."&lt;/strong&gt; But before that, I’d like to explain some fundamental concepts used in building the project.&lt;/p&gt;

&lt;p&gt;I started the amazing &lt;em&gt;#100DaysOfCode&lt;/em&gt; challenge today, and I picked up Python Crash Course by Angela Yu to unlearn, relearn, and refresh my Python skills as a developer.&lt;/p&gt;

&lt;p&gt;Python is a fun programming language to learn, especially if you're just starting out as a developer. It has an easy-to-read syntax and allows you to build real-world relatable projects while learning.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Here are some of the things I learned on Day 1:&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;String Manipulation&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Python gives us the flexibility to manipulate strings. You might ask, what is a string?&lt;/p&gt;

&lt;p&gt;A string is a collection of characters arranged together in a linear format. Examples include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;"Great"&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;"linux123"&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;"Hello World!"&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  &lt;strong&gt;Error Types&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;As a Python developer, understanding the types of errors you encounter will help you ask the right questions when searching for solutions.&lt;/p&gt;

&lt;p&gt;Here are some basic error types I learned on Day 1:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. IndentationError
&lt;/h3&gt;

&lt;p&gt;This error occurs when indentation is used incorrectly in your code.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```python id="i8l5n1"&lt;br&gt;
print("Hello")&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


Python relies heavily on proper indentation, especially inside functions, loops, and conditionals.

---

### 2. SyntaxError

This error occurs when you do not follow the correct syntax of the language.

Example:



```python id="g42bh3"
print("Hello)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Correct version:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```python id="5bj62q"&lt;br&gt;
print("Hello")&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


The first example is missing the closing quotation mark.

---

### 3. NameError

This error occurs when you reference a variable name that has not been declared.

Example:



```python id="6h0t5r"
name = "Richard"
print(nama)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The code above will result in a &lt;code&gt;NameError&lt;/code&gt; because &lt;code&gt;nama&lt;/code&gt; was never defined.&lt;/p&gt;


&lt;h3&gt;
  
  
  4. TypeError
&lt;/h3&gt;

&lt;p&gt;This error occurs when you try to perform an operation between incompatible data types.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```python id="5d5e8x"&lt;br&gt;
data = "Skyscrappers"&lt;br&gt;
print("We currently have " + len("three") + data)&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


This will result in a `TypeError` because `len("three")` returns a number, and Python cannot concatenate a string with an integer directly.

Correct version:



```python id="9l2qj8"
data = "Skyscrappers"
print("We currently have " + str(len("three")) + " " + data)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The &lt;code&gt;str()&lt;/code&gt; function converts the number into a string, allowing Python to process the concatenation correctly.&lt;/p&gt;


&lt;h2&gt;
  
  
  &lt;strong&gt;Variables&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;A variable is a storage container used to hold data for future use.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```python id="bx38d4"&lt;br&gt;
taxID = 1234567890&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


---

## **len()**

The `len()` function helps us count the number of characters in a string.

Example:



```python id="wb06dc"
len("Hello")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;input()&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;input()&lt;/code&gt; function allows us to collect data from users for further processing.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```python id="2jlwmn"&lt;br&gt;
input("What is your name?")&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


---

## **str()**

The `str()` function converts other data types into strings.

Example:



```python id="3b7e1u"
str(4)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt;print()&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;The &lt;code&gt;print()&lt;/code&gt; function is one of the most commonly used functions in Python. It displays output in the terminal.&lt;/p&gt;

&lt;p&gt;Example:&lt;br&gt;
&lt;/p&gt;

&lt;p&gt;```python id="q9m4t0"&lt;br&gt;
print("Can I come now?")&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;


---

Now that you understand the basics, let’s build our Band Name Generator app.

# Band Name Generator



```python id="yojv2n"
# Declare variables to store city and pet name

city = input("Which city did you grow up in?\n")

petName = input("What is your favorite pet's name?\n")

# Display the final band name using concatenation
print("Yup! Your band name is " + city + " " + petName)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you found this interesting, share your thoughts in the comment section.&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>python</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
