Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
Python
2022-02-14 15:15:18
python function decorator
def our_decorator(func): def function_wrapper(x): print("Before calling " + func.__name__) func(x) print("After calling " + func.__name__) return function_wrapper @our_decorator def foo(x): print(&q...
Add solution
Python
2022-02-02 09:06:04
how to specify an input type to a function in python
def function(input1: int, input2: float, input3: bool, input4: list, input5: str): pass
Add solution
Other
2022-01-31 12:15:10
qasim kheran python
def function(number): negative = 10 positive = 1 negative_side = [] positive_side = [] while negative >= 1 and positive <= 10: negative_side.append((number - negative)**2) positive_side.append((number + positiv...
Add solution
TypeScript
2022-01-31 07:20:25
2 positional arguments but 3 were given
#Positional arguments are the amount of arguments passed through a function #For example def function(value1, value2): print(value1) print(value2) function("value1","value2","value3")
Add solution
Python
2022-01-28 20:45:29
python nested function
var = 0 name = 'absicsa' def function_outer(): # global var ; no need to declare to call the value name = 'nabisco' def function_inner(): global var # need to declare global to modify the value name = 'outlet' var = 2...
Add solution
Python
2022-01-26 20:47:00
python decorators
def our_decorator(func): def function_wrapper(x): print("Before calling " + func.__name__) func(x) print("After calling " + func.__name__) return function_wrapper @our_decorator def foo(x): print(&q...
Add solution
Python
2022-01-23 01:45:01
python referenced before assignment in function
variable = "Hello" def function(): global variable print(variable) function()
Add solution
Other
2021-11-20 02:07:21
Phoenix defp
defmodule MyModule do def function do # call all the defp functions below to do something end defp function2 do # do something that no other module cares about or needs to know about end defp function3 do # do something that no ot...
Add solution
Other
2021-10-21 22:19:05
qasim kheran
def function(number): negative = 10 positive = 1 negative_side = [] positive_side = [] while negative >= 1 and positive <= 10: negative_side.append((number - negative)**2) positive_side.append((number + positiv...
Add solution
Python
2021-10-21 19:36:08
python docstring use
def functionName(): """ This is a function docstring """
Add solution
‹
1
2
›
Best helpers
daily
weekly
monthly
for 3 months
Michaeljt
+5
Nelson Menezes
+5
Andrei Petrenko
+5
Sudheesh
+5
Required
+5
Annedy
+5
Aesthetic_Bran
+5
F1234k
+5
Ann
+5
AndyP
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.