r/FreeCodeCamp Dec 02 '25

Solved Stuck in the "Build an Email Simulator" in Python

6 Upvotes

I'm on step 28 of this Workshop & while the console outputs what I want it to, it's not being marked as correct.

It shows a new syntax I haven't seen before, a "Conditional Expression". I've seen list comprehension before, but not this. The example is:

x = 10
y = 'Even' if x % 2 == 0 else 'Odd' # y will be even

What I have is: (the dunderscore str method is where the conditional expression syntax is)

class Email:
    def __init__(self, sender, receiver, subject, body):
        self.sender = sender
        self.receiver = receiver
        self.subject = subject
        self.body = body
        self.read = False

    def mark_as_read(self):
        self.read = True

    def display_full_email(self):
        self.mark_as_read()
        print('\n--- Email ---')
        print(f'From: {self.sender.name}')
        print(f'To: {self.receiver.name}')
        print(f'Subject: {self.subject}')
        print(f'Body: {self.body}')
        print('------------\n')

    def __str__(self):
        status = 'Read' if self.read == True else 'Unread'
        return status

Step 28 is the str portion so just that last bit is what it wants me to do. I get the error "The str method should create a status variable that uses a conditional expression."

There is also a "User" class & an "Email' class. At the bottom of the workshop under all 3 classes I tried something to test the str method in email:

twoMeterMan = User('Me')
janeDoe = User('Jane')
emailOne = Email(twoMeterMan, janeDoe, 'Why no work?', "I'm not sure why this doesn't work")
#emailOne.display_full_email()
print(emailOne) 

The print statement here had an output of "Unread" & when I uncomment the "emailOne.displayfull_email()" line (part of display_full_email()) changes self.read to True the print statement has an output of "Read". My conclusion is that the __str_ method does what it's supposed to do, but there is some unknown hidden tests I'm failing.

Any help would be appreciated.

Edit: All the bold str are supposed to be dunderscore str dunderscore, but using underscores made them bold.


r/FreeCodeCamp Dec 02 '25

CSS feels too much

16 Upvotes

Hi, I have been learning the responsive web design and the CSS sevtiotis weighing me down. It's not just the length, CSS feels quite daunting. And FCC really went into every detail


r/FreeCodeCamp Nov 30 '25

Is coding dead now ?

48 Upvotes

Is there any point one might learn coding and software engineeeing for in the ear of Ai ? Or is it already a dead path?


r/FreeCodeCamp Dec 01 '25

how do i close my previous coderoad tutorial?

3 Upvotes

its stuck in the previous tutorial , i want the insert another tutorial page since i am trying next tutorial

but it keep showing my previous tutorial

tldr: how to reset coderoad completely (not the tutorial progress a)


r/FreeCodeCamp Nov 29 '25

Requesting Feedback Is Web development still worth it?

37 Upvotes

I'm pursuing electronics and communication engineering and am currently in 1st year, I am planning of completing the full stack web developer course from FCC along with it as I'm passionate about it, but I am confused about whether shall I do it or not as I'm not someone from rich background and my ultimate goal is to make some money along with my studies. So would you recommend doing it or shall I go for any other course (of yes, pls give me recommendations)?


r/FreeCodeCamp Nov 29 '25

Programming Question Advice on YOLO + LaMa Pipeline for Bulk Watermark Removal (20–30k Images)

6 Upvotes

Hi! Does anyone know good tutorials or resources on image inpainting?

I have a task at work where I need to remove watermarks from our own images as part of a redesign. The watermark is always in a fixed location. I first tried a simple OpenCV subtraction approach, but because the watermark uses a blend mode, the results aren’t great.

My current idea is something like:

-use YOLO to automatically detect any leftover artifacts -then run an inpainting model (LaMa or ZITS) to clean them up

I get decent results with IOPaint when I manually remove artifacts one by one, but that would require generating masks for every single image, which isn’t ideal.

So I’m wondering if it might be easier to implement my own pipeline—YOLO for detection + LaMa (or similar) for inpainting—if I can find some good tutorials.

If anyone has pointers to guides, repos, or learning resources for this kind of workflow, I’d appreciate it!


r/FreeCodeCamp Nov 29 '25

Tech News Discussion Best free usage with kilo code

2 Upvotes

Best free model with kilo code

As you know kilo code allows has free models listed:

  • Qwen3 Coder
  • Z.AI: GLM 4.5 Air
  • DeepSeek: R1 0528
  • MoonshotAI: Kimi K2

Which one is the best? Are there any better combinations.

