python memo

Lima·2021년 3월 2일
0

python

목록 보기
6/6

concatenating / f string

https://www.datacamp.com/community/tutorials/f-string-formatting-in-python

list / dictionary

Lists are ordered sets of objects, whereas dictionaries are unordered sets. But the main difference is that items in dictionaries are accessed via keys and not via their position. ... The values of a dictionary can be any Python data type. So dictionaries are unordered key-value-pairs.

print / return

print just shows the human user a string representing what is going on inside the computer. The computer cannot make use of that printing. return is how a function gives back a value. This value is often unseen by the human user, but it can be used by the computer in further functions.'

increment / decrement

https://www.youtube.com/watch?v=QXX_sjWlzys

0개의 댓글