DEV Community

Discussion on: Daily Challenge #75 - Set Alarm

Collapse
 
kvharish profile image
K.V.Harish • Edited

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