Skip to main content
Commonmark migration
Source Link

#Python, 15 bytes

Python, 15 bytes

Python 2 (15)

exec"\150elp()"

It concatenates the strings uses the octal 150 which is h and "elp()" and runs the result. This prints the help() command which says "Welcome to Python 3.5's help utility!", meeting the requirements.

Python 3 (17)

exec("\150elp()")

Try it online!

#Python, 15 bytes

Python 2 (15)

exec"\150elp()"

It concatenates the strings uses the octal 150 which is h and "elp()" and runs the result. This prints the help() command which says "Welcome to Python 3.5's help utility!", meeting the requirements.

Python 3 (17)

exec("\150elp()")

Try it online!

Python, 15 bytes

Python 2 (15)

exec"\150elp()"

It concatenates the strings uses the octal 150 which is h and "elp()" and runs the result. This prints the help() command which says "Welcome to Python 3.5's help utility!", meeting the requirements.

Python 3 (17)

exec("\150elp()")

Try it online!

deleted 94 characters in body
Source Link

#Python 2/3, 28 17 (3) and 15 (2) bytes

##Python 3

Python 2 (15)

exec("\150elpexec"\150elp()")

It concatenates the strings uses the octal 150 which is h and "elp()" and runs the result. This prints the help() command which says "Welcome to Python 3.5's help utility!", meeting the requirements.

##Python 2

This uses exactly the same method as the above but without the parentheses

Python 3 (17)

exec"\150elpexec("\150elp()")

Try it online!

#Python 2/3, 28 17 (3) and 15 (2) bytes

##Python 3

exec("\150elp()")

It concatenates the strings uses the octal 150 which is h and "elp()" and runs the result. This prints the help() command which says "Welcome to Python 3.5's help utility!", meeting the requirements.

##Python 2

This uses exactly the same method as the above but without the parentheses

exec"\150elp()"

Try it online

#Python, 15 bytes

Python 2 (15)

exec"\150elp()"

It concatenates the strings uses the octal 150 which is h and "elp()" and runs the result. This prints the help() command which says "Welcome to Python 3.5's help utility!", meeting the requirements.

Python 3 (17)

exec("\150elp()")

Try it online!

added 34 characters in body
Source Link
FlipTack
  • 14.7k
  • 3
  • 56
  • 102

#Python 2/3, 28 17 (3) and 15 (2) bytes

  

##Python 3

exec("\150elp()")
exec("\150elp()")

It concatenates the strings uses the octal 150 which is h and "elp()" and runs the result. This prints the help() command which says "Welcome to Python 3.5's help utility!", meeting the requirements.

##Python 2

This uses exactly the same method as the above but without the parentheses

exec"\150elp()"
exec"\150elp()"

Try it online

#Python 2/3, 28 17 (3) and 15 (2) bytes

 

##Python 3

exec("\150elp()")

It concatenates the strings uses the octal 150 which is h and "elp()" and runs the result. This prints the help() command which says "Welcome to Python 3.5's help utility!", meeting the requirements.

##Python 2

This uses exactly the same method as the above but without the parentheses

exec"\150elp()"

Try it online

#Python 2/3, 28 17 (3) and 15 (2) bytes

 

##Python 3

exec("\150elp()")

It concatenates the strings uses the octal 150 which is h and "elp()" and runs the result. This prints the help() command which says "Welcome to Python 3.5's help utility!", meeting the requirements.

##Python 2

This uses exactly the same method as the above but without the parentheses

exec"\150elp()"

Try it online

added 178 characters in body
Source Link
user63571
user63571
Loading
added 29 characters in body
Source Link
user63571
user63571
Loading
Source Link
user63571
user63571
Loading