No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Re: [CODE][/CODE][QUOTE=KrazyKitsune;1360473]Title says all. I need to make a code that gives the prime factorization of a number and put them in a (this is important) a list.[/QUOTE] def is_prime(num): divisor=2 if(num==1): return False while(divisor<=num/2): if(num%divisor==0): return False else: divisor=divisor+1 return True def print_prime_factors(num): for i in range(2,num+1): if(num==1): break while(num%i==0): … | |
I need to write a recursive Python function that takes a numeric list as its argument, finds and returns the minimum of its elements. I am not allowed to use min() function of Python. I'll be very grateful if someone can help me. |
The End.