- 1
class Person: first_name: "Audu" last_name: "Musa" age: 20 obj = Person() print(obj.first_name)
Python it's showing Attribute error https://code.sololearn.com/c030pPn0gVP8/?ref=app
3 ответов
+ 7
Please do not put code in the title section rather put it in a script on sololearn playground.
Please put "Python" in the tag section, not the code.
Only link code that is related to your question.
PYTHON DOES NOT USE ":" FOR PROPERTY ASSIGNEMENT BUT "="
+ 1
Janusz 's code
+ 1
Thanks, I got it