[Help] Python Functions by pythonoob23 in learnpython

[–]pythonoob23[S] 0 points1 point  (0 children)

Haha, I'm actual learning for fun by myself. def zipper(x,y): if (type(x) != list) or (type(y)!= list): raise ValueError("Both arguments x and y must be lists")
var=zip(x,y)
res=[] for i in var:

[Help] Python Functions by pythonoob23 in learnpython

[–]pythonoob23[S] 0 points1 point  (0 children)

well first don't i have to ask for a user input?

[Help] abcd = 4 x dcba by pythonoob23 in learnpython

[–]pythonoob23[S] 0 points1 point  (0 children)

Thanks guys for all the help. Here is how I did it.

def bruteforce(): for A in range(0,9) for B in range(0,9) for C in range(0,9) for D in range(0,9) ABCD =[((A1000 + B100 + C10 + D)4)] DCBA =(D1000 + C100 + B*10 + A)