-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample02.py
More file actions
12 lines (9 loc) · 938 Bytes
/
example02.py
File metadata and controls
12 lines (9 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
from math import sqrt, floor
import random
import emoji
ran = random.randint(1, 10)
numero = int(input("Digite um número: "))
raiz = sqrt(numero)
print('A ráiz de {} é igual a {}'.format(numero, floor(raiz)))
print("O seu número sorteado: {}".format(ran))
print(emoji.emojize('Olá, mundo :earth_americas:', use_aliases=True))