Build a Medical Data Validator - Step 44

I am not sure why I am getting the error of You should have a for loop that iterates over invalid_recordswhen there is no error in the terminal. It prints Unexpected format ‘age’: 56 at position 0.

Welcome to the forum @john.caldwell

Photos/screenshots of an error can be helpful, but it also helps to provide the complete code. Posting the code helps us help you better!

When you enter a code, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Also provide a link to the challenge so the forum can assist you.

Happy coding

        for index, key in enumerate(invalid_records):
            print(f"Unexpected format '{key}: {dictionary[key]}' at position {index}.")
            is_invalid = True

can you make an invalid value in each object and see what the output is?

Yes, I made another invalid value, but I noticed that the position does not change. Here is the output of two invalid values.

and where those values in the first object? both of them?

please share your code

There are many other threads on this step to check:
https://forum.freecodecamp.org/search?q=Build%20a%20Medical%20Data%20Validator%20-%20Step%2044%20order%3Alatest

Also the instructions say

You should have a for loop that iterates over invalid_records

But you are iterating over enumerate(invalid_records)