0
def
def F(x) n=F(input()) def F(x=input()) n=F Borh options should do the same no?
11 Answers
+ 7
Factors are always primes.
+ 3
I'd put the results into a variable prior to the return and return that variable.
+ 1
Neither is valid syntax. This works:
def F(x):
return x
n=F(input())
+ 1
Thanks
+ 1
What should it do?
+ 1
Ok thanks! that should solve it all
0
Then if I want ' F' to return the result of a serie of operations or loops should I write all of them after the return?
0
And can you help me the with this code?
https://code.sololearn.com/c3ghpSa1FW83/?ref=app
0
It should factorize numbers till approximately 900
0
Made some minor changes:
https://code.sololearn.com/cW1HELVqK8TU
0
Is adding one instead of the list gona make the factorization be always with prime numbers?