Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
#Python 3, 69 68 bytes II didn't want to copy the Python 2 answer, so mine is slightly longer.
from math import* x=lambda v,a:print(max(0,min(ceil(v/a/70),10))*'*')
Saved 1 byte thanks to Program man
#Python 3, 69 68 bytes I didn't want to copy the Python 2 answer, so mine is slightly longer.
I didn't want to copy the Python 2 answer, so mine is slightly longer.
#Python 3, 6969 68 bytes I didn't want to copy the Python 2 answer, so mine is slightly longer.
from math import *import* x=lambda v,a:print(max(10,min(ceil(v/a/70),10))*'*')
#Python 3, 69 bytes I didn't want to copy the Python 2 answer, so mine is slightly longer.
from math import * x=lambda v,a:print(max(1,min(ceil(v/a/70),10))*'*')
#Python 3, 4969 bytes I didn't want to copy the Python 2 answer, so mine is slightly longer.
lambdafrom math import * x=lambda v,a:print(max(1,min(ceil(v/a/70),10))*'*')
Also requires an from math import ceil, I don't know if I need to include that in the byte count
from math import ceil
#Python 3, 49 bytes I didn't want to copy the Python 2 answer, so mine is slightly longer.
lambda v,a:print(max(1,min(ceil(v/a/70),10))*'*')