Skip to content

Commit ace8ac4

Browse files
committed
import class from modul
1 parent e9c3a03 commit ace8ac4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import mainClass
2+
First = mainClass.FirstTest().test
3+
Second = mainClass.SecondTest().test2
4+
print(First)
5+
print(Second)

mainClass.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class FirstTest:
22
def test():
3-
return("Function test in class FirstTest is work")
3+
print("Function test in class FirstTest is work")
44

55
class SecondTest:
66
def test2():
7-
return("Function test2 in class SecondTest is work")
7+
print("Function test2 in class SecondTest is work")

mainClass.pyc

831 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)