I have
return "Cargo(location=%s, cargocapacity=%s, cargo=%s, name=%s, mast_count=%s)" \
% (
self.location,
self.cargocapacity,
self.cargo,
self.name,
self.mast_count)
so the first line is too long. How can i break the Line? If i do
return "Cargo(location=%s, cargocapacity=%s, cargo=%s, \
name=%s, mast_count=%s)" \
% (
self.location,
self.cargocapacity,
self.cargo,
self.name,
self.mast_count)
and print the returned string i get a lot of withespace.
Is there a way to do this? Maybe join the string with single arguments? But this will add a lot more lines of code.