>>> urllib.quote_plus('string_of_characters_like_these:$#@=?%^Q^$')
'string_of_characters_like_these%3A%24%23%40%3D%3F%25%5EQ%5E%24'
In [1]: import requests
In [2]: r = requests.get('http://example.com', params={'п': 'лол'})
In [3]: r.url
Out[3]: u'http://example.com/?%D0%BF=%D0%BB%D0%BE%D0%BB'
There are currently 87954 packages here.
if name: print('var name is not empty')
while not name: name = input("Введите свое имя:")