Skip to content

Commit 7a3e517

Browse files
committed
website at publication
1 parent f6a4939 commit 7a3e517

45 files changed

Lines changed: 1139 additions & 1214 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
10.1 MB
Binary file not shown.

assets/css/style_orange.css

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ a {
2323
}
2424

2525
a:hover {
26-
color: #D1D1D1; /*was orange*/
27-
text-decoration: none;
26+
color: #ed6c4f;
27+
text-decoration: underline;
2828
}
2929

3030
h1, h2, h3, h4, h5, h6 {
@@ -93,6 +93,7 @@ h1, h2, h3, h4, h5, h6 {
9393
transition: all ease-in-out 0.3s;
9494
background: #fff;
9595
box-shadow: 0px 5px 90px 0px rgba(110, 123, 131, 0.05);
96+
border-radius: 6px;
9697
}
9798

9899
#facts h4{
@@ -269,12 +270,14 @@ h1, h2, h3, h4, h5, h6 {
269270
margin-bottom: 8px;
270271
transition: 0.3s;
271272
font-size: 15px;
272-
border-radius: 0px; /*50*/
273273
background: #ededed;
274274
height: 56px;
275275
width: 100%;
276276
overflow: hidden;
277277
transition: 0.3s;
278+
border-radius: 6px;
279+
text-decoration: none;
280+
278281
}
279282
.nav-menu a i, .nav-menu a:focus i {
280283
font-size: 20px;
@@ -322,7 +325,7 @@ h1, h2, h3, h4, h5, h6 {
322325
outline: none !important;
323326
line-height: 0;
324327
cursor: pointer;
325-
border-radius: 0px;
328+
border-radius: 3px;
326329
padding: 5px;
327330
}
328331
.mobile-nav-toggle i {
@@ -1205,8 +1208,8 @@ section {
12051208
display: inline-block;
12061209
padding: 14px 0px; /* padding */
12071210
width: 250px; /* Fixed width for the buttons */
1208-
border-radius: 0px;
1209-
transition: 0.5s;
1211+
border-radius: 6px;
1212+
/* transition: 0.5s; */
12101213
margin-top: auto;
12111214
color: #fff;
12121215
background: #ed6c4f;
@@ -1216,11 +1219,21 @@ section {
12161219
margin-left: 5px;
12171220
}
12181221

1222+
.button:hover {
1223+
/* color: #162423; */
1224+
color: #162423;
1225+
text-decoration: none;
1226+
/* underline on hover */
1227+
}
1228+
12191229
/* Style for the container that holds the buttons */
12201230
.button-container {
12211231
text-align: left;
12221232
}
12231233

1234+
1235+
1236+
12241237
/* Media query for screens with a maximum width of 600px (typical mobile screens) */
12251238
@media only screen and (max-width: 992px){
12261239
/* Change alignment to vertical */

assets/img/favicon.png

262 KB
Loading

assets/img/hero-bg.png

176 KB
Loading

assets/img/hero-bg_media.png

-135 KB
Loading

assets/img/hero-bg_media_ebook.png

79.8 KB
Loading

assets/notebooks/01_string_input_print.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@
102102
"metadata": {},
103103
"outputs": [],
104104
"source": [
105-
"print (\" /\\_/\\ \")\n",
106-
"print (\" >^.^< \")\n",
107-
"print (\" / \\ \")\n",
108-
"print (\" (___)___\")"
105+
"print(\" /\\_/\\ \")\n",
106+
"print(\" >^.^< \")\n",
107+
"print(\" / \\ \")\n",
108+
"print(\" (___)___\")"
109109
]
110110
}
111111
],

assets/notebooks/02_variables.ipynb

Lines changed: 33 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# 2. Events and favorites\n",
7+
"# 2. Registering to an event\n",
88
"\n",
9-
"## Variables and string concatenation\n",
9+
"## Variables, assignment, and string concatenation\n",
1010
"\n",
1111
"[Learn Python with Jupyter](https://learnpythonwithjupyter.com/) by [Serena Bonaretti](https://sbonaretti.github.io/) \n",
1212
"Narrative license: [CC BY-NC-SA](https://creativecommons.org/licenses/by-nc-sa/2.0/). Code license: [GNU-GPL v3](https://www.gnu.org/licenses/gpl-3.0.en.html) "
@@ -17,7 +17,7 @@
1717
"metadata": {},
1818
"source": [
1919
"---\n",
20-
"## Organizing an event\n",
20+
"## 1. Creating the badge\n",
2121
"\n",
2222
"- You are organizing an event, and you have created the following registration form for the participants:\n",
2323
"\n",
@@ -32,7 +32,7 @@
3232
"cell_type": "markdown",
3333
"metadata": {},
3434
"source": [
35-
"- The first participant comes in and you fill out the form:"
35+
"- The first participant comes in and fills out the form:"
3636
]
3737
},
3838
{
@@ -41,15 +41,15 @@
4141
"metadata": {},
4242
"outputs": [],
4343
"source": [
44-
"first_name = \"Fernando\"\n",
45-
"last_name = \"Pérez\""
44+
"first_name = \"Elena\"\n",
45+
"last_name = \"Notch\""
4646
]
4747
},
4848
{
4949
"cell_type": "markdown",
5050
"metadata": {},
5151
"source": [
52-
"- Then you print out what you entered in the registration form:"
52+
"- Then you print her first name and last name on a badge:"
5353
]
5454
},
5555
{
@@ -58,51 +58,61 @@
5858
"metadata": {},
5959
"outputs": [],
6060
"source": [
61-
"print (first_name)\n",
62-
"print (last_name)"
61+
"print(first_name)\n",
62+
"print(last_name)"
6363
]
6464
},
6565
{
6666
"cell_type": "markdown",
6767
"metadata": {},
6868
"source": [
6969
"---\n",
70-
"## Favorites"
70+
"## 2. Adding participants' information\n",
71+
"\n",
72+
"- After receiving the badge, each participant has to go to a computer to enter additional information. First they re-enter their name:"
7173
]
7274
},
7375
{
7476
"cell_type": "code",
7577
"execution_count": null,
76-
"metadata": {
77-
"tags": []
78-
},
78+
"metadata": {},
7979
"outputs": [],
8080
"source": [
8181
"name = input(\"What's your name?\")"
8282
]
8383
},
84+
{
85+
"cell_type": "markdown",
86+
"metadata": {},
87+
"source": [
88+
"- Then they add their food requests: "
89+
]
90+
},
8491
{
8592
"cell_type": "code",
8693
"execution_count": null,
87-
"metadata": {
88-
"tags": []
89-
},
94+
"metadata": {},
9095
"outputs": [],
9196
"source": [
92-
"favorite_food = input (\"What is your favorite food?\")"
97+
"food_requests = input(\"Any food requests?\")"
98+
]
99+
},
100+
{
101+
"cell_type": "markdown",
102+
"metadata": {},
103+
"source": [
104+
"- Finally they receive the following confirmation message on the computer screen:"
93105
]
94106
},
95107
{
96108
"cell_type": "code",
97109
"execution_count": null,
98-
"metadata": {
99-
"tags": []
100-
},
110+
"metadata": {},
101111
"outputs": [],
102112
"source": [
103-
"print (\"Hi! My name is \" + name)\n",
104-
"print (\"My favorite food is \" + favorite_food) \n",
105-
"print (name + \"'s favorite food is \" + favorite_food)"
113+
"print(\"Name: \" + name)\n",
114+
"print(\"Food requests: \" + food_requests)\n",
115+
"print(name + \", your request \" + food_requests + \" has been recorded!\")"
106116
]
107117
}
108118
],

assets/notebooks/03_list_if_in_else.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"outputs": [],
3434
"source": [
3535
"programming_books = [\"Learn python\", \"Python for all\", \"Intro to python\"]\n",
36-
"print (programming_books)"
36+
"print(programming_books)"
3737
]
3838
},
3939
{
@@ -50,7 +50,7 @@
5050
"outputs": [],
5151
"source": [
5252
"wanted_book = input(\"Hi! What book would you like to buy?\")\n",
53-
"print (wanted_book)"
53+
"print(wanted_book)"
5454
]
5555
},
5656
{
@@ -67,9 +67,9 @@
6767
"outputs": [],
6868
"source": [
6969
"if wanted_book in programming_books:\n",
70-
" print (\"Yes, we sell it!\")\n",
70+
" print(\"Yes, we sell it!\")\n",
7171
"else:\n",
72-
" print (\"Sorry, we don't sell that book\")"
72+
" print(\"Sorry, we don't sell that book\")"
7373
]
7474
}
7575
],

