Escolar Documentos
Profissional Documentos
Cultura Documentos
" 100 XP
Uma área restrita fornece acesso a recursos gratuitos. Não haverá cobranças na sua
assinatura pessoal. A área restrita poderá ser usada somente para concluir o treinamento
no Microsoft Learn. O uso por qualquer outro motivo é proibido e poderá levar à perda
permanente do acesso à área restrita.
Creating reusable applications
Código Markdown
Having a program with hard-coded values limits its flexibility. Your first officer likes the
program you built
# Enter to convert
code below parsecs to lightyears, but wants the ability to specify a value
for parsecs. She wants you to create a program which can accept user input.
This exercise is broken into a series of steps. For each step you will be presented with the
goal for the step, followed by an empty cell. Enter your Python into the cell and run it. The
solution
Your codeforshould
each step
lookwill follow each
something like cell.
the following:
parsecs = 11
lightyears = parsecs * 3.26
print(str(parsecs) + " parsecs is " + str(lightyears) + " lightyears")
Sem computação Computação não conectado Exibição Kernel não conectado
Módulo concluído:
Desbloquear conquista