print "Hello World" my_str = "Hello World" result = (234 - 128)*0.923 #typecast operators #zeichenkette string: str() #gleitkommazahl float: float() #ganzzahl integer: int() print float(int (result)) print "the result is " + str(result) print "the message is " + str(result) my_list = [ 12, 141, 345, 51, 3, 958] my_colleagues = ["andi", "adam", "franziska", "salim", "michi", "urs"] print len(my_colleagues) for x in my_colleagues: print x print my_list print my_list[0] print my_str[3:] i = 0 while (i < len(my_colleagues)): print my_colleagues[i] i = i+1 print my_colleagues[3] print my_colleagues[0] print my_colleagues[1] print my_colleagues[2] print my_colleagues[3] print my_colleagues[4] print my_colleagues[5]