Skip to content

Commit 4f4f4a3

Browse files
committed
1 parent 88dc23c commit 4f4f4a3

File tree

23 files changed

+2776
-1432
lines changed

23 files changed

+2776
-1432
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2023, Imperial College London
1+
Copyright 2024, Imperial College London
22

33
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
44

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Welcome to **Introduction to Python**! Python is one of the most popular and powerful programming languages. It is used extensively in computational and data science, and you will use it in almost all modules during your MSc studies. This self-guided course will help you to learn the basics of Python.
44

5-
This course consists of four lectures (1, 2, 3, and 4), and we strongly recommend completing them in that order.
5+
This course consists of 5 compulsory lectures (1, 2, 3, 4, and 5) and one optional (lecture 6). We strongly recommend completing them in that order.
66

77
## How to run this course
88

@@ -49,7 +49,7 @@ $ jupyter notebook &
4949

5050
## Testing
5151

52-
After (almost) each exercise, there are two cells containing some code. In those cells, we test your solution using two different methods:
52+
After (almost) each exercise in the compulsory part of the course, there are two cells containing some code. In those cells, we test your solution using two different methods:
5353

5454
1. **PyBryt** analyses your solution and provides you feedback on what is correct in your implementation, as well as what might be wrong. Please read PyBryt's feedback carefully and address the `ERROR` messages by modifying your solution.
5555
2. **assert** statements validate your final solution

environment.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
# Testing packages (nbval, flake8, and flake8-nb) are not considered
2-
# dependencies. They are pip-installed on CI.
3-
41
name: introduction-to-python
52

63
channels:
74
- defaults
85

96
dependencies:
107
- pip
11-
- python=3.10
8+
- python=3.12
129
- pip:
1310
- jupyterlab
1411
- numpy

index.ipynb

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@
1111
"\n",
1212
"## Lectures\n",
1313
"\n",
14-
"This course consists of four lectures:\n",
14+
"This course consists of five compulsory lectures:\n",
1515
"\n",
1616
"* [Lecture 1](./lecture1/lecture1.ipynb)\n",
1717
"* [Lecture 2](./lecture2/lecture2.ipynb)\n",
1818
"* [Lecture 3](./lecture3/lecture3.ipynb)\n",
1919
"* [Lecture 4](./lecture4/lecture4.ipynb)\n",
20+
"* [Lecture 5](./lecture5/lecture5.ipynb)\n",
21+
"\n",
22+
"and one optional:\n",
23+
"\n",
24+
"* [Lecture 6](./lecture4/lecture6.ipynb)\n",
2025
"\n",
2126
"We strongly recommend completing them in this order.\n",
2227
"\n",
@@ -29,22 +34,7 @@
2934
"\n",
3035
"It is important to follow the instructions for each exercise exactly and do not change the names of variables, functions, or classes so that tests can analyse your code. Besides, please do not change the content of any of the testing cells.\n",
3136
"\n",
32-
"Although **PyBryt** provides much more detailed feedback, it is possible it complains about your code even though **assert** statement confirms your code is correct. This is because PyBryt testing is based on comparing your solution to reference solutions. Since there is virtually an infinite number of alternative solutions, it is possible that your solution is not in our references. On the other hand, assert statements check the final result of your code and if they do not raise an error, your code is correct and you do not have to address **PyBryt**'s error messages (if any).\n",
33-
"\n",
34-
"## Support\n",
35-
"\n",
36-
"**We encourage questions!** If you require support, have questions, want to report a bug, or want to suggest an improvement, please raise an issue in the [course repository](https://github.com/ese-msc/introduction-to-python).\n",
37-
"\n",
38-
"> **Q:** I don't know where to ask my question. It might be related to something else, but I'm unsure. What should I do? \n",
39-
"> **A:** Open an issue in this repository. This is a safe, respectful space to ask questions and open issues.\n",
40-
"\n",
41-
"> **Q:** I've never opened an issue. How do I do it? \n",
42-
"> **A:** Click the `Issues` tab next to top of the page, then click the green `New Issue` button. Ask your question in the title and comment fields, then click `Submit new issue`. Congratulations, you submitted your question! We will try to get back to you shortly.\n",
43-
"\n",
44-
"> **Q:** How can I see if somebody else had the same or similar question? \n",
45-
"> **A:** When you click the `Issues` tab next to top of the page, you can see all issues that are currently open and are being addressed. In addition to them, you can also check the issues that have been resolved in [closed issues](https://github.com/ese-msc/introduction-to-python/issues?q=is%3Aissue+is%3Aclosed).\n",
46-
"\n",
47-
"Are you a community member that enjoys sharing your knowledge and helping others solve problems? We encourage you to respond to these issues."
37+
"Although **PyBryt** provides much more detailed feedback, it is possible it complains about your code even though **assert** statement confirms your code is correct. This is because PyBryt testing is based on comparing your solution to reference solutions. Since there is virtually an infinite number of alternative solutions, it is possible that your solution is not in our references. On the other hand, assert statements check the final result of your code and if they do not raise an error, your code is correct and you do not have to address **PyBryt**'s error messages (if any)."
4838
]
4939
}
5040
],

0 commit comments

Comments
 (0)