7-48 weeks abbreviation output (70 points)

Enter a number 1-7, the abbreviation of the name corresponding to the output of the week.
Mon. 1
2 Tue
. 3 Wed
. 4 Thu
. 5 Fri
. 6 Sat
. 7 the Sun

Input formats:

Enter a number between 1-7

Output formats:

Abbreviated weekday name corresponding to the output

Sample input:

Here we are given a set of inputs. E.g:

1

Sample output:

Given here corresponding output. E.g:

Mon
l=['Mon','Tue','Wed','Thu','Fri','Sat','Sun']
day=int(input())
print(l[day-1])

  

Guess you like

Origin www.cnblogs.com/aimilu/p/11819175.html