Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify and standardize directory structure and venv location #442

Merged
merged 3 commits into from
Sep 20, 2018

Conversation

encukou
Copy link
Member

@encukou encukou commented Aug 29, 2018

  • Get rid of the ~/pyladies or ~/naucse-python that Windows users had to replace with something else throughout the course (Matoucí označení složky ~/pyladies #313). Only use it as an example within one lesson.
  • Make the learners create numbered directories for lessons, to reduce chaos about where they were saving the files.
  • In the first few lessons, give more detailed instructions on saving files.

There's also a few unrelated fixes/clarifications. (I can't help but edit when I read something, and pulling them into separate commits involves too much rebasing. Sorry!)

I've merged this into my "experimental" course, so a render is here: https://naucse.python.cz/2018/pyladies-brno-podzim-exp/sessions/preparation/

…ture

This normalizes the directory structure for the beginner course.
It use one directory with all related files, containing:
* numbered directories for individual lessons
* a `venv` directory with the virtual environment.

Hopefully, this will reduce chaos on the learners' hard disks.
@hroncok hroncok self-requested a review August 29, 2018 22:23

Otevři si v editoru nový soubor.
V adresáři, kde máš soubory ke kurzům Pythonu, udělej adresář s číslem lekce
(třeba `02`).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get the lesson numerical ID programmatically? Only if it's easy.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not particularly hard, but a bit lower priority for me. Filed as https://github.com/pyvec/naucse.python.cz/issues/444.


```python
strana = float(input('Zadej stranu čtverce v centimetrech: '))
print('Obvod čtverce se stranou', strana, 'je', 4 * strana, 'cm')
print('Obsah čtverce se stranou', strana, 'je', strana * strana, 'cm2')
```

Co se stane, když jako stranu zadáš záporné číslo?
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tady nějak chybí, že ten soubor máš spustit. A pokud se to hodí, zopakoval bych jak.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Už je to v téhle lekci potřetí, nechal bych to tady bez detailních instrukcí.

Výsledky vypiš pomocí `print()`.
Program ulož do <code><span class="pythondir">~/{{ rootname }}</span>/02/ctverec.py</code>
Program ulož do do adresáře pro dnešní lekci `ctverec.py`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chybí mi tam slovo. Co "jako ctverec.py"?

@hroncok hroncok merged commit 68d2674 into pyvec:master Sep 20, 2018
hroncok added a commit to hroncok/naucse.python.cz that referenced this pull request Sep 24, 2018
Clarify and standardize directory structure and venv location

pyvec#442
@encukou encukou deleted the lesson-dir branch November 13, 2018 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants