Answer to Question #165539 in Python for Prathyusha

Question #165539

Given a positive integer, write a program to print the digit in its one's place


1
Expert's answer
2021-02-21T19:50:01-0500
# the input() used to read the values


x=input()


#float(x) type casts the string to float values


# format() considers 3 decimal values


print("{:.3f}".format(float(x)))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS