Skip to content

Commit 6f6cfbc

Browse files
committed
updated at 12:54 20.02.2023
1 parent ea1ddce commit 6f6cfbc

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

dictionary.txt

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
apple olma
2+
hello salom
3+
banana banan
4+
chair stul
5+
chick jo'ja
6+
cube kubik
7+
orange apelsin
8+
phone telefon
9+
python piton
10+
computer kompyuter

vazifa.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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")
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"
7+

0 commit comments

Comments
 (0)