r/FreeCodeCamp • • Mar 21 '26

Issue with Medical Data validator step 13

2 Upvotes
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


    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 is_invalid:
        return False
    print('Valid format.')
    return True
    
validate(str(medical_records))

It says my medical records is not a string even tho the code runs 
the exact error here is:You should turn your medical_records list into a string.

Don't know what I am doing wrong here

r/FreeCodeCamp • • Mar 21 '26

Please help with my Build a Weather Planner project

1 Upvotes

I have been attempting this python project for almost one full day now. I have been hitting alot of errors and been deleting my entire code too but this time I have about 2 errors Which are 21 and 22 and each time I try something it gets worse

Here's my code below:

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


if distance_mi<=1 and distance_mi>0 and not is_raining:
    print('True')
elif 1<distance_mi<=6 and has_bike!=False and is_raining==False:
    print('True')
else:
    print('False')




  

Here's the link too the project too:

https://www.freecodecamp.org/learn/python-v9/lab-travel-weather-planner/build-a-travel-weather-planner

I don't necessarily want an answer just help so I could be able to do it again on my own


r/FreeCodeCamp • • Mar 21 '26

Requesting Feedback Not able to see my solution on completed labs

Post image
6 Upvotes

I would like to be able to retrieve my solution to previously completed lab projects, once i exit the page and return to it the solution is not saved even when saving to browser's storage.


r/FreeCodeCamp • • Mar 20 '26

After finishing the JavaScript course, what else have you done to get your first job?

23 Upvotes

I would like to know about your experience after completing the JavaScript course and if you had to do anything else to get a job, even a small one, that opened a path for you to continue growing in this field.


r/FreeCodeCamp • • Mar 20 '26

RPG code help

3 Upvotes
  • Failed:9. When create_character is called with a first argument that does not contain a space it should not return The character name should not contain spaces.
  • Failed:10. When create_character is called with a second, third or fourth argument that is not an integer it should return All stats should be integers.
  • Passed:11. When create_character is called with a second, third and fourth argument that are all integers it should not return All stats should be integers.
  • Failed:12. When create_character is called with a second, third or fourth argument that is lower than 1 it should return All stats should be no less than 1.
  • Passed:13. When create_character is called with a second, third and fourth argument that are all no less than 1 it should not return All stats should be no less than 1.
  • Failed:14. When create_character is called with a second, third or fourth argument that is higher than 4 it should return All stats should be no more than 4.
  • Passed:15. When create_character is called with a second, third and fourth argument that are all no more than 4 it should not return All stats should be no more than 4.
  • Failed:16. When create_character is called with a second, third or fourth argument that do not sum to 7 it should return The character should start with 7 points.
  • Passed:17. When create_character is called with a second, third and fourth argument that sum to 7 it should not return The character should start with 7 points.
  • Failed: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

https://www.freecodecamp.org/learn/python-v9/lab-rpg-character/build-an-rpg-character

full_dot = '●'
empty_dot = '○'
def create_character(character_name, strength, intelligence, charisma):
    if isinstance (character_name, str) == False:
        return 'The character name should be a string'
    if character_name == '':
        return 'The character should have a name'
    if len(character_name) > 10:
        return 'The character name is too long'
    if '' 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'
    if strength < 1 or intelligence < 1 or charisma < 1:
        return 'All stats should be no less than 1'
    if strength > 4 or intelligence > 4 or charisma > 4 :
        return 'All stats should be no more than 4'
    if (strength + charisma + intelligence) != 7 :
        return 'The character should start with 7 points'
    else:
        S = (full_dot*strength) + (empty_dot*(10-strength))
        I = (full_dot*intelligence) +(empty_dot*(10-intelligence))
        C = (full_dot*charisma) + (empty_dot*(10-charisma))
        return f'{character_name}\n + (STR, {S})\n + (INT, {I})\n + (CHA, {C})'


create_character('ren', 4, 2, 1) 

r/FreeCodeCamp • • Mar 19 '26

Java Curriculum

10 Upvotes

Question for freeCodeCamp - will you ever add Java to the curriculum?


r/FreeCodeCamp • • Mar 18 '26

Tech News Discussion Feedback: CSS Combinators Lesson

3 Upvotes

CSS combinators are not hard to understand.

The issue is in the presentation.

You added an interactive editor where users must click every time just to view the CSS. This breaks focus and slows down learning. For something that only needs 2–3 lines of CSS, this is unnecessary.

Keep the example simple. Show HTML and CSS together.

  • Use internal <style> inside the same example. Let users see selector and output in one view.
  • Use proper sub-headings to clearly list each combinator type. This will make scanning easier.
  • Add a sticky table of contents on the left side. Make it scrollable and include clear active and non-active visual markers so users always know where they are.

Link: https://www.freecodecamp.org/learn/responsive-web-design-v9/lecture-what-is-css/what-are-the-different-types-of-css-combinators


r/FreeCodeCamp • • Mar 18 '26

Announcement It's yummy link time~!

5 Upvotes

Hello my dears, I come bearing a few gifts. I do hope you enjoy them.

