-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex08.py
More file actions
36 lines (28 loc) · 737 Bytes
/
Copy pathex08.py
File metadata and controls
36 lines (28 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split\non a line."
backslash_cat = "I'm \\ a \\ cat."
hello_cat = "\ahellooo"
fat_cat = """
I'll do a list:
\t* Cat food
\t* Fishies
\t* Catnip\n\t* Grass
"""
print(tabby_cat)
print(persian_cat)
print(backslash_cat)
print(fat_cat)
print(hello_cat)
#prints item in the list and rotates until user decides to go to new line.
#I haven't figured out how to exit it.
#When you take away \r, it floods the terminal with the items in list
#while True:
# for i in ["/", "-", "|", "\\", "|"]:
# print("%s\r" % i)
# False
#not sure when I would use the double quotes over the
#single quotes when it prints out the same.
new_cat = '''
I'm the new cat. MEOW.
'''
print(new_cat)