- Go to: 'System Preferences' >> 'MySQL' and stop MySQL
OR,
- sudo /usr/local/mysql/support-files/mysql.server start
- sudo /usr/local/mysql/support-files/mysql.server stop
| def add_check_digit(upc_str): | |
| """ | |
| Returns a 12 digit upc-a string from an 11-digit upc-a string by adding | |
| a check digit | |
| >>> add_check_digit('02345600007') | |
| '023456000073' | |
| >>> add_check_digit('21234567899') | |
| '212345678992' | |
| >>> add_check_digit('04210000526') |
| # delete all pods | |
| kubectl delete --all pods --namespace=default | |
| # deete all deployments | |
| kubectl delete --all deployments --namespace=default | |
| # delete all services | |
| kubectl delete --all services --namespace=default |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.