>>> range(1,2.5)
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
range(1,2.5)
TypeError: 'float' object cannot be interpreted as an integer
>>> l[1:2.5]
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
l[1:2.5]
TypeError: slice indices must be integers or None or have an __index__ method
Python 3 definitely doesn't like non-integer indices...
The Erdős number (Hungarian pronunciation: [ˈɛrdøːʃ]) describes the "collaborative distance" between mathematician Paul Erdős and another person, as measured by authorship of mathematical papers.
The same principle has been applied in other fields where a particular individual has collaborated with a large and broad number of peers. The American Mathematical Society provides a free online tool to determine the Erdős number of every mathematical author listed in the Mathematical Reviews catalogue.
== Overview ==
Paul Erdős (1913–1996) was an influential mathematician who spent a large portion of...
Paul Erdős (Hungarian: Erdős Pál [ˈɛrdøːʃ ˈpaːl]; 26 March 1913 – 20 September 1996) was a Hungarian mathematician. He was one of the most prolific mathematicians of the 20th century. He was known both for his social practice of mathematics (he engaged more than 500 collaborators) and for his eccentric lifestyle (Time magazine called him The Oddball's Oddball). Erdős pursued problems in combinatorics, graph theory, number theory, mathematical analysis, approximation theory, set theory, and probability theory.
== Early life, education, life, and death ==
Paul Erdős was born in Budapest, Austria...
I wonder what my "Dennis number" is. I won a challenge that was written by someone who won a challenge that was written by someone who outgolfed Dennis!
I'm pretty good at GMod posing so I guess I could see myself making the panels in GMod with HL2 models. The question is how badly would I get sued for using HL2 assets
Fuzzy Octo Guacamole, 17 bytes
^dz''sjX@Xjs''zd^
Alt solution in 19 bytes:
^Czs''.jX@Xj.''szC^
They both take input, duplicate and reverse, and join the stack.
Explanation:
^dz''sj@js''zd^
^ # Get input
d # Duplicate ToS (input)
z # Reverse ToS...
A parity bit, is one of the simplest forms of a checksum. First, you have to pick the parity, even or odd. Let's say we pick even. Now, we need a message to transmit. Let's say our message is "Foo". This is written in binary as:
01000110 01101111 01101111
Now, we count the total number of 1's ...
@trichoplax I didn't respond to a specific message, actually, but I was responding to how you said it's a good thing that Python doesn't allow non-integer indices.
I agree, though I also pointed out that there's a sensible way to do it. Well, sensible-ish. It only works if your list only has elements that can be multiplied by floats and added. :P