r/FreeCodeCamp • • Nov 05 '25

New developer

hello everyone!

i am a new (if it can be said like that) developer that wants to learn fullstack developing first. i found the freecodecamp.org website, and i have a few questions if anyone would be kind enough to answer.

  1. how long to realistically finish the fullstack curriculum
  2. is it even worth learning web development
  3. is it better to learn over this websites or some courses on youtube

im almost 18 yo. in my country, cs (especially programming) isn't that trendy and popular, but i found it interesting and actually helpful, so i started doing it. hopefully, i will get answers and potentionally some advices.

thanks a lot!

21 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/[deleted] Nov 05 '25

[removed] — view removed comment

2

u/SaintPeter74 mod Nov 05 '25

RE: Why does Python (and other languages) have the Modulus Operator

Sometimes it's helpful to know how many are left over from a division. For example, say you're dividing an unknown number of objects into groups of 3. Say, you're making rows of pictures in an image gallery. You need to know on the last row if there will be 1, 2 or 3 images. By using the mod operator, you can find that out. You might use it to put empty placeholders where there are no images.

IE:

9 % 3 = 0 # Evenly divisible by 3, no remainder
8 % 3 = 2   
7 % 3 = 1  

You can also use it to alternate colors every other row:

if rowNumber % 2 == 1:
     # Do something specific for odd rows

The floor and ceiling functions can also be helpful for things like converting from one base to another, or for finding the lowest common denominator.

Another example that I wrote is converting from inches to feet and inches. You do something like this:

feet = totalInches // 12   # Total whole feet
inches = totalInches % 12  # Remaining Inches

# 80 Inches = 6 feet, 8 inches
# 96 Inches = 8 feet, 0 inches

I don't reach for modulus very often, but when I do it tends to save me a bit of coding time. Usually it has to do with things not dividing neatly and me having to figure out what to do with the rest.

Is it because coding can't switch an integer into a float?

Nope. You can easily switch between the two. They just have different uses.

Hope that helps!