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 calculate average using python *args ?
Write a Python program to get the volume of a sphere with radius six.
Write a python program to print lowercase names
Write a Python Program to Print all Prime Numbers in an Interval of 1-10.
Write a python program to find absolute value of a number in the list