omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. lyubomyr83

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 18
    • Best 2
    • Controversial 0
    • Groups 0

    lyubomyr83

    @lyubomyr83

    2
    Reputation
    617
    Profile views
    18
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    lyubomyr83 Unfollow Follow

    Best posts made by lyubomyr83

    • RE: Function for recognize quantity of unique combinations

      @mikael
      Max - variable count to, for example 100.
      So i need count quantity uniques examples for some mathematic operator, in my case '+' or '-'
      I can't have example 98+10 or 25-50
      Max example result must be under 100 or equal
      Minimum example result must be under 0

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • Function for recognize quantity of unique combinations

      Hello pythonista community. Can someone adwise me formula for recognize quantity of unique combinations when you count to some max digit with sign "-" (minus)? Answer can't be under zero.

      Example1:
      sign = '-'
      max = 2
      2-2
      2-1
      1-1

      • we have only three unique combinations.

      Example2:
      answer can't be upper max:
      max = 2
      1+1

      • we have only one unique example.

      I already have formula for two signs "+-": unic_col=max**2

      But i need formula for '+' and '-'
      And maybe someone know for:
      +-×
      +-/
      +-×/
      /×

      So, i need function like that:

      def uniques_col(operators, max):
      if operators == '+-':
      return max**2
      elif operators == '+':
      return .....
      elif operators == '-':
      return .....
      elif operators == '+-×':
      return .....
      ......

      posted in Pythonista
      lyubomyr83
      lyubomyr83

    Latest posts made by lyubomyr83

    • this version of pandas is incompatible with numpy 1.13.3

      I install last version pandas over stash
      Then i test with some code:

      import pandas as pd
      df = pd.DataFrame({'id':range(15), 'chars': ['ab']*15})
      print(df)

      After run i receive
      this version of pandas is incompatible with numpy 1.13.3

      How to fix, maybe, anybody know?

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Pythonista sale (50% off) for Pi Day

      +1..........

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Function for recognize quantity of unique combinations

      @cvp thank's a lot. It working for '+', '-' and '+-':

      def uniques_col(operators, max):
          col = 0
          if operators == '+':
              for i in range(1,max):
                  for j in range(1,max-i+1):
                      col += 1
          elif operators == '-':
              for i in range(1,max+1):
                  for j in range(1,i+1):
                      col += 1
          elif operators == '+-':
                  col = max**2
          
          return col
          
      
      while True:
          op = input('operator\n')
          max = int(input('max\n'))
          print(uniques_col(op,max))
      
      And maybe you know uniques col for:
      +-×
      +-/
      +-×/
      /×
      

      ??? Thank's in advance!!!

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @cvp in iOS settings/speech i hear sound when i change speed (Turtle)

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Function for recognize quantity of unique combinations

      @cvp, thank you all for help!!!
      With your function i receive right col for '-', but not for '+':

      def uniques_col(operators, max):
      n = 0
      if operators == '+':
      for i in range(1,max):
      for j in range(i,max-i+1):
      n += 1
      print(i,operators,j,'=',i+j)
      elif operators == '-':
      for i in range(1,max+1):
      for j in range(1,i+1):
      n += 1
      print(i,operators,j,'=',i-j)
      return n

      while True:
      op = input('operator\n')
      max = int(input('max\n'))
      print(uniques_col(op,max))

      What i receive:
      operator-
      max4
      1 - 1 = 0
      2 - 1 = 1
      2 - 2 = 0
      3 - 1 = 2
      3 - 2 = 1
      3 - 3 = 0
      4 - 1 = 3
      4 - 2 = 2
      4 - 3 = 1
      4 - 4 = 0
      10
      operator+
      max4
      1 + 1 = 2
      1 + 2 = 3
      1 + 3 = 4
      2 + 2 = 4
      4

      Where is 1+3 and 2+1, so for '+' i need receive 6 unique examples.

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @JonB i have two same 3rd generation ipads, run the same program and have voice in one of them and not in another one. Yes, voice is on ))) in settings. And i have not errors.

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Function for recognize quantity of unique combinations

      @mikael
      Max - variable count to, for example 100.
      So i need count quantity uniques examples for some mathematic operator, in my case '+' or '-'
      I can't have example 98+10 or 25-50
      Max example result must be under 100 or equal
      Minimum example result must be under 0

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • Function for recognize quantity of unique combinations

      Hello pythonista community. Can someone adwise me formula for recognize quantity of unique combinations when you count to some max digit with sign "-" (minus)? Answer can't be under zero.

      Example1:
      sign = '-'
      max = 2
      2-2
      2-1
      1-1

      • we have only three unique combinations.

      Example2:
      answer can't be upper max:
      max = 2
      1+1

      • we have only one unique example.

      I already have formula for two signs "+-": unic_col=max**2

      But i need formula for '+' and '-'
      And maybe someone know for:
      +-×
      +-/
      +-×/
      /×

      So, i need function like that:

      def uniques_col(operators, max):
      if operators == '+-':
      return max**2
      elif operators == '+':
      return .....
      elif operators == '-':
      return .....
      elif operators == '+-×':
      return .....
      ......

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @cvp
      get an error module 'speech' (built-in)> is a built-in module

      posted in Pythonista
      lyubomyr83
      lyubomyr83
    • RE: Can't install pyttsx3 module

      @sulcud fresh install doesn't helped. I was delete speech module before over stash(((. Now i can't recover.

      posted in Pythonista
      lyubomyr83
      lyubomyr83