A 4 digit number is entered through keyboard. Write a program to print a new number with digits reversed as of orignal one. E.g.-
INPUT : 1234 OUTPUT : 4321
INPUT : 5982 OUTPUT : 2895
x = [1,2,3,4] #here x is considered as a list.
var=x[: : -1]
print(var)
o/p will be [4,3,2,1]
x = input()
print(x[::-1])
Software Testing is a technique to check whether the genuine programming item coordinates with anticipated necessities and to guarantee that product item is without defect. It includes execution of programming/framework parts utilizing manual or mechanized devices to assess at least one properties of interest. The motivation behind programming testing is to recognize mistakes, holes or missing necessities as opposed to real prerequisites.
For More Information Visit : Software Testing Training in Pune