<?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: Ikanke-abasi Akpaso</title>
    <description>The latest articles on DEV Community by Ikanke-abasi Akpaso (@ikankeabasi_akpaso).</description>
    <link>https://dev.to/ikankeabasi_akpaso</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%2F2294707%2F67c73cba-4050-4ca1-9608-9d153ca1fae9.jpeg</url>
      <title>DEV Community: Ikanke-abasi Akpaso</title>
      <link>https://dev.to/ikankeabasi_akpaso</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ikankeabasi_akpaso"/>
    <language>en</language>
    <item>
      <title>JAVA SCRIPT BASICS</title>
      <dc:creator>Ikanke-abasi Akpaso</dc:creator>
      <pubDate>Tue, 20 Jan 2026 19:11:01 +0000</pubDate>
      <link>https://dev.to/ikankeabasi_akpaso/java-script-basics-lka</link>
      <guid>https://dev.to/ikankeabasi_akpaso/java-script-basics-lka</guid>
      <description>&lt;p&gt;Hey everyone!&lt;/p&gt;

&lt;p&gt;Today i'll just be posting a few things about java script that i learnt last week.&lt;/p&gt;

&lt;p&gt;Starting off with the variable name syntax;&lt;br&gt;
Naming a variable on java script is quite different from python.&lt;br&gt;
Java script involves the use of the key words: &lt;strong&gt;let, **&lt;br&gt;
** or var&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;These keywords however have slight differences apart from their names of course! &lt;br&gt;
The &lt;strong&gt;let&lt;/strong&gt; keyword allows you to change values while the &lt;strong&gt;const&lt;/strong&gt; does not. **var **is similar to let but is an older method and is not in use anymore.&lt;/p&gt;

&lt;p&gt;Syntax is;&lt;br&gt;
let name of variable = value;&lt;br&gt;
const name of variable = value;&lt;br&gt;
var name of variable = value;&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;code&gt;let nameOfCat = "Fred";&lt;br&gt;
&lt;/code&gt;nameOfCat&lt;br&gt;
&lt;code&gt;'Fred'&lt;br&gt;
The value of the variable can be changed:&lt;br&gt;
&lt;/code&gt;nameOfCat = "Sam";&lt;br&gt;
&lt;code&gt;nameOfCat&lt;br&gt;
&lt;/code&gt;'Sam'&lt;/p&gt;

&lt;p&gt;For const however, the value of the variable cannot be changed!&lt;br&gt;
&lt;code&gt;const nameOfCat = "Fred";&lt;br&gt;
&lt;/code&gt;nameOfCat&lt;br&gt;
&lt;code&gt;Fred&lt;br&gt;
&lt;/code&gt;nameOfCat = "Sam"; XXXX (This will show a type error because the constant variable cannot be reassigned)&lt;/p&gt;

&lt;p&gt;Note: When naming variables on java script, camel case is most preferred e.g nameOfCar rather than snake case (name_of_car) which is preferred in python.&lt;/p&gt;

&lt;p&gt;That's all for today, see you in my next blog post!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
    <item>
      <title>HOW TO BUILD A BMI (BODY MASS INDEX) CALCULATOR USING PYTHON</title>
      <dc:creator>Ikanke-abasi Akpaso</dc:creator>
      <pubDate>Sat, 01 Nov 2025 13:25:04 +0000</pubDate>
      <link>https://dev.to/ikankeabasi_akpaso/how-to-build-a-bmi-body-mass-index-calculator-using-python-5a1k</link>
      <guid>https://dev.to/ikankeabasi_akpaso/how-to-build-a-bmi-body-mass-index-calculator-using-python-5a1k</guid>
      <description>&lt;p&gt;The Body Mass Index (BMI) is a medical screening tool that uses your weight and height to estimate your body fat percentage and assess your health risk.&lt;br&gt;
As a beginner in Python, just like me, a body mass index calculator is one of the simplest and useful projects you can create&lt;br&gt;
Building a BMI calculator involves the following steps:&lt;/p&gt;

&lt;h2&gt;
  
  
  1.Set Up your code editor:
&lt;/h2&gt;

&lt;p&gt;(I use Visual Studio Code) and open a new file (CTRL + N), save it using the name bmi_calculator.py (This is optional, you can call it whatever name you want, but this is preferable for easy referral)&lt;/p&gt;

&lt;h2&gt;
  
  
  2.Write a Comment:
&lt;/h2&gt;

&lt;p&gt;You’ll want to add a comment on your code editor, which includes the mathematical formula for calculating BMI, as well as the different BMI categories.&lt;/p&gt;

&lt;h2&gt;
  
  
  3.Get User Input:
&lt;/h2&gt;

&lt;p&gt;Create a weight variable and a height variable. Both variables will store the input function, input(), which allows for a user’s response. Inside the input function, you can use questions such as Insert your height or What is your weight? whatever your choice is&lt;/p&gt;

&lt;p&gt;Height = float(input("What is your height?: "))&lt;br&gt;
Weight = float(input("What is your weight in kg?: "))&lt;/p&gt;

&lt;p&gt;The BMI calculation uses kg for weight and meters for height, so it’s better to specify those units in your input. E.g.: Instead of just asking “what’s your weight?”, ask “what’s your weight in kg?”&lt;br&gt;
We use float() here to convert the user’s input to a float so python does not read the numbers as a string.&lt;/p&gt;

&lt;h2&gt;
  
  
  4.Calculate BMI:
&lt;/h2&gt;

