python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
How can I grab multiple values that a user inputs and put them in a list without having to continuously write input()?
I think if I know the answer to that question, I might be able to solve this. The code works with just one set of inputs. But if I input another set, it doesn't even acknowledge it. I think it would w...
skysthelimit91
Votes: 0
Answers: 1
Why is slice not slicing an array?
I've used slice for awhile now with no issue, my problem lies with .slice() not slicing.
Code: (why does it smash the code??)
let data
data = await Models.find().sort([['points', 'descending']])
con...

Drifter 0507
Votes: 0
Answers: 1
Slice matrix every 2 columns
I am trying to figure out how to slice a matrix every 2 columns. For example, if we have
A=[[1 2 3 4 5 6];[7 8 9 10 11 12]]
2×6 Matrix{Int64}:
1 2 3 4 5 6
7 8 9 10 11 12
then I would...

user4945884
Votes: 0
Answers: 1
How to slice a string in Python in one step?
Am new to Python.
"Hello World"[0:5][::-1] prints "olleH" as expected. I was wondering why "Hello World"[0:5:-1] is not doing the same.

Vinay
Votes: 0
Answers: 1