We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
0 parents commit 025552eCopy full SHA for 025552e
vazifa.py
@@ -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