Skip to content

Instantly share code, notes, and snippets.

View marcelosanto's full-sized avatar
🏠
Working from home

Marcelo Santos marcelosanto

🏠
Working from home
View GitHub Profile
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
<!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;
<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'"/>