spoiler

Hello world

  • 20 Posts
  • 12 Comments
Joined 1 year ago
cake
Cake day: July 8th, 2023

help-circle


  • Sjmarf@sh.itjust.worksOPtoProgrammer Humor@programming.devSus
    link
    fedilink
    arrow-up
    102
    ·
    edit-2
    20 days ago

    not() is a base function that negates what’s inside (turning True to False and vice versa) giving it no parameter returns “True” (because no parameter counts as False)

    Actually, not is an operator. It makes more sense if you write not() as not () - the () is an empty tuple. An empty tuple is falsy in Python, so not () evaluates to True.




























  • This isn’t entirely true, according the article. If a producer in the US was using the name “Champagne” before 2005, they can continue to do so, but producers can’t start using it anymore.

    It took two decades of negotiations, but finally, in 2005, the U.S. and the EU reached an agreement. In exchange for easing trade restrictions on wine, the American government agreed that California Champagne, Chablis, Sherry and a half-dozen other ‘semi-generic’ names would no longer appear on domestic wine labels – that is unless a producer was already using one of those names.