
lyubomyr83
@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,maxi+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!!!

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

lyubomyr83
@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,maxi+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,'=',ij)
return nwhile 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
4Where is 1+3 and 2+1, so for '+' i need receive 6 unique examples.

lyubomyr83
@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.

lyubomyr83
@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 2550
Max example result must be under 100 or equal
Minimum example result must be under 0 
lyubomyr83
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
22
21
11 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 .....
...... 
lyubomyr83
@cvp
get an error module 'speech' (builtin)> is a builtin module 
lyubomyr83
@sulcud fresh install doesn't helped. I was delete speech module before over stash(((. Now i can't recover.

lyubomyr83
@sulcud
I was remove speech module in my iOS. How to recover??? 
lyubomyr83
@sulcud
Maybe you know how to change default voice from female to male?
And how can i print all availible voices?