[Tutor] Fwd: Re: Simple guessing game - need help with the math

2014-08-13 Thread Greg Markham
he issue I'm running into with rounding. I will try that approach; thank-you. > > But my curiosity is still begging me for an answer regarding my original approach. Is there a way to manage the functionality of be round function such that it does not strip any data to the right of the decima

Re: [Tutor] Exercise to work on

2014-08-13 Thread Greg Markham
Keith, This should get you started... http://learnpythonthehardway.org/book/ http://www.codecademy.com/en/tracks/python http://docs.python-guide.org/en/latest/intro/learning/ Happy coding! --Greg On Tue, Aug 12, 2014 at 1:52 PM, keith papa wrote: > Hi, am a newbie to python and I wonderin

[Tutor] Simple guessing game - need help with the math

2014-08-13 Thread Greg Markham
Hello again, I'm working on one of the more advanced (at this stage of my learning process), albeit optional, assignments. The objective is to write a program that tries to guess your number from 1 to 100. After each guess, you tell it if it's (h)igher, (l)ower or (c)orrect, and eventually it'll

[Tutor] Printing multi-line variables horizontally

2014-08-08 Thread Greg Markham
Hello, Python novice back again. :) I'm making progress in my learning process, but struggling whenever attempting to creatively go beyond what's required in the various chapter assignments. For example, there's a simple random die roller program that looks like the following: # Craps Roller

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Greg Markham
On Mon, Aug 4, 2014 at 7:38 PM, Steven D'Aprano wrote: > On Mon, Aug 04, 2014 at 04:44:46PM -0700, Greg Markham wrote: > > > Ok, when I try this from the Shell window, it works. When executing the > > full program from command line, it does not. Python versions from bot

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-05 Thread Greg Markham
On Mon, Aug 4, 2014 at 5:13 PM, Alan Gauld wrote: > On 05/08/14 00:21, Greg Markham wrote: > > but I'm running into a syntax error >> > > As others have said you are getting the expected error when running Python > v3 code under Python v2. > > How exac

[Tutor] Fwd: New to Python - print function - invalid syntax

2014-08-04 Thread Greg Markham
On Mon, Aug 4, 2014 at 1:38 PM, Danny Yoo wrote: > > > > but I'm running into a syntax error when running one of the unmodified > > > programs. On line 14, which reads: > > > > > > print("Here", end=" ") > > > > > > I'm receiving a syntax error which points to the end parameter. > > I'd like to

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-04 Thread Greg Markham
On Mon, Aug 4, 2014 at 11:52 AM, Joel Goldstick wrote: > On Mon, Aug 4, 2014 at 1:28 PM, Greg Markham > wrote: > > Hello, > > > > I'm extremely new to Python having only just started learning this week. > > I'm slowly plodding through a book, Python P

Re: [Tutor] New to Python - print function - invalid syntax

2014-08-04 Thread Greg Markham
On Mon, Aug 4, 2014 at 12:37 PM, Alex Kleider wrote: > On 2014-08-04 10:28, Greg Markham wrote: > >> Hello, >> >> I'm extremely new to Python having only just started learning this week. >> I'm slowly plodding through a book, Python Programming for t

[Tutor] New to Python - print function - invalid syntax

2014-08-04 Thread Greg Markham
Hello, I'm extremely new to Python having only just started learning this week. I'm slowly plodding through a book, Python Programming for the Absolute Beginner, 3rd ed