Posts by Hítalo Fillipy • 11 points
2 posts
-
1
votes1
answer530
viewsQ: Function returning None when finished
The function, when undoes recursion, returns None, and I don’t know why. def fat(n): if n == 0 or n == 1: return 1 else: return n * fat(n - 1) def superfat (n, x = 1): if n > 0: x*=fat(n) n-=1…
-
0
votes2
answers781
viewsQ: How to join 2 lists in a single Matrix?
Make a program that creates two vectors, using lists and, receive 6 integer numbers in each of the vectors. Finally, the program must create a 3x4 matrix from the intercalation of the two vectors.…
pythonasked Hítalo Fillipy 11