Skip to main content
Commonmark migration
Source Link

Python 3, 69 68 bytes

#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.

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.

from math import* x=lambda v,a:print(max(0,min(ceil(v/a/70),10))*'*') 

Saved 1 byte thanks to Program man

added 9 characters in body
Source Link
Cody
  • 475
  • 2
  • 6

#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))*'*') 

Saved 1 byte thanks to Program man

#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, 69 68 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(0,min(ceil(v/a/70),10))*'*') 

Saved 1 byte thanks to Program man

deleted 74 characters in body
Source Link
Cody
  • 475
  • 2
  • 6

#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

#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))*'*') 

Also requires an from math import ceil, I don't know if I need to include that in the byte count

#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))*'*') 
Source Link
Cody
  • 475
  • 2
  • 6
Loading