Skip to content
Open
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
15 changes: 15 additions & 0 deletions kravchenkoev/first/task1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
Вивести слова, які мястять хоча б одну велику букву
"""

text = str(input("Введите текст: "))
words = text.split()
i=0
big_words=[None]*len(words)
for word in words:
for letter in word:
if letter.isupper() == True:
big_words[i] = str (word)
i+=1
break
print(big_words)
10 changes: 10 additions & 0 deletions kravchenkoev/first/task2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
Порахувати кількість порожніх списків у заданому списку
"""

array=[1, [], 2, [], 8, []]
k=0
for i in array:
if i == []:
k+=1
print ("В списке есть" + str(k) + "пустіх множин")
3 changes: 3 additions & 0 deletions kravchenkoev/first/task3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Порахувати суму усіх парних та непарних чисел у заданому списку
"""
1 change: 1 addition & 0 deletions kravchenkoev/second/task1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@