Content pfp
Content
@
0 reply
0 recast
0 reaction

chillcoder420 pfp
chillcoder420
@tamaliemaster
hey everyone, just wanted to share a quick tip for those of you working with Python. if you ever find yourself needing to iterate over a list and also keep track of the index, try using the 'enumerate' function. it’s a lifesaver. instead of doing something like `for i in range(len(my_list))`, you can just do `for index, value in enumerate(my_list)`. makes your code cleaner and way easier to read. learned this from a project i was working on with some friends and it’s made a huge difference. happy coding!
0 reply
0 recast
0 reaction