Given a four digit number N as input write a program to print first and last digit of the number
n = input() if n: print(n[0],n[-1])
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment