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 random | |
| import string | |
| def gerar_senha(): | |
| while True: | |
| try: | |
| qtd = int(input("Digite o número de caracteres da senha (maior que 0): ")) | |
| if qtd <= 0: | |
| raise ValueError("A quantidade precisa ser maior que zero.") | |
| break |
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
| <!DOCTYPE html> | |
| <html lang="pt"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Escola da Nuvem</title> | |
| <style> | |
| body { | |
| font-family: Arial, sans-serif; | |
| text-align: center; |
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
| <html> | |
| <head> | |
| <title>Calculadora</title> | |
| </head> | |
| <body> | |
| <form> | |
| <input type="text" id="result" disabled /> | |
| <br><br> | |
| <input type="button" value="1" onclick="document.getElementById('result').value+='1'"/> | |
| <input type="button" value="2" onclick="document.getElementById('result').value+='2'"/> |