abobaker09

contsort in python

Oct 9th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. # الثوابت وتمرير القيم اثناء انشاء الكائن
  2. class bbb:
  3.     def __init__(self,x,y):
  4. #__init__ هي دالة جاهزة لتمرير الثوابت
  5.         self.x=x
  6.         self.y=y
  7.     def g(self):
  8.         return self.x+self.y
  9. b=bbb( (int(input("enter the numer1 \n"))) , (int(input("enter the numer2\n"))) )
  10. #يتم تمرير الثوابت اثناء انشاء الكائن
  11. print(b.g())
Advertisement
Add Comment
Please, Sign In to add comment