Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 2.6.4 >>> print "tere" tere >>> print "kuku" kuku >>> 3+2 5 >>> eesnimi="juku" >>> print eesnimi juku >>> print "Tere, "+eesnimi Tere, juku >>> a=3 >>> b=4 >>> print a*b 12 >>> print a*b/2 6 >>> print "Tere, "+eesnimi+"!" Tere, juku! >>> print eesnimi[0] j >>> print eesnimi[-1] u >>> linnad=["Haapsalu", "Tartu"] >>> print linnad[0] Haapsalu >>> linnad.append("Narva") >>> print linnad ['Haapsalu', 'Tartu', 'Narva'] >>> linnad.sort() >>> print linnad ['Haapsalu', 'Narva', 'Tartu'] >>> eesnimi.capitalize() 'Juku' >>> eesnimi.__help__ Traceback (most recent call last): File "", line 1, in eesnimi.__help__ AttributeError: 'str' object has no attribute '__help__' >>> eesnimi.__doc__ 'str(object) -> string\n\nReturn a nice string representation of the object.\nIf the argument is a string, the return value is the same object.' >>> eesnimi.__index__ Traceback (most recent call last): File "", line 1, in eesnimi.__index__ AttributeError: 'str' object has no attribute '__index__' >>>