last lab
This commit is contained in:
31
labPython/lab1/TheOne23.py
Executable file
31
labPython/lab1/TheOne23.py
Executable file
@@ -0,0 +1,31 @@
|
||||
x = int(input())
|
||||
x = (x - 1996) % 12
|
||||
|
||||
text = ""
|
||||
match x:
|
||||
case 0:
|
||||
text = "крыса"
|
||||
case 1:
|
||||
text = "бык"
|
||||
case 2:
|
||||
text = "тигр"
|
||||
case 3:
|
||||
text = "кролик"
|
||||
case 4:
|
||||
text = "дракон"
|
||||
case 5:
|
||||
text = "змея"
|
||||
case 6:
|
||||
text = "лошадь"
|
||||
case 7:
|
||||
text = "овца"
|
||||
case 8:
|
||||
text = "обезьяна"
|
||||
case 9:
|
||||
text = "курица"
|
||||
case 10:
|
||||
text = "собака"
|
||||
case 11:
|
||||
text = "свинья"
|
||||
|
||||
print(text)
|
||||
Reference in New Issue
Block a user