My solution in js
const setAlarm = (employed = true, vacation = true) => employed && !vacation;
No prior experience in Python just wanted to give it a try. Like it :) Going to spend more time on the docs in the coming days.
My solution in Python
def setAlarm(employed = True, onVacation = True):
return employed and not onVacation
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.