fork download
  1. # your code goes here
  2. import random
  3.  
  4. class Pol():
  5. def __init__(self, x, y):
  6.  
  7. self.x = x + 5
  8. self.y = self.x + y
  9. self.z = random.randint(self.x, self.y)
  10.  
  11. def toDo(self):
  12. a = self.z + 3
  13. dt = str(a)
  14. for i in dt:
  15. if i == "3" or i == "5":
  16. dt += i
  17. svs = int(dt)
  18.  
  19.  
  20.  
  21.  
  22. if a < svs:
  23. print("Yes")
  24. else:
  25. print("No")
  26.  
  27. return svs
  28. object1 = Pol(3, 5)
  29.  
  30. if __name__ == "__main__":
  31. print(object1.toDo())
Success #stdin #stdout 0.04s 12360KB
stdin
Standard input is empty
stdout
Yes
133