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 to access news using python
Write a Python Program to Find HCF.
Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.
Write a python program to Find the index of the largest number in the list
Write a Python Program to Check Leap Year.