Posts by Paula Jaqueline Silva • 135 points
3 posts
-
1
votes1
answer252
viewsQ: See which elements of the list are primes
Hello, I am making a list of exercises and I came across a question consisting of reading the elements of a list and determining how many are cousins. I could only do the function to calculate the…
-
0
votes1
answer692
viewsQ: Use of the comma in Python
I’m having a problem understanding the difference between code 1 and code 2 (Fibonacci sequence). Apparently it looked the same, but the results they both print are distinct. Code 1 qtd_elementos =…
-
12
votes4
answers4581
viewsQ: How to multiply in Python without the multiplication operator?
I have a task and I’m having trouble completing it. What I did was this:: m= int(input('Digite o primeiro fator:')) n= int(input('Digite o segundo fator:')) def multiplica(numero): while m > 0:…