Quick actions

cmd+k|ctrl+k

Navigation

Languages

Exercises 3.5

Snippet info

Language

Python

Visibility

public

Author

xuandieu.fetel

Created

2016-09-20T07:05:28Z

Updated

2016-09-20T07:05:28Z

month = 12
months = ['January','February','March','April','May','June','July','August','September','Octocber','November','December']
for i,j in list(enumerate(months, start=1)):
	if (i == 4 or i == 6 or i == 9 or i == 11) and i == month:
		print(j, 30)
	if (i == 1 or i == 3 or i == 5 or i == 7 or i == 8 or i == 10 or i == 12) and i == month:
		print(j, 31)
	if i==2 and i == month:
		print(j, 28)
INFO