Untitled

 avatar
user_8630350
plain_text
10 days ago
433 B
4
Indexable
import random
carro = random.randint(0,180)
print('Velocidade de {} km/hora'.format(carro))


def radar(velocidade ):

    if velocidade <= 80:
        print('não houve multa')
    if velocidade > 80 and velocidade < 91:
        print("levou multa leve")
    if velocidade > 90 and velocidade <101:
        print("levou multa grave")
    if velocidade >= 101:
        print("levou multa gravíssima")


radar(carro)
Editor is loading...
Leave a Comment