-
Notifications
You must be signed in to change notification settings - Fork 730
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import random | ||
|
||
|
||
def get_wallie_action(): | ||
possible_actions = [ | ||
'считает новых пользователей', | ||
'готовит новую задачу', | ||
'что-то проверяет', | ||
'придумывает новую ачивку', | ||
'проверяет чью-то задачу', | ||
'проставляет ссылки в энциклопедии', | ||
'вычитывает статью', | ||
'ищет стажировки для студентов', | ||
] | ||
return 'Валли ' + random.choice(possible_actions) | ||
|
||
|
||
if __name__ == '__main__': | ||
action = get_wallie_action() | ||
print action |
4b8c39e
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.
в последней строчке сделал " print(action) "и программа заработала
4b8c39e
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.
Хорошо, осталось форкнуть репозиторий и поселить в нём правильную версию кода. Как это сделать, написано в задаче.
4b8c39e
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.
git push не получается - пишет: Internal Server Error occurred, error time: 2017-05-17 19:09:11