Answer to Question #219113 in Python for Hari nadh babu

Question #219113

First & Last Digits

Write a Python Program of First & Last Digits.It Consists of two test cases


The below link contains First & Last Digits - question, explanation and test cases


https://drive.google.com/file/d/1A0_vdqi4KJP9EPCdm-PoIP6qkkxPkB7i/view?usp=sharing


We need all test cases can be come while code was run

1
Expert's answer
2021-07-22T07:08:42-0400
n = input('Enter space seperated four digit number here: ')
print(n[0], n[-1], sep='\n')
Enter space seperated four digit number here: 1 4 5 6
1
6
Enter space seperated four digit number here: 9 8 2 1
9
1

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