Complete the function which returns the weekday according to the input number:

* `1` returns `"Sunday"`
* `2` returns `"Monday"`
* `3` returns `"Tuesday"`
* `4` returns `"Wednesday"`
* `5` returns `"Thursday"`
* `6` returns `"Friday"`
* `7` returns `"Saturday"`
* Otherwise returns `"Wrong, please enter a number between 1 and 7"`

Difficulty: introductory

Starter code:

def whatday(num):
	

Solutions:
WEEKDAY = {
    1: 'Sunday',
    2: 'Monday',
    3: 'Tuesday',
    4: 'Wednesday',
    5: 'Thursday',
    6: 'Friday',
    7: 'Saturday' }
ERROR = 'Wrong, please enter a number between 1 and 7'


def whatday(n):
    return WEEKDAY.get(n, ERROR)


def whatday(num):
  switcher = {
      1:'Sunday',
      2:'Monday',
      3:'Tuesday',
      4:'Wednesday',
      5:'Thursday',
      6:'Friday',
      7:'Saturday'
  }
  return switcher.get(num, 'Wrong, please enter a number between 1 and 7')


def whatday(num):
    days = ('Sun', 'Mon', 'Tues', 'Wednes', 'Thurs', 'Fri', 'Satur')
    return days[num-1] + 'day' if 0 < num < 8 else 'Wrong, please enter a number between 1 and 7' 

def whatday(num):
  days={1:'Sunday', 2:'Monday',3:'Tuesday',4:'Wednesday',5:'Thursday',6:'Friday',7:'Saturday'}
  WRONG_VALUE="Wrong, please enter a number between 1 and 7"
  return days.get(num,WRONG_VALUE)

def whatday(num):
    return {1: 'Sunday', 2: 'Monday', 3: 'Tuesday', 4: 'Wednesday', 5: 'Thursday', 6: 'Friday', 7: 'Saturday'}.get(num, "Wrong, please enter a number between 1 and 7")


whatday=lambda n:'Wrong, please enter a number between 1 and 7'*(n>7or n<1)or __import__('calendar').day_name[n-2]

WEEK =' Sunday Monday Tuesday Wednesday Thursday Friday Saturday'.split(" ")

def whatday(n):
    return WEEK[n] if 0<n<8 else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
  days = {1: "Sunday",2: "Monday",3: "Tuesday",4: "Wednesday",5: "Thursday",6: "Friday",7: "Saturday"}
  if num not in days:
      return "Wrong, please enter a number between 1 and 7"
  return days[num]
  
  
  


def whatday(num):
    weekday = {1:'Sunday',
               2:'Monday',
               3:'Tuesday',
               4:'Wednesday',
               5:'Thursday',
               6:'Friday',
               7:'Saturday'}
    try:
        return weekday[num]
    except:
        return("Wrong, please enter a number between 1 and 7")

def whatday(num):
    DAYS = {
        1 : "Sunday", 
        2 : "Monday", 
        3 : "Tuesday", 
        4 : "Wednesday", 
        5 : "Thursday", 
        6 : "Friday", 
        7 : "Saturday",
    }
    WRONG_DAY = 'Wrong, please enter a number between 1 and 7'
    return DAYS.get(num, WRONG_DAY)

def whatday(num):
  lst = ["Wrong, please enter a number between 1 and 7", "Sunday", "Monday", 
          "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
  return lst[num] if num > 0 and num < 8 else lst[0]

def whatday(num):
  l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
  if(0<num<=7):
      for i in range(1,8):
          if(i==num):
              return(l[i-1]) 
  else:
      return"Wrong, please enter a number between 1 and 7"


days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]

def whatday(num):
    if 0 < num < 8:
        return days[num - 1]
    return "Wrong, please enter a number between 1 and 7"


def whatday(num):
    return ('Wrong, please enter a number between 1 and 7', 'Sunday', 'Monday','Tuesday','Wednesday','Thursday','Friday','Saturday')[1 <= num <= 7 and num]     

from datetime import datetime

def whatday(n):
  return datetime(2019, 2, 2 + n).strftime("%A") if 1 <= n <= 7 else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    return {1: "Sunday", 2: "Monday", 3: "Tuesday", 4: "Wednesday", 5: "Thursday", 
            6: "Friday", 7: "Saturday"}.get(num, "Wrong, please enter a number between 1 and 7")
            
    # between 1 and 7 (inclusive) ...


