Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

added 79 characters in body
Source Link
Jakque
  • 2.8k
  • 8
  • 13

Vyxal D, 70 bytes/ Python 3, 77 bytes

a="`q‛:Ė+34Cp‛a=print('a=%r;exec(a[13:])#\140円:Ė'%a)";exec(a[13:])#`:Ė

Vyxal : Try it Online!

a="`q‛:Ė+34Cp‛a=print('a=%r;exec(a[13:])#\140円:Ė'%a)";exec(a[13:])#`:Ė

Python : Try it online!

The difference beetween the number of bytes is due to the fact that vyxal and python doesn't use the same charset

Explanation :

  • Vyxal
a=" # do nothing revelent here
 `q‛:Ė+ `:Ė # structure for a quine
 34Cp‛a=p # prepend `a="` to the string 
 rint # do stuff that somehow push 0 to the stack
 ( ) # for loop over 0 (do nothing)
 # # comment and implicily close the loop
 # implicit output
  • Python

The quine is a variation of a="print('a=%r;exec(a)'%a)";exec(a)

Vyxal D, 70 bytes/ Python 3, 77 bytes

a="`q‛:Ė+34Cp‛a=print('a=%r;exec(a[13:])#\140円:Ė'%a)";exec(a[13:])#`:Ė

Vyxal : Try it Online!

a="`q‛:Ė+34Cp‛a=print('a=%r;exec(a[13:])#\140円:Ė'%a)";exec(a[13:])#`:Ė

Python : Try it online!

The difference beetween the number of bytes is due to the fact that vyxal and python doesn't use the same charset

Explanation :

  • Vyxal
a=" # do nothing revelent here
 `q‛:Ė+ `:Ė # structure for a quine
 34Cp‛a=p # prepend `a="` to the string 
 rint # do stuff that push 0 to the stack
 ( ) # for loop over 0 (do nothing)
 # implicit output
  • Python

The quine is a variation of a="print('a=%r;exec(a)'%a)";exec(a)

Vyxal D, 70 bytes/ Python 3, 77 bytes

a="`q‛:Ė+34Cp‛a=print('a=%r;exec(a[13:])#\140円:Ė'%a)";exec(a[13:])#`:Ė

Vyxal : Try it Online!

a="`q‛:Ė+34Cp‛a=print('a=%r;exec(a[13:])#\140円:Ė'%a)";exec(a[13:])#`:Ė

Python : Try it online!

The difference beetween the number of bytes is due to the fact that vyxal and python doesn't use the same charset

Explanation :

  • Vyxal
a=" # do nothing revelent here
 `q‛:Ė+ `:Ė # structure for a quine
 34Cp‛a=p # prepend `a="` to the string 
 rint # do stuff that somehow push 0 to the stack
 ( # for loop over 0 (do nothing)
 # # comment and implicily close the loop
 # implicit output
  • Python

The quine is a variation of a="print('a=%r;exec(a)'%a)";exec(a)

Source Link
Jakque
  • 2.8k
  • 8
  • 13

Vyxal D, 70 bytes/ Python 3, 77 bytes

a="`q‛:Ė+34Cp‛a=print('a=%r;exec(a[13:])#\140円:Ė'%a)";exec(a[13:])#`:Ė

Vyxal : Try it Online!

a="`q‛:Ė+34Cp‛a=print('a=%r;exec(a[13:])#\140円:Ė'%a)";exec(a[13:])#`:Ė

Python : Try it online!

The difference beetween the number of bytes is due to the fact that vyxal and python doesn't use the same charset

Explanation :

  • Vyxal
a=" # do nothing revelent here
 `q‛:Ė+ `:Ė # structure for a quine
 34Cp‛a=p # prepend `a="` to the string 
 rint # do stuff that push 0 to the stack
 ( ) # for loop over 0 (do nothing)
 # implicit output
  • Python

The quine is a variation of a="print('a=%r;exec(a)'%a)";exec(a)

AltStyle によって変換されたページ (->オリジナル) /