Skip to content

Commit

Permalink
Reto #11 - Python
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoatrs committed Aug 1, 2023
1 parent b9495c5 commit fb69fd1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Retos/Reto #11 - URL PARAMS [Fácil]/python/marcoatrs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def get_params(url: str) -> list:
params_string = url.split("?")[1]
return [param.split("=")[1] for param in params_string.split("&")]


print(get_params("https://retosdeprogramacion.com?year=2023&challenge=0"))

0 comments on commit fb69fd1

Please sign in to comment.