Skip to content

Conversation

@nazarStarenchenko
Copy link

No description provided.

Copy link

@EedSan EedSan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Три з чотирьох програм працюючі.
Завдання з другої контрольної роботи не закінчене

@@ -0,0 +1,8 @@
new_list = [1,2,4,5.1,5.5,6,7.7,67.6,453.6,4356.56,5645.6]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

программа не закінчена

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants