Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Wordpress
#11
You are clearly having a problem with formatting for sharing on this forum, so here's my attempt (not sure if I have indents where you intended):

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))
The video you linked to is about setting colours in the Python IDLE editor. Every editor has its own way for you to configure what colours are used (if the the author choses to offer the capability).

There are several plugins for Wordpress that offer a means to display correctly formatted programme code in posts and comments, including what colours to use for syntax highlights. For example, Crayon - I am not recommending this (I don't use Wordpress anymore; prefer static site generators like the Python based Pelican), it is just something I found with a quick web search.

I still do not understand why you are asking about this on a Python group. (Maybe I've just helped you, so it has proved worthwhile).
I am trying to help you, really, even if it doesn't always seem that way
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  WordPress and Python Script Corate 3 71,372 Jan-06-2019, 10:22 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020