-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path34practiceQs_1.py
More file actions
39 lines (29 loc) · 1.09 KB
/
34practiceQs_1.py
File metadata and controls
39 lines (29 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# x = int(input())
# y = int(input())
# z = int(input())
# n = int(input())
# result = [ ]
# for i in range(x+1):
# for j in range(y+1):
# for z in range(z+1):
# if i+j+z != n:
# result.append([i,j,z])
# print(result)
# x = int(input("Enter x: "))
# y = int(input("Enter y: "))
# z = int(input("Enter z: "))
# n = int(input("Enter n: "))
# # Using list comprehension to generate the desired list of coordinates
# result = [[i, j, k] for i in range(x+1) for j in range(y+1) for k in range(z+1) if i + j + k != n]
# print(result)
import calendar
# Read the input date
month, day, year = map(int, input().split())
# Get the weekday as an integer (0=Monday, 1=Tuesday, ..., 6=Sunday)
weekday_int = calendar.weekday(year, month, day)
# List of days in uppercase corresponding to the integers returned by calendar.weekday
days = ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY"]
# Get the corresponding day name
day_of_week = days[weekday_int]
# Print the day of the week
print(day_of_week)