Posts by Pedro Henrique • 3 points
3 posts
-
-2
votes1
answer48
viewsQ: How do I resolve this "Valueerror" in Python 3?
I’m having trouble solving this error: Valueerror: Too Many values to unpack (expected 3) This is my code: def func(array, n): m = len(array) soma = 0 saldo = [] res = 0 bool = False saldo = [0 for…
pythonasked Pedro Henrique 3 -
-4
votes1
answer84
viewsQ: How to use While in Python 3?
My doubt is about the bow while, I can’t understand how it works. Write a Python function that takes, by argument, two integers and returns the sum of all integers between the two (including the…
-
1
votes2
answers315
viewsQ: Given a number, get the digit of tens
Write a function that takes an integer number of up to three digits and returns to dozens quantity of that number. Do not make type transformations. Input: (2) Output: 0 Input: (85) Output: 8 Input:…