Generation

generate functionWed, 07 Dec 2022

how can write a program to get current location when user ask for current location

def current_location(): try: print(requests.get('http://ipinfo.io/').text) except: print('Fail to get current location') current_location()

Questions about programming?Chat with your personal AI assistant