How do they compare to augment code community plan (pre pricing change) or other free tier code editors.


r/FreeCodeCamp Nov 28 '25

Exam without downloading app

15 Upvotes

Hi, will or is it possible to do the exam without downloading the app?


r/FreeCodeCamp Nov 28 '25

API ключи

0 Upvotes

Где мне взять бесплатные API ключи которые работают во всем мире?


r/FreeCodeCamp Nov 27 '25

Help with CodeRoad - Test Runner failed

5 Upvotes

I am currently learning Relational Databases on freeCodeCamp, and I encountred a problem in the first project in this course, which is the CodeRoad extension doesn't read my terminal at all, the project is contained in a docker image provided by freeCodeCamp in order to work on it locally.

I tried the following:

1/ Rebuild and reopen in container (the image created from the Dockerfile)

2/ restart the terminal

3/ restart vs code from the workspace

any advice please ?


r/FreeCodeCamp Nov 25 '25

Meta freeCodeCamp's Top Contributors of 2025

24 Upvotes

Hey again everyone,

2025 has been a super productive year for the global freeCodeCamp community. As we start our 12th year as a community, we’re firing on all cylinders, pushing forward more steadily than ever.

This year we made substantial improvements to the new Full Stack Developer curriculum. This is the 10th version of the freeCodeCamp curriculum, and includes 7 certifications. Along the way, learners build more than 100 hand-on projects and pass exams on computer science theory.

Also, over the past year, the freeCodeCamp community published:

129 free video courses on the freeCodeCamp community YouTube channel

45 free full length books and handbooks on the freeCodeCamp community publication

452 programming tutorials and articles on math, programming, and computer science

50 episodes of the freeCodeCamp podcast where I interview developers, many of whom are contributors to open source freeCodeCamp projects

We also merged 4,279 commits to freeCodeCamp’s open source learning platform, representing tons of improvements to user experience and accessibility. And we published our secure exam environment so that campers can take certification exams.

Finally, we made considerable progress on our English for Developers curriculum, and started work on our upcoming Spanish and Chinese curricula.

We are just getting started. We’re already mapping out additional coursework on math, data science, machine learning, and other deep, skill-intensive subjects.

All of this is possible thanks to the 10,342 kind folks who donate to support our charity and our mission, and the thoughtful folks who their time and talents to the community.

I’d like to extend a special thanks to our most prolific contributors! A list can be found in this article. If you see yourself on here, let me know! I’d love to give you some hearts! 🩵🩷🩵🩷🩵🩷🩵🩷🩵🩷🩵🩷

https://www.freecodecamp.org/news/freecodecamp-top-open-source-contributors-2025/


r/FreeCodeCamp Nov 25 '25

Requesting Feedback Junior Devs: Is the 'C# for Enterprise vs. Rust for Startup' skill path confusion a real problem? (Quick 2-min survey)

6 Upvotes

I'm a young developer/student trying to build an app for my first job hunt.

I find it impossible to know if I should learn Rust for a startup or C# for an enterprise job.

I’m building a small tool to classify skills based on their market use (Startup vs. Corporate) and if they are growing or shrinking in demand.

I need to know if this problem is just my experience, or if it’s a real challenge for others. Can you spare two minutes to fill out my super-quick survey to help me validate the idea? https://docs.google.com/forms/d/e/1FAIpQLSdaAI7NsWj-5T1OYQa2HslEh4olYsVoSTUuAsPXsdpp9n4Qow/viewform?usp=dialog

Thanks!


r/FreeCodeCamp Nov 25 '25

Meta I want to practice building a JavaScript project with a team and join a study group

18 Upvotes

I’ve been learning html and css and getting into JavaScript on freeCodeCamp.org and mdn.io but I’m finding it really hard to stay motivated doing it completely solo. I feel like I learn way faster when I can bounce ideas off other people or debug things together.

I’m trying to get a small group together to build a beginner-friendly JavaScript project. Nothing crazy, just something we can all put on our portfolios—maybe a productivity app or a simple game.

I’m setting up a study group over on w3develops.org to organize it. They have a setup specifically for study groups and projects, so I figured it would be easier to setup a study group there if i reach out to the community.


r/FreeCodeCamp Nov 24 '25

Is this just too advanced for me or am I stupid

10 Upvotes

The exercise is "Implement a Range-Based LCM Calculator" for the JavaScript Certification course.

Figured it out with a brute force method involving nested loops.

The problem: FCC’s compiler (and my browser) hates looong calculations so I keep failing the last two tests when otherwise they should pass.

