TypeError: decoding str is not supported
Not sure about what you expect str(‘Speed -‘, str(speed)) to do. What you want is a string concat: You can also use string formatting and not worry about type casts:
Not sure about what you expect str(‘Speed -‘, str(speed)) to do. What you want is a string concat: You can also use string formatting and not worry about type casts:
You probably need to add an import statement. This goes after your package declaration. This let’s the system know what an ArrayList is and what methods it has available. Hope that was it!
You probably need to add an import statement. This goes after your package declaration. This let’s the system know what an ArrayList is and what methods it has available. Hope that was it!
You need to change the brackets in The_End.insert[x + 1, y] to parenthesis. It’s good practice in Python to use lowercase variable names. Uppercase is generaly used for classes.
urlopen() returns a bytes object, to perform string operations over it you should convert it to str first. To get the correct charset : How to download any(!) webpage with correct charset in python?
floats can’t be implicitly converted into strings. You need to do it explicitly. But it’s better to use format.
You can’t index (__getitem__) a _io.TextIOWrapper object. What you can do is work with a list of lines. Try this in your code: Also, you aren’t closing the file object, this would be better: with ensures that file get closed, see docs
I take it your code is giving you the error message, TypeError: zip argument #1 must support iteration. You are getting this error due to the expression zip(float(price), Bids). This simplified code demonstrates the error: The Python 2.x zip() built-in library function requires all its arguments to be iterables. float(price) is not an iterable. If … Read more
Im getting this error and don’t know how to fix it…
Im getting this error and don’t know how to fix it…