Programming Feedback for Advanced Beginners reader Frankie Frankleberry writes: Here's a program I wrote recently. It works, but I'm really not sure if my code is "proper". I use Python's eval function, which never feels like a good idea. There might be a nicer way to do it...?
PFAB #14: Evil `eval`
PFAB #14: Evil `eval`
PFAB #14: Evil `eval`
Programming Feedback for Advanced Beginners reader Frankie Frankleberry writes: Here's a program I wrote recently. It works, but I'm really not sure if my code is "proper". I use Python's eval function, which never feels like a good idea. There might be a nicer way to do it...?