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 do I raise list element in dict value to power of x?
I am a beginner in Python and have several exercises to resolve.
One of these is:
"Define a dictionary w/ keys "abc", "xyz" and values [1, 2, 3] and [9, 10, 11];
iterate over ...

Catalin Agarbiceanu
Votes: 0
Answers: 5
Go back to the original number after the sum of values between two lists
I wrote this code to sum a number and its reverse:
#sum the multiple of the first number and its reversed
zipped_lists = zip(primo, reversedList)
res = [x + y for (x, y) in zipped_lists]
...
Andrea Valsesia
Votes: 0
Answers: 1
Misunderstood Operators Precedence in C
I was doing some exercises on the order of execution of operations in C and I came across a case that I did not quite understand.
int d = 1;
int e = d--/10; // the result of e will be 0;
before c...

Nimpo
Votes: 0
Answers: 2
I can't figure out what is wrong with this function?
This is what it should return
Returns True if all items are truthy.
Examples:
>>> all_true([1, True, 'oregonstate'])
True
>>> all_true([0, 1, 2])
False
"""
This is wh...
Jack
Votes: 0
Answers: 4