Posts by Guilherme Matos Passarini • 99 points
7 posts
-
2
votes3
answers702
viewsQ: Add elements into a vector using loops and inputs
I tried to write a simple command on R where the program asks 5 numbers for the user (input) and adds each one to a list. The problem is that the array is empty. I’ve tried lists too. Follow the…
rasked Guilherme Matos Passarini 99 -
2
votes1
answer81
viewsQ: Doubts running ggplot 2: out-of-order data, and error bar
Hello. I’m trying to use ggplot2 to make a graph on R. This graph is a bar graph that deals with various concentrations (each concentration has a bar) on the X axis, which is associated with a…
-
-1
votes1
answer79
viewsQ: Write to a multi-line output in Javascript (document that opens in browser)
In javascript, I try to run programs in the browser that do calculations between numbers and generate a multi-line output, but it leaves everything in a single line when running the command. I tried…
-
2
votes1
answer353
viewsQ: Summing numeric values in text files with Python
I am writing a small Python project that consists of an application that adds expenses, storing the name and value of expenses in a text file and printing on the command line, and at the end…
-
0
votes1
answer336
viewsQ: Passing error (loops) - play stone paper scissors lizard and Spock
I’m making a game Stone, paper, scissors, lizard and Spock. The intention of the game is to create a function that asks me which option I will choose, while the computer randomly chooses one of…
-
1
votes1
answer252
viewsQ: Type error: not all strings converted during formatting
I’m trying to make a match or a match. The problem is that every time the sum of my move and that of the computer is 'even' this error message appears. I have tried other types of formatting and…
-
3
votes2
answers3836
viewsQ: How to access variables defined in another function?
I’m writing a show about the NIM game. He asks me to call functions within another function, but when I try to compute variables belonging to this function in another function (the function that…
pythonasked Guilherme Matos Passarini 99