python - Difference between Len and Print Len() -
i've started doing data analysis in python , since didn't learn python scratch feel i've missed few nuances.
one thing noticed in 1 of reports had imported data set csv, put in dictionary, manipulated , trying print remaining entries.
i used:
len(a) len(b) len(c)
when did 1 of numbers returning , spent significant amount of time debugging code. in end found similar code online , tried copy syntax. change worked was:
print len(a) print len(b) print len(c)
i'm trying understand difference between 2 commands. initial thought len printed out count, guess different?
does len have 'memory' 1 count? why need add print?
len(list) not print anything, returns. if using repl (read - evaluate - print - loop) print returned value , loop. therefore print more 1 must call print.