Skip to content

Commit

Permalink
deploy: 912c7df
Browse files Browse the repository at this point in the history
  • Loading branch information
abadoni5 committed Mar 16, 2024
1 parent 57dd9b2 commit ec5ca87
Show file tree
Hide file tree
Showing 373 changed files with 763 additions and 757 deletions.
23 changes: 11 additions & 12 deletions 339/_sources/lectures/TWP45/TWP45_3_en.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ TasteDive is a tool that:
In the following exercise, we will use the TasteDive API to search for works or artists similar to another of our choice.
The documentation for the `TasteDive API <https://tastedive.com/read/api>`_.

.. activecode:: ac_l45_3a_en
.. activecode:: ac_l45_3a_enfds
:nocodelens:
:language: python

Expand All @@ -23,14 +23,13 @@ The documentation for the `TasteDive API <https://tastedive.com/read/api>`_.
import requests
import json

api_url = "https://tastedive.com/api/similar"
proxy = "https://cors.bridged.cc/"
api_url = "https://uselessfacts.jsph.pl/api/v2/facts/random"

# The parameters that will be passed to the url are written inside a dictionary
parameters = {"q": "ariana grande"}
parameters = {"language": "en"}

# We request the data from the api
response = requests.get(proxy + api_url, params=parameters)
response = requests.get(api_url, params=parameters)

# Now we print the url
print(response.url)
Expand All @@ -46,7 +45,7 @@ In the previous example, you could see that the API returns text, which if passe
transforms into a Python dictionary. However, it is not entirely readable. This can be solved with
``json.dumps``.

.. activecode:: ac_l45_3b_en
.. activecode:: ac_l45_3hb_efdf
:language: python3
:python3_interpreter: brython

Expand All @@ -59,19 +58,19 @@ transforms into a Python dictionary. However, it is not entirely readable. This
import urllib.parse
import json

api_url = "https://tastedive.com/api/similar?"
proxy = "https://cors.bridged.cc/"
api_url = "https://uselessfacts.jsph.pl/api/v2/facts/random?"

# The following line is for the url parameters
parameters = urllib.parse.urlencode({"q": "coldplay"})
parameters = urllib.parse.urlencode({"language": "en"})

request = urllib.request.urlopen(proxy + api_url + parameters)
request = urllib.request.urlopen(api_url + parameters)
data = json.loads(request.read())

# We print the data in a user-readable format
print(json.dumps(data, indent=4))

# We can see that the api returned 20 results related to the request
print(len(data["Similar"]["Results"]))
# We can see that api returned 6 related fields for the random fact
print(len(data))


|
Expand Down
5 changes: 4 additions & 1 deletion 339/_sources/quiz/BasicQuiz.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ Ejercicios básicos
Dada una lista de tuplas no vacías, devuelve una lista ordenada en orden creciente por el último elemento en cada tupla. |br|

~~~~
# Extraer el último elemento de una tupla, utilizado para ordenación personalizada a continuación
def last(a):

def sort_last(tuples):

====
Expand Down Expand Up @@ -135,7 +138,7 @@ Ejercicios básicos
.. activecode:: basic_q6es
:nocodelens:

Dada una cadena s, devuelve una cadena donde todas las ocurrencias de su primer carácter se han cambiado a '*', excepto no cambie el primer carácter en sí. Por ejemplo, 'babble' produce 'ba**le'. Suponga que la cadena tiene una longitud de 1 o más. |br|
Dada una cadenas, devuelve una cadena donde todas las ocurrencias de su primer carácter se han cambiado a '*', excepto no cambie el primer carácter en sí. Por ejemplo, 'babble' produce 'ba**le'. Suponga que la cadena tiene una longitud de 1 o más. |br|

~~~~
def fix_start(s):
Expand Down
1 change: 1 addition & 0 deletions 339/_sources/quiz/BasicQuiz_en.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Basic Exercises
Given a list of non-empty tuples, return a list sorted in increasing order by the last element in each tuple. |br|

~~~~
# Extract the last element from a tuple -- used for custom sorting below.
def last(a):

def sort_last(tuples):
Expand Down
2 changes: 1 addition & 1 deletion 339/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '77eef35cc93b964e0fda21e5aaa8f391b930c6c8-aayush/issue#247',
VERSION: '1952d29c6af91437db6a3665ceda3bdce238aa94-aayush/issue#247',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/Reto01.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reto Ahorcado &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Reto Ahorcado &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -90,7 +90,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/Reto01_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hangman Challenge &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Hangman Challenge &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -90,7 +90,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/Reto02.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reto Pergamino &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Reto Pergamino &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -91,7 +91,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/Reto03.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reto Pygame -Tirador de zombies &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Reto Pygame -Tirador de zombies &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -90,7 +90,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/Reto03_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pygame Challenge - Zombie Shooter &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Pygame Challenge - Zombie Shooter &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -90,7 +90,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/Reto04.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ejercicio de nombres de bebés de Google &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Ejercicio de nombres de bebés de Google &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -90,7 +90,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/Reto04_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Google babynames exercise &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Google babynames exercise &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -90,7 +90,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/Reto05.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Reto PyMaze &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Reto PyMaze &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -90,7 +90,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/Reto05_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PyMaze &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>PyMaze &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -89,7 +89,7 @@

<a class="navbar-brand" href="../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/_static/baby1990.html.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>&lt;no title&gt; &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>&lt;no title&gt; &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -88,7 +88,7 @@

<a class="navbar-brand" href="../../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/_static/baby1996.html.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>&lt;no title&gt; &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>&lt;no title&gt; &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -88,7 +88,7 @@

<a class="navbar-brand" href="../../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/challenges/_static/baby2002.html.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>&lt;no title&gt; &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>&lt;no title&gt; &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -88,7 +88,7 @@

<a class="navbar-brand" href="../../index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
Binary file modified 339/doctrees/environment.pickle
Binary file not shown.
Binary file modified 339/doctrees/lectures/TWP38/TWP38_2.doctree
Binary file not shown.
Binary file modified 339/doctrees/lectures/TWP38/TWP38_2_en.doctree
Binary file not shown.
Binary file modified 339/doctrees/lectures/TWP45/TWP45_3_en.doctree
Binary file not shown.
Binary file modified 339/doctrees/quiz/BasicQuiz.doctree
Binary file not shown.
Binary file modified 339/doctrees/quiz/BasicQuiz_en.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions 339/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Index &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Index &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -88,7 +88,7 @@

<a class="navbar-brand" href="index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bienvenido a PyZombis &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Bienvenido a PyZombis &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -89,7 +89,7 @@

<a class="navbar-brand" href="#" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/index_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Welcome to PyZombis &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Welcome to PyZombis &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -90,7 +90,7 @@

<a class="navbar-brand" href="index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions 339/index_es.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bienvenido a PyZombis &#8212; PyZombis aayush/issue#247@77eef35</title>
<title>Bienvenido a PyZombis &#8212; PyZombis aayush/issue#247@1952d29</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/basic.css" type="text/css" />
<link rel="stylesheet" type="text/css" href="_static/matrixeq.css?v=58BC228F" />
Expand Down Expand Up @@ -90,7 +90,7 @@

<a class="navbar-brand" href="index.html" aria-label="index-page">

PyZombis aayush/issue#247@77eef35
PyZombis aayush/issue#247@1952d29
</a>
</div>
</div>
Expand Down
Loading

0 comments on commit ec5ca87

Please sign in to comment.