Nested Functions In Python are Easy!🐍
ฝัง
- เผยแพร่เมื่อ 25 ก.ย. 2024
- PLEASE LIKE AND SUBSCRIBE ITS FREE!
#beginners #tutorial #python
Check out my other videos to learn more computer science & programming concepts please :)
Code used in the video will be pinned in the comments!
Socials and other platforms:
linktr.ee/Yous...
# nested function calls = function calls inside another function call
#
# innermost function calls are resolved first
# returned value is used as an argument for the next outer function
# a function
# num = input("Enter a positive number: ")
# num = float(num)
# num = abs(num)
# num = round(num)
# print(num)
# same function but nested format
print(round(abs(float(input("Enter a positive number: ")))))
😁😁😁