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?
– Woss
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.
– João Deiro
@Joãodeiro, as you discovered the problem, I suggest you answer your own question explaining how you solved it.
– Dherik
@Dherik as well? I still don’t know how to use the site very well.
– João Deiro
@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".
– Dherik