From 1f6f76b2954cbd7cf14e53e0bd14fac7d0fb378e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sun, 24 Feb 2019 04:46:07 +0100 Subject: [PATCH] Numbers --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e750201..e2d08bb 100644 --- a/README.md +++ b/README.md @@ -377,8 +377,8 @@ Format * **`'X'` - HEX** -Numbers -------- +Math +---- ### Basic Functions ```python = pow(, ) # Or: ** @@ -412,7 +412,9 @@ from math import inf, nan, isinf, isnan float('inf'), float('nan') ``` -### Random + +Random +------ ```python from random import random, randint, choice, shuffle = random() @@ -478,7 +480,7 @@ def add(*a): 6 ``` -#### Legal argument combinations and calls: +#### Legal argument combinations with calls: ```python def f(*args) # f(1, 2, 3) def f(x, *args) # f(1, 2, 3) @@ -1424,7 +1426,7 @@ param_names = list(sig.parameters.keys()) ``` ### Type -**Type is the root class. If only passed the object it returns it's type. Otherwise it creates a new class (and not the instance!).** +**Type is the root class. If only passed the object it returns it's type (class). Otherwise it creates a new class (and not an instance!).** ```python = type(, , )