Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Is it possible to run a python program on a wordpress site?

I have a python program that is essentially a quiz, I was wondering if there is anyway to make this program run on a Wordpress page

3 Answers

I'm not very sure, but you can always look for a plugin! There might be a plugin that allows Python code to be run.

Doug Swift
Doug Swift
7,803 Points

Yes you can. The ninja move is to use the WordPress [sourcecode] tag. You can learn details to write your code here: https://en.support.wordpress.com/code/posting-source-code/

So the program will actually run?

Yes you can. Please see the thread below.

python in WP