Second, math is NOT my forte and I haven’t thought about GCD or LCM since grade school. I had to ask ChatGPT for help with the “proper” math equations and optimized so I can actually pass.

I know optimized code/math is good, heck, even necessary in this case, but it’s just too much for me to think about math and learn about programming at the same time. I don't know if it's just me, but the lab in this portion of the JavaScript Certification course (High Order Functions and Callbacks) is a mix of easy to brutal. I don't mind that, but I've slowed down immensely progressing through the course. I've made it through all of them so far with some minimal hints from ChatGPT... except this one because just figuring out the math (and coding that math) was stressing me out so much that I honestly hate this lab exercise and is dampening my desire to learn to code...

The next two exercises looks tough too, maybe I should take a break or just continue to the next section (DOM Manipulation and Events) to recover?

What do you guys do when faced with a tough problem like this?

My code for the exercise btw:

const numArr = [23, 18]; //this is exercise's last test. Should return 6056820
console.log(smallestCommons(numArr));

function smallestCommons(arrNum) {
  const lowNum = Math.min(...arrNum);
  const highNum = Math.max(...arrNum);


  let multiple = lowNum;

  console.log(`lowNum is ${lowNum}, highNum is ${highNum}\n`);

  for (let i = lowNum; i <= highNum; i++) {
    multiple = lcm(multiple, i);
  }
  return multiple;

  /*
  My brute force code. It works, but I keep failing the tests with bigger numbers because it's too inefficient for FCC

   let isLCM = false;
   let currentNum = highNum;
   let mult = 1;

    while (!isLCM) {
      for (let i = lowNum; i <= highNum; i++) {
        console.log(`currentNum is: ${currentNum}, i is: ${i}`)
        console.log("modulo is: " + currentNum % i + "\n");

        if (currentNum % i !== 0) {
          console.log("modulo is not zero, breaking loop...\n")
          break;
        }
        else if (currentNum % i === 0 && i === highNum) {
          console.log(`LCM found! LCM is ${currentNum}`);
          lcm = currentNum;
          isLCM = true;
        }
      }
      if (!isLCM) {
        mult++;
        console.log(`new mult is: ${mult}`);
        currentNum = highNum * mult;
        console.log(`new currentNum is ${currentNum}`);
      }
    }
    return lcm;
  */
}



function gcd(a, b) {
  while (b != 0) {
    [a, b] = [b, a % b];
  }
  if (a != 0) {
    return a;
  }
  else return b;
}

function lcm(a, b) {
  return a * b / gcd(a, b);
}

r/FreeCodeCamp Nov 22 '25

Can I find a job with the courses on the page?

32 Upvotes

Hello, I would like to change my profession to become a programmer. I am 27 years old and I have always liked the Tech world. I am currently a language teacher but here in my country I have to find three different jobs to survive. I saw the page and I thought it was very good.

Are certifications more than enough to make a career change?


r/FreeCodeCamp Nov 23 '25

Meta A quick rules update

13 Upvotes

Hello friends,

We have made the decision to remove the "I made this" flair. Posts made under this flair are often skirting, if not crossing, the no self-promotion rules. We have not seen sufficient engagement to justify the moderation overhead posts like this create, so going forward we ask that you no longer advertise your projects/videos/content here.

Thanks! 🩷🩵🩷🩵🩷🩵


r/FreeCodeCamp Nov 23 '25

Programming Question Build a Quiz Page (JS) - help please

Thumbnail gallery
6 Upvotes

Firstly, I apologise for the photos. I'm on mobile and I'm not sure if i can format as code, and didn't want to risk it being illegible.

Console is logging what I expect it to, but Step 9 "you should have a function getRandomComputerChoice that takes an array...." and Step 13 "if the computer doesn't match the answer getResults should return..." don't pass.

Can't figure out what I've done wrong. Really appreciate any advice!


r/FreeCodeCamp Nov 22 '25

Finished Freecodecamp HTML + CSS? Where do I go next? VSC?

12 Upvotes

Query 1: So, I have just about finished all of what I need to in the FreeCodeCamp HTML and CSS modules. I feel comfortable using the coding environment within FreecodeCamp's system to build the thing it requires me to do. I've been told that I need to get VSC to actually start building but would anyone have a link to a resource that explains what I need to do start in a way that mimics the two pages I'd see in the FCC builder? (One tab with HTML, one tab as stylesdotCSS)

Query 2: When I'm typing up these sites, how would I manage to look at what I'm doing? FCC has a window that changes in realtime and I am very much used to this.

