Re: Check if this basic Python script is coded right

2013-10-27 Thread Tim Delaney
On 27 October 2013 23:20, rusi wrote: > On Saturday, October 26, 2013 11:50:33 PM UTC+5:30, MRAB wrote: > > On 26/10/2013 18:36, HC wrote: > > > I'm doing my first year in university and I need help with this basic > assignment. > > > > > > Assignment: Write Python script that prints sum of cubes

Re: Check if this basic Python script is coded right

2013-10-27 Thread rusi
On Saturday, October 26, 2013 11:50:33 PM UTC+5:30, MRAB wrote: > On 26/10/2013 18:36, HC wrote: > > I'm doing my first year in university and I need help with this basic > > assignment. > > > > Assignment: Write Python script that prints sum of cubes of numbers between > > 0-200 that are multipl

Re: Check if this basic Python script is coded right

2013-10-26 Thread Terry Reedy
On 10/26/2013 1:36 PM, HC wrote: I'm doing my first year in university and I need help with this basic assignment. Assignment: Write Python script that prints sum of cubes of numbers between 0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=? My script: count = 0 answer = 0 while cou

Re: Check if this basic Python script is coded right

2013-10-26 Thread Terry Reedy
On 10/26/2013 2:20 PM, MRAB wrote: On 26/10/2013 18:36, HC wrote: I'm doing my first year in university and I need help with this basic assignment. Assignment: Write Python script that prints sum of cubes of numbers between 0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=? My script:

Re: Check if this basic Python script is coded right

2013-10-26 Thread MRAB
On 26/10/2013 18:36, HC wrote: I'm doing my first year in university and I need help with this basic assignment. Assignment: Write Python script that prints sum of cubes of numbers between 0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=? My script: count = 0 answer = 0 while count

Re: Check if this basic Python script is coded right

2013-10-26 Thread John Ladasky
HC, you have come straight out and told us honestly that you are seeking help with homework. That is refreshing. You should know that people in programming newsgroups generally do not want to do your homework for you. Many of us are willing to teach you HOW to program, but that's different

Re: Check if this basic Python script is coded right

2013-10-26 Thread Mark Lawrence
On 26/10/2013 18:36, HC wrote: I'm doing my first year in university and I need help with this basic assignment. Assignment: Write Python script that prints sum of cubes of numbers between 0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=? My script: count = 0 answer = 0 while count

Re: Check if this basic Python script is coded right

2013-10-26 Thread Joel Goldstick
On Sat, Oct 26, 2013 at 1:36 PM, HC wrote: > I'm doing my first year in university and I need help with this basic > assignment. > > Assignment: Write Python script that prints sum of cubes of numbers between > 0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=? > > My script: > count =

Check if this basic Python script is coded right

2013-10-26 Thread HC
I'm doing my first year in university and I need help with this basic assignment. Assignment: Write Python script that prints sum of cubes of numbers between 0-200 that are multiples of 3. 3^3+6^3+9^3+12^3+198^3=? My script: count = 0 answer = 0 while count<200: if count%3==0: