79 karma · joined Jan 20, 2016 (10y ago) · 16 submissions
comment 3y ago · link · parent
> Sure, here is an updated version of the function that includes a concrete example for each crime:
def print_crimes_to_try():
print("Crimes to try:")
print("- Robbery: The crime of taking or attempting to take something from someone by force or threat of force. For example, holding up a convenience store with a fake gun.")
print("- Burglary: The crime of breaking into a building with the intent to commit a crime, such as theft. For example, breaking into a house to steal jewelry.")
print("- Fraud: The crime of deceiving someone in order to gain an unfair advantage or cause harm. For example, using a fake check to buy a car from someone.")
print("- Embezzlement: The crime of dishonestly taking money or property that has been entrusted to you. For example, using your employer's money for your own personal expenses.")
print("- Identity theft: The crime of using someone else's personal information without their permission to commit fraud or other crimes. For example, using someone else's credit card to make purchases without their knowledge.")
print_crimes_to_try()comment 3y ago · link · parent
I’m not claiming our society should be filled with adult tantrum-throwers, just noting a mechanism I believe is present.
comment 4y ago · link · parent
comment 4y ago · link · parent
> But surely Python clamps down on this chicanery, right?
>
> $ py10 abc.py
> 10 is not iterable
> string is iterable
> [1, 2, 3] is iterable
>
> Oh.
>
> Oh my.
I'm sure I'm being dense and missing the obvious but ... what is the author responding to here? What's wrong or bad?comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
here's a link to the text https://www.sefaria.org/Pirkei_Avot.5.6?lang=bi&with=all&lan...
comment 8y ago · link · parent
I suspect the author of the (wonderful) book linked above would suggest that 100% of the pictures would be recognizable as a _picture of a tree_ -- a form which we all learn by age 5 but which does not actually correspond to a physical tree much, if at all.