Re: [Tutor] Trouble creating a pygame.font.SysFont, was Re: (no subject)

2014-12-01 Thread William Becerra
It seems I forgot to write pygame.init() Thank you guys for your time it is much appreciated.  On Saturday, 29 November 2014, 15:31, Peter Otten <__pete...@web.de> wrote: William wrote: Hello William; please provide a meaningful subject line so that your readers get a hint whether

Re: [Tutor] hexodecimal to decimal form

2014-11-11 Thread William Becerra
Thank you for your time On 11 Nov 2014 15:02, "Dave Angel" wrote: > William Becerra Wrote in message: > > Hello, I'm new to programming using Python 2.7.8 and Windows 8 OSI'm > reading How to Think Like a Computer Scientist - learning with pythonon > chapter 1

[Tutor] hexodecimal to decimal form

2014-11-11 Thread William Becerra
Hello, I'm new to programming using Python 2.7.8 and Windows 8 OS I'm reading How to Think Like a Computer Scientist - learning with python on chapter 12.2 theres the following code: class Point: pass blank = point() blank.x = 3.0 blank.y = 4.0 >>print blank.x 3.0 >>print blank.y 4.0 >>prin

Re: [Tutor] Strings

2014-11-06 Thread William Becerra
Thank you guys On Thu, Nov 6, 2014 at 3:39 AM, Dave Angel wrote: > William Becerra Wrote in message: > > > > have the following code: > names = "John, Cindy, Peter" > def find(str, ch, s): > index = 0 > while index < len(str): >

[Tutor] Strings

2014-11-05 Thread William Becerra
Hey, I'm new to programming running Python 2.7.8 Windows 8.1 I was reading 'How to Think Like a Computer Scientist- Learning with Python' chapter 7 sub-chapter 7.7 I have the following code: names = "John, Cindy, Peter" def find(str, ch, s): index = 0 while index < len(str): if s==

Re: [Tutor] Flow of execution of execution

2014-11-03 Thread William Becerra
Thank you guys On Mon, Nov 3, 2014 at 11:26 PM, Alan Gauld wrote: > On 03/11/14 18:04, William Becerra wrote: > > def printMultiples(n, high): >> i = 1 >> while i<=high: >> print n*i, "\t", >> i = i + 1 >>

[Tutor] Flow of execution of execution

2014-11-03 Thread William Becerra
hey, I'm new to programming. running Python 2.7.8 on windows 8 OS Im on chapter 6 of a book called 'How to Think Like a Computer Scientist-Learning with Python' here is the code: def printMultiples(n, high): i = 1 while i<=high: print n*i, "\t", i = i + 1 print def multi

[Tutor] Differentiating vowels from consonants

2014-10-26 Thread William Becerra
Hello, I'm new to programming Running Python 2.7.8 on Windows 8 OS I was reading http://www.sthurlow.com/python/lesson07/ Here there is an example of the for loop with a Cheerleader program but the program is not able to print grammatically correct. word = raw_input("Who do you go for? ") for l

Re: [Tutor] Return Statement error

2014-10-13 Thread William Becerra
I am familiar with funtions, i didn't realize i had to write the return statement inside a function...Thank you all..that was very helpful On 13 Oct 2014 01:03, "Steven D'Aprano" wrote: > On Sun, Oct 12, 2014 at 04:38:54PM +0200, William Becerra wrote: > > Hello

[Tutor] Return Statement error

2014-10-12 Thread William Becerra
Hello, I'm new to programming. I'm using Python 2.7.8 and Windows 8 OS I was making an application to see if I understand how the return statement works I want my application to compare x and y and return either 1, -1 or 0. I'm using IDLE Here is my code: print"Please write a value for x" x = ra

[Tutor] Infinite Recursion

2014-10-12 Thread William Becerra
Hey, I'm new to programming. Using python 2.7.8 and running windows8 OS I'm reading 'How to think like a computer scientist, learning with Python' I'm in chapter 4 sub-chapter 4.11 Infinite recursion According to the book if I write def recurse(): recurse() I should get the following error F

[Tutor] keyword colors disappear

2014-10-11 Thread William Becerra
Hey, I'm new to programming. Only have about 2 weeks of experience. Using Python 2.7.8 and running Windows 8 I'm having the following problem. I open Python shell press file, new file and write my code(any code) then all the Python keywords appear in their different *colors*, for example print ap

Re: [Tutor] (no subject)

2014-10-09 Thread William Becerra
It is working now. Thank you everyone. It was very helpfull. On Fri, Oct 10, 2014 at 2:36 AM, Alan Gauld wrote: > On 09/10/14 19:38, William Becerra wrote: > > import maths; >> > > Python, like most languages speaks American English > so its math not maths. > &g

[Tutor] (no subject)

2014-10-09 Thread William Becerra
I'm new to programming. Started reading the book 'How to think like a computer Scientist-learning with python'. I'm now in chapter 3 sub-chapter 3.4 Math functions. When I write the following code: import maths; decibel = math.log10 (17.0); angle = 1.5; height = math.sin(angle); print height; I