Posts by adriana • 17 points
4 posts
-
0
votes1
answer69
viewsQ: output function giving error syntax
lista1 = [1,2,3,1,1] lista2 = [2,2,3,1,3] res = list(input("Digite seus inteiros")) def exibiçao(lista1,lista2,res): print("{} {} {} {}…
-
0
votes3
answers178
viewsQ: is not accumulating values in the lists
list1=list() Lista2=list() def lê_e_verifies(): """reads an integer and checks whether this correct returns the integer read""" while True: try: inteiros= int(input("entre com numeros1 ")) inteiros=…
-
-3
votes1
answer75
viewsQ: How to invoke the function itself
def R(n): if n == 1: return 1 else: return 1/1/x-1/R(1/x+2/x)*n/1*n x=int(input("entre com x:")) print(R(2)) she does the following handle 1 divides 1/x -1 each iteration it divides 1/ 1/x -1/3/x…
-
1
votes1
answer38
viewsQ: tranformative
def eR(k,x): if k<=1: return 1 else: return (x**k)/eR(k-1,x)*k x=int(input("Insira o X:")) k=int(input("Insira o número de…