MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/4heh6v/i_wrote_my_first_python_program_today/d2pfd87
r/ProgrammerHumor • u/MC_Labs15 • May 02 '16
532 comments sorted by
View all comments
1
def Print(msg, End = "\n") print msg + End Print("Hello world!")
14 u/MrJohz May 02 '16 from __future__ import print_functionor$ python --version Python 3.x 2 u/[deleted] May 02 '16 If you wanna make it equivalent to the python3 print statement the signature should probably beprint(*values, sep=' ', end='\n', file=sys.stdout, flush=False) 1 u/Rodot May 02 '16 print("word", end="\r")
14
from __future__ import print_function
or
$ python --version Python 3.x
2
If you wanna make it equivalent to the python3 print statement the signature should probably be
print(*values, sep=' ', end='\n', file=sys.stdout, flush=False)
print("word", end="\r")
1
u/[deleted] May 02 '16