Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- class footballmen:
- gol = 0.0
- koor = 0
- number = 0
- def zabil_li_gol(self, procent):
- if self.gol >= procent:
- return True
- else:
- return False
- pole = [0 for x in range(1000000000) if True]
- footballmens = []
- for x in range(20):
- fut = foutballmen()
- fut.number = x
- fut.gol = random.uniform(0, 100)
- fut.koor = random.randint(0, 1000000000)
- footballmens.append(fut)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement