Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def record(f_arg, *argv):
- arg = { "name: ",recordName,", points: ",recordPoints,", "}
- for arg in argv:
- if arg.userPoints is max(argv.recordPoints):
- print(arg.recordName," ma najmniej punktow")
- for arg in argv:
- if arg.userPoints is min(argv.recordPoints):
- print(arg.recordName," ma najwiecej punktow")
- ranking( {name: "John", points: 100, }, {name: "Bob", points: 120, }, {name:"Michealle", points: 40, } )
- #output:
- # Michelle ma najmnjej punktów
- # Bob ma najwiecej punktow
- ranking( {name: "John", points: 100, }, {name: "Bob", points: 120, }, {name:"Michealle", points: 40, }, {name: "Riddick", points:170, }, {name: "Mariah", points = 10, } )
- #output:
- # Mariah ma najmniej punktow
- # Riddick ma najwiecej punktow
Advertisement
Add Comment
Please, Sign In to add comment