Is Python in CombatCode Python 3 or Python 2?

Sorry if this has been answered many times before however I have searched the discourse and google and not found a definitive answer. I am new to coding and have chosen to learn Python. I have just discovered (after 100+ levels) of CombatCode that Python 2 is outdated and no longer supported.

Whilst I expect that CombatCode is P3 is I want to clarify just in case.

Thanks so much!

1 Like

Hey @BigJozzie great question. I’m pretty sure based on what you’ve said that CodeCombat’s Python version is P3, however I’m not completely sure. You could ask @nick or @Chaboi_3000 they would more than likely know.

I hope this helps!
-@Luke10

@BigJozzie luke is right, CodeCombat’s python has been recently updated to Python 3. Hope this helps.

1 Like

Hey there,
It seems like a few users are misunderstanding. To be clear, CodeCombat currently runs on Python 2.7.

1 Like

It uses python 3 for me

1 Like

It previously runs python 3 for me for some reason maybe 2.7 is the same?

1 Like

Little test in forest flower grove


see the output in the console

Almost the same thing in рythоntutоr.cоm

see a topic about this CoCo python feature:hero.findEnemies() Quiz

What kind of python is CoCo python I don’t know

1 Like

Our Software Engineer mentioned we never made the upgrade to Python 3. Maybe we did? The CoCo python comes from JS, so there’s some weird bits to it.

1 Like

okaynthanks this is now solved @Chaboi_3000

1 Like

It’s kind of a mix of Python 2 and Python 3, with some of each being supported, because we are implementing Python in JavaScript.

You can check out the source code for Filbert. (JS parser of PY)

1 Like