Skip to content

Commit 28d5779

Browse files
committed
small stuff
1 parent bd21f17 commit 28d5779

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

basics/modules.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ All of these `.py` files can be imported like we just imported
5353
so we can use its randint variable with `random.randint` after
5454
importing it.
5555

56+
You're probably wondering how a computer can generate random numbers.
57+
The random module does different things on different operating systems,
58+
but on most systems it reads random noise that several programs on the
59+
computer produce and creates random numbers based on that.
60+
5661
## Where do modules come from?
5762

5863
Create a `random.py` file with the following content:
@@ -97,7 +102,7 @@ AttributeError: 'module' object has no attribute 'randint'
97102
>>>
98103
```
99104

100-
So first of all, what is that random variable?
105+
So first of all, what is that `random` variable?
101106

102107
```python
103108
>>> random
@@ -285,7 +290,7 @@ The official documentation for the time module is
285290
>>> time.time() # return time in seconds since beginning of the year 1970
286291
1474896325.2394648
287292
>>> time.strftime('%d.%m.%Y %H:%M:%S') # format current time nicely
288-
'26.09.2016 16:33:58'
293+
'07.04.2017 19:08:33'
289294
>>>
290295
```
291296

@@ -482,6 +487,8 @@ section at the bottom.
482487
- Python comes with many modules, and we can install even more modules
483488
if we want to.
484489

490+
**TODO:** exercises
491+
485492
***
486493

487494
If you have trouble with this tutorial please [tell me about

getting-help.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ places to ask for help in.
55

66
## IRC
77

8-
IRC is the oldest chatting service I know, but as of 2016, it's still
8+
IRC is the oldest chatting service I know, but as of 2017, it's still
99
in use, and a great way to get help in Python. You don't need to
1010
register anywhere, just click one of the links below and you're good to
1111
go.

0 commit comments

Comments
 (0)