Ideas?


#1

Completed the 2nd exercise by running this code:

n = [1, 3, 5]

Do your multiplication here

result = n[1] * 5
n[1] = result
print n

Was wondering if there is a more efficient way to do this? How did everyone else complete this exercise?


#2

I don't know for sure so nobody hate on me please but, could you just print result


#3

instead of n[1] = result and print n


#4

@joetynan Ah yes I see. The second line is unnecessary. Cheers!


#5

Moreover:
print n[1]*5

)) Cheers.
By the way, it is very convenient to say what task do you solve, for example 10/11 and so on.
You will get your answer quicker.

Best regards!


#6

@arcninja06234 Thanks alot. I'll try to remember to put which exercise I did for future refernce!
Cheers :smiley: