About myself
Graduated BrSTU in 2016 year in speciality "Heat and Gas Supply, Ventilation and Air Protection". Have been working for 3 years an engineer in gassupply organization. Intrested in web develompent, badminton, swimming.
Skills
- Git
- HTML&CSS
- Basic knowledge of Python
- PyCharm
Language level
- English level - B1
- Russian level - native speaker
Code example
def quiz(them):
answers = []
correct_answers_count = 0
install.install_lib("pandas")
import pandas as pd
df = pd.read_csv(f"{THEMES_PATH}/{them}", delimiter=";", dtype=str)\
.sample(frac=1)\
.reset_index(drop=True)\
.head(COUNT_QUESTIONS)
for idx in df.index:
_question = df['question'][idx]
_variant = df['variant'][idx]
_answer = df['answer'][idx]
print(_question, _variant, sep='\n')
answer = validate.handle_answer()
# сравниваем ответы
if answer == _answer:
print(f'{answer} - Отлично\n')
correct_answers_count += 1
else:
print(f'{answer} - К сожалению нет\n', end='\n')
answers.append(f"{_question}\n{_variant}\nВаш ответ: {answer}\nOтвет: {_answer}")
return correct_answers_count, answers