Jul-19-2018, 06:42 PM
I am creating a functions that calls upon two other functions: hal(a) and acc(b).
I am really struggling here
! Any help would be appreciated!
THANK YOU!
x = {"F": "Fluorine", "Cl": "Chlorine"} y = {"O": "Oxygen"} def hal(a): for halogens in x: if halogens == a: print(x[a]) return(x[a]) def acc(b): for acceptors in y: if acceptors == b: print(y[b]) return y[b] def is_halogen_bond(a, b): hal(a) acc(b) is_halogen_bond("F", "O")I want the functions hal(a) and acc(b) to prompt for halogen and acceptor if a and b in is_halogen_bond(a,b) are not apart of the lists x and y.
I am really struggling here




THANK YOU!