Skip to content

Commit

Permalink
added problem_b in python
Browse files Browse the repository at this point in the history
  • Loading branch information
puRe1337 committed Dec 2, 2017
1 parent 3e32be0 commit 8bf7155
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 2017/problem_b/problem_b.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
days = ["Friday", "Saturday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday"]
inputs = []
eingabe = ""
while True:
eingabe = input("")
if eingabe == "end":
break
inputs.append(eingabe)

for a in inputs:
asdf = a.split(" ")
valueinteger = int(asdf[1]) - 1
print(days[valueinteger % 7])

0 comments on commit 8bf7155

Please sign in to comment.