Revision 23189a5ee981eee99036f28fd7ffbf066ccf1a4d authored by Lars Bilke on 06 October 2021, 14:40:30 UTC, committed by Lars Bilke on 11 October 2021, 08:32:08 UTC
1 parent c307865
Raw File
print23.py
#!/usr/bin/env python3

# Print statement that behaves the same for python 2 and 3.
# E,g, print_(1.0, 2, "5") will always print the string "1.0 2 5".
def print_(*args):
    print(" ".join(str(a) for a in args))
back to top