Output print is not showing

Asked

Viewed 310 times

0

I typed exactly that:

import math
num = float(input('Digite um numero: '))
print('A parte inteira do numero {} é {}.'.format(num, math.trunc(num)))

However, when executing, only this appears:

Digite um numero: 9.8

Process finished with exit code 0

I wonder why I can’t display what I typed on the third line.

  • In the repl it. works as expected. How did you run the program?

  • 2

    I was using Shift+F10. I tried Ctrl+Shift+F10 and it worked. If you need to delete the question just let me know. Thank you.

  • 2

    @Joãodeiro, as you discovered the problem, I suggest you answer your own question explaining how you solved it.

  • @Dherik as well? I still don’t know how to use the site very well.

  • @Joãodeiro I believe there appears to you, here below the question, a text box with the title "Your answer". Put there how you solved your problem (the content of your comment and something else you want to add) and click on "Post your answer".

1 answer

0

I managed to fix it. Before I was giving "run" by the Shift + F10 command. I tried the Ctrl + Shift + F10 command and managed to solve the problem.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.