<?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: Rebecca-254</title>
    <description>The latest articles on DEV Community by Rebecca-254 (@rebecca254).</description>
    <link>https://dev.to/rebecca254</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%2F3288176%2Fbc1b61ea-95a4-4a08-b239-febab98051c7.jpg</url>
      <title>DEV Community: Rebecca-254</title>
      <link>https://dev.to/rebecca254</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rebecca254"/>
    <language>en</language>
    <item>
      <title>Day 5: Connecting Everything with Django’s MVT Architecture</title>
      <dc:creator>Rebecca-254</dc:creator>
      <pubDate>Wed, 02 Jul 2025 18:41:36 +0000</pubDate>
      <link>https://dev.to/rebecca254/day-5-connecting-everything-with-djangos-mvt-architecture-23a6</link>
      <guid>https://dev.to/rebecca254/day-5-connecting-everything-with-djangos-mvt-architecture-23a6</guid>
      <description>&lt;p&gt;Hi, so today I focused on understanding and applying Django’s MVT architecture,  the foundation of how Django apps work. &lt;/p&gt;

&lt;h2&gt;
  
  
  MODEL – Data layer.
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;So what is a Model in Django?&lt;/strong&gt;&lt;br&gt;
I understood Model as a Python class used to define the structure of your database.&lt;/p&gt;

&lt;p&gt;Django uses it to create tables automatically, based on your field definitions.&lt;/p&gt;

&lt;p&gt;It handles all data-related operations: Create, Read, Update, Delete (CRUD). For example in my previous project I added this kind of model.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from django.db import models

class Item(models.Model):
    name = models.CharField(max_length=100)
    description = models.TextField()
    created_at = models.DateTimeField(auto_now_add=True)

    def __str__(self):
        return self.name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  VIEW – Logic Layer
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;what is a View in Django?&lt;/strong&gt;&lt;br&gt;
A View is a Python function (or class) that handles the logic behind a page.&lt;/p&gt;

&lt;p&gt;It receives a request, fetches data (usually from the Model), and returns a response (usually a rendered Template).&lt;/p&gt;

&lt;p&gt;I created a view to fetch data from the database and send them to the template:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from django.shortcuts import render

def home(request):
    return render(request, 'app1/home.html')

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  TEMPLATE – Presentation Layer
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;So what is a Template in Django?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;A Template is an HTML file used to display content to the user.&lt;/p&gt;

&lt;p&gt;It uses Django’s built-in Template Language (DTL) to display variables, loop through data, and include logic.&lt;br&gt;
So in both apps I used the the templates as in the previous article.&lt;/p&gt;

