I'm trying to write a program which can run on my windows laptop to track its connectivity but one of the python packages I want to use needs to be run in a linux environment. That, itself, is not an issue though since windows now has official support for CLIs for OSe like Ubuntu; the issue lies in the fact that whenever I try to use this line of code
print(ThisIsAVariableToHoldMyString, end=" ")
it just doesn't print. I know the line is being called through repeated tests of my method (I deleted some commented out others but needless to say I have done a lot of tests)
def AddToReturn(self, toadd, end = False):
#print(toadd)
#print(end)
if end:
print("last hash : "+toadd)
self.returnstring += self.returnstring + "last hash : "+toadd
return self.returnstring
else:
print(toadd, end="")
self.returnstring += toadd
and they always printed whatever I asked them to. Even the first non-commented print statement
print("last hash : "+toadd)
works fine and I can see its output, the only one that isn't working is the one with end=""
in it. Is this just me being an idiot or is it an actual issue with the windows ubuntu environment?
I already tried flush=True.