Python Classes/Objects
Programming Progress Log » Devlog
class Girl:
def __init__(self,name,age):
self.name=name
self.age=age
p2=Girl("Anna", 19)
print(p2.name)
print(p2.age)
Anna 19
Programming Progress Log
More posts
- List FunctionsNov 14, 2022
- While LoopsOct 24, 2022
- LoopsOct 16, 2022
- ListsOct 16, 2022
- Short Circuit PracticeOct 16, 2022
- Using VariablesOct 15, 2022
- Converting degrees to farenheitOct 15, 2022
- First CodeOct 15, 2022
Leave a comment
Log in with itch.io to leave a comment.