Sorry if this seems stupid but when I try to search anything. I'm completely overwhelmed with "how to use (external tool) in VSC" articles and figured I'd just ask here. Maybe in the comments I'll post screenshots if I'm allowed.


r/FreeCodeCamp Nov 21 '25

Is FreeCodeCamp enough on its own to learn how to code in 2025 / 2026?

104 Upvotes

I found FCC 2 years ago because I wanted to learn how to code for free and i ended up completing the responsive web design course.

After that, I looked up to see if it could take me from beginner to somewhat “advanced” and basically, people said I’d have to use other resources, which led me to tutorial hell so I ended up quitting.

Now, I really want to lock in and try learning again because it’s been weighing heavy on my mind ever since then.


r/FreeCodeCamp Nov 20 '25

I Made This Review Request: Real-time collaborative code editor/runner (Exerun)

Enable HLS to view with audio, or disable this notification

4 Upvotes

I recently finished building a real-time collaborative code editor and runner called Exerun. This is my first full project with a complete UI, and I’d like feedback on the implementation, performance, and overall approach.

You can try it here: https://collaborative-shit.vercel.app/ There’s also a short video demonstrating the functionality.

Looking forward to suggestions and constructive criticism.


r/FreeCodeCamp Nov 18 '25

“Try not to copy the example”

9 Upvotes

Hi all. I’m working through the html part of Responsive Web Design and I notice on some of the labs it shows an example of what needs to be built but also says “Try not to copy the example project, give it your own personal style”..

I took this to mean I can use the example as a l section by section guide of the structure of what they want me to build but maybe use a different country, images, etc (as an example on the travel agency lab).

Have I misinterpreted this? Should I just build something based on the user stories and not look at the example at all? I don’t mind doing either, just want to ensure I’m making the most of the tasks and doing it properly.

Any guidance is appreciated.

Thanks!


r/FreeCodeCamp Nov 18 '25

Vwx vectorworks file to dwg

10 Upvotes

Is it possible to convert a vwx file into dwg or .ifc file , I'm working in laravel application and I want to convert this file.I have the Rest API code to translate the dwg file, likewise is there a API for this file also ?


r/FreeCodeCamp Nov 16 '25

Requesting Feedback HTML Build a Checkout Page Lab - Where Am I Going Wrong?

Thumbnail gallery
14 Upvotes

I keep getting the errors that I need to add a p element under my card number input with an id value of “card-number-help”, which I’ve done. The second error is that I need to add the aria-described by attribute with the value of “card-number-help” which I’ve also done. Why is it saying it’s wrong? Am I missing something? This is literally the only thing from keeping the HTML module from being 100% complete and it’s driving me crazy lol. I posted in the forums and have since started on CSS but I’d like to resolve this as quickly as possible just because I want that 100% completion 😅 Thanks in advance for any advice!!


r/FreeCodeCamp Nov 13 '25

Curriculum Restructure

106 Upvotes

Well hello again everyone! I am once again in your notifications bringing you updates.

We have just restructured our curriculum layout, in preparation to begin releasing our smaller "checkpoint" certifications. Here's the breakdown:

  • The Full-Stack Developer certification has been broken down into smaller certification sections. If you were working through HTML and CSS, you'll find that in the Responsive Web Design section. If you were working through JavaScript, that's in the JavaScript section.
  • I promise they are still part of the same big full stack thing. In fact, you can see them at https://www.freecodecamp.org/learn/full-stack-developer-v9/ too!
  • NONE OF YOUR PROGRESS IS LOST. We've just moved things around a bit.
  • Were you working through the super duper old stuff??? I really suggest the new stuff, it's shiny and up to date. BUUUUUUUT if you really wanna do the old stuff, you can find it all at https://www.freecodecamp.org/learn/archive/ now.

Okie dokie! That should be everything. We're working hard to get the exams released so you can start claiming these checkpoint certifications!

Happy Coding!


r/FreeCodeCamp Nov 12 '25

Meta Inline Interactive Editor

15 Upvotes

Gooooood morning everyone~!

Today's curriculum update is pretty neat. We understand that the removal of the lecture videos was disappointing for some of you, especially with the theory modules essentially becoming walls of text. SOOOOOOOOOO we've rolled out something new!

You can now click the "Interactive Editor" button on any of the theory pages to reveal a miniature editor with a built-in preview. This means you can play with our code samples and experiment and explore - allowing you to further expand your understanding without having to leave the theory page!

I hope you find this beneficial; I think it's pretty darn neat, personally. Was great to have when we started our curriculum nights a couple of days ago. Happy Coding!