I wanna make a "Hello, (name)." function into Python by trying to make the printf function in C.
I want to turn it from this:
name = input("What's your name? ") print(f"Hello, {name}.")
Into this:
name = input("What's your name? ") printf("Hello, %s.", name")
I started off the function like this and I knew it wasn't going to work because of the second argument:
def printf(text, ...): print(text)
How can I make a properly working printf function like this?
Hi Jain,
I am an OutSystems forum moderator, You are posting your question in the wrong forum. You can post questions here about OutSystems (development). I will close this topic.
Maybe you should try https://www.python.org/community/forums/
Regards,
Daniel