This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sum(num_1, num_2): | |
result = num_1 + num_2 | |
return result | |
test_number = sum(10 + 5) | |
print test_number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person(): | |
def __init__(self, *args, **kwargs): | |
self.age = 35 | |
self.name = 'Alex' | |
alex = Person() | |
print alex.name | |
print alex.age |