can someone help me write code in Python for this problem?
x = [10,-5,6,-7,2,4,-9,12,-55,33,44,77]
Write up some code to multiply only the negative values. Print the result of these multiplications. Include a loop of some kind as well as an if-statement to grab just the negative numbers.
This is what I have so far:
x = [10,-5,6,-7,2,4,-9,12,-55,33,44,77]
for num in x:
if num < 0:
print (num, end = "")