Please bear with my hang-up on prefixes ;-)affect (a-fect), effect (e-fect) are from Latin root ‘fect’ (=to do/make/create). With prefix a- (=away from; =not [in most cases] ) a-fect -> affect =to do by/with/from
With e- (=out/from within) e-fect -> effect =to do apparently/clearly/visibly

NB. Perfect (per-fect) = to do well/throughly; prefix per- = through ;-)