Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def citire():
- x=int(input("Introdu coordonata x:"))
- y=int(input("Introdu coodonata y:"))
- p=(x,y)
- return p
- def distanta(a,b):
- distanta = math.sqrt ((a[0]-a[1] ** b[0]-b[1]) ** 2)
- return distanta
- a=citire()
- print(a)
- b=citire()
- print(b)
- x=distanta(a,b)
- print(x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement