def myfun(): x = int(input("Input an integer: ")) n1 = int("%s" % x) n2 = int("%s%s" % (x, x)) n3 = int("%s%s%s" % (x, x, x)) print(n1 + n2 + n3) if __name__=="__main__": myfun()
Input an integer: 6 738 Input an integer: 5 615
Apply For Job
Java Material
Python Material
PLSQL Material
.Net Material
Write a Python program sort a list in descending order
Write a program to merging dictionaries
Python Program to Replace all Occurrences of ‘a’ with $ in a String
Write a python program to check two strings are Anagram or not
Write a Python program to display the current date and time.