How to append the content from a list from one function to another

后端 未结 0 491
一向
一向 2020-12-12 21:40

I will show you my code then I\'ll explain what I\'m trying to do

def primeFactors(n): 
primelist=[]
while n % 2 == 0: 
    primelist.append(2) 
    n = n / 2         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题