Timeline for Help! My calculator broke! (Turn integer expression into calculator keystrokes)
Current License: CC BY-SA 3.0
19 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 5, 2016 at 20:23 | comment | added | Oliver Ni | Or do you round the bonus before subtracting? | |
Nov 5, 2016 at 20:23 | comment | added | Oliver Ni | Isn't this 294 because 327 - 32.7 = 294.3 which rounds to 294? | |
Feb 8, 2016 at 22:14 | history | edited | mjmt | CC BY-SA 3.0 |
Accept input() instead of command-line argument
|
Jan 14, 2016 at 15:08 | history | bounty ended | lirtosiast | ||
Jan 8, 2016 at 16:59 | comment | added | wizzwizz4 |
@mjmt GamrCorps means input() because this is Python 3! Python 2's raw_input() === Python 3's input() !
|
|
Nov 2, 2015 at 1:51 | comment | added | Grant Davis | 10% of 337 is 33.7 so wouldn't you round up? | |
Nov 1, 2015 at 23:12 | vote | accept | GamrCorps | ||
Oct 31, 2015 at 14:37 | comment | added | GamrCorps | @mjmt input can be taken in any method: command-line args, input(), etc. | |
Oct 31, 2015 at 7:55 | comment | added | mjmt | Are there guidelines somewhere that make things clear such as input is supposed be read, not passed as an argument? (Btw @GamrCorps you mean raw_input(), which would only save me 4 characters: "sys,".) As for not shaving off the last few characters, I really just wanted to get the ball rolling and see other peoples' solutions, especially if they do something more interesting than recursive-descent. | |
Oct 26, 2015 at 23:51 | comment | added | GamrCorps |
@sysreq This does work, you just have to use command line arguments. Replacing sys.argv[1] with input() works in ideone (and is shoter - hint hint)
|
|
Oct 26, 2015 at 17:41 | comment | added | cat | ??? | |
Oct 26, 2015 at 14:36 | history | edited | mjmt | CC BY-SA 3.0 |
Oops. *Now* Python 3. Geez I only wanted to spend 30 minutes or so on this, lol
|
Oct 26, 2015 at 14:27 | history | edited | mjmt | CC BY-SA 3.0 |
TAB chars in my code were each being translated into multiple spaces, leading to confusion over byte count. Replaced each tab with a single space.
|
S Oct 26, 2015 at 14:03 | history | edited | user45941 | CC BY-SA 3.0 |
edited for clarity (again)
|
S Oct 26, 2015 at 14:03 | history | suggested | cat | CC BY-SA 3.0 |
edited for clarity (again)
|
Oct 26, 2015 at 12:44 | review | Suggested edits | |||
S Oct 26, 2015 at 14:03 | |||||
Oct 26, 2015 at 5:01 | history | edited | mjmt | CC BY-SA 3.0 |
added 92 characters in body
|
Oct 26, 2015 at 4:55 | review | First posts | |||
Oct 26, 2015 at 8:22 | |||||
Oct 26, 2015 at 4:51 | history | answered | mjmt | CC BY-SA 3.0 |