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
#print('======== DESAFIO 028 ========') #Esse desafio faz parte do CursoEmVideo - professor Guanabara. | |
from random import randint | |
from time import sleep | |
print('\033[1:33m-=-' * 20) | |
print('\033[34mVou pensar em um número entre 0 e 5. Tente adivinhar...') | |
print('\033[1:33m-=-' * 20) | |
print('\033[0mPROCESSANDO...') | |
sleep(2) |
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('======== DESAFIO 020 ========') | |
from random import shuffle | |
alunos = [] | |
x = 1 | |
while x < 5: | |
nome_aluno = input(f'Nome do {x}º Aluno: ') | |
alunos.append(nome_aluno) | |
x += 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
print('======== DESAFIO 018 ========') | |
from math import sin, cos, tan, radians | |
angulo = float(input('Digite o valor do ângulo: ')) | |
print(f'Seno = {sin(radians(angulo)):.2f}') | |
print(f'Cosseno = {cos(radians(angulo)):.2f}') | |
print(f'Tangente = {tan(radians(angulo)):.2f}') |
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('\n======= DESAFIO 019 =======') | |
import random | |
alunos = [] | |
while len(alunos) < 4: | |
nome_aluno = input('Nome do Aluno: ') | |
alunos.append(nome_aluno) | |
print(f'O aluno escolhido para apagar o quadro foi: {random.choice(alunos).upper()}') |