Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = 1
- def inc(x):
- x= x +1
- print x
- return x
- if(inc(a)>0) or (inc(10)>0):
- pass
- print "--------"
- if(inc(a)>0) | (inc(10)>0):
- pass
- print "--------"
- print a
- print "--------"
- class Moja:
- def __init__(self):
- self.i=10
- def inc2(x):
- x.i=x.i+1
- y = Moja()
- inc2(y)
- print y.i
- print "--------"
- def inc3(x):
- x=x+"X"
- s = "ASD"
- inc3(s)
- print s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement