01: #! /usr/bin/python
02: 
03: """
04: This is a test for the handling of
05: comments and string literals in Python
06: """
07: 
08: '''
09: This is a test for the handling of
10: comments and string literals in Python
11: '''
12: 
13: "And this is a string meant as comment"
14: 
15: def test():             # The test routine
16:   '''
17:   It does nothing but printing different strings
18:   '''
19: 
20:   """
21:   It does nothing but printing different strings
22:   """
23: 
24:   print "This is the first test",
25:   print 'and this the second'
26: 
27:   'Here start the multi-lined outputs'
28: 
29:   print '''
30: Here we have
31: a multi-line
32: string.
33: '''
34: 
35:   print """
36: Here we have
37: a multi-line
38: string.
39: """
40:   print '''
41: And this is a
42: second one
43: '''
44:   # End of printing
45:   pass                  # A NOP at last
46: 
47: """
48: """
49: 'And here the fun starts'
50: test()
51: 
52: table = { 'S'  : ['5'],
53:  'a'  : ['4','a','@'],
54:  'b'  : ['8','B'],
55:  "ps" : ["Pz"],
56:  'ss' : ['5S','S5'],
57:  'es' : ['3Z','3z'],
58:  'ou' : ['00'] }
59: