-
Notifications
You must be signed in to change notification settings - Fork 51
ready_to_review #49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
ready_to_review #49
Conversation
| list = [] | ||
| text =text.split(" ") | ||
| for word in text: | ||
| if (i.isupper() for i in word): |
There was a problem hiding this comment.
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()"
| else: | ||
| print('Кінець') |
There was a problem hiding this comment.
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] +' ' |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)`
Друга контрольна, Дахновська Уляна