Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/31/15 in all areas

  1. Cel mai bun tutorial pe care l-am citit so far. Give it a try: Spolier: So Everything Has A Class? class Customer(object): """A customer of ABC Bank with a checking account. Customers have the following properties: Attributes: name: A string representing the customer's name. balance: A float tracking the current balance of the customer's account. """ def __init__(self, name, balance=0.0): """Return a Customer object whose name is *name* and starting balance is *balance*.""" self.name = name self.balance = balance def withdraw(self, amount): """Return the balance remaining after withdrawing *amount* dollars.""" if amount > self.balance: raise RuntimeError('Amount greater than available balance.') self.balance -= amount return self.balance def deposit(self, amount): """Return the balance remaining after depositing *amount* dollars.""" self.balance += amount return self.balance
    1 point
  2. Nu o sa te invete nicio scoala programare in adevaratul sens al cuvantului. Asta se invata singur. Daca esti in fata unui calculator cu acces la internet si ai nevoie de o scoala ca sa inveti programare, iti recomand sa te gandesti serios daca asta iti doresti cu adevarat.
    1 point
This leaderboard is set to Bucharest/GMT+02:00
×
×
  • Create New...