ready_to_review#58
ready_to_review#58nazarStarenchenko wants to merge 1 commit intoigortereshchenko:masterfrom nazarStarenchenko:master
Conversation
EedSan
left a comment
There was a problem hiding this comment.
Три з чотирьох програм працюючі.
Завдання з другої контрольної роботи не закінчене
| @@ -0,0 +1,8 @@ | |||
| new_list = [1,2,4,5.1,5.5,6,7.7,67.6,453.6,4356.56,5645.6] | |||
There was a problem hiding this comment.
new_list = [1,2,4,5.1,5.5,6,7.7,67.6,453.6,4356.56,5645.6]
float_list = []
def get_floats_len(float_list, new_list):
for index in new_list:
if isinstance(index, float):
float_list.append(index)
print(len(float_list))
return len(float_list)
get_floats_len(float_list, new_list)
|
|
||
| for word in text_list: | ||
| if word[0].isupper(): | ||
| print(word) No newline at end of file |
There was a problem hiding this comment.
text = "hello my Name Is Nazar"
def get_all_upper_starts_words(text):
words_list = []
text_list = text.split()
for word in text_list:
if word[0].isupper():
words_list.append(word)
print(word)
return words_list
get_all_upper_starts_words(text)
| if index > 0: | ||
| counter = counter * index | ||
|
|
||
| print(counter) No newline at end of file |
There was a problem hiding this comment.
num_1 = float(input("1 number: "))
num_2 = float(input("2 number: "))
counter = 1
num_1_int = int(num_1)
num_2_int = int(num_2)
for number in range(num_1_int, num_2_int + 1):
if number > 0:
counter = counter * number
print(counter)
|
|
||
|
|
||
| main(date_list) | ||
|
|
No description provided.