python Grammar

 

python

def greet(name):
  return f"Hello, {name}!"

users = [
  {"id": 1, "name": "Alice"},
  {"id": 2, "name": "Bob"}
]

for user in users:
  print(greet(user["name"]))

py

print("hello world")