I've tried to do the above by using this:
print("Ext IP Address is:" + os.system("wget -O - -q https://checkip.amazonaws.com"))
however when I execute it, it returns HTML code as it should (which in this case is the external IP) but it shows that only and not after the line "Ext IP address is:" as I requested. And then I get the following exception:
Traceback (most recent call last): File "main.py", line 2, in print("Ext IP Address is:" + os.system("wget -O - -q https://checkip.amazonaws.com")) TypeError: can only concatenate str (not "int" to str