logo codesdope

why it is showing syntax error??

   Aakash Gautam

#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
print("enter number")
number=int(input())
print('first digit'==number/1000)
rem==number%1000
print('secong digit'==rem/100)
rem==rem%100
print('third digit'==rem/10)
rem==rem%10
print('fourth digit'==rem%10)
print('new number'=(fourth digit*1000)+(third digit*100)+(second digit*10)+(first digit*1))
 


Answers

Write your answer
Close

Welcome.please sign up.

Close

Welcome.please login.