Plotly express color as legend based on two columns

Hello here,
is there a way to set the color of px.scatter with values of two different colors? i’ve looked in internet but i didn’t find somthing.
Example of what i’m looking for:

df = pd.DataFrame(
    {
        "A": [2,8,7,9,6],
        "B": ["F", "P", "P", "P", "P"],
        "C": [1,7,9,6,1],
        "D": ["F", "P", "P", "P", "F"],
    }
)
fig = px.scatter(df, x="A",y="C", **for color I want to have something like** color=['B','D'])

Is there a way to go?

i did it haha

figg = px.scatter(dfff, x="A",y="C", hover_data=dfff.columns)
figg.update_traces(
    marker=dict(
        color=((dfff['B']=='F')|(dfff['D']=='F')).astype('float'),
        colorscale=[[0,'blue'],[1,'red']]
    )
)
figg.show()