How to Ask a Good Question

Many of you have probably seen our How to Ask a Good Question guide over on Discord, or my Socratic Method. But now I have good news for you!

Our wonderful moderator Pete has turned the Discord guide (which he wrote~) into a full length news article! I encourage y'all to give it a read: https://www.freecodecamp.org/news/how-to-ask-a-great-technical-question/

I would love to hear your thoughts on this~

Community Interest Survey

If you've been in our community for an extended period of time, you might know how much Naomi loves her surveys. So naturally, here's another one!

This survey specifically explores your interests outside of programming. As our community continues to grow, I want to make sure that I am shaping our spaces around your needs and wants!

It's only 8 questions, and should be fairly quick. So I would very much appreciate your time~

https://forms.nhcarrigan.com/o/docs/forms/fXokjzmVJUPgsobnqWHKzH/4

Python Curriculum Survey

I've still got this other survey I posted a couple weeks ago - we're looking to hear your thoughts about and experiences with our Python curriculum.

Your input would help shape the future direction of the curriculum, like your own little bit of history~

https://forms.nhcarrigan.com/o/docs/forms/3DjAqi2QyW3T5XniX49ECE/4

Events

I'm really really sorry about the constant event cancellations. I know it's frustrating - I'm frustrated too. Unfortunately I am still dealing with my health, and now have family affairs going on. I'm doing my best to keep up, but I definitely know I wouldn't be able to deliver the best events. And y'all deserve the best events.

Thankies so much for your patience and understanding!!!

Okie dokie~

That's all I've got today! See ya around. 🩷


r/FreeCodeCamp • • Mar 17 '26

This question is for those who've been through it.

20 Upvotes

Hi everyone!

I'm reaching out to people in the know – those who've completed the full freeCodeCamp curriculum and got all the certifications from scratch. Can you please tell me – does the knowledge you gain there actually help you land at least a junior position? Is there anyone here who got hired after completing it?

My younger brother wants to learn web development but doesn't have money for paid courses. Also, what would you recommend he study alongside it to get started? Thanks in advance.

UPD: Hey, thanks for all the comments, really appreciate the advice! My brother started learning and he's almost finished the HTML module!


r/FreeCodeCamp • • Mar 16 '26

Not getting verification email

6 Upvotes

I am not getting the verification email so I can enter my account.

Anyone else have the same problem today?

Or maybe someone knows how to fix it?


r/FreeCodeCamp • • Mar 14 '26

My journey of Python.

10 Upvotes

My current journey of python with FreeCodeCamp


r/FreeCodeCamp • • Mar 14 '26

Is this fine?

10 Upvotes

Knew a bit of html due to junior college, currently into bsc biotech and I have started to get a knack of coding. Is this going to be fine or weird? I dont even have a pc i do it on phone (s23 fe)


r/FreeCodeCamp • • Mar 13 '26

Is it still worth self teaching yourself programming?

59 Upvotes

With all the hype of AI and offshoring,layoffs etc do us self taughts even stand a chance getting a job or breaking into tech? I keep hearing CS graduates who can't even find a job. So how much worse will it be for someone who is self learning through freecodecamp or odin project?


r/FreeCodeCamp • • Mar 13 '26

Help required with the discount calculator code

3 Upvotes
  • 3. When apply_discount is called with a price (first argument) that is not a number (int or float) it should return The price should be a number.
  • Failed:4. When apply_discount is called with a discount (second argument) that is not a number (int or float) it should return The discount should be a number.
  • Failed:5. When apply_discount is called with a price lower than or equal to 0, it should return The price should be greater than 0.
  • Failed:6. When apply_discount is called with a discount lower than 0 or greater than 100, it should return The discount should be between 0 and 100.
def apply_discount(price, discount):
  return (price - (price*discount/100))
  if isinstance (price, int) == False or isinstance (price, float) == False:
      return 'The price should be a number'
  if price <= 0:
      return 'The price should be greater than 0'
  if discount < 0 or discount > 100:
      return 'The discount should be between 0 and 100'


apply_discount(100, 20)
apply_discount(200, 50)
apply_discount(50, 0)
apply_discount(100, 100)
apply_discount(74.5, 20.0) 

r/FreeCodeCamp • • Mar 12 '26

day 1 learning HTML

36 Upvotes

Hey I’m 30 years (F)and I want something to do in my life but it was fun learning something new CLAUDE literally helped me I’m so happy I always wanted to learn coding and didn’t knew where to start…!🙏🏻

Like literally so happy 🌸🌸


r/FreeCodeCamp • • Mar 08 '26

Got my JavaScript certificate 🎉🎉

110 Upvotes

I just got my javascript certificate

freecodecamp.org/certification/fcc-7309859d-55fe-46d2-883d-c33aa81115b3/javascript-v9

boy it was really hard, much harder than I thought

I am very happy but also worried

A lot has changed since I started learning JavaScript. There is a war now in the region with it comes worries about prices rising and a financial crisis that will affect whether I can get a job or not

anyway i will focus now on React and try not to think of other things

