Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import math
- def makeTable(m, n):
- table = {}
- for i in range(m, n + 1):
- tuple = (int(i**2), int(i**3), round(math.sqrt(i), 16))
- table[i] = tuple
- return table
- if __name__ == "__main__":
- m = input()
- n = input()
- x = input()
- table = {}
- tuple = ()
- if m > n or x < m or x > n:
- print "nema podatoci"
- else:
- tuple = (int(x**2), int(x**3), round(math.sqrt(x), 16))
- print tuple
- table = makeTable(m, n)
- print table
Advertisement
Add Comment
Please, Sign In to add comment