Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Seminar 3/from-class/problem2.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Letters contained in a string

Given a list of letters and a string, check if all the list's elements are contained in the string
Given a list of letters and a string, check if all the list's elements are contained in the string.

---
Sample input:
Expand Down
2 changes: 1 addition & 1 deletion Seminar 3/from-class/problem3.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Draw a right-angled triangle

Given an integer number, print a right-angled triangle using the char <i>*</i> with as many lines as the given integer
Given an integer number, print a right-angled triangle using the char <i>*</i> with as many lines as the given integer.

---
Sample input:
Expand Down
2 changes: 1 addition & 1 deletion Seminar 3/from-class/problem4.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Draw an oposite right-angled triangle

Given an integer number, print a right-angled triangle on the opposite side using the char <i>*</i> with as many lines as the given integer
Given an integer number, print a right-angled triangle on the opposite side using the char <i>*</i> with as many lines as the given integer.

---
Sample input:
Expand Down
2 changes: 1 addition & 1 deletion Seminar 3/from-class/problem5.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Draw a pyramid

Given an integer number, print a pyramid using the char <i>*</i> with as many lines as the given integer
Given an integer number, print a pyramid using the char <i>*</i> with as many lines as the given integer.

---
Sample input:
Expand Down
13 changes: 13 additions & 0 deletions Seminar 3/homework/problem1-solved.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
LETTERS_TO_EXCLUDE = ['a', 'e', 'i', 'o', 'u']

words = ["vowel", "consonant"]
new_words = []

for word in words:
new_word = [] # the word will be array of characters wich will later be joined in a string
for letter in word:
if letter.casefold() not in LETTERS_TO_EXCLUDE:
new_word.append(letter)
new_words.append("".join(new_word))

print(new_words)