Posts by Euling Lhuble • 187 points
3 posts
-
2
votes2
answers574
viewsQ: How to find out if a number is subnumber
I would like a code, with explanation (if possible of course), to know if one number is sub number of another. Example: P=101 Q=100001010057 Soon P is sub number of Q. Grateful from now on.…
-
11
votes2
answers21117
viewsQ: What does "Return" do in Python?
What "really" the return does in Python, mainly in recursive functions. Ex. factorial: def fatorial(n): if n==1: return n return fatorial(n-1) * n…
-
4
votes5
answers322
viewsQ: Python how to print output
How can I print a list this way, example: l=[4,26,32] I want to print the output as follows: 4 26 32 No comma and a blank space on the same line. Grateful from now on.…