re: Daily Challenge #75 - Set Alarm VIEW POST

FULL DISCUSSION
 

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
code of conduct - report abuse