&lt;p&gt;Next, we create another variable for the BMI calculation. I called mine BMI. In this variable, you store the mathematical formula for calculating the BMI.&lt;br&gt;
So we have: BMI = Weight/ (Height *2)&lt;br&gt;
The / operator is the division symbol while the * operator is for multiplication.&lt;br&gt;
Just like in a normal calculator, Division goes before multiplication, but the brackets are solved first before any other operations. In BMI calculation, the height is multiplied first by 2 and then divided by the weight which is the reason for including the bracket.&lt;/p&gt;

&lt;h2&gt;
  
  
  5.Show the Result:
&lt;/h2&gt;

&lt;p&gt;After the calculation, you’ll want to create a response back to the individual to tell the value of their BMI and what category it falls under.&lt;br&gt;
We can do this using a flow control statement, in this case the if statement. An if statement’s clause will execute if the statement’s condition is True. The clause is skipped if the condition is false. The if statement is followed by an elif (else if statement that provides another condition that is checked if the previous conditions are false), and finally an else statement (runs when both if and elif are false)&lt;/p&gt;

&lt;p&gt;• Using the if statement, we have:&lt;br&gt;
• if BMI &amp;lt; 18.5:&lt;br&gt;
•     print("Underweight")&lt;br&gt;
• elif BMI &amp;gt;= 18.5 and BMI &amp;lt; 25:&lt;br&gt;
•     print("Normal")&lt;br&gt;
• elif BMI &amp;gt;= 25 and BMI &amp;lt; 30:&lt;br&gt;
•     print("Overweight")&lt;br&gt;
• else:&lt;br&gt;
•     print("Obese")&lt;br&gt;
• &lt;br&gt;
• &lt;br&gt;
You can check out the complete code here:&lt;br&gt;
&lt;a href="https://gist.github.com/IkankeAkpaso/7d2b3e3ab30a03febc8950c7baaf9d78" rel="noopener noreferrer"&gt;https://gist.github.com/IkankeAkpaso/7d2b3e3ab30a03febc8950c7baaf9d78&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Although on Gist Hub I used something called the “f” string, which I have not discussed here yet, doing it like in the example above is still fine.&lt;br&gt;
That’s it! you’ve built your own BMI calculator! Thanks for reading!&lt;/p&gt;

</description>
      <category>python</category>
      <category>programming</category>
      <category>beginners</category>
      <category>coding</category>
    </item>
    <item>
      <title>Python Variables</title>
      <dc:creator>Ikanke-abasi Akpaso</dc:creator>
      <pubDate>Tue, 28 Jan 2025 11:15:56 +0000</pubDate>
      <link>https://dev.to/ikankeabasi_akpaso/python-variables-jie</link>
      <guid>https://dev.to/ikankeabasi_akpaso/python-variables-jie</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;Hi everyone, I’m Ikanke.
I'm on my coding journey, and it’s been interesting so far.
I’m going to be sharing some stuff I’ve learned.
So I’ll be starting with Python variables.

Mastering Python Variables
In Python, variables are like magical containers that hold values. Think of them as little storage boxes with names on them, and you can store anything you want inside—numbers, strings, lists... the sky’s the limit! 

Here’s the fun part: you get to name these containers however you want (well, almost). Let’s dive in and explore how we use these super-powered containers in Python.

What’s a Variable, Anyway? 🤔  
In simple terms, a variable is just a name that holds a value. It’s like a label on a box where you store your favorite things. But the trick is, you can store any kind of value you like! 

Example:
n = 120
My_lucky_number = 7
print(n + My_lucky_number)  # Output: 127&lt;span class="sb"&gt;


&lt;/span&gt;&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="sb"&gt;`n`&lt;/span&gt; holds the value &lt;span class="sb"&gt;`120`&lt;/span&gt;.
&lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="sb"&gt;`My_lucky_number`&lt;/span&gt; holds the value &lt;span class="sb"&gt;`7`&lt;/span&gt;.
&lt;span class="p"&gt;-&lt;/span&gt; When you add them up, Python tells you &lt;span class="sb"&gt;`127`&lt;/span&gt;! 

In Python, you don’t need to stick with the same value forever! You can reassign a variable at any time. 

Example:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
python&lt;br&gt;
Fav_num = 23&lt;br&gt;
Fav_num = 24&lt;br&gt;
Total_num = Fav_num * 2&lt;br&gt;
print(Total_num)  # Output: 48&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
- Initially, `Fav_num` is `23`, but we decide to change it to `24`.
- Then we multiply it by 2 to get `Total_num`, which is `48`. Easy, right?

---

Variable Naming Rules: Don't Break Them! 
Now, here comes the important part: While you can name your variables almost anything, Python has a few rules to keep things sane.

1.Start with a Letter or Underscore   
You can’t start a variable name with a number. Python is very picky about that.  
Do not try this:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
python&lt;br&gt;
5numbers = 10   ❌ Nope! Can't start with a number.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
But you can start with an underscore or a letter:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
python&lt;br&gt;
_numbers = 10   ✅ This is fine!&lt;br&gt;
Totalnum = 20 ✅ This is also fine!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
2.Use Letters, Numbers, or Underscores   
After the first character, you can mix it up with letters, numbers, or underscores. But no spaces or funky symbols! Keep it clean.

Here’s what works:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
python&lt;br&gt;
numbers_5 = 15      ✅ Totally cool.&lt;br&gt;
totalSum123 = 30    ✅ Also good.&lt;/p&gt;



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


3.Case Sensitivity is Real 
Python is case-sensitive, meaning `myvariable`, and `MYVARIABLE` are both different! 

---

These are a few important things to note when naming variables in Python.
I hope this helped!


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

&lt;/div&gt;

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