Skip to content

Conversation

@COOLizh
Copy link

@COOLizh COOLizh commented Apr 25, 2019

No description provided.

polish_notation += stack.pop()
stack.append(symbol)

return polish_notation, ''
Copy link
Collaborator

Choose a reason for hiding this comment

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

Для чего тут возвращается пустая строка? выглядит странно

break
polish_notation += tmp + ' '

return polish_notation, ''
Copy link
Collaborator

Choose a reason for hiding this comment

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

и тут пустая строка

while stack:
polish_notation += stack.pop() + ' '

return polish_notation
Copy link
Collaborator

Choose a reason for hiding this comment

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

а тут уже пустой строки нет



def main():
expression = str(input())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Нужно добавить обработку исключений

entry_points={
'console_scripts': ['pycalc = pycalc.main:main']
}
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

нет пустой строки в конце файла

@COOLizh COOLizh changed the title [WIP] Vladislav Kulizhenko Vladislav Kulizhenko May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants