Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tetel:
- def __init__ (self, f):
- self.lista = []
- f = f
- with open(f) as f:
- for l in f:
- self.lista.append(int(l))
- def osszegez (self):
- query = sum(self.lista)
- return query
- def maxker (self):
- query = max(self.lista)
- return query
- def feltmaxker (self, f):
- query = max(filter(f, self.lista))
- return query
- def szamlal (self, f):
- query = filter(f, self.lista)
- return query.__len__()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement