From ef6dacc1751d1b2a649ad458c5f6e42099d7844b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Fri, 30 Nov 2018 21:36:28 +0100 Subject: [PATCH] Format --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index da95541..2463e79 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ String ### Print ```python -print( [, , end='', sep='', file=]) # Use 'file=sys.stderr' for err. +print( [, , end='', sep='', file=]) # Use 'file=sys.stderr' for err. ``` ### Regex @@ -224,7 +224,7 @@ import re ### Format ```python -'{}'.format( [, , ...]) +'{}'.format( [, , ...]) ``` ```python @@ -270,7 +270,7 @@ Numbers ### Basic Functions ```python -round([, ndigits]) +round( [, ndigits]) abs() math.pow(x, y) # Or: x**y ``` @@ -288,7 +288,7 @@ from math import cos, acos, sin, asin, tan, atan, degrees, radians ### Logarithm ```python from math import log, log10, log2 -log(x[, base]) # Base e, if not specified. +log(x [, base]) # Base e, if not specified. log10(x) # Base 10. log2(x) # Base 2. ``` @@ -997,7 +997,7 @@ Plot ```python # $ pip3 install matplotlib from matplotlib import pyplot -pyplot.plot( [, ]) +pyplot.plot( [, , ...]) pyplot.show() pyplot.savefig(, transparent=True) ```