Posts by Matheus Silva • 31 points
3 posts
-
-1
votes6
answers4819
viewsA: Fibonacci-Python
My code really works. num = int(input()) def fibonacci(n): t1 = 0 t2 = 1 t3 = 0 for _ in range(0, n): print(t1) t3 = t1 + t2 t1 = t2 t2 = t3 fibonacci(num)…
pythonanswered Matheus Silva 31 -
3
votes3
answers702
viewsA: Add elements into a vector using loops and inputs
a <- c() for(numero in 1:5){ a <- append(a,numero) } print(a) -You have to store the vector inside somewhere when you are running the "append". The function gives a return, this return needs…
ranswered Matheus Silva 31 -
0
votes2
answers70
viewsQ: Which files should be ignored by Git in a Mongodb database?
I am creating an application with Mongodb and after initializing the repository, I entered the command git add * in the root directory of my project. When I went to upload the repository to Github,…