Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75191
| X-Received | by 10.70.11.197 with SMTP id s5mr6396888pdb.0.1406251776562; Thu, 24 Jul 2014 18:29:36 -0700 (PDT) |
|---|---|
| X-Received | by 10.140.49.144 with SMTP id q16mr190365qga.1.1406251776513; Thu, 24 Jul 2014 18:29:36 -0700 (PDT) |
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!h18no7091515igc.0!news-out.google.com!cz11ni22298qab.1!nntp.google.com!j15no2429882qaq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Thu, 24 Jul 2014 18:29:36 -0700 (PDT) |
| In-Reply-To | <8761imu93j.fsf@elektro.pacujo.net> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=64.229.140.25; posting-account=SZ_svQkAAACWRFG2bDA-zgq8ILyl4-vo |
| NNTP-Posting-Host | 64.229.140.25 |
| References | <95524a09-7792-4cec-8c7e-7525a358ee8c@googlegroups.com> <8761imu93j.fsf@elektro.pacujo.net> |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <ffce5f1b-91b6-4ac1-99dc-e3eef51694d3@googlegroups.com> (permalink) |
| Subject | Re: What is the simplest method to get a vector result? |
| From | fl <rxjwg98@gmail.com> |
| Injection-Date | Fri, 25 Jul 2014 01:29:36 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.python:75191 |
Show key headers only | View raw
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 (" * " " + "*" ").
>>> *
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
What is the simplest method to get a vector result? fl <rxjwg98@gmail.com> - 2014-07-24 05:53 -0700
Re: What is the simplest method to get a vector result? Alan <alan.isaac@gmail.com> - 2014-07-24 06:10 -0700
Re: What is the simplest method to get a vector result? Vlastimil Brom <vlastimil.brom@gmail.com> - 2014-07-24 15:49 +0200
Re: What is the simplest method to get a vector result? fl <rxjwg98@gmail.com> - 2014-07-25 16:08 -0700
Re: What is the simplest method to get a vector result? Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-25 18:37 -0600
Re: What is the simplest method to get a vector result? fl <rxjwg98@gmail.com> - 2014-07-25 19:17 -0700
Re: What is the simplest method to get a vector result? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-24 14:06 +0000
Re: What is the simplest method to get a vector result? Marko Rauhamaa <marko@pacujo.net> - 2014-07-24 17:25 +0300
Re: What is the simplest method to get a vector result? fl <rxjwg98@gmail.com> - 2014-07-24 18:29 -0700
Re: What is the simplest method to get a vector result? Ian Kelly <ian.g.kelly@gmail.com> - 2014-07-24 19:50 -0600
Re: What is the simplest method to get a vector result? Dave Angel <davea@davea.name> - 2014-07-24 22:44 -0400
Re: What is the simplest method to get a vector result? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-25 03:23 +0000
csiph-web