2
General
import typing as tp => from typing import Union reduces acronyms reader needs to remmber
Backslashes are scary. Adding parentheses or in this case trusting the existing ones will be easier to read.
def summation(count: int, bottom_var: str, expression: str, precision: int = 10, \
decimal: bool = False) -> _num:
Again, backslashes are scary.
...
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
mathematics × 528python × 167
performance × 121
algorithm × 91
java × 88
c++ × 75
programming-challenge × 62
python-3.x × 59
beginner × 57
c# × 45
c × 40
time-limit-exceeded × 37
javascript × 31
matrix × 28
numerical-methods × 20
primes × 17
integer × 15
numpy × 14
ruby × 13
haskell × 13
recursion × 13
reinventing-the-wheel × 13
floating-point × 12
combinatorics × 11
statistics × 10