From b46fa659e20ef77e1128ad6a24909d6b3026eea7 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Tue, 5 Dec 2023 18:54:30 +0100 Subject: [PATCH] Update README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- python_basics/basic_math_operations/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/python_basics/basic_math_operations/README.md b/python_basics/basic_math_operations/README.md index 303d6c6..fa09958 100644 --- a/python_basics/basic_math_operations/README.md +++ b/python_basics/basic_math_operations/README.md @@ -10,6 +10,8 @@ Questions to [David Rotermund](mailto:davrot@uni-bremen.de) ## Number is Python +In Python everything is a class. Numbers are classes as well. + ### Integer ```python @@ -31,6 +33,15 @@ a_second_number = 3.33​ a_second_number = int(a_second_number)​ print(type(a_second_number))​ # -> ​ ``` +Examples are here: +* [float(x=0.0)](https://docs.python.org/3/library/functions.html#float) +* [bin(x)](https://docs.python.org/3/library/functions.html#bin) +* [bool(x=False)](https://docs.python.org/3/library/functions.html#bool) +* [bytes(source=b'')](https://docs.python.org/3/library/functions.html#func-bytes) +* [complex(real=0, imag=0)](https://docs.python.org/3/library/functions.html#complex) +* [hex(x)](https://docs.python.org/3/library/functions.html#hex) +* [int(x=0)](https://docs.python.org/3/library/functions.html#int) +* [str(object='')](https://docs.python.org/3/library/functions.html#func-str) ## [Basic math operations​](https://docs.python.org/3/library/stdtypes.html#numeric-types-int-float-complex​)