Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
prefix to infix
#4
rontoto Wrote:Like in normal math..
This doesn't make a set of rules. I know that mathematically, the result of 7+7+7 is the same as ((7+7)+7) but for your program it is very different because if the program outputs the latter, you'll say that there are useless parentheses and you want to output the former. So you need to define precisely in which cases the program should output parentheses and in which cases it should not. That's what I mean by a set of rules. If you cannot describe it with words, you cannot describe it with code.
Reply


Messages In This Thread
prefix to infix - by rontoto - Dec-03-2019, 11:05 AM
RE: prefix to infix - by Gribouillis - Dec-05-2019, 08:41 AM
RE: prefix to infix - by rontoto - Dec-05-2019, 04:58 PM
RE: prefix to infix - by Gribouillis - Dec-05-2019, 05:38 PM
RE: prefix to infix - by rontoto - Dec-08-2019, 12:32 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  prefix ID Number with 0,00 make 3 digit. mg24 1 1,406 Oct-06-2022, 07:20 AM
Last Post: ibreeden
  String add prefix & suffix nahom 3 4,521 Sep-30-2019, 11:09 PM
Last Post: Gribouillis
  Best way of taking a date prefix from a line and forming a file path from it? Skaperen 5 4,508 Jul-22-2019, 11:50 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020