Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A:
- def add_numbers(self,num1,num2):
- return num1 + num2
- import File_1
- class B:
- def perform_calc(type_of_calc,num1,num2):
- if type_of_calc == "add":
- result = File_1.A.add_numbers(self,num1,num2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement