adding all files done so far

This commit is contained in:
2019-07-10 20:18:31 +01:00
parent 13c0e9cb4d
commit e3ac390e8b
76 changed files with 8644 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!~/.virtualenvs/learning/bin/python
class Customer(object):
"""example class defining a customer deposit and withdraw methods
for a bank.
Attributes:
name: A string represnting the customer's name
balance: A float tracking the current balance of the customer."""
def __init__(self, name, balance, list):
super(Customer, self).__init__()
self.name = name
self.balance = balance
self.list = list
print(self.name)
print(self.balance)
for i in range(len(self.list)):
print(self.list[i])
Customer('Homer', 200, ['100', '102', '103'])

View File

@@ -0,0 +1 @@
https://jeffknupp.com/blog/2017/03/27/improve-your-python-python-classes-and-object-oriented-programming/