{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"provenance":[]},"kernelspec":{"name":"python3","display_name":"Python 3"}},"cells":[{"cell_type":"markdown","metadata":{"id":"9vv0rpCuGI-0"},"source":["# Python course 2023 - Exercises B\n","\n"]},{"cell_type":"markdown","metadata":{"id":"69vKvpfXG1O0"},"source":["## Part2 - loops"]},{"cell_type":"markdown","metadata":{"id":"WmbSBvCGG6Fc"},"source":["\n","\n","---\n","2.1) Write a function counting to 100 and printing all numbers which can be divided by 4 without any residue!\n","\n","* Info: 10%2 #modulo division in Python\n"]},{"cell_type":"code","metadata":{"id":"N7JQLOS4HYIc"},"source":[],"execution_count":null,"outputs":[]},{"cell_type":"markdown","metadata":{"id":"G3ocU6nnHYTp"},"source":["\n","\n","---\n","2.2) Write a function counting down from 1000 to 0 and printing all numbers!\n"]},{"cell_type":"code","metadata":{"id":"Zr_WTneeHgo4"},"source":[],"execution_count":null,"outputs":[]},{"cell_type":"markdown","metadata":{"id":"F_k9KW4gHgwg"},"source":["\n","\n","---\n","2.3) Generate a list of species names! Write a function printing all species names starting with \"E\"!\n"]},{"cell_type":"code","metadata":{"id":"daVLjj-aHo_C"},"source":[],"execution_count":null,"outputs":[]},{"cell_type":"markdown","metadata":{"id":"vC_BZDXZHpJA"},"source":["\n","\n","---\n","2.4) Expand this function to limit the printing to species names which are additionally shorter than 10 characters!\n"]},{"cell_type":"code","metadata":{"id":"BS1PycUwHydi"},"source":[],"execution_count":null,"outputs":[]},{"cell_type":"markdown","metadata":{"id":"C0aWx374HykI"},"source":["\n","\n","---\n","2.5) Expand this function to limit the printing to species names which are additionally ending with \"a\".\n"]},{"cell_type":"code","metadata":{"id":"2dO2405CH8Ab"},"source":[],"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":["## Bonus Tasks"],"metadata":{"id":"yPaWe2M8BJED"}},{"cell_type":"markdown","source":[""],"metadata":{"id":"JoM_MDzSoUXF"}},{"cell_type":"code","source":[],"metadata":{"id":"0h2dsyL9oc-8"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":[""],"metadata":{"id":"Bg_zLLp8BS7E"}},{"cell_type":"code","source":[],"metadata":{"id":"l-JCj49BBJLK"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":[""],"metadata":{"id":"0-NJrMlIBJRK"}},{"cell_type":"code","source":[],"metadata":{"id":"xCUFlrt3BJWq"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":[""],"metadata":{"id":"ojnBi6v_BJcL"}},{"cell_type":"code","source":[],"metadata":{"id":"xooDdNzEBJiS"},"execution_count":null,"outputs":[]},{"cell_type":"markdown","source":[""],"metadata":{"id":"Zl9UbZL6BJpD"}},{"cell_type":"code","source":[],"metadata":{"id":"zZ5U5KwTBsqK"},"execution_count":null,"outputs":[]}]}
\ No newline at end of file
%% Cell type:markdown id: tags:
# Python course 2023 - Exercises B
%% Cell type:markdown id: tags:
## Part2 - loops
%% Cell type:markdown id: tags:
---
2.1) Write a function counting to 100 and printing all numbers which can be divided by 4 without any residue!
* Info:10%2#modulo division in Python
%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---
2.2) Write a function counting down from 1000 to 0 and printing all numbers!
%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---
2.3) Generate a list of species names! Write a function printing all species names starting with "E"!
%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---
2.4) Expand this function to limit the printing to species names which are additionally shorter than 10 characters!
%% Cell type:code id: tags:
```
```
%% Cell type:markdown id: tags:
---
2.5) Expand this function to limit the printing to species names which are additionally ending with "a".