├── (Google Sheet + Apps Script) Form ├── Código.gs ├── Código2.gs └── README.md ├── (Python) Create simple function ├── README.md └── Tutorial.py ├── (Python) Visualizing code in development ├── README.md └── Tutorial.py ├── (Python) While loop ├── README.md └── Tutorial.py ├── LICENSE └── README.md /(Google Sheet + Apps Script) Form/Código.gs: -------------------------------------------------------------------------------- 1 | function Limpiar() { 2 | var ss = SpreadsheetApp.getActiveSpreadsheet(); 3 | var formS = ss.getSheetByName("Formulario"); 4 | 5 | var rangesToClear = ["C4", "C6", "C8", "C10"]; 6 | for (var i=0; i= 0): 12 | if Value[read_index] != 0: 13 | Value[write_index] = Value[read_index] 14 | write_index -= 1 15 | 16 | read_index -= 1 17 | 18 | while(write_index >= 0): 19 | Value[write_index] = 0; 20 | write_index -= 1 21 | 22 | OriginalArray = [1, 10, 20, 0, 59, 63, 0, 88, 0] 23 | print("Original array:", OriginalArray) 24 | 25 | move_zeros(OriginalArray) 26 | 27 | print("New array (with zeros to the left): ", OriginalArray) 28 | -------------------------------------------------------------------------------- /(Python) While loop/README.md: -------------------------------------------------------------------------------- 1 | # YouTube Video (Audio in Spanish, subtitles in English) 2 | 3 | [![IMAGE ALT TEXT](http://img.youtube.com/vi/z9x4b_KTW4g/0.jpg)](https://youtu.be/z9x4b_KTW4g "Tutorial - Ciclo While, Break y Else en Python") -------------------------------------------------------------------------------- /(Python) While loop/Tutorial.py: -------------------------------------------------------------------------------- 1 | i = 1 2 | 3 | while i <= 15: 4 | print("Estamos trabajando en:",i) 5 | i += 1 6 | if i == 12: 7 | break 8 | else: 9 | print("No aplica") 10 | 11 | print("Se salió del programa") -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Fernando Mireles 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Tutorials 2 | Supplementary tutorial files 3 | --------------------------------------------------------------------------------