print('This is an example of print function')
# TESTING PYTHON 6.11.2014
# single line comment
'''
is multiple
line comments
'''
# Print function
# f.e. use for debugging etc.
print('This is an example of print function')
# You can use both single '' and double "" quotes.
print("We're going to store")
print('We said "Hi."')
# Also you can use special tip
print('we\'re going to the store')
print('Hi' + 'there')
print('Hi', 5)
print('Hi ' + str(5))
print(float('8.5')+5)
# Mathematics
# operations: + - * / also **
1+3
4**4
# Variables
exampleVar = 55
print(exampleVar)
exampleVar2 = print('whoa!')
x,y = (3,5)
print(x)
print(y)
# While-loop
condition = 1
while condition < 10 :
print(condition)
condition += 1 # this adds plus this is same as 'condition = condition + 1'
while True:
print('doing stuff.. and you can stop this with "control + c"')
# For-loop
exampleList = [1,5,3,2,6,8,9,3,4,2,2,1,9]
for eachNumber in exampleList:
print(eachNumber)
print('using tab here')
print('I dont use tab. Continue programming')
#another type of use for-loop
for x in range(1,11):
print(x)