Flag of South Africa

3838F -  
Phil_1857 Posted messages 1883 Registration date   Status Member Last intervention   -
Hello,
I need to create the flag of South Africa in Python on Numworks, but I'm having trouble.
If someone could help me, that would be really kind.

Thank you.

11 answers

  1. Phil_1857 Posted messages 1883 Registration date   Status Member Last intervention   169
     
    Sure, but my question was:

    Do you already know how to code in Python?
    2
  2. Phil_1857 Posted messages 1883 Registration date   Status Member Last intervention   169
     
    For the French flag, you made 3 vertical stripes, is that right?

    For this flag here, can you make 3 horizontal ones,

    then a green triangle, then a yellow one, then a black one, right?
    2
  3. Phil_1857 Posted messages 1883 Registration date   Status Member Last intervention   169
     
    Hello,

    Numworks, it's that graphic calculator that allows you to code in Python, right?

    Do you already know how to code in Python?

    After that, it must not be very complicated ...
    1
  4. Phil_1857 Posted messages 1883 Registration date   Status Member Last intervention   169
     
    "very vaguely" ???

    So you haven't had any courses on Python language?
    1
  5. Phil_1857 Posted messages 1883 Registration date   Status Member Last intervention   169
     
    No, read my message carefully!
    1
    1. 3838F
       
      Oh yes, sorry, horizontal, excuse me.
      0
    2. 3838F
       
      So I managed to do half of the flag, I just need the other half of my triangle.
      That is to say, the top part of the rectangle is done but I don't know how to do the bottom part for the triangle.
      Thank you
      0
  6. baladur13 Posted messages 47388 Registration date   Status Moderator Last intervention   14 405
     
    Hello,
    We will not do your exercise for you.
    Please describe your problem clearly and post the code you have already written.

    Click here for tips on writing messages and here regarding school assignments or final projects.

    When posting your code, please remember to use syntax highlighting.

    --
    Very hard to catch a black cat in a dark room.
    Especially when it’s not there...
    0
    1. 3838F
       
      The problem is that I don't know where to start, whether to make a red and a blue band or to do something else.
      0
  7. 3838F
     
    Yes, that's it, except that I am in the second year of high school and it's the first time we're doing coding, so I am completely lost.
    0
  8. 3838F
     
    Yes, but very vaguely I managed to go to the flag of France but no further.
    0
  9. 3838F
     
    If in 2 classes we've always done the same thing, simple flags like France, Italy, or Germany but we haven't gone further, except now we are asked for the flag of South Africa which is clearly more complicated than the others, that's why I'm stuck.
    0
  10. 3838F
     
    Ok, so I start with 3 vertical stripes like in Germany but with different colors?
    0
  11. Phil_1857 Posted messages 1883 Registration date   Status Member Last intervention   169
     
    OK,

    Post your code here, to see ..

    Without forgetting the tags:
    Visually, it should look like this:

     def test(): print('test') test() 
    0