Posts by Guilherme Araújo • 27 points
3 posts
-
-2
votes1
answer43
viewsQ: How do I print the output in different lines in this code?
#Divisores I# def divisores(num): for i in range(1, num//2+1): if num % i == 0: yield i yield num num = int(input()) print(list(divisores(num))) The answer is going in the same line, I wanted them…
python-3.xasked Guilherme Araújo 27 -
0
votes1
answer68
viewsQ: How do I get the input to be on the same line?
I wish that when someone comes in, the input stays on the same line, I tried using the 'split' command, but I could not. D = int(input()) R = int(input()) L = int(input()) P = int(input()) G =…
-
0
votes1
answer26
viewsQ: How do I use line breaking in the answer?
n1 = int(input()) n2 = int(input()) n3 = int(input()) n0 = (n1, n2, n3) print(sorted(n0)) I wanted the answer to come out in each different line, that is, one below the other.…
python-3.xasked Guilherme Araújo 27