[ create a new paste ] login | about

Link: http://codepad.org/NeQfqKTd    [ raw code | output | fork ]

Python, pasted on Jul 3:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Fancy Credits
# Demonstrates escape sequences

# MUST be part of a string!
# \ followed by a special character

print("\t\t\tFancy Credits") # \t - tab key

print("\t\t\t \\ \\ \\ \\ \\ \\ \\")# \\ - print '\'
print("\t\t\t\tby")
print("\t\t\t  Lily Ma")
print("\t\t\t \\ \\ \\ \\ \\ \\ \\")

print("Special thanks goes out to:")
print("My hair stylist, Henry \'The Great,\' who never says \n\"can't.\"")

# sound the system bell
print("\a")

input("\n\nPress the enter key to exit.")


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
			Fancy Credits
			 \ \ \ \ \ \ \
				by
			  Lily Ma
			 \ \ \ \ \ \ \
Special thanks goes out to:
My hair stylist, Henry 'The Great,' who never says 
"can't."



Press the enter key to exit.Traceback (most recent call last):
  Line 20, in <module>
    input("\n\nPress the enter key to exit.")
EOFError


Create a new paste based on this one


Comments: