-
Notifications
You must be signed in to change notification settings - Fork 118
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
Conversation
Hopefully fixes: pyvec#313
…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.
|
||
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`). |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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? |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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í.
lessons/beginners/variables/index.md
Outdated
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` |
There was a problem hiding this comment.
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"?
Be very explicit the first few times.
Clarify and standardize directory structure and venv location pyvec#442
~/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.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/