Write me a Python script for the slope of a line given two points.
system
mujhe do ank die gaye ek pankti ke dhalaan ke liye ek paythan script likhen.
user
yah paythan script aapke liye ek pankti kii dhalaan kii gananaa karegi:

# dhalaan kii gananaa karne ke liye ek fnction ko paribhaashit karen
DEF slop (X1, Y1, X2, Y2):
    # 0 dwaara ek divijan ke liye jaanch karen
    if (x2 - x1)! = 0:
        vaapasi (y2 - y1)/(x2 - x1)
    anya:
        print ("0. se vibhajit nahin kar saktaa")

# gyaat nirdeshaank nirdhaarit karen
X1 = 4
y1 = 2
x2 = 2
y2 = 1

# fnction kaa parinaam print karen
print (dhalaan (x1, y1, x2, y2))

script ek `dhalaan ()` fnction ko paribhaashit karti he jo `x1`,` y1`, `x2`, or` y2` ko sweekaar karti he.yah ek `agar/or` kathan ke saath shunya dwaara sambhavit divijan ke liye jaanch karata he, to sameekaran (y2 - y1)/(x2 - x1) ke aadhaar par dhalaan kaa maan lautaata he.nirdeshaank char `x1`,` y1`, `x2`, or` y2` ke saath set kiye gaye hai, or fnction ko un char ke sambandh main ek` print () `kathan main kaha jaataa he jo lautaa hua dhalaan maan ko output karata he.
assistant
<|system|>
</s>
<|user|>
mujhe do ank die gaye ek pankti ke dhalaan ke liye ek paythan script likhen.</s>
<|assistant|>
yah paythan script aapke liye ek pankti kii dhalaan kii gananaa karegi:

# dhalaan kii gananaa karne ke liye ek fnction ko paribhaashit karen
DEF slop (X1, Y1, X2, Y2):
    # 0 dwaara ek divijan ke liye jaanch karen
    if (x2 - x1)! = 0:
        vaapasi (y2 - y1)/(x2 - x1)
    anya:
        print ("0. se vibhajit nahin kar saktaa")

# gyaat nirdeshaank nirdhaarit karen
X1 = 4
y1 = 2
x2 = 2
y2 = 1

# fnction kaa parinaam print karen
print (dhalaan (x1, y1, x2, y2))

script ek `dhalaan ()` fnction ko paribhaashit karti he jo `x1`,` y1`, `x2`, or` y2` ko sweekaar karti he.yah ek `agar/or` kathan ke saath shunya dwaara sambhavit divijan ke liye jaanch karata he, to sameekaran (y2 - y1)/(x2 - x1) ke aadhaar par dhalaan kaa maan lautaata he.nirdeshaank char `x1`,` y1`, `x2`, or` y2` ke saath set kiye gaye hai, or fnction ko un char ke sambandh main ek` print () `kathan main kaha jaataa he jo lautaa hua dhalaan maan ko output karata he.</s>