def whatday(num):
  return dict(zip('2345671', __import__('calendar').day_name)).get(str(num), 'Wrong, please enter a number between 1 and 7')

def whatday(num):
    return (["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][num-1:num]+['Wrong, please enter a number between 1 and 7'])[0]

def whatday(numb):
    if numb not in range (1,8):
        return "Wrong, please enter a number between 1 and 7"
    elif numb == 1:
        return "Sunday"
    elif numb == 2:
        return "Monday" 
    elif numb == 3:
        return "Tuesday"
    elif numb == 4:
        return "Wednesday"
    elif numb == 5:
        return "Thursday"
    elif numb == 6:
        return "Friday"
    elif numb == 7:
        return "Saturday"

def whatday(num):
    d = {1: "Sunday", 2: "Monday", 3: "Tuesday", 4: "Wednesday", 5: "Thursday", 6: "Friday", 7: "Saturday"}
    try:
        return d[num]
    except KeyError:
        return "Wrong, please enter a number between 1 and 7"


def whatday(n):
    if n<1 or n>7: return 'Wrong, please enter a number between 1 and 7'
    return ' Sunday Monday Tuesday Wednesday Thursday Friday Saturday'.split(' ')[n]


L = {1: 'Sunday', 2: 'Monday', 3: 'Tuesday', 4: 'Wednesday', 5: 'Thursday', 6: 'Friday', 7: 'Saturday'}

whatday = lambda n: L.get(n, 'Wrong, please enter a number between 1 and 7')

def whatday(num):
    day=['Wrong, please enter a number between 1 and 7',
          "Sunday",
          "Monday",
          "Tuesday",
          "Wednesday",
          "Thursday",
          "Friday",
          "Saturday"]
    try:
        return day[num]
    except:
        return day[0]

def whatday(num):
    days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
    if num > 7 or num <= 0:
        return "Wrong, please enter a number between 1 and 7"
    for index, x in enumerate(days, 1):
        if num == index:
            return x

def whatday(num):
    days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
    if num > 7 or num <= 0:
        return "Wrong, please enter a number between 1 and 7"
    for index, x in enumerate(days, 1):
        if num == index:
            return x
#         if 0 >= num > 7:
#             return "Wrong, please enter a number between 1 and 7"


whatday = lambda n:'SMTWTFSuouehranneduit  snr u   es r   s'[n-1::7].rstrip()+'day' if 0<n<8 else 'Wrong, please enter a number between 1 and 7'

import calendar
from collections import deque

def whatday(num: int) -> str:
    """ Get weekday according to the input number (days rotated by 1). """
    days = deque(list(calendar.day_name))
    days.rotate(1)
    return dict(zip(list(range(1, 8)), days)).get(num, "Wrong, please enter a number between 1 and 7")

def whatday(num):
  # Put your code here
    if(1<=num<=7):
        if(num==1):
            return "Sunday"
        elif(num==2):
            return "Monday"
        elif(num==3):
            return "Tuesday"
        elif(num==4):
            return "Wednesday"
        elif(num==5):
            return "Thursday"
        elif(num==6):
            return "Friday"
        else:
            return "Saturday"
    else:
        return "Wrong, please enter a number between 1 and 7"

whatday=lambda n:{1:"Sunday",2:"Monday",3:"Tuesday",4:"Wednesday",5:"Thursday",6:"Friday",7:"Saturday"}.get(n,'Wrong, please enter a number between 1 and 7')

def whatday(num):
    day = ['Saturday', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday']
    return day[num % 7] if num in range(1, 8) else "Wrong, please enter a number between 1 and 7"

def whatday(num):
    days_of_week = {
        1: 'Sunday', 2: 'Monday', 3: 'Tuesday', 4: 'Wednesday', 5: 'Thursday', 6: 'Friday', 7: 'Saturday'
    }
    
    return days_of_week.get(num, 'Wrong, please enter a number between 1 and 7')

def whatday(num):
    day_of_week = {1:"Sunday",2:"Monday",3:"Tuesday",4:"Wednesday",5:"Thursday",6:"Friday",7:"Saturday"}
    if num > 7 or num < 1:
        return 'Wrong, please enter a number between 1 and 7'
    else:
        return day_of_week[num] 

def whatday(num):
    if (num <= 0) or (num > 7): return "Wrong, please enter a number between 1 and 7"
    if num ==1: return 'Sunday'
    if num ==2: return 'Monday'
    if num ==3: return 'Tuesday'
    if num ==4: return 'Wednesday'
    if num ==5: return 'Thursday'
    if num ==6: return 'Friday'
    if num ==7: return 'Saturday'


wd = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
def whatday(num):
    if num < 1 or num > 7:
        return 'Wrong, please enter a number between 1 and 7'
    return wd[num - 1]


import calendar

def whatday(n):
    if not 1 <= n <= 7:
        return "Wrong, please enter a number between 1 and 7"
    return calendar.day_name[(n - 2) % 7]    # Change index to Monday = 0 and Sunday = 6

def whatday(num):
    return ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', \
     'Saturday'][num-1] if num in range(1,8) else "Wrong, please enter a number between 1 and 7"

def whatday(num):
    week = {1:'Sunday', 2:'Monday', 3:'Tuesday', 4:'Wednesday', 5:'Thursday', 6:'Friday', 7:'Saturday'}
    if num in week.keys():
        return week.get(num)
    else:
        return 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    d = {1: "Sunday",
        2: "Monday",
        3: "Tuesday",
        4: "Wednesday",
        5: "Thursday",
        6: "Friday",
        7: "Saturday"}
    return d.get(num) if num > 0 and num < 8 else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    DICK={1:"Sunday",2:"Monday",3:"Tuesday", 4:"Wednesday",5:"Thursday",6:"Friday",7:"Saturday"}
    return DICK[num] if 0<num<8 else "Wrong, please enter a number between 1 and 7"

def whatday(num):
    days = {
        1 : "Sunday",
        2 : "Monday",
        3 : "Tuesday",
        4 : "Wednesday",
        5 : "Thursday",
        6 : "Friday",
        7 : "Saturday"
           }
    
    if 0 < num <= 7:
        return days.get(num)
    else:
        return 'Wrong, please enter a number between 1 and 7'

from calendar import day_name
def whatday(n):
    return 'Wrong, please enter a number between 1 and 7' if n>7 or n<1 else day_name[n-2]

from calendar import day_name
def whatday(num):
    d={}
    c=2
    for i in list(day_name):
        if i=='Sunday':
            d[1]=i
        else:
            d[c]=i
        c+=1
    return d.get(num,'Wrong, please enter a number between 1 and 7')

X = {
    1 : "Sunday",
    2 : "Monday",
    3 : "Tuesday",
    4 : "Wednesday",
    5 : "Thursday",
    6 : "Friday",
    7 : "Saturday"
}

def whatday(num):
    return X.get(num, "Wrong, please enter a number between 1 and 7")

def whatday(num):
    dict={
        2:"Monday",
        3:"Tuesday",
        4:"Wednesday",
        5:"Thursday",
        6:"Friday",
        7:"Saturday",
        1:"Sunday"
    }
    return dict.get(num,'Wrong, please enter a number between 1 and 7')

days = {
    1: 'Sunday',
    2: 'Monday',
    3: 'Tuesday',
    4: 'Wednesday',
    5: 'Thursday',
    6: 'Friday',
    7: 'Saturday' }

wrong_num = 'Wrong, please enter a number between 1 and 7'

def whatday(num):
  # Put your code here
    return days.get(num, wrong_num)

def whatday(num):
    dic = {"Sunday": 1,
           "Monday": 2,
           "Tuesday":3,
           "Wednesday": 4,
           "Thursday" : 5,
           "Friday" : 6,
           "Saturday" : 7,}
    for key, value in list(dic.items()):
        if dic[key] == num and num <= 7:
            return key
    return 'Wrong, please enter a number between 1 and 7'

# test.assert_equals(whatday(1), 'Sunday')
# test.assert_equals(whatday(2), 'Monday')
# test.assert_equals(whatday(3), 'Tuesday')


def whatday(num):
    dict_ = {1: 'Sunday', 2: 'Monday', 3: 'Tuesday', 4: 'Wednesday', 5: 'Thursday', 6: 'Friday', 7: 'Saturday'}
    return dict_.get(num, 'Wrong, please enter a number between 1 and 7')

def whatday(n):
    weekdays = {
        1: "Sunday",
        2: "Monday",
        3: "Tuesday",
        4: "Wednesday",
        5: "Thursday",
        6: "Friday",
        7: "Saturday"
    }
    return weekdays.get(n, "Wrong, please enter a number between 1 and 7")

def whatday(num):
    weekdays = {1: 'Sunday', 2: 'Monday', 3: 'Tuesday', 4: 'Wednesday', 5: 'Thursday', 6: 'Friday', 7: 'Saturday'}
    wrong = 'Wrong, please enter a number between 1 and 7'
    return weekdays.get(num, wrong)

def whatday(num):
    nums=[1,2,3,4,5,6,7]
    days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']
    
    d_o_w=dict(list(zip(nums,days)))
    if num in list(d_o_w.keys()):
        return d_o_w[num]
    else:
        return "Wrong, please enter a number between 1 and 7"


import calendar

def whatday(num):
    ll = ['Sunday'] + list(calendar.day_name)[:-1]
    print(num, ll)
    return ll[num - 1] if num in range(1, 8) else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    msg = ['Wrong, please enter a number between 1 and 7', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']
    return msg[num] if num in range(1, 8) else msg[0]

INDEX_TO_WEEKDAY = {
    1:"Sunday", 2:"Monday", 3:"Tuesday",
    4:"Wednesday", 5:"Thursday", 6:"Friday",
    7:"Saturday" }

def whatday(num) -> str:
    try:
        return INDEX_TO_WEEKDAY[num]
    except LookupError:
        return "Wrong, please enter a number between 1 and 7"

def whatday(num):
    days = {2:"Monday",3:"Tuesday",4:"Wednesday",5:"Thursday",6:"Friday",7:"Saturday",1:"Sunday"}
    try: return days[num]
    except: return 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    dict ={1: 'Monday', 2: 'Tuesday', 3: 'Wednesday', 4: 'Thursday', 5: 'Friday', 6: 'Saturday', 0: 'Sunday'}
    return dict.get(num-1, 'Wrong, please enter a number between 1 and 7')

def whatday(num):
    try:
        a = zip(range(1, 8), ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"])
        adict = dict(a)
        return adict[num]
    except:
        return "Wrong, please enter a number between 1 and 7"

def whatday(num):
    return ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"][num-1] if num-1 in range(7) else "Wrong, please enter a number between 1 and 7"

def whatday(num):
    array = [0, 'Sunday', 'Monday','Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']
    return 'Wrong, please enter a number between 1 and 7' if num == 0 or num>7 else array[num]

def whatday(num):
    return {1: "Sunday", 2: "Monday", 3: "Tuesday", 4: "Wednesday", 5: "Thursday", 6: "Friday", 7: "Saturday"}.get(num, "Wrong, please enter a number between 1 and 7")
    # dictionary method get() returns the value for the inserted key or the default message if the value is not found


def whatday(num):
    if num <= 0 or num > 7: return "Wrong, please enter a number between 1 and 7"
    weekdays = ["", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
    return weekdays[num]

def whatday(num):
    weekdays = {
        1: 'Sunday',
        2: 'Monday',
        3: 'Tuesday',
        4: 'Wednesday',
        5: 'Thursday',
        6: 'Friday',
        7: 'Saturday'
    }
    return weekdays[num] if 0 < num <=7 else 'Wrong, please enter a number between 1 and 7'
  # Put your code here


wd = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
def whatday(num):
    return wd[num-1] if num-1 in range(7) else "Wrong, please enter a number between 1 and 7"

def whatday(num):
    dic = {1: "Sunday",
            2: "Monday",
            3: "Tuesday",
            4: "Wednesday",
            5: "Thursday",
            6: "Friday",
            7: "Saturday"}
    return dic[num] if num in dic.keys() else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    arr = {1:'Sunday', 2:'Monday', 3:'Tuesday',4:'Wednesday', 5:'Thursday',
          6:'Friday',7:'Saturday'}
    
    if num <= 7 and num > 0: return arr[num]
    else: return 'Wrong, please enter a number between 1 and 7'

def whatday(num=''):
    if num > 7 or num == 0:
        return 'Wrong, please enter a number between 1 and 7'
    else:
           return {1 : 'Sunday',
                   2 : 'Monday',
                   3 : 'Tuesday',
                   4 : 'Wednesday',
                   5 : 'Thursday',
                   6 : 'Friday',
                   7 : 'Saturday'}.get(num)


def whatday(num):
    return {1 : "Sunday",2 : "Monday",3 : "Tuesday",4 : "Wednesday",5 : "Thursday",6 : "Friday",7 : "Saturday"}[num] if num < 8 and num > 0 else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    weeks = {1:"Sunday",2:"Monday",3:"Tuesday",4:"Wednesday",5:"Thursday",6:"Friday",7:"Saturday"}
    return weeks.get(num,"Wrong, please enter a number between 1 and 7")

def whatday(num):
    k = {1: "Sunday", 2: "Monday", 3: "Tuesday", 4: "Wednesday", 5: "Thursday", 6: "Friday", 7: "Saturday"}
    if num in list(k.keys()):
        return k[num]
    else:
        return 'Wrong, please enter a number between 1 and 7'
# Put your code here


def whatday(num):
    days = {
        1:'Sunday',
        2:'Monday',
        3:'Tuesday',
        4:'Wednesday',
        5:'Thursday',
        6:'Friday',
        7:'Saturday',
    }
    try:
        return days[num]
    except KeyError as e:
        return 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    
    day = ["Wrong, please enter a number between 1 and 7","Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
    
    if num <= 7:
        return day[num]
    
    else:
        return "Wrong, please enter a number between 1 and 7"

def whatday(num):
    d = {1: "Sunday",
         2: "Monday",
         3: "Tuesday",
         4: "Wednesday",
         5: "Thursday",
         6: "Friday",
         7: "Saturday"}
    if 1 <= num <= 7:
        return d[num]
    else:
        return 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    days = {
        1: "Sunday", 
        2: "Monday", 
        3: "Tuesday", 
        4: "Wednesday", 
        5: "Thursday", 
        6: "Friday", 
        7: "Saturday"}
    return days.get(num) if num in days.keys() else "Wrong, please enter a number between 1 and 7"

def whatday(num):
    print(num)
    days = {
        1: "Sunday", 
        2: "Monday", 
        3: "Tuesday", 
        4: "Wednesday", 
        5: "Thursday", 
        6: "Friday", 
        7: "Saturday"}
    return days.get(num) if num in days.keys() else "Wrong, please enter a number between 1 and 7"

def whatday(Vaðlaheiðarvegavinnuverkfærageymsluskúraútidyralyklakippuhringur):
    if Vaðlaheiðarvegavinnuverkfærageymsluskúraútidyralyklakippuhringur == 1:
        return 'Sunday'
    elif Vaðlaheiðarvegavinnuverkfærageymsluskúraútidyralyklakippuhringur == 2:
        return 'Monday'
    elif Vaðlaheiðarvegavinnuverkfærageymsluskúraútidyralyklakippuhringur == 3:
        return 'Tuesday'
    elif Vaðlaheiðarvegavinnuverkfærageymsluskúraútidyralyklakippuhringur == 4:
        return 'Wednesday'
    elif Vaðlaheiðarvegavinnuverkfærageymsluskúraútidyralyklakippuhringur == 5:
        return 'Thursday'
    elif Vaðlaheiðarvegavinnuverkfærageymsluskúraútidyralyklakippuhringur == 6:
        return 'Friday'
    elif Vaðlaheiðarvegavinnuverkfærageymsluskúraútidyralyklakippuhringur == 7:
        return 'Saturday'
    return "Wrong, please enter a number between 1 and 7"

def whatday(n):
    if 0<n<8:
        
        return['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'][n-1].title()
    else:
        return "Wrong, please enter a number between 1 and 7"

def whatday(num):
    if num <= 0 or num > 7:
        return "Wrong, please enter a number between 1 and 7"
    else:
        if num == 1:
            return "Sunday"
        elif num == 2:
            return "Monday"
        elif num == 3:
            return "Tuesday"
        elif num == 4:
            return "Wednesday"
        elif num == 5:
            return "Thursday"
        elif num == 6:
            return "Friday"
        else:
            return "Saturday"

def whatday(num):
    if num == 1:
        return 'Sunday'
    elif num == 2:
        return 'Monday'
    elif num == 3:
        return 'Tuesday'
    elif num == 4:
        return 'Wednesday'
    elif num == 5:
        return 'Thursday'
    elif num == 6:
        return 'Friday'
    elif num == 7:
        return 'Saturday'
    elif num > 7:
        return "Wrong, please enter a number between 1 and 7"
    elif num == 0:
        return "Wrong, please enter a number between 1 and 7"


def whatday(num):
    l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
    return l[num-1] if 0<num<8 else "Wrong, please enter a number between 1 and 7"


def whatday(n):
    l=['','Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Wrong, please enter a number between 1 and 7']
    return l[n] if 0<n<8 else l[8]

def whatday(num):
    return ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")[num-1] if 0<num<=7 else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    
    d = {1:"Sunday", 
     2:"Monday",
     3:"Tuesday",
     4:"Wednesday",
     5:"Thursday",
     6:"Friday",
     7:"Saturday",
    }
    
    if num < 8 and num > 0:
        return d[num]
    else: 
        return "Wrong, please enter a number between 1 and 7"
    


def whatday(num):
    lst=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
    return lst[num-1] if 0<num<8 else "Wrong, please enter a number between 1 and 7"

def whatday(num):
    if num == 1:
        result = "Sunday"
    elif num == 2:
        result = "Monday"
    elif num == 3:
        result = "Tuesday"
    elif num == 4:
        result = "Wednesday"
    elif num == 5:
        result = "Thursday"
    elif num == 6:
        result = "Friday"
    elif num == 7:
        result = "Saturday"
    else:
        result = "Wrong, please enter a number between 1 and 7"
    return result

def whatday(num):
    err="Wrong, please enter a number between 1 and 7"
    try : return [err,"Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][int(num)]
    except : return err 

DAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']

def whatday(num):
    return DAYS[num - 1] if 1 <= num <= 7 else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    x = {1:"Sunday", 2:"Monday", 3:"Tuesday", 4:"Wednesday", 5:"Thursday", 6:"Friday", 7:"Saturday"}
    if num in x:
        return x[num]
    else:
        return "Wrong, please enter a number between 1 and 7"

def whatday(num):
    if num == 2:
        return "Monday"
    elif num == 3:
        return "Tuesday"
    elif num == 4:
        return "Wednesday"
    elif num == 5:
        return "Thursday"
    elif num == 6:
        return "Friday"
    elif num == 7:
        return "Saturday"
    elif num == 1:
        return "Sunday"
    else:
        return 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    l=[0,'Sunday',"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]
    return "Wrong, please enter a number between 1 and 7" if num>7 or num<1 else l[num]

def whatday(num):
    return {1: "Sunday", 2: "Monday", 3: "Tuesday", 4: "Wednesday", 5: "Thursday", 6: "Friday", 7: "Saturday"}.setdefault(num, 'Wrong, please enter a number between 1 and 7')

def whatday(num):
    days = {
        1: "Sunday",
        2: "Monday",
        3: "Tuesday",
        4: "Wednesday",
        5: "Thursday",
        6: "Friday",
        7: "Saturday"
    }
    return days.get(num) if num > 0 and num < 8 else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    if num in [1,2,3,4,5,6,7]:
        return ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'][num-1]
    else:
        return 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
    return days[num - 1] if num <= len(days) and num != 0 else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    Dict_days = {
        1 : "Sunday",
        2 : "Monday",
        3 : "Tuesday",
        4 : "Wednesday",
        5 : "Thursday",
        6 : "Friday",
        7 : "Saturday"
    }
    
    return Dict_days.get(num, 'Wrong, please enter a number between 1 and 7')

def whatday(num):
    d = {
    1: "Sunday",
    2: "Monday",
    3: "Tuesday",
    4: "Wednesday",
    5: "Thursday",
    6: "Friday",
    7: "Saturday"
    }
    
    return d.get(num) if num in d else 'Wrong, please enter a number between 1 and 7'

def whatday(num):
  if num <= 0 or num >= 8: return "Wrong, please enter a number between 1 and 7"

  days = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
  return days[num-1]


def whatday(num):
  week_dic = {
      1: 'Sunday',
      2: 'Monday',
      3: 'Tuesday',
      4: 'Wednesday',
      5: 'Thursday',
      6: 'Friday',
      7: 'Saturday'
  }
  
  if num in week_dic:
      return week_dic[num]
  
  return 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    arr = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
    if num > 0 and num < 8:
        return str(arr[num-1])
    else:
        return "Wrong, please enter a number between 1 and 7"

def whatday(num):
  # Put your code here
  weekdays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']  
  if num in range(1,8):
      return weekdays[num - 1]
  return 'Wrong, please enter a number between 1 and 7'

weekdays = {1:'Sunday',
            2:'Monday',
            3:'Tuesday',
            4:'Wednesday',
            5:'Thursday',
            6:'Friday',
            7:'Saturday'}

def whatday(num):
    try:
        return weekdays[num]
    except:
        return 'Wrong, please enter a number between 1 and 7'

def whatday(num):
    print(num)
    days =  ["Sunday","Monday","Tuesday", "Wednesday","Thursday","Friday","Saturday"] 
    return days.pop(num-1) if num <= len(days) and num >0 else "Wrong, please enter a number between 1 and 7"