range tag

4 questions


1 answers
158 views
0
How do you generate integer type random numbers in a specific range?

You want to use Java to generate a random number of a specific range of int types.For example:You want to generate random numbers ranging from 5 to 10 with a minimum value of 5 and a maximum value of ...


1 answers
135 views
0
Python list.range Syntax Question.

Use the list range to line up (ex. 150, 155, 160, 165....)If you enter the standard weight, it floats like the standard weightI keep on increasing my height by 5 and my weight also increases by 5I'm w...

2 years ago

1 answers
90 views
0
Python range question

def print_5xn(a):A = int(len(a) / 5)for i in range(A+1) : print(a[i * 5: i * 5 + 5]) print_5xn(1234567898888) 12345 67898 888def print_5xn(a):A = int(len(a) / 5)for i in range(A) : print(a[i * 5: i * ...

2 years ago

1 answers
80 views
0
I have a question about range in the for statement!

I just started coding, so I have a question for j in range(len(list2)): for w in range(len(list2[0])): if list3[w] != list2[j][w]: new_list.append(list2[j][w])J = 0, 1 w = 0, 1, 2, 3, 4, 5We know th...

2 years ago

© 2024 OneMinuteCode. All rights reserved.