Python nested function calls

7 Views
Published
Python nested function calls

#python #nested #functions

# -------------------------------------------------------------------------------------
# nested functions calls = function calls inside other function calls
# innermost function calls are resolved first
# returned value is used as argument for the next outer function

# num = input("Enter a whole positive number: ")
# num = float(num)
# num = abs(num)
# num = round(num)
# print(num)

print(round(abs(float(input(" ")))))
# -------------------------------------------------------------------------------------

Bro Code merch store
Category
Bro Code
Tags
python nested functions, python nested function calls, python
Be the first to comment