From 9907d56a2924cb5fb8c574d32b39303ee9d2caa8 Mon Sep 17 00:00:00 2001 From: cmod31 Date: Fri, 10 Jun 2022 09:43:44 +0200 Subject: [PATCH] first commit --- script.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 script.py diff --git a/script.py b/script.py new file mode 100644 index 0000000..ed1fc77 --- /dev/null +++ b/script.py @@ -0,0 +1,35 @@ +""" +multiline +comments +1 +2 +""" +print("hello world!") +hello = 'hello2' +world = 'world2' +x = 1 +y = 2 +z = x + y +a = hello + world +if a == 'hello2world2': + print a , z + +mylist = [2,3,4,5] +print('ich esse %s kinder' % mylist) + +number = 11.0 / 2.0 + 8.0 * 4.0 +print number +#without comma +numberweird = 11 / 2 + 8 * 4 +print numberweird + +#5hoch2 +squared = 5**2 +print squared +cubed = 3**3 +print cubed + +lotsofhellow = 'hello ' *10 +print lotsofhellow + +print([1,2,3] * 3) \ No newline at end of file