Https://www.codecademy.com/paths/data-science/tracks/dscp-python-fundamentals/modules/dscp-python-strings/projects/ds-python-strings-project

I am having issues with the for loop to iterate through the list to add 1 record for each “$” checked the hint and my output in the following print is 1 not 10

medical_data = \ """Marina Allison ,27 , 31.1 , #7010.0 ;Markus Valdez , 30, 22.4, #4050.0 ;Connie Ballard ,43 , 25.3 , #12060.0 ;Darnell Weber , 35 , 20.6 , #7500.0; Sylvie Charles ,22, 22.1 ,#3022.0 ; Vinay Padilla,24, 26.9 ,#4620.0 ;Meredith Santiago, 51 , 29.3 ,#16330.0; Andre Mccarty, 19,22.7 , #2900.0 ; Lorena Hodson ,65, 33.1 , #19370.0; Isaac Vu ,34, 24.8, #7045.0""" # Add your code here print(medical_data) updated_medical_data=medical_data.replace("#", "$") print(updated_medical_data) num_records=0 for character in updated_medical_data: if character=="$": num_records=+1 print("There are "+str(num_records)+ " medical records in the data.")

What am I missing here?

It’s an ever so sneaky typo. The operator for the augmented assignment is +=.

In the reverse order you’re actually using two operators = and + and your statement is equivalent to the following: num_records = +1.

thanks…been working too long and didn’t see it nor did trying to worki it out in spider…