Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

readme.md

SyntaxError: invalid syntax

Reproduce

def add_member(name, phone)
    return {"name": name, "phone": phone}

Error Messsge

SyntaxError: invalid syntax

Fix

def add_member(name, phone):
    return {"name": name, "phone": phone}

Reflection

Missed a colon after function definition.

Reference

Related Context

  • Seen while building a simple contact-log script.