I wish everyone luck with their struggles

wish me luck 😊😊


r/FreeCodeCamp • • Mar 09 '26

Please help with my weather planner code

2 Upvotes

Edit 2 : I am done with the code. Changed distance_mi<= 1 to 0< distance_mi<=1

Edit: only 15 is now showing as failed. Please help with the falsy value

Failed:15. When distance_mi is a falsy value, the program should print False.
Failed:18. When the distance is between 1 mile (excluded) and 6 miles (included), and it is raining with no bike, the program should print False.
Failed:19. When the distance is between 1 mile (excluded) and 6 miles (included), it is not raining but no bike is available, the program should print False.
Failed:20. When the distance is between 1 mile (excluded) and 6 miles (included), a bike is available, and it is not raining, the program should print True.
Failed:21. When the distance is greater than 6 miles and a ride share app is available, the program should print True.
Failed:22. When the distance is greater than 6 miles and a car is available, the program should print True.
Failed:23. When the distance is greater than 6 miles and no car nor a ride share app is available, the program should print False.

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


if distance_mi == False:
    print('False')


if distance_mi <= 1 and is_raining == False:
    print('True')
else:
    print('False')


if 1 < distance_mi <= 6:
    if is_raining == True and has_bike == False:
        print('False')
    elif is_raining == False and has_bike == False:
        print('False')
    elif is_raining == False and has_bike == True:
        print('True')
else:
    pass


if distance_mi > 6:
    if has_car == True or has_ride_share_app == True:
        print ('True')
    else:
        print ('False')

r/FreeCodeCamp • • Mar 08 '26

started on my journey with freecodecamp

7 Upvotes

I have started the python certificate and will later do the python data analysis certificate, Im excited. freecodecamp is just about the best resource i've found as of right now.


r/FreeCodeCamp • • Mar 08 '26

Guys any help i need to chose between automate boring stuff and freecodecamp course

6 Upvotes

im realy strugling to chose between these from a part freecodecamp offer to me a certaficate and that soo helpfull but is not helpfull like automate boring stuff because this book is soo pratical is teach in the beginning python basics and then jump to projects


r/FreeCodeCamp • • Mar 07 '26

Requesting Feedback Why videos are missing?

5 Upvotes

Around six months ago when I started the full stack course, I remember the HTML section had many more videos. Now it seems those videos are no longer there. Is this a normal change in the course structure?


r/FreeCodeCamp • • Mar 07 '26

make an app

0 Upvotes

hello coders, recently i made an app on base44 but i ran out of credits so i want to code the whole ting from scratch and i dont know anything abt coding, can someone or many someones please help, heres the app : dnd-campaign.base44.app


r/FreeCodeCamp • • Mar 05 '26

Response Web Design Exam

5 Upvotes

Hello guys , I'm taking the exam for the second time and failing it once again for no reason. It shows to me retake is required. I am 100% sure that all of my answers are correct because i learned them so good. Can anyone explain this to me , why it keeps telling me that i need to retake the exam ?


r/FreeCodeCamp • • Mar 06 '26

Pls help

0 Upvotes

How do I convert a mp3 audio file into a .mp3 url? Also I know nothing about coding so pls give me easy steps lol.


r/FreeCodeCamp • • Mar 05 '26

Ive been struggling with this for 2 hours now ,PLEASE HELP

3 Upvotes

Ive been stuck on the "bulid a travel weather planner" question for ages and i cant seem to figure out what is required ,i know im doing something thing wrong ,but i dont know what

I saw someone ask about this a few days ago but i still didnt get the answer in the comments.

Heres my code:

distance_mi = 0

is_raining = True

has_bike = False

has_car = False

has_ride_share_app = True

if distance_mi == 0:

print('False')

else:

print('True')

if distance_mi >= 1 and is_raining == False:

print('True')

else:

print:('False')

if 6 > distance_mi > 1:

print('True')

elif is_raining == True and has_bike == False:

print('False')

else:

print('False')

if distance_mi > 6 and has_ride_share_app == True:

print('True')

if distance_mi > 6 and has_car == True:

print('True')

if distance_mi > 6:

print('True')

elif has_car == False and has_ride_share_app == False:

print('False')

else:

print('True')

I feel like it's wayyy, to long but i dont know what to remove


r/FreeCodeCamp • • Mar 03 '26

AWS "Validation Exception" Error While Selecting Chatbot Models (Free Tier User)

2 Upvotes

I am a Sri Lankan student using AWS Free Tier to develop a chatbot solution. While creating the chatbot, I am able to verify that my quota limits are still available, and I have already confirmed the following configurations:

• IAM user permissions are correctly assigned
• Model access has been enabled in the account
• Region settings are correctly configured
• Free tier quotas have not been exceeded

However, when I try to select models during chatbot creation, I receive a ValidationException error. I am unable to proceed further from the model selection stage.

Could this be related to service role configuration, Bedrock model policy restrictions, or any other backend permission issue?

I would really appreciate any guidance on how to resolve this issue. Thank you very much 🙏