What is the simplest method to get a vector result?
fl
rxjwg98 at gmail.com
Fri Jul 25 03:29:36 CEST 2014
On Thursday, July 24, 2014 10:25:52 AM UTC-4, Marko Rauhamaa wrote:
> #!/usr/bin/env python3
>
> import math
>
> for x in range(0, 361, 15):
>
> print(int((math.sin(x / 180 * math.pi) + 1) * 30 + 0.5) * " " + "*")
>
> ========================================================================
>
>
> Marko
I like your method, but I get a column of '*'. Maybe you have other intentions
of your code. I am puzzled about the last part of your code and want to learn
from it (" * " " + "*" ").
>>> *
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
More information about the Python-list
mailing list