Skip to main content
edited body
Source Link
Chris_Rands
  • 957
  • 8
  • 15

This is a challenge.

Your task is simple. Write, write a single code snippet that when executed in one language outputs only the string 'abc' and when executed in another language outputs only the string 'cba'. The program should take no input.

This is a challenge.

This is a challenge.

Your task is simple. Write a single code snippet that when executed in one language outputs only the string 'abc' and when executed in another language outputs only the string 'cba'. The program should take no input.

Your task is simple, write a single code snippet that when executed in one language outputs only the string 'abc' and when executed in another language outputs only the string 'cba'. The program should take no input.

This is a challenge.

Tweeted twitter.com/StackCodeGolf/status/895930995131723776
Post Reopened by Oliver Ni, Gryphon, Chris_Rands, LyricLy, Okx
Post Closed as "Duplicate" by Downgoat code-golf
Post Reopened by Mr. Xcoder, dzaima, Luis Mendo code-golf
Post Closed as "Duplicate" by mbomb007, Stephen, CommunityBot
edited tags
Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
deleted 73 characters in body; edited title
Source Link
Chris_Rands
  • 957
  • 8
  • 15

Python 'abc' and 'cba'

This is a challenge specific to .

Your task is simple. Write a single code snippet that when executed in Python 2 printsone language outputs only the string 'abc' and when executed in Python 3 printsanother language outputs only the string 'cba' or vice-versa (the outputs can be the opposite way around). The program should take no input.

Python 'abc' and 'cba'

This is a challenge specific to .

Your task is simple. Write a single code snippet that when executed in Python 2 prints only the string 'abc' and when executed in Python 3 prints only the string 'cba' or vice-versa (the outputs can be the opposite way around). The program should take no input.

'abc' and 'cba'

This is a challenge.

Your task is simple. Write a single code snippet that when executed in one language outputs only the string 'abc' and when executed in another language outputs only the string 'cba'. The program should take no input.

added 32 characters in body
Source Link
Chris_Rands
  • 957
  • 8
  • 15
Loading
edited tags
Link
Mr. Xcoder
  • 42.5k
  • 9
  • 81
  • 214
Loading
Source Link
Chris_Rands
  • 957
  • 8
  • 15
Loading