DEV Community

Cover image for "function take an argument" (PYTHON3)
francnstein
francnstein

Posted on • Edited on

2 1

"function take an argument" (PYTHON3)

When a function take an argument my intentions are clear :)

def say_it_loud(word):
print(word + "!")

say_it_loud("GET BETTER")
say_it_loud("KEEP CODING")
say_it_loud("HACKING HOLLYWOOD")

GET BETTER!
KEEP CODING!
HACKING HOLLYWOOD!

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay