Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Currency:
- def __init__(self, currency):
- self.currency = currency
- self.price = 0
- currencies = [ Currency("LTC"), Currency("BTC"), Currency("USD") ]
- for currency in currencies:
- price = apiprice( currency.currency)
- currency.price = price
- for currency in currencies:
- print currency.price
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement