Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def inputxy():
- x = int(input("Enter X: "))
- y = int(input("Enter Y: "))
- return {
- "x": x,
- "y": y
- }
- def compute(xy):
- x = xy["x"]
- y = xy["y"]
- total = 1
- for i in range(y):
- print(i)
- total *= x
- return total
- def display(total):
- print(total)
- if __name__ == "__main__":
- display(compute(inputxy()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement