In this series of exercises, we practice various refactoring techniques. You may want to run pylint on this script to find any pep8 compliance issues. Fix as much as issues you can.
-
Exercise 7: 'Split Temporary Variable' Technique
- Study the files burger_toppings.py and use
split temporary variable
technique to clarify the code (make it easier to understand its intent.)
- Study the files burger_toppings.py and use
-
Exercise 8: 'Remove Assignment to Method Parameter' Technique
- Study the file kinetic_energy.py. Use
remove assignment to method parameter
technique to prevent future mistakes/bugs.
- Study the file kinetic_energy.py. Use
-
Exercise 9: 'Rename Method' Technique
- Study the file calculate_area.py. Use
rename method
technique to clarify the code (make it easier to understand its intent.)
- Study the file calculate_area.py. Use
-
Exercise 10: 'Split Temporary Variable' Technique
- Study the file kinetic_energy.py. Use
split temporary variable
technique to clarify the code (make it easier to understand its intent.)
- Study the file kinetic_energy.py. Use