first commit
This commit is contained in:
35
script.py
Normal file
35
script.py
Normal file
@@ -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)
|
Reference in New Issue
Block a user