Skip to content

Instantly share code, notes, and snippets.

@symtkn
Created March 18, 2011 20:50
Show Gist options
  • Save symtkn/876812 to your computer and use it in GitHub Desktop.
Save symtkn/876812 to your computer and use it in GitHub Desktop.
Koordinatları verilen noktanın,koordinat düzlemindeki bölgesi
# -*- coding: cp1254 -*-
#!/usr/bin/python
def koordinat_bul(x,y):
if x>0 & y>0:
print"1.bölge"
elif x<0:
if y>0:
print"2.bölge"
else:
print"3.bölge"
elif x<0 & y<0:
print"4.bölge"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment