Hello! I'm SHIMIZU, a python beginner! This time, I tried to summarize the etymology of function names in order to learn python functions! (Updated from time to time)
bin() A function that outputs a binary number if you put a decimal number in (). The etymology comes from the English word "binary" which means binary number. I see, there are some programming terms that come with bin, but this bin stands for binary!
int() If you put a value in (), it will be output as an integer type, A function that takes two arguments, inputs the information (number, what base number?), And outputs it as a decimal number. The etymology comes from the English word "integer" which means an integer. By the way, in the world of mathematics, integers are expressed as Z, but this comes from the German word Zahlen. (I can't read it)
Recommended Posts