Re: [Tutor] Declaring variables

2016-04-07 Thread Mark Lawrence via Tutor
On 07/04/2016 18:49, Dimitar Ivanov wrote: Hello everyone, I have a (hopefully) quick and easy to explain question. I'm currently using MySQLdb module to retrieve some information from a database. In my case, the result that's being yield back is a single line. As far as my understanding goes,

Re: [Tutor] Declaring variables

2016-04-07 Thread Alan Gauld
On 07/04/16 18:49, Dimitar Ivanov wrote: > As far as my understanding goes, MySQLdb function called 'fetchone()' > returns the result as a tuple. Problem is, the tuple has some unnecessary > characters, such as an additional comma being returned. In my case: The comma is what makes it a tuple, it

Re: [Tutor] Declaring variables

2016-04-07 Thread Ben Finney
Dimitar Ivanov writes: > I have a (hopefully) quick and easy to explain question. I'm currently > using MySQLdb module to retrieve some information from a database. In > my case, the result that's being yield back is a single line. Just a note: The term is a “record” or “tuple”. It may be presen

[Tutor] Declaring variables

2016-04-07 Thread Dimitar Ivanov
Hello everyone, I have a (hopefully) quick and easy to explain question. I'm currently using MySQLdb module to retrieve some information from a database. In my case, the result that's being yield back is a single line. As far as my understanding goes, MySQLdb function called 'fetchone()' returns