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


Groups > comp.lang.python > #64241

Re: Python Simple program

References <a2e2f4a7-4c86-440e-839f-09745735efe0@googlegroups.com>
Date 2014-01-19 05:11 +1100
Subject Re: Python Simple program
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.5680.1390068689.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Sun, Jan 19, 2014 at 5:00 AM, indar kumar <indarkumar59@gmail.com> wrote:
> Hello, I am a newbie. Can somebody help me write the code for following program?
>
>
> Write a program that takes student grades and prints out the GPA. The information is input, one student per line in the format: <student id> <course1 grade> <course2 grade> ...
> The number of students is not known in advance. You should prompt the user for more until they enter an empty line. The number of courses per student varies and is also not known in advance. You should read as many grades as are entered on the line.

No.

This is homework, and you should do it yourself - otherwise you are
cheating yourself, cheating on your course, and ultimately, cheating
an employer by making him/her think you know how to do something when
you don't.

If you write the code yourself and then have questions, then by all
means, bring those questions to us! We're happy to help you learn. But
that's quite different from outright doing your homework for you.

ChrisA

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


Thread

Python Simple program indar kumar <indarkumar59@gmail.com> - 2014-01-18 10:00 -0800
  Re: Python Simple program Chris Angelico <rosuav@gmail.com> - 2014-01-19 05:11 +1100
  Re: Python Simple program Roy Smith <roy@panix.com> - 2014-01-18 13:27 -0500
  Re: Python Simple program indar kumar <indarkumar59@gmail.com> - 2014-01-18 10:49 -0800
    Re: Python Simple program Roy Smith <roy@panix.com> - 2014-01-18 14:07 -0500
  Re: Python Simple program Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-01-18 15:25 -0500

csiph-web