You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a more efficient way of solving Question 7 using list comprehension. HOWEVER, this is not for beginners, it's just a fun way of solving it. Let me know what you think about my solution.
arrays, elems = map(int, input().split(','))
print([[i * j for j in range(elems)] for i in range(arrays)])
The text was updated successfully, but these errors were encountered:
I found a more efficient way of solving Question 7 using list comprehension. HOWEVER, this is not for beginners, it's just a fun way of solving it. Let me know what you think about my solution.
The text was updated successfully, but these errors were encountered: