Sinisterly

Full Version: python chellenge
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
i chellenge you to write helo world in a single line without writing
print("hello world") Cool
getattr(__import__("os"), "write")(1, "Hello world!\n")

__import__("sys").stdout.write('hello world')
(05-28-2020, 06:39 PM)sefefew Wrote: [ -> ]getattr(__import__("os"), "write")(1, "Hello world!\n")

Source.
from os import system; system("echo hello world")
Python with Data Science Course. Python is a highly effective language, interpreted and object oriented language.
This is why I like python. There's always a way to make it far more complicated than it needs to be lol
Code:
from pprint import pprint; pprint("Hello, World!")