Answer to Question #323301 in Python for Ashok

Question #323301

Given a four digit number N as input write a program to print first and last digit of the number

1
Expert's answer
2022-04-04T07:48:13-0400
n = input()
if n:
	print(n[0],n[-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