[Tutor] Python help

2015-08-13 Thread IDN3
To whom it may concern, I am having a problem solving the below question. I have used every resource that I could find to help me, but I'm seeing nothing. Can someone out there please help me understand the below question and learn how to accomplish this task in Python? I would really apprec

Re: [Tutor] Python help

2015-08-13 Thread Alan Gauld
On 13/08/15 02:01, IDN3 wrote: To whom it may concern, I am having a problem solving the below question. I have used every resource that I could find to help me, but I'm seeing nothing. Can someone out there please help me understand the below question and learn how to accomplish this task

Re: [Tutor] Python help

2015-08-13 Thread Cameron Simpson
On 13Aug2015 10:34, ALAN GAULD wrote: On 13/08/15 02:01, IDN3 wrote: [...snip...] Condition: If c is less than 5, then the loop will continue; else, it will end. 3. *Problem 2:*Print a string variable that states the number of loops required to meet the condition for Problem 1. This is

Re: [Tutor] Python help

2015-08-13 Thread Alan Gauld
On 13/08/15 10:44, Cameron Simpson wrote: You obviously did not send the whole question. I don't see any mention of if/then/else? Actually, the question's "Condition:" section is written in exactly those terms. Oops, so it is. My bad. -- Alan G Author of the Learn to Program web site http:/

[Tutor] How to effectively use a Student class with SQLite [Was Re: How to design object interactions with an SQLite db?]

2015-08-13 Thread boB Stepp
Beware! Lengthy post!! Sign of a confused boB. ~(:>) I believe that I understand now all of the things I want my project (Tentatively named "Montessori Classroom Manager".) to *do*. But I am currently spinning my wheels on how to implement classes, SQLite, and the kivy UI, so that they all effec

Re: [Tutor] How to effectively use a Student class with SQLite [Was Re: How to design object interactions with an SQLite db?]

2015-08-13 Thread Alan Gauld
On 13/08/15 20:18, boB Stepp wrote: that I am puzzling over is the very real possibility of duplicate student names. Of course, I was planning on the Student db table having a primary key of student_id, which would be an unique identifier for a particular student. The problem with this is from

[Tutor] Searching through files for values

2015-08-13 Thread Jason Brown
Hi, I'm trying to search for list values in a set of files. The goal is to generate a list of lists that can later be sorted. I can only get a match on the first value in the list: contents of value_file: value1 value2 value3 ... The desired output is: file1 value1 file1 value2 file2 value3 f

Re: [Tutor] How to effectively use a Student class with SQLite [Was Re: How to design object interactions with an SQLite db?]

2015-08-13 Thread boB Stepp
Whew, Alan! You've given me quite a lot to mull over. Thank you very much for the time you've invested in your responses!! On Thu, Aug 13, 2015 at 6:38 PM, Alan Gauld wrote: > On 13/08/15 20:18, boB Stepp wrote: > [...] > Yes, that's a standard problem in any HR type application. Names suck as

Re: [Tutor] Searching through files for values

2015-08-13 Thread Cameron Simpson
On 13Aug2015 16:48, Jason Brown wrote: I'm trying to search for list values in a set of files. The goal is to generate a list of lists that can later be sorted. I can only get a match on the first value in the list: contents of value_file: value1 value2 value3 ... The desired output is: fil

Re: [Tutor] How to effectively use a Student class with SQLite [Was Re: How to design object interactions with an SQLite db?]

2015-08-13 Thread Laura Creighton
If your students need to provide a unique email address, then that is a possibility to use to distinguish between ones with the same name. In Sweden, where this is known as the 'Anders Andersson' problem (that being the most common name in Sweden, and any organisation with more than a handful of me

[Tutor] Does composition only work with particular instances of objects?

2015-08-13 Thread boB Stepp
I was looking at an example illustrating composition from the book, "Introducing Python" by Bill Lubanovic on p. 140: >>> class Bill: def __init__(self, description): self.description = description >>> class Tail: def __init__(self, length): self.length = l

Re: [Tutor] How to effectively use a Student class with SQLite [Was Re: How to design object interactions with an SQLite db?]

2015-08-13 Thread boB Stepp
On Thu, Aug 13, 2015 at 11:13 PM, Laura Creighton wrote: > If your students need to provide a unique email address, then that is > a possibility to use to distinguish between ones with the same name. Many of my wife's students do have their own email accounts, but, alas, not all of them. I have

Re: [Tutor] Does composition only work with particular instances of objects?

2015-08-13 Thread Zachary Ware
On Thu, Aug 13, 2015 at 11:31 PM, boB Stepp wrote: > I was looking at an example illustrating composition from the book, > "Introducing Python" by Bill Lubanovic on p. 140: > class Bill: > def __init__(self, description): > self.description = description > class Tail:

Re: [Tutor] Does composition only work with particular instances of objects?

2015-08-13 Thread boB Stepp
On Thu, Aug 13, 2015 at 11:46 PM, Zachary Ware wrote: > On Thu, Aug 13, 2015 at 11:31 PM, boB Stepp wrote: >> I was looking at an example illustrating composition from the book, >> "Introducing Python" by Bill Lubanovic on p. 140: >> > class Bill: >> def __init__(self, description): >