Pergunta de entrevista da empresa Accenture

write a code for calculating f1 score without using sklearn library.