This file contains 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
a = 'hell' | |
b = 'o, w' | |
c = 'orld' | |
print(a+b+c+'!') |
This file contains 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
URL = 'https://pt.wikipedia.org/wiki/Programa_Ol%C3%A1_Mundo' | |
hw = '' | |
import urllib.request | |
try: | |
texto = urllib.request.urlopen(URL).read().decode('utf-8') | |
onde = texto.find('<title>') | |
except urllib.error.HTTPError: | |
print('Endereço Inválido') | |
except urllib.error.URLError: |
This file contains 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 webbrowser | |
with open ('.../myscripts/myadress.txt') as f: | |
for url in f.readlines(): | |
webbrowser.open(url) |
This file contains 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
const int BUZZER = 10; // Buzzer | |
const int LED_RED = 13; // Led Vermelho | |
const int LED_YLW = 12; // Led Amarelo | |
const int LED_GRN = 11; // Led Verde | |
const int BTN_RED = 9; // Botão Vermelho | |
const int BTN_YLW = 8; // Botão Amarelo | |
const int BTN_GRN = 7; // Botão Verde | |
// Frequencias de cada nota musical | |
const int C = 261; // Dó |
This file contains 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
#include <stdio.h > | |
#include <stdlib.h> | |
int main(){ | |
// Declaração de variáveis | |
int num1, // Primeiro numeral | |
num2, // Segundo numeral | |
sum , // Soma | |
sub , // Subtração | |
mult; // Multiplicação |