I'm trying project euler problem 3 and I've hit the wall with this
error. What could be the problem here?
l=[]
>>> num=600851475143
>>> i=1
>>> while i<=num:
... if num%i==0:
... l.append(i)
... i+=1
... print max(l)
File "", line 5
print max(l)
^
SyntaxError: invali
I am printing the numbers from 1 to 100. In that, I want to display
multiples of 3,5 and of both as mulof3, mul0f5 and mulof3and5
respectively.
I am getting the output I want but I would like to format the output
to print only 10 number per line. How do I go about doing this?
for i in range(1, 1
On Apr 3, 3:12 am, sl33k wrote:
> I am trying to return a list of items modified with each item also
> showing like the number of modifications.
>
> Returning a list of user modified items was done easily but I would
> also like to display the item modified by the user and the
>
be displayed like is,
Modified item: No of modifications to it
E.g. sl33k: 3
Some background of the base class methods used:
list_revisions() - gets the list of ints of the all modification of a
particular item
get_revision() - given the modification int, it gets the specific
modified item