diff --git a/zad_dom3/desktop.ini b/zad_dom3/desktop.ini new file mode 100644 index 0000000..af6202b --- /dev/null +++ b/zad_dom3/desktop.ini @@ -0,0 +1,4 @@ +[LocalizedFileNames] +wdi zaddom 3.docx=@wdi zaddom 3.docx,0 +diagram b.png=@diagram b.png,0 +diagram a.png=@diagram a.png,0 diff --git a/zad_dom3/diagram a.png b/zad_dom3/diagram a.png new file mode 100644 index 0000000..b77c6eb Binary files /dev/null and b/zad_dom3/diagram a.png differ diff --git a/zad_dom3/diagram b.png b/zad_dom3/diagram b.png new file mode 100644 index 0000000..62905a4 Binary files /dev/null and b/zad_dom3/diagram b.png differ diff --git a/zad_dom3/wdi zaddom 3.docx b/zad_dom3/wdi zaddom 3.docx new file mode 100644 index 0000000..3df1eb6 Binary files /dev/null and b/zad_dom3/wdi zaddom 3.docx differ diff --git a/zad_dom4/kolory cmyk.docx b/zad_dom4/kolory cmyk.docx new file mode 100644 index 0000000..2cd86b2 Binary files /dev/null and b/zad_dom4/kolory cmyk.docx differ diff --git a/zad_dom4/polerowany morse.py b/zad_dom4/polerowany morse.py new file mode 100644 index 0000000..31cfd48 --- /dev/null +++ b/zad_dom4/polerowany morse.py @@ -0,0 +1,33 @@ +MORSE_CODE_POL_DICT = { 'A':'.-', 'B':'-...', + 'C':'-.-.', 'D':'-..', 'E':'.', + 'F':'..-.', 'G':'--.', 'H':'....', + 'I':'..', 'J':'.---', 'K':'-.-', + 'L':'.-..', 'M':'--', 'N':'-.', + 'O':'---', 'P':'.--.', 'Q':'--.-', + 'R':'.-.', 'S':'...', 'T':'-', + 'U':'..-', 'V':'...-', 'W':'.--', + 'X':'-..-', 'Y':'-.--', 'Z':'--..', + '1':'.----', '2':'..---', '3':'...--', + '4':'....-', '5':'.....', '6':'-....', + '7':'--...', '8':'---..', '9':'----.', + '0':'-----', ', ':'--..--', '.':'.-.-.-', + '?':'..--..', '/':'-..-.', '-':'-....-', + '(':'-.--.', ')':'-.--.-', + 'Ą':'.-.-','Ć':'-.-..','Ę':'..-..', + 'Ł':'.-..-','Ń':'--.--','Ó':'---.', + 'Ś':'...-...','Ż':'--..-.','Ź':'--..-' + } + +def encrypt(message): + cipher = '' + for letter in message: + if letter != ' ': + cipher += MORSE_CODE_POL_DICT[letter.upper()] + ' ' + else: + cipher += ' ' + + return cipher + +text = input('Input text: ') + +print(encrypt(text)) \ No newline at end of file