-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFormatting.py
14 lines (11 loc) · 996 Bytes
/
Formatting.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Family_List = ['Sergio Ramos', '4229 Beech Street', 'Antioch CA', '916.555.000']
My_List = ['Daniel Carvajal', '3147 Doctors Drive', 'Los Angeles CA', '917.555.030']
Our_List = ['Luka Jovic', '1455 Blvd County', 'Bedrock CA', '918.555.020']
His_List = ['Luka Modric', '5823 Poplar Chase Lane', 'New Meadows ID', '919.555.010']
print("")
print("Name Address City Phone")
print("------------------ ------------------ ----------------- -------")
print("{0:18} {1:20} {2:16} {3:15}".format(Family_List[0],Family_List[1],Family_List[2], Family_List[3]).strip())
print("{0:18} {1:20} {2:16} {3:15}".format(My_List[0], My_List[1], My_List[2], My_List[3]).strip())
print("{0:18} {1:20} {2:16} {3:15}".format(Our_List[0], Our_List[1], Our_List[2], Our_List[3]).strip())
print("{0:18} {1:20} {2:16} {3:15}".format(His_List[0], His_List[1], His_List[2], His_List[3]).strip().split(','))