python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
R: Loops Containing Lists and Data Frames
I am working with the R programming language.
I wrote the following code for a loop that randomly sample integers (between 1-10) 5 times:
results <- list()
for (i in 1:5) {
n_1_i = sample(1:10, 1...
stats_noob
Votes: 0
Answers: 1
Variable not updating in Java
I'm writing a program in which the user enters n number of numbers, the program finds the sum of the digits of the entered numbers, and then prints the number which has the largest sum of digits.
For ...
Farenhyte
Votes: 0
Answers: 2
How to convert a tuple list string value to integer
I have the following list:
l = [('15234', '8604'), ('15238', '8606'), ('15241', '8606'), ('15243', '8607')]
I would like to converted it such that the tuple values are integers and not string. How do ...
QdwesaY1234
Votes: 0
Answers: 2
Python put the output in a new file
I'm trying to put this output in a new file
{ "origin": "91.233.25.148" }
this is my code
import os
def proxy():
for i in range(10000):
f = open('proxy.txt', 'a')
...
walo net
Votes: 0
Answers: 1