[Tutor] Tile Code

2014-11-14 Thread niyanaxx95
Statement: 1. The first and last tile in the first row shall be black. 2. The first and last tile in the first column shall be black. 3. The tiles will alternate between black and lemon The task is to write a function to compute and print:  the number of tiles needed in the first row (the num

Re: [Tutor] Tile Code

2014-11-14 Thread Alan Gauld
On 14/11/14 01:20, niyanax...@gmail.com wrote: You keep sending us your homework but not any of your code. We will not do your homework for you. And we can only guess at what bits you don't understand unless you tell us. Please include your code and a specific question or area of difficulty. If

[Tutor] [OT] Best Practices for Scientific Computing

2014-11-14 Thread Albert-Jan Roskam
Hi, I thought this might be worth sharing, especially on a windy, rainy Friday evnening: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001745 Here are the best practices mentioned in the article: Write programs for people, not computers. A program should not require

[Tutor] Help understanding classes

2014-11-14 Thread Bo
Hello everyone, hope all is well. Was just wondering if I could get some help understanding classes and how they work. What is the point in OOP if I don¹t understand classes, are classes not the heart and soul of OOP? I have been trying to learn classes by practicing with Tkinter building GUIs. Bel

Re: [Tutor] Help understanding classes

2014-11-14 Thread Alan Gauld
On 15/11/14 00:29, Bo wrote: help understanding classes and how they work. What is the point in OOP if I don’t understand classes, are classes not the heart and soul of OOP? Actually not necessarily. There are OOP languages where classes are not included or little used. Javascript is a good exa

Re: [Tutor] Help understanding classes

2014-11-14 Thread Danny Yoo
On Fri, Nov 14, 2014 at 4:29 PM, Bo wrote: > Hello everyone, hope all is well. Was just wondering if I could get some > help understanding classes and how they work. What is the point in OOP if I > don’t understand classes, are classes not the heart and soul of OOP? I have > been trying to learn c