Difference between revisions of "User:Praveer-mathur-9f3d@uni-bonn.de/python-on-hpc"
Jump to navigation
Jump to search
| Line 15: | Line 15: | ||
+ The current working directory | + The current working directory | ||
|| Explanation: Correct | || Explanation: Correct | ||
| + | </quiz> | ||
| + | {{hidden end}} | ||
| + | |||
| + | === Short Quiz: Virtual Environments === <!--T:5--> | ||
| + | |||
| + | {{hidden begin | ||
| + | |title = Which of the following statements is true? | ||
| + | }} | ||
| + | <quiz display=simple> | ||
| + | { | ||
| + | |type="[]"} | ||
| + | + venv comes with Python | ||
| + | || Explanation: Correct | ||
| + | - Virtual environments always go to ~/.virtualenvs | ||
| + | || Explanation: Wrong | ||
| + | - Each virtual env always has its own Python instance | ||
| + | || Explanation: Wrong | ||
| + | + The activate script has to be source-d to activate the venv | ||
| + | || Explanation: Correct | ||
| + | - The deactivate script has to be source-d to deactivate the venv | ||
| + | || Explanation: Wrong | ||
</quiz> | </quiz> | ||
{{hidden end}} | {{hidden end}} | ||
Revision as of 13:35, 17 March 2026
Short Quiz: Python Packages
Which of these locations will Python search for packages by default?
Short Quiz: Virtual Environments
Which of the following statements is true?