Activity for __blackjack__
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #285833 |
In Python 3.8 this will print a `SyntaxWarning: "is not" with a literal. Did you mean "!="?`. (more) |
— | 12 months ago |
Comment | Post #287054 |
@#53588 I know what that is, and it feels a bit useless to me here because it isn't called and can't be called from somewhere else because it has no name or other means to actually reference it in a call. So `f=` would have to be included to be callable at all.
Well, IMHO. As @#53890 pointed out ... (more) |
— | over 1 year ago |
Comment | Post #287054 |
Moving the `f=\` into the header feels like cheating to me. This is two bytes longer to be actually usable/callable. (more) |
— | over 1 year ago |
Comment | Post #287050 |
Thanks for the heads up and done. 🙂 (more) |
— | over 1 year ago |
Comment | Post #287050 |
I thought of that but it means always calculating both results and then pick one, but `m` must be at least 1 for this to work because if it is 0 then `int(D,m+1)` will raise a `ValueError: int() base must be >= 2 and <= 36, or 0`. (With `0` meaning that `int()` will parse the first argument like a P... (more) |
— | over 1 year ago |
Comment | Post #282457 |
`r=str.replace;print(r(str(eval(f"({r(r(input(),' ', ')*('),'i','j')})")).strip("()"),"j","i"))` (more) |
— | over 1 year ago |
Comment | Post #286920 |
Why a comment and not an answer? (more) |
— | over 1 year ago |