Python Forum

Full Version: Wordpress
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hello,

Today i imported an application that i made in Python into Wordpress with create with code. I have only a few problems, i need to make the text blue, but if i to it in Python with Colorama i get an error 'No module named 'colorama'. I also want to delete this text that shows in Wordpress if the app runs.

Thank you in advance.

{create.withcode.uk}This python app was written using create.withcode.uk. Click here to edit the python code and create/share your own version or check out blog.withcode.uk for ideas, tips and resources
I don't really understand what you are talking about.

Wordpress is written in PHP (or at least, the open source based version is, the new hosted version has a lot of modern JS).

It is possible to call Python code from a Wordpress system.

Quote: i imported an application that i made in Python into Wordpress
does not mean much to me. Do you mean you wanted to present Python code on a Wordpress site? If so, that doesn't have anything to do with Python.
I made an application in Python but i want to make the text blue. I downloaded coloroma but it doesn't work. I use a mac on work.
Has someone an answer?
Colorama is for console output and has nothing to do with HTML/CSS.
If you have programmed a small web application, change the color in your template.
Usually you learn this also in tutorials.

Wordpress is an web application written in PHP.
I don't understand why you ask for Wordpress, when you want to program with Python.
This is not a PHP-Forum.
I changed it already in python, but if i convert it with create with code, the color changes to black automaticaly
Without the code, it's difficult to give an answer.
Text is just text, without any color or formatting. Without knowing more about what you're doing, it's not possible to help you.
This still seems to be a PHP and Wordpress issue, nothing to do with Python.
https://www.youtube.com/watch?v=5uof2n6rmvc

I used this tutorial for colors, this is the code.

klanten = int(input ('Voer het aantal klanten in:'))

prijs1 = klanten/1000 * 49

if klanten >= 1000 and klanten <25000:
print ('Uw prijs is %i euro per maand' % (prijs1))

prijs2 = 1225 + (klanten - 25000) / 1000 * 25

if klanten >= 25000 and klanten <100000:
print ('Uw prijs is %i euro per maand' % (prijs2))

prijs3 = 3100 + (klanten - 100000) / 1000 * 10

if klanten >= 100000 and klanten <250000:
print ('Uw prijs is %i euro per maand' % (prijs3))

prijs4 = 4600 + (klanten - 250000) / 1000 * 6

if klanten >=250000:
print ('Uw prijs is %i euro per maand' % (prijs4))

https://www.youtube.com/watch?v=5uof2n6rmvc

I used this tutorial for colors, this is the code.

<python>

klanten = int(input ('Voer het aantal klanten in:'))

prijs1 = klanten/1000 * 49

if klanten >= 1000 and klanten <25000:
print ('Uw prijs is %i euro per maand' % (prijs1))

prijs2 = 1225 + (klanten - 25000) / 1000 * 25

if klanten >= 25000 and klanten <100000:
print ('Uw prijs is %i euro per maand' % (prijs2))

prijs3 = 3100 + (klanten - 100000) / 1000 * 10

if klanten >= 100000 and klanten <250000:
print ('Uw prijs is %i euro per maand' % (prijs3))

prijs4 = 4600 + (klanten - 250000) / 1000 * 6

if klanten >=250000:
print ('Uw prijs is %i euro per maand' % (prijs4))

</python>
Pages: 1 2