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
| ## Supermercado | |
| Produtos = ["Toddy", "Carro", "Nescau", "Cachorro", "Arroz", "Feijão"] | |
| Sacola = [] | |
| QtdItensSacola = 0 | |
| Descarte = [] | |
| QtdDescarte = 0 | |
| for ItemSupermercado in Produtos: |
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
| print("Hello World!") |
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
| import subprocess | |
| print("=" * 80) | |
| print("Verificando pacotes necessários:") | |
| print("=" * 80) | |
| output = subprocess.getoutput("pip install requests") | |
| print(output) | |
| print("=" * 80) | |
| print() |
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
| // Exemplo da estrutura DO WHILE com o WHILE iniciando na linha de baixo | |
| #include <iostream> | |
| using namespace std; | |
| int main() { | |
| // Definição da variável local | |
| int i = 0; | |
| // Inicio da estrutura DO WHILE |
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
| import numpy as np | |
| screen_size = 40 | |
| theta_spacing = 0.07 | |
| phi_spacing = 0.02 | |
| illumination = np.fromiter(".,-~:;=!*#$@", dtype="<U1") | |
| A = 1 | |
| B = 1 | |
| R1 = 1 |
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
| EngineKey = True | |
| while EngineKey == True: | |
| print() | |
| print('=' * 80) | |
| print(">> QUANTIDADE DE ITENS <<") | |
| print('=' * 80) | |
| ItensQtd = int(input("[!]: Quantos itens serão somados: ")) | |
| Soma = 0 | |
| count = 0 |
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
| class Calculator: | |
| def __init__(self): | |
| self.history = [] | |
| def add(self, x, y): | |
| result = x + y | |
| self.history.append(f"{x} + {y} = {result}") | |
| return result | |
| def subtract(self, x, y): |
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
| using (WebClient client = new WebClient()) | |
| { | |
| client.OpenRead(url); | |
| string headerContentLength = client.ResponseHeaders["Content-Length"]; | |
| if (!string.IsNullOrEmpty(headerContentLength)) | |
| { | |
| long fileSizeInBytes = Convert.ToInt64(headerContentLength); | |
| double fileSizeInMegabytes = fileSizeInBytes / 1024.0 / 1024.0; | |
| } | |
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| <?php | |
| $arrayAssociativo = array( | |
| "nome" => "João", | |
| "idade" => 30, | |
| "cidade" => "São Paulo" | |
| ); | |
| $json = json_encode($arrayAssociativo); | |
| ?> |
OlderNewer