Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def check_if_on_board(x, y):
- '''Checks if given point (x, y) is on board'''
- x_y_list = range(-10, 10)
- if x in x_y_list and y in x_y_list:
- print("Punkt znajduje sie w ukladzie wspolrzednych.")
- else:
- print("Punkt znajduje sie poza ukladem wspolrzednych")
- check_if_on_board(1, 3)
- check_if_on_board(4, -3)
- check_if_on_board(-5, -3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement