Jul-27-2022, 08:50 PM
It is a style of Python coding that I've not come across before and must be a real mear to debug.
As an example, your code line...
Where did you learn this style?
As an example, your code line...
followers_text = ['follower' for i in range(0,len(followers))]... I would code as...
for i in range(len(followers)): followers_text.append('follower')... that said, I don't see that it's doing anything other than add the string
'follower'
to the list object followers_text[]
for as many times as there are item in the list object followers[]
.Where did you learn this style?
Sig:
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
>>> import this
The UNIX philosophy: "Do one thing, and do it well."
"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse
"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein