Lançamento Foguete

  1. Crie o arquivo exercicio4.py:

    import winsound
    x = 10
    while x >= 0:
        print(x)
        x = x - 1
    winsound.Beep(2500, 500)
    
  2. Em seguida execute-o com o comando python .\exercicio4.py

Img1.png

Tabuada

number = int(input("Tabuada de: "))
begin = int(input("De: "))
end = int(input("Até: "))
x = begin
while x <= end:
    print(f"{number} x {x} = {number * x}")
    x = x + 1
  1. Em seguida execute-o com o comando python .\exercicio4.py

Img2.png