File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ All of these `.py` files can be imported like we just imported
5353so we can use its randint variable with ` random.randint ` after
5454importing 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
5863Create 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
2862911474896325.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
487494If you have trouble with this tutorial please [ tell me about
Original file line number Diff line number Diff 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
99in use, and a great way to get help in Python. You don't need to
1010register anywhere, just click one of the links below and you're good to
1111go.
You can’t perform that action at this time.
0 commit comments