Skip to content

Instantly share code, notes, and snippets.

@fenilgandhi
Last active September 14, 2022 07:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fenilgandhi/b529d5ffe6ed175277dd1fabd5269da8 to your computer and use it in GitHub Desktop.
Save fenilgandhi/b529d5ffe6ed175277dd1fabd5269da8 to your computer and use it in GitHub Desktop.
"""
Provide the definition of a function foo which returns the summation of
the given three integers when called as follows
"""
# Add function definition here
## Here result should be 12
result = foo(3)(4)(5)
@fenilgandhi
Copy link
Author

fenilgandhi commented Aug 4, 2022

Hint for anyone actually arriving to this page. 
 - Please pay attention to details in programming. 
 - The function is called as foo (3)(4)(5)  and not foo (3,4,5)

@Ayush472
Copy link

Ayush472 commented Aug 5, 2022

Foo (pronounced FOO) is a term used by programmers as a placeholder for a value that can change, depending on conditions or on information passed to the program. Foo and other words like it are formally known as metasyntactic variables.

this function is called not foo(3,4,5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment