Skip to content

Commit eaf7194

Browse files
authored
Add files via upload
0 parents  commit eaf7194

17 files changed

+4520
-0
lines changed

Map.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env python3
2+
3+
import webbrowser
4+
import sys
5+
import pyperclip
6+
7+
sys.argv
8+
9+
if len(sys.argv) > 1:
10+
address = ' '.join(sys.argv[1:])
11+
else:
12+
address = pyperclip.paste()
13+
14+
webbrowser.open('www.google.com/maps/place/' + address)
15+
16+

advancedstring.py

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
print('This is using single quotes')
2+
print("This is using double quotes, Bob's")
3+
print('This is using a escape character, Bob\'s')
4+
print("This is using the newline escape,\nBob's")
5+
6+
print(r'This is a raw string, meaing you can see escape characters, ')
7+
8+
print("""this is a multiline sentence, meaning it can be used as multiple lines
9+
""")

append.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
names = ['John', 'Jack', 'Jill']
2+
3+
print("This list has names:")
4+
for i in range(len(names)):
5+
print(str(names[i]))
6+
7+
print()
8+
print("Enter your name to add to the list:")
9+
name = input()
10+
11+
names.append(name)
12+
print()
13+
14+
print("This list now has names: ")
15+
for i in range(len(names)):
16+
print(str(names[i]))
17+

board.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
board = {'top-L' : 'X', 'top-M': 'X', 'top-R': 'X', 'middle-L': ' ', 'middle-M': ' ', 'middle-R':' ', 'bottom-L':' ', 'bottom-M': ' ', 'bottom-R':' '}
3+
4+
def printBoard():
5+
print(f"{board['top-L']}|{board['top-M']}|{board['top-R']}")
6+
print('-----')
7+
print(f"{board['middle-L']}|{board['middle-M']}|{board['middle-R']}")
8+
print('-----')
9+
print(f"{board['bottom-L']}|{board['bottom-M']}|{board['bottom-R']}")
10+
11+
12+
printBoard()

0 commit comments

Comments
 (0)