1 | initial version |
I tried:
sage: a=range(7000,8000)
sage: print[a if a%7==0]
File "<ipython-input-30-590163f2a51e>", line 1
print[a if a%Integer(7)==Integer(0)]
^
SyntaxError: invalid syntax
2 | No.2 Revision |
I tried:
sage: a=range(7000,8000)
sage: print[a if a%7==0]
File "<ipython-input-30-590163f2a51e>", line 1
print[a if a%Integer(7)==Integer(0)]
^
SyntaxError: invalid syntax
I find a solution:
print [a for a in [7000..7999] if a%7==0]
Thank you for suport.
3 | No.3 Revision |
I tried:
sage: a=range(7000,8000)
sage: print[a if a%7==0]
File "<ipython-input-30-590163f2a51e>", line 1
print[a if a%Integer(7)==Integer(0)]
^
SyntaxError: invalid syntax
I find a solution:
print [a for a in [7000..7999] if a%7==0]
Thank you for suport.support.