from requests import get

ip = get('https://api.ipify.org').text
print('My public IP address is: {}'.format(ip))