Quick actions

cmd+k|ctrl+k

Navigation

Languages

more return examples

Snippet info

Language

Python

Visibility

public

Author

gustav

Created

2026-08-09T01:50:28.999474Z

Updated

2026-08-09T04:08:50.923078Z

def sum(num1, num2):
  def another_func(n1, n2):
    return n1 + n2
  return another_func#(num1, num2) <-
  
total = sum(10, 10)
print(total)#print(total(10, 10))  # <- We need to call the function

INFO