Skip to content

Commit 025552e

Browse files
committed
Vazifa
0 parents  commit 025552e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

vazifa.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
a = input().split() #how to input: 01.02.2023 12:30
2+
date = list(map(int, a[0].split('.')))
3+
time = list(map(int, a[1].split(':')))
4+
dic = {1:'yanvar',2:'fevral',3:'mart',4:'aprel',5:'may',6:'iyun',7:'iyul',8:'avgust',9:'sentyabr',10:'oktyabr',11:'noyabr',12:'dekabr'}
5+
print(f"\n{str(date[0]).zfill(2)}-{dic[date[1]]} 20{str(date[2])[2::]}-yil")
6+
print(f"{time[0]}-soat {time[1]}-minut")

0 commit comments

Comments
 (0)