This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def kilo(value): | |
return f'{value / 1000:.1f}kN' | |
def fall_force(m, fall_factor, elongation_factor=0.3): | |
return (9.8 * 2 * m * fall_factor) / elongation_factor | |
print(kilo(fall_force(80, 2))) # 10.5kN | |
print(kilo(fall_force(80, 1.7))) # 8.9kN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Install `flack8` and `import-order` plugin: | |
Note: Below all examples imply the use of venv for the project. | |
``` | |
python3 -m pip install flake8 | |
python3 -m pip install flake8-import-order | |
``` | |
2. Add `File Watcher`: |
NewerOlder