Calculate Fields
(i"m new to arcpy and arcgispro)
I'm attempting to use the Calculate Field to update a column based on non-null values in another column:

Expression:
UpdateLoc(!GAZETTED_LOCALITY_NAME!)
Code Block:
def UpdateLoc(nameGaz):
if (nameGaz != none):
return 'L'
(I've tried != NULL and IS NOT NULL as well)
I'm not sure where I am going wrong here, I get '2 parameters are missing or invalid'