<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def urlencode(query, params):
 """ Correctly convert the given query and parameters into a full query+query string, ensuring the order of the params. """

    return query + '?' + "&".join(key+'='+quote_plus(str(value)) 
                                  for key, value in params)