Answer to Question #307333 in Python for sushmanth

Question #307333

single digit number

input - the input is a single line containing a positive integer N.


output - the output should be a single line containing a single-numeral number.






1
Expert's answer
2022-03-07T12:53:10-0500
i = input('Enter integer here: ')
if len(i) <= 1:
    print(i)

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
New on Blog
APPROVED BY CLIENTS