Posts by Felipe Soares • 1 point
3 posts
-
-2
votes7
answers26094
viewsA: What is the difference between parameter and argument?
For example: def multiplicar(x, y): # Parâmetros return x * y multiplicar(4, 3) # Argumentos
-
-2
votes2
answers195
viewsA: Recursiveness using Python
Here is an example of a recursive function: def factorial(x): if x < 3: return x else: return x * factorial(x - 1) But if you want to make a crescent sequence, have no need to use functions, use…
-
-4
votes1
answer95
viewsQ: Why are you making a mistake in calling a method?
I’m trying this code: class Car: def beep(): print('Beep') car = Car() car.beep() Typeerror: method() takes 0 positional Arguments but 1 was Given 'Cause there’s a mistake?…