Closed Tomant1 closed 5 years ago
We are using the python standard defined by OOSE_2018s1_OOLanguageComparison.pdf which is available in the discord, some differences apply.
We are using brackets for conditional logic.
if (x == true):
#code
Comments which apply to single lines like variables are placed on the same line.
x == true #sets x to true
We are using the second standard for class functions.
class Person:
def __init__(self, name, age):
assert isinstance(name, str) # Optional
assert isinstance(age, int) # Optional
self._name = name
self._age = age
def getName(self):
return self._name
def getAge(self):
return self._age
def setAge(self, age)
self._age = age
Need to make/agree on standard syntax procedures and need to apply all these procedures to all existing and future code.