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
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
Comments
Leave a comment