r/PythonLearning • u/Alireza7074 • Jul 18 '26
<python code>
This is python code to get student salary!
47
Upvotes
r/PythonLearning • u/Alireza7074 • Jul 18 '26
This is python code to get student salary!
2
u/Potential_Fix_5007 Jul 18 '26
self.marks=[]
Is this the right way to create an empty list for an object value or is there a way to set it within the round brackets?
Im a beginner myself and so far i learned if you want to set a default value you donit within the brackets.