&lt;h2&gt;
  
  
  URL – Routing Layer
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;what are URLs in Django?&lt;/strong&gt;&lt;br&gt;
The URL configuration connects user requests (like &lt;a href="http://localhost/products" rel="noopener noreferrer"&gt;http://localhost/products&lt;/a&gt;) to the correct view.&lt;/p&gt;

&lt;p&gt;URLs act like a bridge between the browser and the backend logic.&lt;br&gt;
Then I used my URLs in my previous article.&lt;/p&gt;

&lt;h2&gt;
  
  
  HOW IT ALL CONNECTS (MVT FLOW):
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt; User types &lt;a href="http://localhost:8000/products/" rel="noopener noreferrer"&gt;http://localhost:8000/products/&lt;/a&gt;  URL routes it to view&lt;/li&gt;
&lt;li&gt; View calls the Product model    View&lt;/li&gt;
&lt;li&gt; Model fetches data from the database    Model&lt;/li&gt;
&lt;li&gt; View passes data to the template    View&lt;/li&gt;
&lt;li&gt; Template displays data in HTML  Template&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Summary of Each Part
&lt;/h2&gt;

&lt;p&gt;Part    Django File Purpose&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Model&lt;/strong&gt;-  models.py   Defines structure of database tables&lt;br&gt;
&lt;strong&gt;View&lt;/strong&gt;-   views.py    Contains logic to fetch/process data&lt;br&gt;
&lt;strong&gt;Template&lt;/strong&gt;    templates/.html Displays data using HTML &amp;amp; DTL&lt;br&gt;
&lt;strong&gt;URL&lt;/strong&gt;-    urls.py Connects browser requests to views&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My Reflection on Day 5&lt;/strong&gt;&lt;br&gt;
Understanding how each MVT part plays its role helped me finally see Django as a full web framework — not just scattered files. Now I can create real, working web pages powered by Python and databases, not just static HTML.&lt;/p&gt;

</description>
      <category>python</category>
      <category>learning</category>
      <category>frontend</category>
      <category>development</category>
    </item>
    <item>
      <title>day 4: Django structure</title>
      <dc:creator>Rebecca-254</dc:creator>
      <pubDate>Mon, 30 Jun 2025 14:57:25 +0000</pubDate>
      <link>https://dev.to/rebecca254/day-4-django-structure-2hgj</link>
      <guid>https://dev.to/rebecca254/day-4-django-structure-2hgj</guid>
      <description>&lt;p&gt;Hello, today marks my 4th day in my journey of developers. Am quite excited to share what I did today while learning Django structure.&lt;/p&gt;

&lt;h2&gt;
  
  
  step 1; setting up my project.
&lt;/h2&gt;

&lt;p&gt;As part of my tech journey, I decided to build a Django project to practice web development. I named my project njeriproject. Here’s how I got started:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
django-admin startproject njeriproject
cd njeriproject
python -m venv rbenv
rbenv\Scripts\activate
pip install django
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;in this i created a virtual environment by the name brenv and installed django.&lt;br&gt;
Then I created two apps inside it:&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 2: Understanding the Django Structure
&lt;/h2&gt;

&lt;p&gt;After running the command, my project looked like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;njeri/
├── manage.py
├── mysite/
│   ├── __init__.py
│   ├── settings.py
│   ├── urls.py
│   ├── asgi.py
│   └── wsgi.py

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I explored and learned what each file does:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;manage.py&lt;/strong&gt;- This lets me run commands like runserver or makemigrations&lt;br&gt;
&lt;strong&gt;settings.py&lt;/strong&gt;- This Contains all project settings like installed apps and database config&lt;br&gt;
&lt;strong&gt;urls.py&lt;/strong&gt;- Handles all routing and linking to app URLs&lt;br&gt;
&lt;strong&gt;asgi.py and wsgi.py&lt;/strong&gt;- Help when deploying to a web server&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 3: Creating Two Django Apps
&lt;/h2&gt;

&lt;p&gt;To organize my site into separate features, I created two apps where each app came with important files like;&lt;br&gt;
views.py, models.py, admin.py, apps.py, tests.py, and a migrations/ folder&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 4: Registering the Apps
&lt;/h2&gt;

&lt;p&gt;To make Django recognize both apps, I opened mysite/settings.py and added them in INSTALLED_APPS &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F13tx7a26x0iypg2b1lqj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F13tx7a26x0iypg2b1lqj.png" alt="a screenshot showing my two apps added at the setting.py" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 5: Writing Views and Creating URLs
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;For app1&lt;/strong&gt;&lt;br&gt;
In app1/views.py i created this code&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from django.shortcuts import render

def app1_home(request):
    return render(request, 'app1_home.html')

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then created urls.py for app1 added the following in it&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from django.urls import path
from .views import app1_home

urlpatterns = [
    path('', app1_home, name='app1_home'),
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;** For app2**&lt;br&gt;
In app2/views.py:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from django.shortcuts import render

def app2_home(request):
    return render(request, 'app2_home.html')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I created app2/urls.py:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from django.urls import path
from .views import app2_home

urlpatterns = [
    path('', app2_home, name='app2_home'),
]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 6: Connecting Both Apps in mysite/urls.py
&lt;/h2&gt;

&lt;p&gt;Now it was time to connect both apps to the main URL configuration.&lt;/p&gt;

&lt;p&gt;In mysite/urls.py I wrote:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from django.contrib import admin
from django.urls import path, include

from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path('admin/', admin.site.urls),
    path('app1/', include('app1.urls')),
    path('app2/', include('app2.urls')),
]

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;At first, I forgot to import include and Django gave me an error. But once I fixed that, the server ran smoothly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 7: Adding Templates for HTML Pages
&lt;/h2&gt;

&lt;p&gt;After getting simple text responses to show up using HttpResponse, I wanted to display proper HTML pages using templates.&lt;/p&gt;

&lt;p&gt;So I created a templates folder inside each app&lt;br&gt;
In both app1 and app2, I made this folder structure:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;app1/
└── templates/
    └── app1/
        └── home.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;app2/
└── templates/
    └── app2/
        └── home.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I created basic HTML files in both apps.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foo1e0dm8y1yas4xwborx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foo1e0dm8y1yas4xwborx.png" alt="basic html" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I updated the views to render templates&lt;br&gt;
In app1/views.py:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;from django.shortcuts import render

def home(request):
    return render(request, 'app1/home.html')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;In app2/views.py:

`from django.shortcuts import render

def home(request):
    return render(request, 'app2/home.html')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 8: Testing It All
&lt;/h2&gt;

&lt;p&gt;I ran the server with the following command&lt;/p&gt;

&lt;p&gt;&lt;code&gt;python manage.py runserver&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Then I opened my browser and tested. this is what my page looked like after adding /app1 in the URL generated. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5srxsv5b9o2r2s5uzt87.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5srxsv5b9o2r2s5uzt87.png" alt="what it desplayed" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Seeing both apps work made me feel proud and confident in using Django.&lt;/p&gt;

&lt;h2&gt;
  
  
  This is what I Learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Django projects can be modular — I can add many apps like I did with app1 and app2.&lt;/li&gt;
&lt;li&gt;The outer folder (njeri) holds everything; the inner mysite/ config folder manages settings, URLs, and deployment files.&lt;/li&gt;
&lt;li&gt;Even small mistakes (like forgetting include) can break the app — but the error messages help a lot
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Finally
&lt;/h2&gt;

&lt;p&gt;Building the njeri project taught me how Django is structured and how everything connects from creating apps, to writing views, to linking URLs. Working with two apps in one project showed me Django’s power and flexibility.&lt;/p&gt;

&lt;p&gt;I’m still learning, but now I feel more confident to build real Django websites. &lt;br&gt;
 Feel free to connect and grow together at github @Rebecca-254&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>java</category>
      <category>python</category>
      <category>github</category>
    </item>
    <item>
      <title>Day 3: python data type.</title>
      <dc:creator>Rebecca-254</dc:creator>
      <pubDate>Thu, 26 Jun 2025 21:30:15 +0000</pubDate>
      <link>https://dev.to/rebecca254/day-3-python-data-type-2ppk</link>
      <guid>https://dev.to/rebecca254/day-3-python-data-type-2ppk</guid>
      <description>&lt;p&gt;Today i went through something every programmer must understand deeply "&lt;strong&gt;data types&lt;/strong&gt;". Not just in theory, but to use them practically with arrays (lists) and simple logic.&lt;/p&gt;




&lt;h2&gt;
  
  
  so what are data types in python
&lt;/h2&gt;

&lt;p&gt;In Python, I learnt that everything is an object  and every object has a type.&lt;br&gt;
 Data types are just the “kind” of information your code is working with.&lt;/p&gt;

&lt;p&gt;Whether it’s a name, a number, a yes/no response, or even a list of items Python wants to know: “What type of data is this?”&lt;/p&gt;
&lt;h2&gt;
  
  
  common data types in python
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Integer 'int'&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This are digits. They are whole numbers either negative or positive. For example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Points=[7][5][8][6][9]  #list of integers.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Float 'float'&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This are used to show numbers with decimal points. For example&lt;br&gt;
&lt;/p&gt;

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

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.&lt;strong&gt;string 'str'&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is used in any text inside a quote. Can be a number, name or even emojis. For example&lt;br&gt;
&lt;/p&gt;

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

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;4.&lt;strong&gt;Boolean 'bool'&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This used in logic values. Either true or false. Suitable for conditions. For example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;is-coding-cool=true 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;List 'list'&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This is just a collection of multiple items in a single  variable. One can mix items too. For example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my_list = [10, "apple", True, 3.5]
print(type(my_list))  # &amp;lt;class 'list'&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Tuples 'tuple'&lt;/strong&gt;
This one is the same as list but in this case can not be changed. For example
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my_birthdate = (2004, 6, 23)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Dictionary 'doct'&lt;/strong&gt;
Is just collection of key-value pairs — like mini-databases. For example
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;student = {"name": "Rebecca", "age": 21}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Set 'set'&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Is an unordered collection of unique values where duplicates are ignored. For example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;unique_numbers = {1, 2, 2, 3}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It gives 1,2,3 as the results.&lt;br&gt;
For better understanding. &lt;br&gt;
&lt;a href="https://www.geeksforgeeks.org/python/python-data-types/" rel="noopener noreferrer"&gt;https://www.geeksforgeeks.org/python/python-data-types/&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  summary
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0jsf0vhhucz6e9f7rswp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0jsf0vhhucz6e9f7rswp.jpg" alt="a summary block diagram on data tupes" width="625" height="729"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  What are arrays?
&lt;/h2&gt;

&lt;p&gt;Basically , it is like a box with many compartments, where you can store multiple values without creating separate variables.  For example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;students = ["Alice", "Brian", "Clare"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;While using python to deal with arrays I learned that one can use three formats.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Python list&lt;/li&gt;
&lt;li&gt;Array modules&lt;/li&gt;
&lt;li&gt;Numpy arrays.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  1. Using Python Lists
&lt;/h2&gt;

&lt;p&gt;Python can use lists like arrays. This is how it works step by by step &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Create a list&lt;/em&gt;&lt;/strong&gt; eg&lt;/p&gt;

&lt;p&gt;&lt;code&gt;fruits = ["apple", "banana", "orange"]&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Access items&lt;/em&gt;&lt;/strong&gt; eg&lt;/p&gt;

&lt;p&gt;&lt;code&gt;print(fruits[0])  # The first item is apple.&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
 &lt;strong&gt;&lt;em&gt;Add items&lt;/em&gt;&lt;/strong&gt; eg&lt;/p&gt;

&lt;p&gt;&lt;code&gt;fruits.append("mango")&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
 &lt;strong&gt;&lt;em&gt;Change items&lt;/em&gt;&lt;/strong&gt; eg&lt;/p&gt;

&lt;p&gt;&lt;code&gt;fruits[1] = "coffee"  # Replaces banana with coffee &lt;br&gt;
&lt;/code&gt;&lt;br&gt;
 &lt;strong&gt;&lt;em&gt;Remove items&lt;/em&gt;&lt;/strong&gt; eg&lt;/p&gt;

&lt;p&gt;&lt;code&gt;fruits.remove("apple")&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Loop through items&lt;/p&gt;

&lt;p&gt;&lt;code&gt;for fruit in fruits:&lt;br&gt;
    print(fruit)&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  2. Using the array Module
&lt;/h2&gt;

&lt;p&gt;When one is dealing with numbers only, can use the array module.this is the way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;import array&lt;/em&gt;&lt;/strong&gt; example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;marks = array.array('i', [60, 70, 80])  
marks.append(90)
print(marks[2])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Using NumPy Arrays
&lt;/h2&gt;

&lt;p&gt;When doing math, statistics, or big data, one should use NumPy arrays. Example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import numpy as np
nums = np.array([1, 2, 3, 4])
print(nums * 2) 


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  What I tried
&lt;/h2&gt;

&lt;p&gt;I opened my VS Code and wrote simple examples for each type.&lt;br&gt;
Then printed the type using type() and played with changing values. Like&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Adding integers and floats&lt;/li&gt;
&lt;li&gt;Joining strings&lt;/li&gt;
&lt;li&gt;Creating a list of my favorite colors
4.Creating a dictionary for a student profile&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It felt great seeing Python understand what I meant just by using the right type.&lt;/p&gt;




&lt;p&gt;Thanks for reading&lt;br&gt;
If you’ve just started learning Python, feel free to reach out or comment below. Let’s grow together&lt;/p&gt;

&lt;p&gt;GitHub: Rebecca-254&lt;/p&gt;

</description>
      <category>programming</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>python</category>
    </item>
    <item>
      <title>2nd day as a developer:</title>
      <dc:creator>Rebecca-254</dc:creator>
      <pubDate>Thu, 26 Jun 2025 12:37:19 +0000</pubDate>
      <link>https://dev.to/rebecca254/2nd-day-as-a-developer-2pdn</link>
      <guid>https://dev.to/rebecca254/2nd-day-as-a-developer-2pdn</guid>
      <description>&lt;p&gt;&lt;strong&gt;undestanding version control with git ang git hub&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;the second day i went a step ahead into something I had heard about a lot but never really understood: version control.&lt;/p&gt;

&lt;p&gt;At first, it sounded like a scary technical thing. But once I read more about it, I realized… it’s basically just a smart way to save and track your work.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;So what is version control&lt;/strong&gt;&lt;br&gt;
 I understood version control as a system that helps developers keep track of changes in their code over time.  It helps in;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Save every change you make&lt;/li&gt;
&lt;li&gt;Go back to older versions if something breaks&lt;/li&gt;
&lt;li&gt;Work on projects without messing up the main one&lt;/li&gt;
&lt;li&gt;Collaborate with other developers safely&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Tools Learned&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Git&lt;/strong&gt;&lt;br&gt;
Git tracks your changes locally and is installed in  computer as i did in my previous article. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Tis is the cloud platform where your Git-tracked projects can be uploaded, shared, and collaborated on with others. &lt;/p&gt;

&lt;p&gt;in other words &lt;br&gt;
Git = Your notebook&lt;br&gt;
GitHub = The cloud where you back it up and share with friends&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Basic Git terms&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Repo&lt;/em&gt;:  A Git folder/project&lt;br&gt;
&lt;em&gt;Commit&lt;/em&gt;:  A saved change with a message&lt;br&gt;
&lt;em&gt;Branch&lt;/em&gt;:  A copy of your code to test new things&lt;br&gt;
&lt;em&gt;Push&lt;/em&gt;:  Upload to GitHub&lt;br&gt;
&lt;em&gt;Pull&lt;/em&gt;:  Download from GitHub&lt;/p&gt;

&lt;p&gt;for further understanding ; &lt;a href="https://about.gitlab.com/topics/version-control/" rel="noopener noreferrer"&gt;https://about.gitlab.com/topics/version-control/&lt;/a&gt; &lt;/p&gt;




&lt;p&gt;&lt;strong&gt;This is what i tried&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;-Created a test project folder using git bash by running the following command&lt;/p&gt;

&lt;p&gt;mkdir my-besquat-project&lt;br&gt;
cd my-besquat-project&lt;/p&gt;

&lt;p&gt;then created a ripo named besquat in GitHub&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvh8r9ju205712d8p2pu2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvh8r9ju205712d8p2pu2.png" alt="this is what i saw after creating my repository " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;then ran this on git&lt;br&gt;
&lt;code&gt;git init                    &lt;br&gt;
git add .&lt;br&gt;
git commit -m "my first commit"&lt;br&gt;
git remote add origin https://github.com/Rebecca-254/my-besquat-project.git&lt;br&gt;
git branch -M main&lt;br&gt;
git push -u origin main&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;It took a few tries, but when I saw my code on GitHub, I was proud&lt;/p&gt;

&lt;p&gt;struggles&lt;br&gt;
-confused between Git and GitHub😂&lt;br&gt;
-My push failed because I hadn’t set up the remote URL correctly&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What i learned&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Git is like “Save with notes”&lt;/li&gt;
&lt;li&gt;GitHub is where your saved work lives online&lt;/li&gt;
&lt;li&gt;Version control isn’t hard — it just takes practice&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>beginners</category>
      <category>python</category>
      <category>learning</category>
      <category>git</category>
    </item>
    <item>
      <title>First Day as a Developer:</title>
      <dc:creator>Rebecca-254</dc:creator>
      <pubDate>Wed, 25 Jun 2025 09:28:41 +0000</pubDate>
      <link>https://dev.to/rebecca254/first-day-as-a-developer-bo1</link>
      <guid>https://dev.to/rebecca254/first-day-as-a-developer-bo1</guid>
      <description>&lt;p&gt;&lt;strong&gt;Setting Up Git, Python, VS Code, WSL &amp;amp; Docker from Scratch&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I’m Rebecca Gitau, a curious beginner developer taking her first steps in tech.You can reach out to me on GitHub at @Rebecca-254: &lt;a href="https://github.com/Rebecca-254" rel="noopener noreferrer"&gt;https://github.com/Rebecca-254&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Today, I installed all the tools I need to get started, and I’m sharing that journey.(What worked and what didn't).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;step 1: installed git and git bash&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Git, a version control tool that helps track changes in code, was the first tool I installed. It also came with Git Bash, which gives a better command-line experience than the default Windows CMD.&lt;/p&gt;

&lt;p&gt;After installing Git from&lt;br&gt;
➡️&lt;a href="https://git-scm.com" rel="noopener noreferrer"&gt;https://git-scm.com&lt;/a&gt;, I opened Git Bash and ran this command to confirm the installation:&lt;br&gt;
➡️git --version&lt;br&gt;
It worked✅ My first success &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 2: Connected Git to GitHub with SSH&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I then connected Git to my GitHub account securely using SSH.&lt;br&gt;
I generated a key pair and added the public key to GitHub under Settings &amp;gt; SSH and GPG Keys.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 3: Installed Python 3.10+&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;downloaded it from&lt;br&gt;
➡️ &lt;a href="https://www.python.org" rel="noopener noreferrer"&gt;https://www.python.org&lt;/a&gt;.&lt;br&gt;
After installing, I typed python --version in Git Bash — and yes, Python 3.10 showed up.&lt;/p&gt;

&lt;p&gt;At one point, Python wasn’t recognized in my terminal. I had to restart the PC and make sure Python was added to the system PATH. That fixed it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 4: Installed Visual Studio Code (VS Code)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I installed VS Code from&lt;br&gt;
➡️&lt;a href="https://code.visualstudio.com" rel="noopener noreferrer"&gt;https://code.visualstudio.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 5: Enabled WSL (Windows Subsystem for Linux)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Since I’m using Windows, I installed WSL so I can use Linux tools without needing a separate system.&lt;br&gt;
I ran the command&lt;br&gt;
➡️ wsl --install in PowerShell (Admin), then restarted my PC. Then installed Ubuntu from the Microsoft Store.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Step 6: Installed Docker&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Lastly, I installed Docker Desktop from &lt;br&gt;
➡️&lt;a href="https://www.docker.com/products/docker-desktop" rel="noopener noreferrer"&gt;https://www.docker.com/products/docker-desktop&lt;/a&gt;.&lt;br&gt;
At first, Docker wouldn’t work — until I enabled WSL 2 support in Docker settings and restarted my computer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Challenges I Faced&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Copied the wrong SSH&lt;/li&gt;
&lt;li&gt;Docker wouldn’t start until I changed the WSL 2 settings.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;What Achieved✅&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;-Git + GitHub set up using SSH&lt;/p&gt;

&lt;p&gt;-Python 3.10+ installed and running&lt;/p&gt;

&lt;p&gt;-VS Code ready with extensions&lt;/p&gt;

&lt;p&gt;-WSL and Ubuntu installed&lt;/p&gt;

&lt;p&gt;-Docker installed and tested&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Finally&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This wasn’t just about installing tools — it was about starting something meaningful.&lt;br&gt;
I’m excited for the road ahead, and if you’re just getting started too, I hope this post helps make things feel less scary.&lt;/p&gt;

&lt;p&gt;Let’s connect and grow together!&lt;/p&gt;

&lt;p&gt;— Rebecca&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/Rebecca-254" rel="noopener noreferrer"&gt;https://github.com/Rebecca-254&lt;/a&gt;&lt;/p&gt;

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