a "idea" name or confirmation what I want is easilly obtainable?
I want to create, for example, a class called day with some atributes (temp, todos, whatever, funtions whatever)
I dont mind writing that out manually but I want a way to create multiple instances of that named "dynamically", for example, have a list with sun, mon, tues and be able to create 'day' objects for every item in that list. in this example that could be done manually but in my real situation there is an uncertain number of objects and I want them to be named based on a variable.
Any idea what I shoud google to find this structure or whatever?
Read up: https://docs.python.org/3/tutorial/classes.html
Обсуждают сегодня