Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #33446

Re: Python questions help

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'pycon': 0.03; 'patterns': 0.04; 'root': 0.04; 'subject:Python': 0.05; 'beginner': 0.05; 'nested': 0.07; 'raised': 0.07; 'subject:help': 0.07; 'python': 0.09; 'counting': 0.09; 'determines': 0.09; 'raised.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'anyway': 0.11; '1234': 0.16; '4321': 0.16; 'clear.': 0.16; 'computes': 0.16; 'integers,': 0.16; 'loops': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'result:': 0.16; 'subject:questions': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'input': 0.18; '(or': 0.18; 'example': 0.23; 'programming': 0.23; "i've": 0.23; 'tried': 0.25; 'header:User-Agent:1': 0.26; 'values': 0.26; 'separate': 0.27; 'i.e.': 0.27; 'header:X-Complaints-To:1': 0.28; '"do': 0.29; '(possibly': 0.29; 'lessons': 0.29; 'points': 0.29; 'read,': 0.29; "i'm": 0.29; 'maybe': 0.29; 'asked': 0.33; 'problem': 0.33; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'along': 0.35; 'nov': 0.35; "won't": 0.35; 'received:org': 0.36; 'but': 0.36; 'programmers': 0.36; 'charset:us-ascii': 0.36; 'display': 0.36; 'subject:: ': 0.38; 'positive': 0.38; 'some': 0.38; 'things': 0.38; 'to:addr:python.org': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'end': 0.40; 'think': 0.40; 'your': 0.60; 'skip:n 10': 0.63; 'making': 0.64; 'become': 0.65; 'total': 0.65; 'watching': 0.65; 'audience': 0.71; 'born': 0.71; 'square': 0.75; '321': 0.84; 'musical': 0.84; 'programs:': 0.84; 'received:sd.cox.net': 0.84; 'unclear': 0.84; 'gift': 0.89; '"how': 0.91; 'average': 0.93; 'instrument': 0.95; 'hands': 0.97
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From rh <richard_hubbe11@lavabit.com>
Subject Re: Python questions help
Date Fri, 16 Nov 2012 10:00:54 -0800
References <b581f506-bd54-47a3-af39-fc3e561cd188@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host ip68-6-43-149.sb.sd.cox.net
User-Agent dsodnetnin
X-Mailer EZnn0.37p
X-Newsreader EZnn0.37p
X-Gmane-NNTP-Posting-Host EZnn0.37p
Original-Received from slem by 1.1 with local
X-No-Archive yes
Archive no
X-Archive expiry=11
X-Archive encrypt
X-Operating-System Barebones_6.1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3754.1353089097.27098.python-list@python.org> (permalink)
Lines 73
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1353089097 news.xs4all.nl 6849 [2001:888:2000:d::a6]:51296
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:33446

Show key headers only | View raw


On Wed, 14 Nov 2012 17:47:33 -0800 (PST)
su29090 <129km09@gmail.com> wrote:

> I brought a python book and i'm a beginner and I read and tried to do
> the questions and I still get it wrong.

I am just starting to dabble in python. And just to let you know I was
watching a pycon (or somecon) and the speaker asked the audience
"How many of you are programmers?" 
Result: Lots of hands raised.

"How many people think programming skills are inherent?"
i.e. that some people are just born with the gift to be good programmers
Result: very few hands raised maybe a couple (possibly non-progammers??)

Anyway there's reason to keep at it and slog your way through to proficiency.
Because you will become proficient.  It's like reading a book by Neal Stephenson,
you read along and say wtf, but you keep reading and things start making some
sense....or learning to play a musical instrument or the like.

Anyway I've taken a stab at these but I won't be the spoiler. Although I admit
that a couple of lessons are unclear to me. For example "Do I get extra points
if I don't use nested loops where I don't need them?". Or do I get marked down?

I've completed the rows/columns of 123456 and the chessboard but the others
are not clear. I did the squareroot problem but that's unclear.

> 
> How to create a program that reads an uspecified number of integers,
> that determines how many positive and negative values have been read,
> and computes the total and average of the input values(not counting
> zeroes). My program have to end with the input 0 and have to display
> the average as a floating-point number.
> 
> 
> Use nested loops that display the following patterns in separate
> programs:
> 
> 1
> 12
> 123
> 1234
> 12345
> 123456
> 
> 123456
> 12345
> 1234
> 123
> 12
> 1
> 
>      1
>     21
>    321
>   4321
>  54321
> 654321
> 
> Write a program that computes the following summation:
> 
> 1/ 1+square root of 2 + 1/ 1+square root of 2 + square root of 3 + 1/
> 1+square root of 3 + square root of 4...+ 1/ 1+square root of 624 +
> square root of 625
> 
> How to  a program to draw a chessboard using range?
> 
> Thanks


-- 

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python questions help su29090 <129km09@gmail.com> - 2012-11-14 17:47 -0800
  Re: Python questions help Chris Angelico <rosuav@gmail.com> - 2012-11-15 13:01 +1100
  Re: Python questions help rh <richard_hubbe11@lavabit.com> - 2012-11-16 10:00 -0800
  Re: Python questions help Chris Angelico <rosuav@gmail.com> - 2012-11-17 05:08 +1100
    Re: Python questions help Neil Cerutti <neilc@norwich.edu> - 2012-11-19 14:57 +0000
      Re: Python questions help Chris Angelico <rosuav@gmail.com> - 2012-11-20 08:35 +1100

csiph-web