- 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

10th Sep 2022, 9:30 AM
Abdulgaffar Muhammad
3 Respuestas
+ 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 "="
10th Sep 2022, 9:35 AM
Lisa
Lisa - avatar
+ 1
Janusz 's code
10th Sep 2022, 11:29 AM
JAbAR
JAbAR - avatar
+ 1
Thanks, I got it
10th Sep 2022, 5:09 PM
Abdulgaffar Muhammad