Post History
Python 3, 48 bytes def f(n,d):return f"[{(50*n+d//2)//d*'|':-<50}]" Try it online!
Answer
#1: Initial revision
# [Python 3], 48 bytes <!-- language-all: lang-python --> def f(n,d):return f"[{(50*n+d//2)//d*'|':-<50}]" [Try it online!][TIO-m3bph6nl] [Python 3]: https://docs.python.org/3/ [TIO-m3bph6nl]: https://tio.run/##ldBBCoMwEAXQfU8xZGO0EaPWjdSThCykJlQoUZK4KOrZrVgUqaS0fxX4kzcw7dPeG5VOUyUkSKxI5eda2E4rkIj1OKOBOldRlPhRVAXe4OXhNaMjR5MVxt5KIwwUwIDhmCQ@AcQGV0JXOOLkBIcwnJD0O@mk3WR6ISmlv7EH3MlmJNuZ4T@ZTeAn2WhYLwq12t4mX/ZpYbqHnS8tcbBWjHJ/KVtdK4slkv2uGufh/mN6RO8PpTFC2w0ttm0s5tML "Python 3 – Try It Online"