On 08/11/15 09:11, phamton...@gmail.com wrote:
I am having issue with converting the string into a float because there is a negative, so
only end up with "ValueError: invalid literal for float(): 81.4]"81.4]
The error is right there in the exception: you are trying to cast
'81.4]' - that's a
On Saturday, November 7, 2015 at 9:40:49 PM UTC-5, MRAB wrote:
> On 2015-11-08 02:11, phamton...@gmail.com wrote:
> > I am having issue with converting the string into a float because there is
> > a negative, so only end up with "ValueError: invalid literal for float():
> > 81.4]"
> >
> > def con
On 2015-11-08 02:11, phamton...@gmail.com wrote:
I am having issue with converting the string into a float because there is a negative, so
only end up with "ValueError: invalid literal for float(): 81.4]"
def contains_words(word,msg):
if word in msg:
return true
I am having issue with converting the string into a float because there is a
negative, so only end up with "ValueError: invalid literal for float(): 81.4]"
def contains_words(word,msg):
if word in msg:
return true
else:
return false