Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python mod function

#the modulus operator is % in Python
5 % 3
#returns remainder: 2
Comment

mod in python

x1 = int(input())
y1 = int(input())
x2 = int(input())
y2 = int(input())

if( ( (x2-x1) % 2 = 1 and (y2-y1) % 2 = 1 ) or ( (x2-x1) % 2 = 0 and (y2-y1) % 2 = 0) ):
    print('YES')
else:
    print('NO')
Comment

PREVIOUS NEXT
Code Example
Python :: add python to path windows 10 
Python :: print column name and index dataframe 
Python :: Show column names and indexes dataframe python 
Python :: login system in django 
Python :: range(n,n) python 
Python :: what are while loops 
Python :: python youtube downloader (Downloading multiple videos) 
Python :: python child class init 
Python :: save python pptx in colab 
Python :: transcript with timestamps in python 
Python :: Patch loop runner _run_once 
Python :: python programming online editor 
Python :: Missing Data Plotly Express px.data 
Python :: what is a rare earth 
Python :: Multiple page UI within same window UI PyQt 
Python :: Second step creating python project 
Python :: if boolean func 
Python :: nltk python text from url 
Python :: #finding the differences between setA and SetB: 
Python :: databases not showing in odoo 13 
Python :: 2d arrary.push in python 
Python :: make n copies of item in list 
Python :: hack twitter with python 
Python :: django annotate datetime field to char 
Python :: django query column 
Python :: python integrated with activeX 
Python :: how to use wbtools in python 
Python :: python program to get equally distributed number from given range 
Python :: exec inside def is not working in python 
Python :: shorter Max fonction code in python 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =