Ad
  • Default User Avatar

    In case any Python programmers are reading this far down in the Discussion:

    As of Python 3.10, we now have a switch statement - you can read the following documentation:

    PEP-634 structural pattern matching

  • Custom User Avatar

    Done

  • Custom User Avatar

    What makes katas in Python any different from katas in any other language? Just read some fantasy books or watch movies and the ideas will come to you. :)

    By the way, is there any advantage to having many approved katas? I'm simply doing it for my personal satisfaction for now.

  • Default User Avatar

    Yeah .. RedStone Coder .. **you're Welcome any Time ** ..

    If you've done enough To master lists * [arrays or Vectors]* in C++ , Then How About that ...

    **Segregation Array ** .. where you Pass an array of intgers to the Function , Returns in Segregated Manner , which Means ** The Odd Numbers come first Then the Evens , in Ascending Order ** :: Like That ::

    input , Output Examples ::

    
    segArray ({1,4,6,3,2}) // returns ({1,3,2,4,6})
    
    Explanation :: 
    
    1- The array Passed To The Function Is A mixture Between Odd and Even Numbers , So It Simply Segregate The Odd First Then The even in Ascending Order .
    
    2- segArray ({13,16,27,14,2,5}) // returns ({2,5,13,27,14,16})
    

    Awaiting For your Feedback .. and if you Published this Kata and Passed the ** Beta Phase** and * Approved * I Promise I'll translated it to C++ So Many Trianees Could Solve it ... regards ... Zizou

  • Custom User Avatar

    Description edited to clarify this

  • Custom User Avatar

    The description does make mention of a 15% VAT; however, I do agree that it is unclear that the VAT is 15% in all cases. I will edit the description to make that a bit clearer.