Intan's Weblog

Bermain2 dengan Python @ubuntu jaunty

Posted on: April 9, 2010

vancouver@vancouver-desktop:~$ python

Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41)

[GCC 4.3.3] on linux2

Type “help”, “copyright”, “credits” or “license” for more information.

>>> print “na”*100

nananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananananana

>>> print “irreplaceable moment”*22

irreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable momentirreplaceable moment

>>> print “irreplaceable moment “*22

irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment irreplaceable moment

>>> print ” irreplaceable moment –“*22

irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment — irreplaceable moment —

>>> 2+3*4

14

>>> (2+3)*4

20

>>> length = 5

>>> breadth = 2

>>> area = length * breadth

>>> print(‘Area is’, area)

(‘Area is’, 10)

>>> print(‘Perimeter is’, 2 * (length + breadth))

(‘Perimeter is’, 14)

>>> print(‘intann’)

intann

>>> print “everything is gonna be fine :)”

everything is gonna be fine🙂

>>> i = 5; print(i)

5

>>> s = ‘This is a string. \

… This continues the string.’

>>> print(s)

This is a string. This continues the string.

>>> i=5

>>> print(‘value is’, i)

(‘value is’, 5)

>>> print ”’this is a sentence.

… this is a real sentence.”’

this is a sentence.

this is a real sentence.

>>> i = 5

>>> print(i)

5

>>> i = i + 1

>>> print(i)

6

>>> s = ”’This is a multi-line string.

… This is the second line.”’

>>> print(s)

This is a multi-line string.

This is the second line.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: