Skip to content
Snippets Groups Projects
Commit 1dce33f1 authored by Quentin Gallouédec's avatar Quentin Gallouédec
Browse files

`if __name__ == "__main__":` remark

parent 2c967be1
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,15 @@ In this tutorial we use Python 3.7 or higher. Make sure it is properly installed
We assume that `git` is installed, and that you are familiar with the basic `git` commands. (Optionnaly, you can use GitHub Desktop.)
We also assume that you have access to the [ECL GitLab](https://gitlab.ec-lyon.fr/). If necessary, please consult [this tutorial](https://gitlab.ec-lyon.fr/edelland/inf_tc2/-/blob/main/Tutoriel_gitlab/tutoriel_gitlab.md).
**Important note**: In this tutorial, you will be asked to write functions. If you want to test the correct operation of your functions in the same file, you must use the statement ``if __name__ == "__main__":`:
```python
def func():
...
if __name__ == "__main__":
func()
```
### README
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment