diff --git a/README.md b/README.md index c667b50d3..3239b62e8 100644 --- a/README.md +++ b/README.md @@ -495,6 +495,10 @@ Numbers = pow(, ) # Or: ** = abs() # = abs() = round( [, ±ndigits]) # `round(126, -1) == 130` + = input() # name = input('Enter your name: ') + = len() # arg can be be a string, bytes, tuple, list, dictionary, set or range + = max(, , <*args[,key]>) # Returns largest item in iterable or the largest of two or more arguments + = min(, , <*args[,key]>) # Returns smallest item in iterable or the smallest of two or more arguments ``` ### Math diff --git a/index.html b/index.html index 32e638905..9f3d8bff9 100644 --- a/index.html +++ b/index.html @@ -590,6 +590,10 @@

Basic Functions

<num> = pow(<num>, <num>)                # Or: <num> ** <num>
 <num> = abs(<num>)                       # <float> = abs(<complex>)
 <num> = round(<num> [, ±ndigits])        # `round(126, -1) == 130`
+<variable_name> = input(<prompt>)        # name = input('Enter your name: ')
+    <size> = len(<arg>)                      # arg can be be a string, bytes, tuple, list, dictionary, set or range
+    <max_num> = max(<arg1>, <arg2>, <*args[,key]>) # Returns largest item in iterable or the largest of two or more arguments
+    <min_num> = min(<arg1>, <arg2>, <*args[,key]>) # Returns smallest item in iterable or the smallest of two or more arguments
 

Math

from math import e, pi, inf, nan, isinf, isnan