wie kann man rstrip auf eine Liste anwenden?
Code: Alles auswählen
>>> a, b, c, d, e = "slkfj , kdsfjk , jdks, ksdfj , kdfak".split(",").rstrip
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'list' object has no attribute 'rstrip'