Re: Need help with programming in python for class (beginner level)

2013-12-01 Thread Julio Schwarzbeck
On 11/29/2013 04:31 PM, farhan...@gmail.com wrote: It's for a school assignment. Basically, I need to roll 5 dies with 6 sides each. So basically, 6 random numbers. That part is easy. Then I need to add it up. Ok, done that. However, I also need to say something along the lines of "your total n

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Johannes Findeisen
On Sat, 30 Nov 2013 01:08:28 + Mark Lawrence wrote: > On 30/11/2013 01:06, Tim Chase wrote: > > On 2013-11-30 00:59, Mark Lawrence wrote: > >> Wrong again, or at least overengineered. > >> > >> print "The total rolled was:", number, " > > ^ > >> > >

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Mark Lawrence
On 30/11/2013 01:06, Tim Chase wrote: On 2013-11-30 00:59, Mark Lawrence wrote: Wrong again, or at least overengineered. print "The total rolled was:", number, " ^ You don't even need the spaces as print kindly does it for you :) but you could a

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Tim Chase
On 2013-11-30 00:59, Mark Lawrence wrote: > Wrong again, or at least overengineered. > > print "The total rolled was:", number, " ^ > > You don't even need the spaces as print kindly does it for you :) but you could at least include the missing quotati

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Mark Lawrence
On 30/11/2013 00:49, Johannes Findeisen wrote: On Sat, 30 Nov 2013 01:38:36 +0100 Johannes Findeisen wrote: On Fri, 29 Nov 2013 16:31:21 -0800 (PST) farhan...@gmail.com wrote: print "The total rolled was: "number" " The above line is wrong. You did it right below: print "Thanks for playin

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Tim Chase
On 2013-11-29 16:31, farhan...@gmail.com wrote: > It's for a school assignment. Thanks for the honesty--you'll get far more helpful & useful replies because of that. :-) > put them into a variable I called "number" but it seems to glitch > out that variable is in any command other than "print num

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Johannes Findeisen
On Sat, 30 Nov 2013 01:38:36 +0100 Johannes Findeisen wrote: > On Fri, 29 Nov 2013 16:31:21 -0800 (PST) > farhan...@gmail.com wrote: > > > print "The total rolled was: "number" " > > The above line is wrong. You did it right below: > > > print "Thanks for playing, " + name + "." > > print "Yo

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Eduardo A . Bustamante López
On Fri, Nov 29, 2013 at 04:31:21PM -0800, farhan...@gmail.com wrote: > It's for a school assignment. Basically, I need to roll 5 dies with 6 sides > each. So basically, 6 random numbers. That part is easy. Then I need to add > it up. Ok, done that. However, I also need to say something along the

Re: Need help with programming in python for class (beginner level)

2013-11-29 Thread Johannes Findeisen
On Fri, 29 Nov 2013 16:31:21 -0800 (PST) farhan...@gmail.com wrote: > print "The total rolled was: "number" " The above line is wrong. You did it right below: > print "Thanks for playing, " + name + "." > print "You bet the total would be at least " + value + "." Do this: print "The total ro

Need help with programming in python for class (beginner level)

2013-11-29 Thread farhanken
It's for a school assignment. Basically, I need to roll 5 dies with 6 sides each. So basically, 6 random numbers. That part is easy. Then I need to add it up. Ok, done that. However, I also need to say something along the lines of "your total number was X". That's what I'm having trouble with. I