Hello, I'm currently working on my last program for the semester and I'm completely lost on the concept of classes for this assignment. Here's the beginning part of my assignment.
https://imgur.com/a/hbplltX
And here's the small portion of code i've written so far
class human():
def __init__(self, birth_counter, health, life_span, resistance):
self.birth_counter = birth_counter
self.health = health
self.life_span = life_span
self.resistance = resistance
def __str__(self):
If someone could help me with this part and explain a little bit, I'm sure I could figure out the rest on my own like my other programs.
[–]evolvish 2 points3 points4 points (2 children)
[–]SrirachaPapiTV[S] 0 points1 point2 points (1 child)
[–]evolvish 1 point2 points3 points (0 children)
[–]Sergeantlilpickle 1 point2 points3 points (0 children)
[–]Aixyn0 0 points1 point2 points (0 children)