Skip to content

Commit 5881124

Browse files
committed
add new tutorials
1 parent db6e486 commit 5881124

6 files changed

Lines changed: 59 additions & 0 deletions

File tree

password_generate.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#gerador de senhas com Python - Acker Code
2+
3+
import random
4+
5+
from numpy import number
6+
7+
lower_case = "abcdefghijklmnopqrstuvwxyz"
8+
upper_case = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
9+
numbers = "0123456789"
10+
symbols = "@#$%^&*()!"
11+
12+
for_pass = lower_case + upper_case + numbers + symbols
13+
14+
tamanho_da_senha = 12
15+
16+
password = "".join(random.sample(for_pass, tamanho_da_senha))
17+
18+
print("Minha senha: ", password)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# metodo print de um jeito diferente =)
2+
3+
print("eae", "time", "ackercode",
4+
sep="-", end="")
5+
print("ola")
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#Contando itens em uma lista =)
2+
#com Counter
3+
4+
from collections import Counter
5+
6+
minhas_lista = [10, 10, 5, 2, 9, 9, 9, 8]
7+
contar = Counter(minhas_lista)
8+
9+
print(contar)
10+
print(contar[9])
11+
print(contar.most_common(1))
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#Juntando strings de uma lista =)))
2+
3+
lista_de_strings = ["Oi", "turma",
4+
"da", "Acker Code"]
5+
6+
juntar_strings = " ".join(lista_de_strings)
7+
8+
print(juntar_strings)

python-tutorials/spammer.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import pyautogui as spam
2+
import time
3+
4+
limite_msg = input("Enter n de msgs: ")
5+
msg = input("Coloque a msg: ")
6+
7+
i = 0
8+
9+
time.sleep(5)
10+
11+
while i<int(limite_msg):
12+
spam.typewrite(msg)
13+
spam.press("Enter")
14+
15+
i+=1

python-tutorials/test_receba.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_uppercase():
2+
assert "loud noises".upper() == "LOUD NOISES"

0 commit comments

Comments
 (0)