In this video Prof. Patterson walks through the creation of a Fraction class in python that uses the special methods to do symbolic math. This include _eq__, __add__, __sub__, __mul__, __truediv_ etc. The example is drawn from the textbook Python for Everyone by Horstmann and Necaise.
This example uses test-driven development in order to provide a target that we are coding toward.
This demo uses the spyder IDE from the Anaconda Navigator environment management system.
In questa pagina del sito puoi guardare il video online Making a Rational Fraction Class in python della durata di ore minuti seconda in buona qualità , che l'utente ha caricato djp3 13 novembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 8,912 volte e gli è piaciuto 109 spettatori. Buona visione!