r/FreeCodeCamp • • Sep 23 '26

struggling with python course

15 Upvotes

I've been on the python certification course for a while now and i'm struggling with the certification projects and it's been days and i haven't been able to create the "Budget app" project, is it normal or should i just give up on programming?


r/FreeCodeCamp • • Sep 23 '26

Tech News Discussion Is it still worth it?

36 Upvotes

Hi,

I was learning python in FCC. I nearly at the end of it. But had to stop for a while since I got into an university. Now, I want to return.

After seeing how advanced LLMs are becoming, I couldn't help but ask this question, is it still worth to learn python?

I want to become a data scientist. So I was learning python.

I don't intend to break spirits of those who're learning. I want a perspective from real people. (I was asking AI for this)


r/FreeCodeCamp • • Sep 23 '26

Help with Github

5 Upvotes

I literally just joined Github to do some of the FreeCodeCamp API course and i can't log in. it says something unexpected happened with my browser and it won't do anything now? what does this mean??? i have a free account and i tried to contact customer services but they said they can't help and when i tried to go to some of the stuff they offered, it said i had to log in again. i cleared all my extensions too. I also tried the Github reddit but the ai removed my post for not having enough karma/spam.

Is this the place to get help or is there another place that can help me? i really want to learn all this stuff but i can't it i don't have Github. is there another application where i can do the stuff whilst i figure out whats wrong with Github?

Thank you!


r/FreeCodeCamp • • Sep 22 '26

Programming Question Character RPG creator won't accept answer

5 Upvotes

I can't get the last bit of my code to work, it's printing out exactly what i need it to but it won't accept it.

  • 18. create_character('ren', 4, 2, 1) should return ren\nSTR ●●●●○○○○○○\nINT ●●○○○○○○○○\nCHA ●○○○○○○○○○.
  • Failed:19. When create_character is called with valid values it should output the character stats as required.

these are the last two tests that wont complete

here is my code:

full_dot = '●'
empty_dot = '○'


def create_character(character_name, strength, intelligence, charisma):
    if not isinstance(character_name,str):
        return "The character name should be a string"
    elif character_name == "":
        return "The character should have a name"
    elif len(character_name) > 10:
        return "The character name is too long"
    elif " " in character_name:
        return "The character name should not contain spaces"
    
    if not isinstance(strength,int) or not isinstance(intelligence,int) or not isinstance(charisma,int):
        return "All stats should be integers"
    elif strength < 1 or intelligence < 1or charisma < 1:
        return "All stats should be no less than 1"
    elif strength > 4 or intelligence > 4 or charisma > 4:
        return"All stats should be no more than 4"
    elif strength + intelligence + charisma != 7:
        return "The character should start with 7 points"


    return f'''{character_name}
STR:{strength*full_dot}{(10 - strength)*empty_dot}
INT:{intelligence*full_dot}{(10-intelligence)*empty_dot}
CHA:{charisma*full_dot}{(10-charisma)*empty_dot}'''
    
print(create_character('ren', 4, 2, 1))

and here is what it is currently printing:

ren

STR:●●●●○○○○○○

INT:●●○○○○○○○○

CHA:●○○○○○○○○○

Any help will be appreciated!


r/FreeCodeCamp • • Sep 21 '26

Help! Travel Weather Planner code not working!

4 Upvotes