assets/notebooks/04_list_append_remove.ipynb

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"metadata": {},
5+
"metadata": {
6+
"tags": []
7+
},
68
"source": [
79
"# 4. Grocery shopping\n",
810
"\n",
@@ -34,7 +36,7 @@
3436
"outputs": [],
3537
"source": [
3638
"shopping_list = [\"carrots\", \"chocolate\", \"olives\"]\n",
37-
"print (shopping_list)"
39+
"print(shopping_list)"
3840
]
3941
},
4042
{
@@ -53,11 +55,11 @@
5355
"new_item = input(\"What else do I have to buy?\")\n",
5456
"\n",
5557
"if new_item in shopping_list:\n",
56-
" print (new_item + \" is/are already in the shopping list\")\n",
57-
" print (shopping_list) \n",
58+
" print(new_item + \" is/are already in the shopping list\")\n",
59+
" print(shopping_list) \n",
5860
"else:\n",
5961
" shopping_list.append(new_item)\n",
60-
" print (shopping_list)"
62+
" print(shopping_list)"
6163
]
6264
},
6365
{
@@ -70,17 +72,19 @@
7072
{
7173
"cell_type": "code",
7274
"execution_count": null,
73-
"metadata": {},
75+
"metadata": {
76+
"tags": []
77+
},
7478
"outputs": [],
7579
"source": [
7680
"item_to_remove = input(\"What do I have to remove?\")\n",
7781
"\n",
7882
"if item_to_remove in shopping_list:\n",
7983
" shopping_list.remove(item_to_remove)\n",
80-
" print (shopping_list)\n",
84+
" print(shopping_list)\n",
8185
"else:\n",
82-
" print (item_to_remove + \" is/are not in the list\")\n",
83-
" print (shopping_list)"
86+
" print(item_to_remove + \" is/are not in the list\")\n",
87+
" print(shopping_list)"
8488
]
8589
}
8690
],
@@ -100,7 +104,7 @@
100104
"name": "python",
101105
"nbconvert_exporter": "python",
102106
"pygments_lexer": "ipython3",
103-
"version": "3.9.13"
107+
"version": "3.9.6"
104108
},
105109
"widgets": {
106110
"application/vnd.jupyter.widget-state+json": {

0 commit comments

Comments
 (0)