Skip to content

Conversation

@UlianaDahnovska
Copy link

Друга контрольна, Дахновська Уляна

list = []
text =text.split(" ")
for word in text:
if (i.isupper() for i in word):

Choose a reason for hiding this comment

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

Change condition to "word[0].isupper()"

Comment on lines +12 to +13
else:
print('Кінець')

Choose a reason for hiding this comment

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

delete this
else: print('Кінець')

if isinstance(list[i], int):
sum = sum + list[i]
elif isinstance(list[i], str):
q = q + list[i] +' '

Choose a reason for hiding this comment

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

delete this: +' '

'''

import re
re_form = re.compile(r'/d/d')

Choose a reason for hiding this comment

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

change this: /d/d to this: \d\d

msec = int(validator(re_form ,'Введіть мілісекунди(необ.) ms: '))

time = hours*3600 + min*60 + sec + msec*0.001
print(time) No newline at end of file

Choose a reason for hiding this comment

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

name programs output: print("Результат: " + time)`

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