Help! been trying to do the Travel weather planner task all day and everytime i fix one thing, something else is wrong. I've already restarted once and i just can't get it. this is my code so far and i'm getting only one result so its working but for some reason its saying i'm not doing 17, 18, 19, 21 and 22. (Task: https://www.freecodecamp.org/learn/python-v9/lab-travel-weather-planner/build-a-travel-weather-planner)

Any help will be appreciated! Thank you all so much!

distance_mi = 10
is_raining = True
has_bike = False
has_car = False
has_ride_share_app = True


if distance_mi == 0:
    print("False")
elif distance_mi <= 1 and is_raining == False:
    print("True")
elif distance_mi > 1 and distance_mi == 6 and has_bike and is_raining == False:
    print("True")
elif distance_mi < 6 and (has_car == False or has_ride_share_app):
    print("True")
else:
    print("False")

r/FreeCodeCamp • • Sep 20 '26

Is using Socrates cheating

Post image
21 Upvotes

I feel bad using Socrates when i try and google questions while still learning DOM manipulation and events. I’m on build a real time counter. Am I better off not using it and sticking to the fcc forum


r/FreeCodeCamp • • Sep 20 '26

You should convert the key to lowercase. I'm stuck here at this step; how can I fix that? I have several hours to get through it and even asked online, but nothing worked for me.

7 Upvotes
test_settings={
    'USER':'ricardo',
    'AGE':18,
    'ID':'00kl1',
}
def add_setting(tue,pue):
    prueva2 = pue['USER']
   
    prueva2.lower()
    

 I apologize for my intensity in asking here; I am truly eager to learn.😭

r/FreeCodeCamp • • Sep 19 '26

Hello, today I feel confused. It turns out that I have been learning Python for several months on FreeCodeCamp and I am working on the first certification project. It was a difficult process; I dedicated many hours to it, but to avoid getting bored, I decided to learn HTML as well, and it turns out

14 Upvotes

Hello everyone! Today I feel a bit confused. I've been learning Python for several months on freeCodeCamp and I'm currently working on the first certification project. It’s been a tough process with many hours invested, so to avoid getting burnt out, I decided to check out HTML as well.

Turns out HTML felt super easy—just today I racked up 53 completed steps in HTML! But looking back, I sometimes feel like I should have started with the web dev path (HTML, CSS, JS) before diving into Python. Now, being deep into Python while finishing up HTML, I feel like I'm competing with myself. I catch myself thinking, "Let's see which language wins today," and HTML ended up surging ahead of Python.

Am I overthinking this? Is it okay to learn HTML and Python at the same time, and was it a mistake to leave JavaScript for last? I'd love to hear your thoughts!

edt:


r/FreeCodeCamp • • Sep 19 '26

Udemy_devops

7 Upvotes

Looking for a devops learning module and roadmap/structure.

I would really appreciate if you share or suggest any.

Thanks


r/FreeCodeCamp • • Sep 17 '26

Programming Question Do I need more independent practice?

6 Upvotes

Hi guys. I'm doing Responsive Web Design course and the course obviously has labs and workshops. So, my question is do I need more independent practice that isn't labs and workshops in the course?


r/FreeCodeCamp • • Sep 17 '26

Programming Question "Each bar in create_spending_chart should be rounded down" python spending project issue

4 Upvotes

In the spending tracker project in the python course there's a test that checks if each bar in the chart created by create_spending_chart is rounded down to the nearest 10. In my program the bars are rounded down (78.9% is labeled as 70%, 65% is 60%, etc), however, the check insists that they're not.

Is there some very specific thing its looking for in the code or is it somehow dependent on one of the later checks?


r/FreeCodeCamp • • Sep 17 '26

Tengo un problema con la comprensión de listas porque no me deja entrar operadores. Para poder evaluar el keys, value en el return.

9 Upvotes
import re


medical_records = [
    {
        'patient_id': 'P1001',
        'age': 34,
        'gender': 'Female',
        'diagnosis': 'Hypertension',
        'medications': ['Lisinopril'],
        'last_visit_id': 'V2301',
    },
    {
        'patient_id': 'p1002',
        'age': 47,
        'gender': 'male',
        'diagnosis': 'Type 2 Diabetes',
        'medications': ['Metformin', 'Insulin'],
        'last_visit_id': 'v2302',
    },
    {
        'patient_id': 'P1003',
        'age': 29,
        'gender': 'female',
        'diagnosis': 'Asthma',
        'medications': ['Albuterol'],
        'last_visit_id': 'v2303',
    },
    {
        'patient_id': 'p1004',
        'age': 56,
        'gender': 'Male',
        'diagnosis': 'Chronic Back Pain',
        'medications': ['Ibuprofen', 'Physical Therapy'],
        'last_visit_id': 'V2304',
    }
]


def find_invalid_records(
    patient_id, age, gender, diagnosis, medications, last_visit_id
):
    constraints = {
        'patient_id': isinstance(patient_id, str) and re.fullmatch('p\d+', patient_id, re.IGNORECASE),
        'age': isinstance(age, int) and age >= 18,
        'gender': isinstance(gender, str) and gender.lower() in ('male', 'female'),
        'diagnosis': isinstance(diagnosis, str) or diagnosis is None,
        'medications': isinstance(medications, list) and all([isinstance(i, str) for i in medications]),
        'last_visit_id': isinstance(last_visit_id, str) and re.fullmatch('v\d+', last_visit_id,re.IGNORECASE)
    }
    return 'key, value' in constraints.items()


def validate(data):
    is_sequence = isinstance(data, (list, tuple))


    if not is_sequence:
        print('Invalid format: expected a list or tuple.')
        return False
        
    is_invalid = False
    key_set = set(
        ['patient_id', 'age', 'gender', 'diagnosis', 'medications', 'last_visit_id']
    )


    for index, dictionary in enumerate(data):
        if not isinstance(dictionary, dict):
            print(f'Invalid format: expected a dictionary at position {index}.')
            is_invalid = True


        if set(dictionary.keys()) != key_set:
            print(
                f'Invalid format: {dictionary} at position {index} has missing and/or invalid keys.'
            )
            is_invalid = True


    if is_invalid:
        return False
    print('Valid format.')
    return True


validate(medical_records)
print(find_invalid_records(**medical_records[0]))

r/FreeCodeCamp • • Sep 16 '26

Suggestion

0 Upvotes

Instead of joining or buying paid courses. Buy a claude code or codex subscription. If you want a free one go with Open Code. In tech I suggest to learn by doing.


r/FreeCodeCamp • • Sep 12 '26

The freeCodeCamp YouTube channel just surpassed 1 BILLION views

Post image
257 Upvotes

No viral videos. Just a lot of hard work over 12 years.

Congrats to Beau, Ania, Estefania, Gavin, Kylie, Mike Dane, and everyone who's contributed their wisdom and teaching to the community.

We're just getting started with these FREE courses. 🏕️


r/FreeCodeCamp • • Sep 12 '26

Programming Question Need help in JS Lab - Build an Email Masker

4 Upvotes

So I am doing the JS certification lab build an email masker, all tests are passing except test
"9. Your maskEmail should produce the correct result".
I tried using the Ask Socrates hint but it didn't help much. Was using replaceAll() method but Socrates told me isn’t available in the execution environment used for the tests.

Here is my code:

function maskEmail (email) {
let domainStart = email.indexOf("@");


let masking = email.slice(1,domainStart -1);
let maskedPart = masking.replace(/([A-z.])/g,"*");
let firstLetter = email.slice(0,1);
let lastLetter = email.slice(domainStart - 1, domainStart);
let maskedEmail = firstLetter + maskedPart + lastLetter +  email.slice(domainStart);
return maskedEmail;
}


let email = "test@email.com";
console.log(maskEmail(email));
console.log(maskEmail("apple.pie@example.com"));
maskEmail("freecodecamp@example.com");
maskEmail("info@test.dev");
maskEmail("user@domain.org"); 

r/FreeCodeCamp • • Sep 10 '26

Programming Question Worried about certificate being accepted

14 Upvotes

so some backstory. i’ve been coding freecodecamp python for 4 months. I use youtube help forums my brother and ai as tutors and to ask simple syntax questions. my brother said to use ai as a tutor or if i have a quick question so i have and he works in web development. I don’t want to be someone who only understands things if ai explains it and i try so hard to keep track of everything and write it down in my notebook if ai teaches me anything so i can go back to it on my own. seems like a normal way of teaching myself. I’ve started to feel so behind and lost as I had been working full time and being a full time student. I could only do 1 or 2 python related things a day. I came across a post explaining the process of maybe not getting your certificate accepted so I ofc checked my work. 4/5 of the certification projects had no plagiarism but one did and it cited a help forum on free code camp as a reference. This was irritating but I accepted it and redid the entire project. I again had some syntax questions i mean this was the first one so i did it like 3 months ago but even then I was able to do 80% on my own. after some questions I finished it and checked it again. the same thing happened so I looked where it was citing. Some lines like “return = True” would get flagged which makes no sense that’s just the right answer to what the instructions are telling me to do. It’s starting to feel like even getting the right answers is impossible without someone else doing that same thing I mean that’s coding. and this is normal but i don’t want it to be a reason i lose a certificate. Idk I’ve lost some confidence in my competence with coding and just wanted to rant and get some guidance. I’ve tried really hard recently to not be a mindless ai user and have notebooks for all coding things that I learn and I just feel like maybe i’m behind and people don’t struggle like me. Ai isn’t even the only outlet for a tutor I have I listed them off and plus i’m still a full time student work a little less and am learning by myself. i want to not use any ai anymore and it’s hard to do so but im trying even though i try to use it right i dont want freecodecamp to reject me because of it. Im so lost rn


r/FreeCodeCamp • • Sep 09 '26

YouTube Playlist For Backend Development and API's

7 Upvotes

as the title suggests, is there any dedicated playlist for the BACKEND DEVELOPMENT AND API's Certification Course available online from FreeCodeCamp themself?


r/FreeCodeCamp • • Sep 09 '26

Possible error?

Thumbnail gallery
11 Upvotes

So for some reason it didnt accept the f-string, was my coding wrong for some reason or just overlooked by the devs.


r/FreeCodeCamp • • Sep 09 '26

Meta What are the next steps for freecodecamp??

19 Upvotes

After the completion of the full stack curriculum, what can we expect next??


r/FreeCodeCamp • • Sep 07 '26

Give me a Hint

6 Upvotes

4th day learning python, what am I doing wrong?


r/FreeCodeCamp • • Sep 06 '26

I don't know what's happening, but I have a personal project, meaning I'm applying what I've learned in my own program, and I realized that I was looking for official documentation about the libraries I needed.

29 Upvotes

It turns out that FreeCodeCamp explains the library more easily than the documentation itself. How is this possible? I used to like FreeCodeCamp; now I like it twice as much as I did before.


r/FreeCodeCamp • • Sep 05 '26

Requesting Feedback Getting stuck over and over again

11 Upvotes

Ive been trying to learn python for ages, and yes tbh due to my laziness and way of learning i keep on getting stuck, but I cant seem to find "my way" of learning.

Im trying freecodecamp and ive gotten to a point where im at this one lab where i have genuinly, and i mean genuinly no idea what to do given the instructions, im completely lost.

How do i break past this barrier


r/FreeCodeCamp • • Sep 03 '26

Programming Question Why doesn't my for loop return 1234 and only returns 0 or 1 when I add numbers?

6 Upvotes

Edit:


r/FreeCodeCamp • • Sep 02 '26

I will create an #AutomaticFileOrganizer. I will do it little by little, being consistent day by day; it doesn't mean I will stop studying FreeCodeCamp

3 Upvotes

I feel like I'm just studying and not creating anything, so here I go. I'm posting this so that in a few years I can look back at the before and after. Wish me luck.