Skip to main content
explained alternative method and why it cannot be used.
Source Link

Python 3, 22 bytes

print("Hello, World!") 

In Python 3 is longer than Python 2 for, printing is a function and so it requires parenthesis.

A 16 byte solution would be import __hello__, but annoyingly this prints the message without the comma!

Python 3, 22 bytes

print("Hello, World!") 

Python 3 is longer than Python 2 for printing.

Python 3, 22 bytes

print("Hello, World!") 

In Python 3, printing is a function and so it requires parenthesis.

A 16 byte solution would be import __hello__, but annoyingly this prints the message without the comma!

added 34 characters in body
Source Link
mbomb007
  • 23.6k
  • 7
  • 66
  • 143

Python 3, 22 bytes

print("Hello, World!") 
print("Hello, World!") 

Python 3 is longer than pythonPython 2 for printing.

Python 3, 22 bytes

print("Hello, World!") 

Python 3 is longer than python 2 for printing.

Python 3, 22 bytes

print("Hello, World!") 

Python 3 is longer than Python 2 for printing.

This is 22 :)
Source Link
Sp3000
  • 62.3k
  • 13
  • 117
  • 292

Python 3, 2122 bytes

print("Hello, World!") 

Python 3 is longer than python 2 for printing.

Python 3, 21 bytes

print("Hello, World!") 

Python 3 is longer than python 2 for printing.

Python 3, 22 bytes

print("Hello, World!") 

Python 3 is longer than python 2 for printing.

Source Link
Blue
  • 28.8k
  • 8
  • 53
  • 101
Loading