Skip to main content

Posts

What are Strings? A Beginner's Guide Into Programming Strings in Python

  What is the meaning of a string in coding? Introduction Hello there, coders! This was definitely one of the weirdest concepts I had to understand when I was learning to code.  It is so simple, but I spent an entire evening understand strings! It was ver y embarrassing , but at least I know now!  To hopefully regain my pride, I'm going to explain what strings are in programming as a beginner. What even are strings? Strings are data that you can print out. It's basically text. You might be confused if 9 is a string or an integer (number), but you can just change it! You can type in your code editor to turn a certain variable or a number into a string, in our case 9, by using the str() function. You can put anything in there and it will turn into something you can print out! You can't perform math on the string '9' though. My Experience Aside from the usual data types, I was a bit stumped when I reached the string functions. There were just so many string functions,

Conquering Loops Together: A Beginner's Guide to Loops

Ditch copying and pasting code, there's a better way! Hello there, coders! Today, we're diving into iterations (or loops), which are amazing and powerful tools to tackle repetitive tasks! Understanding Loops Iterations (also known as loops) are these functions that you use in programming to solve problems that take lots of repetition, or loops!  Imagine writing 300 lines of code! That's horrible, but thankfully that isn't a thing due to loops being so efficient at doing repetitive things  There are two types of loops that I know right now in Python, being the for loops and the while loops. Y ou know, loops are like those circular mazes where you have to keep going in circles until you reach the end. While and for Loops While loops are loops that keep executing the code over and over again until a certain condition is met.  It's like a dog keeping a house safe, just like how the code after the loops can only be executed after the requirement is passed. It's also

The Beginning

  Coding was always something I was interested in. Introduction I used to be super interested in coding as a kid, because who wouldn't want to make games, create web pages? I obviously signed up for coding tuition when I was around 10, and just could not keep up at all. The teacher was fine, but I guess I just got bored trying to understand and remember the "functions". Recently, I decided to change this, by trying to learn coding again. I still have some basic knowledge for coding, for example loops, conditionals, data types, but other than that, I just forgot everything. After this, I found this incredible website called freecodecamp.org . If you're learning to code, which I think you are doing since you're reading this, you'll probably find this website to be incredibly useful. Other than that, I realized that, "I could probably help some future coding beginners if they saw a blog from a person learning to code." and I set up this blog. I really h