Re: [Tutor] split a string inside a list

2015-05-09 Thread Mark Lawrence
On 09/05/2015 16:17, Alex Kleider wrote: On 2015-05-08 20:24, Kayla Hiltermann wrote: hi, i am trying to make a pythagorean triples checker (a^2 + b^2 = c^2). the user enters three sides to a triangle and my code determines if it is a pythagorean triple (aka right triangle) or not. i have the e

Re: [Tutor] split a string inside a list

2015-05-09 Thread Alex Kleider
On 2015-05-08 20:24, Kayla Hiltermann wrote: hi, i am trying to make a pythagorean triples checker (a^2 + b^2 = c^2). the user enters three sides to a triangle and my code determines if it is a pythagorean triple (aka right triangle) or not. i have the entire code pretty much done, except i want

Re: [Tutor] split a string inside a list

2015-05-09 Thread Dave Angel
On 05/09/2015 04:13 AM, Alan Gauld wrote: On 09/05/15 04:24, Kayla Hiltermann wrote: i want to account for variability in user input, > like using commas or just spaces. the user input is initially a string, but is converted to a list once > run through .split() . > I would like to split

Re: [Tutor] split a string inside a list

2015-05-09 Thread Peter Otten
Kayla Hiltermann wrote: > i am trying to make a pythagorean triples checker (a^2 + b^2 = c^2). the > user enters three sides to a triangle and my code determines if it is a > pythagorean triple (aka right triangle) or not. i have the entire code > pretty much done, except i want to account for var

Re: [Tutor] split a string inside a list

2015-05-09 Thread Alan Gauld
On 09/05/15 04:24, Kayla Hiltermann wrote: i want to account for variability in user input, > like using commas or just spaces. the user input is initially a string, but is converted to a list once > run through .split() . > I would like to split the user input by commas or spaces, I would f

[Tutor] split a string inside a list

2015-05-09 Thread Kayla Hiltermann
hi, i am trying to make a pythagorean triples checker (a^2 + b^2 = c^2). the user enters three sides to a triangle and my code determines if it is a pythagorean triple (aka right triangle) or not. i have the entire code pretty much done, except i want to account for variability in user input, l