Q. Write a complete python program to do the following;
(a) read an integer X.
(b) determine the number of digit n in X.
(c) from an integer Y that has the number of digit n at tens place and the most significant Digit of X at ones place.
(d) output Y
You can understand by Watching video :-
Answer :-
x = input("enter a number = ") n = len(x) y = str(n) + x[0] print("new number = ",y )
this is the whole answer or not
ReplyDeleteYes, Complete Answer.
DeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )